Workflow RTEMS on Zynq Zedboard

Badr El Hiouel elh.badr at gmail.com
Thu Mar 17 15:31:37 UTC 2016


Thank you Jan for responding.

When building RTEMS ( 1st step ) everthings went fine until this line :

*building: arm-rtems4.12-gdb-7.11-x86_64-linux-gnu-1*
*error: building arm-rtems4.12-gdb-7.11-x86_64-linux-gnu-1*
*Build FAILED*
*  See error report:
rsb-report-arm-rtems4.12-gdb-7.11-x86_64-linux-gnu-1.txt*
*error: building arm-rtems4.12-gdb-7.11-x86_64-linux-gnu-1*
*Build Set: Time 1:38:43.259719*
*Build FAILED*


I had this error that I can't found anywhere the solution for it. I
attached the report bug .. Can you please tell me what is going wrong ?



________

*Badr EL HIOUEL*

Mail : elh.badr at gmail.com
Tel.  : 06.62.32.51.16

2016-03-14 20:49 GMT+01:00 Jan Sommer <soja-lists at aries.uberspace.de>:

> Hi Belh,
>
> We only have the MicroZed board here, but many things should work pretty
> similar.
> First you need to build a cross-compiler toolchain for RTEMS.
> This is done using the RTEMS source builder. This nice tool will usually
> do everything for you.
> You can follow basically the direction from here:
> https://devel.rtems.org/wiki/Developer/Tools/RSB
> You just have to build the toolchain for your architecture, which would be
> 4.12/rtems-arm (assuming you want to build RTEMS 4.12)
> If that succeeds you have a working compiler, which can generate
> executables for arm-based computers.
> Add the binary directory of your new toolchain to your PATH environment
> variable.
>
> Next, you need to build an RTEMS-bsp. This will use the toolchain from the
> previous step and compile the RTEMS-kernel for your specific board.
> Clone into the rtems git-repository and first call ./bootstrap inside the
> directory.
> Then, it's a standard configure, make, make install process.
> 1. Create a build directory outside of the source tree
> 2. Run
> ../rtems-git/configure --target=arm-rtems4.12 \
> --enable-rtemsbsp=xilinx_zynq_zedboard \
> --enable-tests=samples \
> --enable-cxx \
> --enable-posix \
> --prefix=/opt/rtems/bsps/4.12 BSP_ARM_A9MPCORE_PERIPHCLK=333333333U
>
> Change the prefix-path and the options according to your needed setup.
> 3. Run: make && make install
>
> This should compile and install RTEMS for the zedboard to the given
> destination.
> Usually this includes some simple example programs like ticker.exe search
> for it in the install or build directory.
>
> The tricky part is now to actually execute the RTEMS program (i.e.
> ticker.exe) on your zedboard. For that you need a bootloader and
> a valid configuration for the FPGA. I basically installed XSDK and Vivado
> from Xilinx and then followed the tutorial for the microZed board from
> here: http://zedboard.org/support/design/1519/10
> There, when creating the boot-images, instead of adding the elf-file of
> the hello-world program, I added the ticker.exe and then continued to write
> the image to the flash memory (or sd-card). The tutorials above are for the
> microZed board, but if you take a look at them you will probably be able to
> find sources for the normal zedboard.
>
> I hope this might help you to get started. If you have more specific
> questions maybe some of the people with a real zedboard can help.
> Unfortunately we haven't managed to run an RTEMS application using u-boot
> so far.
>
> Best regards,
>
>    Jan
>
>
> Am Monday 14 March 2016, 17:34:42 schrieb Badr El Hiouel:
> > Hello ,
> >
> > I own a Zedboard and i don't know how to launch RTEMS on it. I followed
> > some instructions i found on the internet but i don't really understand
> > what i do. I have confusion between building RTEMS bsp and Xilinx bsp,
> > confusion where to build it on XSDK or as i saw on the internet using
> > U-boot ?
> >
> > Can you please suggest me a workflow to follow , i really need this.
> >
> > Thank you for your help.
> >
> > Belh
> > ​
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160317/a572fc0e/attachment-0001.html>
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building arm-rtems4.12-gdb-7.11-x86_64-linux-gnu-1
 Command Line: ../source-builder/sb-set-builder --log=build-log.txt --prefix=/mnt/D/development/rtems/compiler/4.12 4.12/rtems-arm
 Python: 2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)]
 git://git.rtems.org/rtems-source-builder.git/origin/52cb466a6d674a2d1476f7a3672787205f324f64
 Linux A0016-vmware-DBE.DIGIDIA 3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 x86_64
