In rtl22xx bsp,why .text in sdram in linkcmd

Ray xr at trasin.net
Sat Sep 29 16:06:15 UTC 2007


>(1)why the section .text in sdram.
It is for debug perpose. The image runs in SRAM after download. You can change it to your flash address.
>(2)do rtems run in sdram? how it copy the kernel from flash into sdram?
It can be run on sram or xip in flash.  If you want to put it from flash to ram, you have to copy it in the booting codes.
>(3)int boot_card(int argc, char **argv, char **envp)
>what's the three parameter means about? did the envp is from r2(in start.S) pass to here?
I am not sure about their usage. But it is passed from start.S, and many BSPs just ignore them¡£

>                                                            thanks!
>                                                             best regard!

------------------
Thanks & Best Regards!
Ray
2007-09-29

-------------------------------------------------------------
From: invent-lwj
Date: 2007-09-29 21:33:11
To:   rtemsÓʼþ×é
CC:   x ray
Sub:  In rtl22xx bsp,why .text in sdram in linkcmd

>>
>(1)why the section .text in sdram.
>(2)do rtems run in sdram? how it copy the kernel from flash into sdram?
>(3)int boot_card(int argc, char **argv, char **envp)
>what's the three parameter means about? did the envp is from r2(in start.S) pass to here?
>
>                                                            thanks!
>                                                             best regard!
>_______________________________________________
>rtems-users mailing list
>rtems-users at rtems.com
>http://rtems.rtems.org/mailman/listinfo/rtems-users
>




More information about the users mailing list