rtems dynamic loading with waf

xuelin.tian at qkmtech.com xuelin.tian at qkmtech.com
Mon Jan 9 09:45:17 UTC 2017


Thanks a lot. Now I can load my application. 



xuelin.tian at qkmtech.com
 
From: Chris Johns
Date: 2017-01-06 14:56
To: xuelin.tian at qkmtech.com; Saeed Ehteshamifar
CC: users at rtems.org
Subject: Re: rtems dynamic loading with waf
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170109/3be0befe/attachment-0002.html>


More information about the users mailing list