Tail of the build log:
checking whether initstate_r is declared without a macro... yes
checking whether mkdtemp is declared without a macro... yes
checking whether mkostemp is declared without a macro... yes
checking whether mkostemps is declared without a macro... yes
checking whether mkstemp is declared without a macro... yes
checking whether mkstemps is declared without a macro... yes
checking whether posix_openpt is declared without a macro... yes
checking whether ptsname is declared without a macro... yes
checking whether ptsname_r is declared without a macro... yes
checking whether random is declared without a macro... yes
checking whether random_r is declared without a macro... yes
checking whether realpath is declared without a macro... yes
checking whether rpmatch is declared without a macro... yes
checking whether secure_getenv is declared without a macro... yes
checking whether setenv is declared without a macro... yes
checking whether setstate is declared without a macro... yes
checking whether setstate_r is declared without a macro... yes
checking whether srandom is declared without a macro... yes
checking whether srandom_r is declared without a macro... yes
checking whether strtod is declared without a macro... yes
checking whether strtoll is declared without a macro... yes
checking whether strtoull is declared without a macro... yes
checking whether unlockpt is declared without a macro... yes
checking whether unsetenv is declared without a macro... yes
checking for strchrnul... yes
checking whether strchrnul works... yes
checking whether strstr works in linear time... no
checking whether strstr works... (cached) yes
checking for strtok_r... yes
checking whether strtok_r works... yes
checking for nlink_t... yes
checking whether fchmodat is declared without a macro... yes
checking whether fstat is declared without a macro... yes
checking whether fstatat is declared without a macro... yes
checking whether futimens is declared without a macro... yes
checking whether lchmod is declared without a macro... yes
checking whether lstat is declared without a macro... yes
checking whether mkdirat is declared without a macro... yes
checking whether mkfifo is declared without a macro... yes
checking whether mkfifoat is declared without a macro... yes
checking whether mknod is declared without a macro... yes
checking whether mknodat is declared without a macro... yes
checking whether stat is declared without a macro... yes
checking whether utimensat is declared without a macro... yes
checking whether chdir is declared without a macro... yes
checking whether chown is declared without a macro... yes
checking whether dup is declared without a macro... yes
checking whether dup2 is declared without a macro... yes
checking whether dup3 is declared without a macro... yes
checking whether environ is declared without a macro... yes
checking whether euidaccess is declared without a macro... yes
checking whether faccessat is declared without a macro... yes
checking whether fchdir is declared without a macro... yes
checking whether fchownat is declared without a macro... yes
checking whether fdatasync is declared without a macro... yes
checking whether fsync is declared without a macro... yes
checking whether ftruncate is declared without a macro... yes
checking whether getcwd is declared without a macro... yes
checking whether getdomainname is declared without a macro... yes
checking whether getdtablesize is declared without a macro... yes
checking whether getgroups is declared without a macro... yes
checking whether gethostname is declared without a macro... yes
checking whether getlogin is declared without a macro... yes
checking whether getlogin_r is declared without a macro... yes
checking whether getpagesize is declared without a macro... yes
checking whether getusershell is declared without a macro... yes
checking whether setusershell is declared without a macro... yes
checking whether endusershell is declared without a macro... yes
checking whether group_member is declared without a macro... yes
checking whether isatty is declared without a macro... yes
checking whether lchown is declared without a macro... yes
checking whether link is declared without a macro... yes
checking whether linkat is declared without a macro... yes
checking whether lseek is declared without a macro... yes
checking whether pipe is declared without a macro... yes
checking whether pipe2 is declared without a macro... yes
checking whether pread is declared without a macro... yes
checking whether pwrite is declared without a macro... yes
checking whether readlink is declared without a macro... yes
checking whether readlinkat is declared without a macro... yes
checking whether rmdir is declared without a macro... yes
checking whether sethostname is declared without a macro... yes
checking whether sleep is declared without a macro... yes
checking whether symlink is declared without a macro... yes
checking whether symlinkat is declared without a macro... yes
checking whether ttyname_r is declared without a macro... yes
checking whether unlink is declared without a macro... yes
checking whether unlinkat is declared without a macro... yes
checking whether usleep is declared without a macro... yes
checking whether btowc is declared without a macro... yes
checking whether wctob is declared without a macro... yes
checking whether mbsinit is declared without a macro... yes
checking whether mbrtowc is declared without a macro... yes
checking whether mbrlen is declared without a macro... yes
checking whether mbsrtowcs is declared without a macro... yes
checking whether mbsnrtowcs is declared without a macro... yes
checking whether wcrtomb is declared without a macro... yes
checking whether wcsrtombs is declared without a macro... yes
checking whether wcsnrtombs is declared without a macro... yes
checking whether wcwidth is declared without a macro... yes
checking whether wmemchr is declared without a macro... yes
checking whether wmemcmp is declared without a macro... yes
checking whether wmemcpy is declared without a macro... yes
checking whether wmemmove is declared without a macro... yes
checking whether wmemset is declared without a macro... yes
checking whether wcslen is declared without a macro... yes
checking whether wcsnlen is declared without a macro... yes
checking whether wcscpy is declared without a macro... yes
checking whether wcpcpy is declared without a macro... yes
checking whether wcsncpy is declared without a macro... yes
checking whether wcpncpy is declared without a macro... yes
checking whether wcscat is declared without a macro... yes
checking whether wcsncat is declared without a macro... yes
checking whether wcscmp is declared without a macro... yes
checking whether wcsncmp is declared without a macro... yes
checking whether wcscasecmp is declared without a macro... yes
checking whether wcsncasecmp is declared without a macro... yes
checking whether wcscoll is declared without a macro... yes
checking whether wcsxfrm is declared without a macro... yes
checking whether wcsdup is declared without a macro... yes
checking whether wcschr is declared without a macro... yes
checking whether wcsrchr is declared without a macro... yes
checking whether wcscspn is declared without a macro... yes
checking whether wcsspn is declared without a macro... yes
checking whether wcspbrk is declared without a macro... yes
checking whether wcsstr is declared without a macro... yes
checking whether wcstok is declared without a macro... yes
checking whether wcswidth is declared without a macro... yes
checking whether iswcntrl works... yes
checking for towlower... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking whether wctype is declared without a macro... yes
checking whether iswctype is declared without a macro... yes
checking whether wctrans is declared without a macro... yes
checking whether towctrans is declared without a macro... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc -O2 -pipe -I/mnt/D/development/rtems/rsb/rtems-source-builder/rtems/build/tmp/sb-admin/4.12/rtems-arm/mnt/D/development/rtems/compiler/4.12/include... gcc3
checking whether ln -s works... yes
checking for x86_64-linux-gnu-ranlib... ranlib
checking for x86_64-linux-gnu-ar... ar
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating import/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default commands
checking whether NLS is requested... no
checking whether makeinfo --split-size=5000000 supports @click... yes
checking for default auto-load directory... $debugdir:$datadir/auto-load
checking for default auto-load safe-path... $debugdir:$datadir/auto-load
checking libunwind-ia64.h usability... no
checking libunwind-ia64.h presence... no
checking for libunwind-ia64.h... no
checking for monstartup... yes
checking for _mcleanup... yes
checking for _etext... yes
checking for etext... yes
checking for gawk... gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for x86_64-linux-gnu-ranlib... ranlib
checking for bison... bison -y
checking for x86_64-linux-gnu-ar... ar
checking for x86_64-linux-gnu-dlltool... dlltool
checking for x86_64-linux-gnu-windres... windres
checking for main in -lm... yes
checking for wctype... yes
checking for library containing gethostbyname... none required
checking for library containing socketpair... none required
checking for library containing kinfo_getvmmap... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for library containing waddstr... -lncurses
checking for library containing tgetent... none required
checking size of unsigned long long... 8
checking size of unsigned long... 8
checking size of unsigned __int128... 16
checking for library containing dlopen... (cached) -ldl
checking whether to use expat... yes
checking for libexpat... yes
checking how to link with libexpat... /mnt/D/development/rtems/rsb/rtems-source-builder/rtems/build/tmp/sb-admin/4.12/rtems-arm/mnt/D/development/rtems/compiler/4.12/lib/libexpat.so -Wl,-rpath -Wl,/mnt/D/development/rtems/rsb/rtems-source-builder/rtems/build/tmp/sb-admin/4.12/rtems-arm/mnt/D/development/rtems/compiler/4.12/lib
checking for XML_StopParser... yes
checking whether to use python... yes
checking for python... /usr/bin/python
configure: error: python is missing or unusable
checking for python2.7... no
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/mnt/D/development/rtems/rsb/rtems-source-builder/rtems/build/arm-rtems4.12-gdb-7.11-x86_64-linux-gnu-1/build'
make: *** [all] Error 2
shell cmd failed: /bin/sh -ex  /mnt/D/development/rtems/rsb/rtems-source-builder/rtems/build/arm-rtems4.12-gdb-7.11-x86_64-linux-gnu-1/doit
error: building arm-rtems4.12-gdb-7.11-x86_64-linux-gnu-1


More information about the users mailing list