Skip to contentSkip to conversation

start.S:undefined reference to lowlevel_init

U-Boot-Users Shakthi Kannan 2 participants 3 messages Mar 8, 2006

lore
Share & tools
lore
#0 lore raw

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 at 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

#1 lore raw
Quoted 6 lines · In message <[email protected]> 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

Quoted 3 lines

2. 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.

Quoted 3 lines

cpu/arm920t/start.S: 264: undefined reference to `lowlevel_init'
make: *** [u-boot] Error 1

Your code fails to provide a needed function.

Quoted 5 lines

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

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Who alone has reason to *lie  himself  out*  of  actuality?  He  who
*suffers* from it."                             - Friedrich Nietzsche
#2 lore raw

Hi Wolfgang,

Quoted 1 line · --- Wolfgang Denk

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 at 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