RTEMS Quick Start Instructions Not Working

Joel Sherrill joel at rtems.org
Thu Jan 19 16:13:20 UTC 2017


Minor issue where you missed the note that the sis BSP is not needed
any longer and was recently removed. The simulator in gdb now initializes
in the same state as the real HW erc32.

Replace sis with erc32 and you should be OK.

Double check me on the page. I think I added a note about this. It may need
to be repeated in more spots.

--joel

On Thu, Jan 19, 2017 at 10:09 AM, DiGiorgio, Joseph <jdigiorg at ball.com>
wrote:

> Hi,
>
>
>
> I have tried several different configurations in following the Quick Start
> instructions (https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start)
> and have not had any success getting a successful RTEMS environment up and
> running. My ultimate goal is to get a powerpc RTEMS running under QEMU, but
> I have simplified my attempt to purely following the Quick Start guide with
> SPARC as the target which I can’t seem to get that to work.
>
>
>
> I have successfully used the “RTEMS Source Builder” to create my cross
> compiler suite for SPARC architecture (https://docs.rtems.org/rsb/).
>
>
>
> I have setup the following directory structure
>
>
>
> RTEMS
>
> |
>
> +---RTEMS_Cross_Tools
>
> |   |
>
> |   +---dist
>
> |       |
>
> |       +---SPARC
>
> |           |
>
> |           +---bin
>
> |           +---include
>
> |           +---lib
>
> |           +---libexec
>
> |           +---share
>
> |           +---sparc-rtems4.12
>
> +---RTEMS_OS
>
> |   |
>
> |   +---build
>
> |   +---dist
>
> |   +---Source
>
>
>
> and used Git to obtain a recent version of RTEMS:
>
>
>
>     cd RTEMS_OS
>
>     git clone git://git.rtems.org/rtems.git ./Source
>
>
>
> I am using the following script to build RTEMS:
>
>
>
>     export RTEMS_CROSS_TOOLS_PREFIX=/home/xubuntu/Development/RTEMS/RTEMS_Cross_Tools/dist/SPARC
>
>     export RTEMS_INSTALL_PREFIX=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC
>
>     export RTEMS_TARGET_ARCH=sparc-rtems4.12
>
>     export RTEMS_BOARD_SUPPORT_PACKAGE=sis
>
>
>
>     ##################################################
>
>     PROJECT_DIR=${PWD}
>
>     export PATH=${RTEMS_CROSS_TOOLS_PREFIX}/bin:${PATH}
>
>
>
>
>
>     if [! -f ../Source/configure]; then
>
>     pushd Source
>
>         echo "Running bootstrap to generate configure files..."
>
>         echo
>
>         ./bootstrap 2>&1 | tee ${PROJECT_DIR}/bootstrap.log
>
>         echo "Bootstrap operation complete..."
>
>         echo
>
>     popd
>
>
>
>     read -n 1 -p "Any key to continue, ^c to Terminate..." userinput
>
>     fi
>
>
>
>     pushd build
>
>         echo "Configuring RTEMS OS..."
>
>         echo
>
>         ../Source/configure \
>
>             --target=${RTEMS_TARGET_ARCH} \
>
>             --enable-rtemsbsp=${RTEMS_BOARD_SUPPORT_PACKAGE} \
>
>             --prefix=${RTEMS_INSTALL_PREFIX} \
>
>             --enable-tests=samples \
>
>             2>&1 | tee ${PROJECT_DIR}/configure.log
>
>
>
>         echo "Configure operation complete."
>
>         echo
>
>     popd
>
>
>
>     read -n 1 -p "Any key to continue, ^c to Terminate..." userinput
>
>
>
>     pushd build
>
>         echo "Building RTEMS OS..."
>
>         echo
>
>         make 2>&1 | tee ${PROJECT_DIR}/build.log
>
>         echo "Build operation complete."
>
>         echo
>
>     popd
>
>
>
>     read -n 1 -p "Any key to continue, ^c to Terminate..." userinput
>
>
>
>     pushd build
>
>         echo "Installing RTEMS OS..."
>
>         echo
>
>         make install 2>&1 | tee ${PROJECT_DIR}/install.log
>
>         echo "Install operation complete."
>
>         echo
>
>     popd
>
>
>
> The following is my output for configure and make:
>
>
>
>     configure.log
>
>
>
>     checking for gmake... no
>
>     checking for make... make
>
>     checking for RTEMS Version... 4.11.99.0
>
>     checking build system type... x86_64-pc-linux-gnu
>
>     checking host system type... x86_64-pc-linux-gnu
>
>     checking target system type... sparc-unknown-rtems4.12
>
>     checking for a BSD-compatible install... /usr/bin/install -c
>
>     checking whether build environment is sane... yes
>
>     checking for a thread-safe mkdir -p... /bin/mkdir -p
>
>     checking for gawk... gawk
>
>     checking whether make sets $(MAKE)... yes
>
>     checking whether to enable maintainer-specific portions of Makefiles... no
>
>     checking that generated files are newer than configure... done
>
>     configure: creating ./config.status
>
>     configure: configuring in ./tools/build
>
>     configure: running /bin/bash '../../../Source/tools/build/configure' '--prefix=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC' '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu'  '--enable-rtemsbsp=sis' '--enable-tests=samples' '--target=sparc-rtems4.12'  '--cache-file=/dev/null' '--srcdir=../../../Source/tools/build'
>
>     checking for gmake... no
>
>     checking for make... make
>
>     checking for RTEMS Version... 4.11.99.0
>
>     checking build system type... x86_64-pc-linux-gnu
>
>     checking host system type... x86_64-pc-linux-gnu
>
>     checking for a BSD-compatible install... /usr/bin/install -c
>
>     checking whether build environment is sane... yes
>
>     checking for a thread-safe mkdir -p... /bin/mkdir -p
>
>     checking for gawk... gawk
>
>     checking whether make sets $(MAKE)... yes
>
>     checking whether to enable maintainer-specific portions of Makefiles... no
>
>     checking for x86_64-pc-linux-gnu-gcc... no
>
>     checking for gcc... gcc
>
>     checking whether the C compiler works... yes
>
>     checking for C compiler default output file name... a.out
>
>     checking for suffix of executables...
>
>     checking whether we are cross compiling... no
>
>     checking for suffix of object files... o
>
>     checking whether we are using the GNU C compiler... yes
>
>     checking whether gcc accepts -g... yes
>
>     checking for gcc option to accept ISO C89... none needed
>
>     checking for style of include used by make... GNU
>
>     checking dependency style of gcc... gcc3
>
>     checking how to run the C preprocessor... gcc -E
>
>     checking for grep that handles long lines and -e... /bin/grep
>
>     checking for egrep... /bin/grep -E
>
>     checking for ANSI C header files... yes
>
>     checking for sys/types.h... yes
>
>     checking for sys/stat.h... yes
>
>     checking for stdlib.h... yes
>
>     checking for string.h... yes
>
>     checking for memory.h... yes
>
>     checking for strings.h... yes
>
>     checking for inttypes.h... yes
>
>     checking for stdint.h... yes
>
>     checking for unistd.h... yes
>
>     checking getopt.h usability... yes
>
>     checking getopt.h presence... yes
>
>     checking for getopt.h... yes
>
>     checking libgen.h usability... yes
>
>     checking libgen.h presence... yes
>
>     checking for libgen.h... yes
>
>     checking for strerror... yes
>
>     checking for strtol... yes
>
>     checking for basename... yes
>
>     checking for strnlen... yes
>
>     checking for bash... /bin/bash
>
>     checking that generated files are newer than configure... done
>
>     configure: creating ./config.status
>
>     config.status: creating Makefile
>
>     config.status: creating install-if-change
>
>     config.status: creating config.h
>
>     config.status: config.h is unchanged
>
>     config.status: executing depfiles commands
>
>     configure: configuring in ./tools/cpu
>
>     configure: running /bin/bash '../../../Source/tools/cpu/configure' '--prefix=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC' '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu'  '--enable-rtemsbsp=sis' '--enable-tests=samples' '--target=sparc-rtems4.12'  '--cache-file=/dev/null' '--srcdir=../../../Source/tools/cpu'
>
>     checking for gmake... no
>
>     checking for make... make
>
>     checking for RTEMS Version... 4.11.99.0
>
>     checking build system type... x86_64-pc-linux-gnu
>
>     checking host system type... x86_64-pc-linux-gnu
>
>     checking target system type... sparc-unknown-rtems4.12
>
>     checking rtems target cpu... sparc
>
>     checking for a BSD-compatible install... /usr/bin/install -c
>
>     checking whether build environment is sane... yes
>
>     checking for a thread-safe mkdir -p... /bin/mkdir -p
>
>     checking for gawk... gawk
>
>     checking whether make sets $(MAKE)... yes
>
>     checking whether to enable maintainer-specific portions of Makefiles... no
>
>     checking for bash... /bin/bash
>
>     checking that generated files are newer than configure... done
>
>     configure: creating ./config.status
>
>     config.status: creating Makefile
>
>     === configuring in generic (/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu/generic)
>
>     configure: running /bin/bash ../../../../Source/tools/cpu/generic/configure --disable-option-checking '--prefix=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC'  '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu' '--enable-rtemsbsp=sis' '--enable-tests=samples' '--target=sparc-rtems4.12' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'target_alias=sparc-rtems4.12' --cache-file=/dev/null --srcdir=../../../../Source/tools/cpu/generic
>
>     checking for gmake... no
>
>     checking for make... make
>
>     checking for RTEMS Version... 4.11.99.0
>
>     checking build system type... x86_64-pc-linux-gnu
>
>     checking host system type... x86_64-pc-linux-gnu
>
>     checking target system type... sparc-unknown-rtems4.12
>
>     checking rtems target cpu... sparc
>
>     checking for a BSD-compatible install... /usr/bin/install -c
>
>     checking whether build environment is sane... yes
>
>     checking for a thread-safe mkdir -p... /bin/mkdir -p
>
>     checking for gawk... gawk
>
>     checking whether make sets $(MAKE)... yes
>
>     checking whether to enable maintainer-specific portions of Makefiles... no
>
>     checking for bash... /bin/bash
>
>     checking that generated files are newer than configure... done
>
>     configure: creating ./config.status
>
>     config.status: creating Makefile
>
>     config.status: creating size_rtems
>
>     configure: configuring in ./testsuites/tools
>
>     configure: running /bin/bash '../../../Source/testsuites/tools/configure' '--prefix=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC' '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu'  '--enable-rtemsbsp=sis' '--enable-tests=samples' '--target=sparc-rtems4.12'  '--cache-file=/dev/null' '--srcdir=../../../Source/testsuites/tools'
>
>     checking for gmake... no
>
>     checking for make... make
>
>     checking for RTEMS Version... 4.11.99.0
>
>     checking build system type... x86_64-pc-linux-gnu
>
>     checking host system type... x86_64-pc-linux-gnu
>
>     checking target system type... sparc-unknown-rtems4.12
>
>     checking rtems target cpu... sparc
>
>     checking for a BSD-compatible install... /usr/bin/install -c
>
>     checking whether build environment is sane... yes
>
>     checking for a thread-safe mkdir -p... /bin/mkdir -p
>
>     checking for gawk... gawk
>
>     checking whether make sets $(MAKE)... yes
>
>     checking whether to enable maintainer-specific portions of Makefiles... no
>
>     checking that generated files are newer than configure... done
>
>     configure: creating ./config.status
>
>     config.status: creating Makefile
>
>     === configuring in generic (/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools/generic)
>
>     configure: running /bin/bash ../../../../Source/testsuites/tools/generic/configure --disable-option-checking '--prefix=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC'  '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu' '--enable-rtemsbsp=sis' '--enable-tests=samples' '--target=sparc-rtems4.12' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'target_alias=sparc-rtems4.12' --cache-file=/dev/null --srcdir=../../../../Source/testsuites/tools/generic
>
>     checking for gmake... no
>
>     checking for make... make
>
>     checking for RTEMS Version... 4.11.99.0
>
>     checking build system type... x86_64-pc-linux-gnu
>
>     checking host system type... x86_64-pc-linux-gnu
>
>     checking target system type... sparc-unknown-rtems4.12
>
>     checking rtems target cpu... sparc
>
>     checking for a BSD-compatible install... /usr/bin/install -c
>
>     checking whether build environment is sane... yes
>
>     checking for a thread-safe mkdir -p... /bin/mkdir -p
>
>     checking for gawk... gawk
>
>     checking whether make sets $(MAKE)... yes
>
>     checking whether to enable maintainer-specific portions of Makefiles... no
>
>     checking for bash... /bin/bash
>
>     checking that generated files are newer than configure... done
>
>     configure: creating ./config.status
>
>     config.status: creating Makefile
>
>     config.status: creating difftest
>
>     config.status: creating sorttimes
>
>     configure: configuring in sparc-rtems4.12/c
>
>     configure: running /bin/bash '../../../Source/c/configure' '--prefix=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC' '--host=sparc-rtems4.12' '--build=x86_64-pc-linux-gnu' '--target=sparc-rtems4.12'  '--enable-rtemsbsp=sis' '--enable-tests=samples' '--with-target-subdir=sparc-rtems4.12' '--exec-prefix=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC/sparc-rtems4.12' '--includedir=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC/sparc-rtems4.12/include'  '--cache-file=/dev/null' '--srcdir=../../../Source/c'
>
>     checking for gmake... no
>
>     checking for make... make
>
>     checking for RTEMS Version... 4.11.99.0
>
>     checking build system type... x86_64-pc-linux-gnu
>
>     checking host system type... sparc-unknown-rtems4.12
>
>     checking target system type... sparc-unknown-rtems4.12
>
>     checking rtems target cpu... sparc
>
>     checking for a BSD-compatible install... /usr/bin/install -c
>
>     checking whether build environment is sane... yes
>
>     checking for sparc-rtems4.12-strip... sparc-rtems4.12-strip
>
>     checking for a thread-safe mkdir -p... /bin/mkdir -p
>
>     checking for gawk... gawk
>
>     checking whether make sets $(MAKE)... yes
>
>     checking whether to enable maintainer-specific portions of Makefiles... no
>
>     checking that generated files are newer than configure... done
>
>     configure: creating ./config.status
>
>     config.status: creating Makefile
>
>     config.status: creating Makefile
>
>
>
>
>
>
>
>
>
>     build.log
>
>
>
>     Making all in tools/build
>
>     make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/build'
>
>     make  all-am
>
>     make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/build'
>
>     make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/build'
>
>     make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/build'
>
>     Making all in tools/cpu
>
>     make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu'
>
>     Making all in generic
>
>     make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu/generic'
>
>     make[2]: Nothing to be done for 'all'.
>
>     make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu/generic'
>
>     make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu'
>
>     make[2]: Nothing to be done for 'all-am'.
>
>     make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu'
>
>     make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu'
>
>     Making all in testsuites/tools
>
>     make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools'
>
>     Making all in generic
>
>     make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools/generic'
>
>     make[2]: Nothing to be done for 'all'.
>
>     make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools/generic'
>
>     make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools'
>
>     make[2]: Nothing to be done for 'all-am'.
>
>     make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools'
>
>     make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools'
>
>     Making all in sparc-rtems4.12/c
>
>     make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/sparc-rtems4.12/c'
>
>     Making all in .
>
>     make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/sparc-rtems4.12/c'
>
>     make[2]: Nothing to be done for 'all-am'.
>
>     make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/sparc-rtems4.12/c'
>
>     make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/sparc-rtems4.12/c'
>
>     make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build'
>
>     make[1]: Nothing to be done for 'all-am'.
>
>     make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build'
>
>
>
>
>
>
>
> When I inspect my build directory, I see make files, but nothing seems to be compiled. I also search for the “samples” test program “ticker” and do not see anything in my project directory. Any ideas what I’m doing wrong?
>
>
>
> - Joey D.
>
>
>
>
> This message and any enclosures are intended only for the addressee.
> Please
> notify the sender by email if you are not the intended recipient. If you
> are
> not the intended recipient, you may not use, copy, disclose, or distribute
> this
> message or its contents or enclosures to any other person and any such
> actions
> may be unlawful. Ball reserves the right to monitor and review all
> messages
> and enclosures sent to or from this email address.
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170119/b2cfcc8a/attachment-0002.html>


More information about the users mailing list