rtems dynamic loading with waf

Chris Johns chrisj at rtems.org
Fri Jan 6 06:56:54 UTC 2017


On 6/1/17 2:33 pm, xuelin.tian at qkmtech.com wrote:
> Sure, as you mentioned, I used rtems-syms to generate the symbol table,
> like this: 
> 
> # rtems-syms -e -c "arm-rtems4.11-gcc ${CFLAGS1}" -o bk-symbol.o bkv01.elf 
> 
> And the "CFLAGS1" is
> "-qrtems -B/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/lib -B/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib/ --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9". 
> Then I loaded the bk-symbol.o into my RAM via ftp server, and my
> application app01.rap later. 
> 
> Am I wrong with something here?
> 

The command line for the symbols looks wrong. I have been working on
those command today and have some unreleased documentation that may help:

https://ftp.rtems.org/pub/rtems/people/chrisj/docs/user/tools/index.html#rtems-symbols

I suggest you:

- remove the '-e' flags if you are not embedding the symbol table in the
base kernel image.

- remove 'arm-rtems4.11-gcc' from '-c' option as this is the compiler
name and not a cflag.

- if you are using a 4.12 build of rtems-syms with 4.11 you may need to
provide a suitable executable prefix via the '-E' option.

I hope this helps.

Chris



More information about the users mailing list