[U-Boot-Users] newbies to u-boot
Bhagwat
bhagwat.masalkar at moschip.com
Mon Sep 3 12:17:22 CEST 2007
Hi
thanks for your response,
I am able to compile the code, but while linking at end ie after
-Map u-boot.map -o u-boot
I am getting getting follwing errors.
net/libnet.a(net.o)(.text+0x108): In function `ArpRequest':
/home/bhagwat/firmware/nuport/bootloader/u-boot/net/net.c:234: undefined
reference to `eth_send'
net/libnet.a(net.o)(.text+0x24c): In function `NetLoop':
/home/bhagwat/firmware/nuport/bootloader/u-boot/net/net.c:306: undefined
reference to `eth_halt'
net/libnet.a(net.o)(.text+0x280):/home/bhagwat/firmware/nuport/bootloader/u-boot/net/net.c:318:
undefined reference to `eth_init'
net/libnet.a(net.o)(.text+0x3e8):/home/bhagwat/firmware/nuport/bootloader/u-boot/net/net.c:400:
undefined reference to `eth_halt'
I am not getting any pointer to this error, as I have not done any
modification in /net folder.
Do I need to enable somewhere conditioanl compilation flag. please suggest.
regards,
__Bhagwat
----- Original Message -----
From: "Craig Day" <cday at phytec.com>
To: "'Bhagwat'" <bhagwat.masalkar at moschip.com>;
<u-boot-users at lists.sourceforge.net>
Sent: Friday, August 31, 2007 8:58 PM
Subject: RE: [U-Boot-Users] newbies to u-boot
> Hi Bhagwat,
>
> This is the basic U-Boot porting process. Start with a reference board if
> you can, copy files, make adjustments, attempt to compile, and then
> resolve
> errors.
>
> Part of the DRAM setup involves defining bank sizes. You need to declare
> PHYS_SDRAM_1 and PHYS_SDRAM_1_SIZE in your include/config/moschip.h header
> file. PHYS_SDRAM_1 should be the address of your SDRAM, and
> PHYS_SDRAM_1_SIZE should be the size.
>
> You will most likely encounter many different errors as you port U-Boot to
> your board. Examine the error, look at the source, determine what's wrong,
> and look at other working boards/configurations to figure out what you
> need
> to do when required. If all else fails, post an e-mail here!
>
> cheers,
> Craig
>
>>HI all,
>>
>>I got the U-boot code and I am trying to compile it for my SOC.
>>I am using ARM926EJS core.
>>I have done follwing steps
>>1. In makefile I have added below lines
>> moschip_config : unconfig
>> @./mkconfig $(@:_config=) arm arm926ejs moschip
>>2. I have copied header file in include dir
>> $ cp include/configs/armadillo.h include/configs/moschip.h
>>
>>3. Then I have copied dir
>> $cp board/armadillo/ board/moschip/
>>
>>after doing
>>$make moschip_config
>>$make
>>
>>I am getting follwoing errs..
>>armadillo.c: In function `dram_init':
>>armadillo.c:58: error: `PHYS_SDRAM_1' undeclared (first use in this
>>function)
>>armadillo.c:58: error: (Each undeclared identifier is reported only once
>>armadillo.c:58: error: for each function it appears in.)
>>armadillo.c:59: error: `PHYS_SDRAM_1_SIZE' undeclared (first use in this
>>function)
>>make[1]: *** [armadillo.o] Error 1
>>
>>Can anyone tell me, If i am missing any steps for compilation.
>>
>>
>>Regards,
>>__Bhagwat
>>
>
More information about the U-Boot
mailing list