[U-Boot-Users] start.S:undefined reference to lowlevel_init

Greetings!
Environment details:
Board: LN2410SBC (not supported yet?) Toolchain: GNU 2.95.3 u-boot: 1.1.4
I have a patch-1.1.1-ln2410sbc for the LN2410SBC board from littlechips.com. I am trying to port it to u-boot-1.1.4.
Need some clarifications regarding the following:
1. In the Makefile, I have added:
ln2410sbc_config : unconfig @./mkconfig $(@:_config=) arm arm920t ln2410sbc NULL s3c24x0
What does the NULL field represent?
2. There already exists an entry for LN2410SBC in include/asm-arm/mach-types.h but no board specific files.
I have created board/ln2410sbc and transferred the board specific files from u-boot-1.1.1.
On compilation, I get a linker error at the end:
cpu/arm920t/start.S: 264: undefined reference to `lowlevel_init' make: *** [u-boot] Error 1
I checked the ChangeLog and memsetup.S in board/ln2410sbc in earlier u-boot versions (1.1.1) has been changed to lowlevel_init.S (from 1.1.3). This gets compiled inside board/ln2410sbc, but, somehow cpu/arm920t/start.S doesn't see it?
Any suggestions on how I can make it visible to start.S?
Thanks,
SK
-- Shakthi Kannan, MS Software Engineer, Hexaware Technologies [E]: shakthimaan@yahoo.com [M]: (91) 98407-87007 [W]: http://www.shakthimaan.com [L]: Chennai, India
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

In message 20060308065541.58368.qmail@web30715.mail.mud.yahoo.com you wrote:
ln2410sbc_config : unconfig @./mkconfig $(@:_config=) arm arm920t ln2410sbc NULL s3c24x0
What does the NULL field represent?
See mkconfig and it's use in the Makefile
- There already exists an entry for LN2410SBC in
include/asm-arm/mach-types.h but no board specific files.
We copy mach-types.h from the official ARM code base, and it includes many boards that are not yet supported by U-Boot.
cpu/arm920t/start.S: 264: undefined reference to `lowlevel_init' make: *** [u-boot] Error 1
Your code fails to provide a needed function.
I checked the ChangeLog and memsetup.S in board/ln2410sbc in earlier u-boot versions (1.1.1) has been changed to lowlevel_init.S (from 1.1.3). This gets compiled inside board/ln2410sbc, but, somehow cpu/arm920t/start.S doesn't see it?
Check the link commands...
Best regards,
Wolfgang Denk

Hi Wolfgang,
--- Wolfgang Denk wd@denx.de wrote:
Your code fails to provide a needed function.
Thanks for your reply.
I forgot to modify the lowlevel_init.S file.
1. Changed .globl memsetup to
.globl lowlevel_init lowlevel_init:
2. Modified call to memsetup() in board/l2410sbc/ln2410sbc.c to lowlevel_init()
Its cross-compiled now :)
Thanks again,
SK
-- Shakthi Kannan, MS Software Engineer, Hexaware Technologies [E]: shakthimaan@yahoo.com [M]: (91) 98407-87007 [W]: http://www.shakthimaan.com [L]: Chennai, India
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (2)
-
Shakthi Kannan
-
Wolfgang Denk