[U-Boot] Undefined reference to'flash_sect_protect' in env_flash.c
Johnson Yu
johnson.yn83 at yahoo.co.uk
Tue Jun 30 09:35:49 CEST 2009
Hi Detlev,
> Hi,
>
>
>> I met this compiling error, any idea?
>>
>> /common/env_flash.c:312: undefined reference to `flash_sect_protect'
>> /common/env_flash.c:316: undefined reference to `flash_sect_erase'
>> /common/env_flash.c:329: undefined reference to `flash_sect_protect'
>> make: *** [u-boot] Error 1
>>
>
> Sure you are missing the definition of those functions. Maybe you'd
> care to give us information so we can reproduce this? Is this a
> standard configuration? What version of U-Boot?
>
> Thanks
> Detlev
>
>
These problems have gone and I did finally get the u-boot.bin on version
2009.06. I'm porting u-boot to a self-made board over AT91RM9200. There
are some further small problems with the operation on NOR flash, whose
model is INTEL 28F640J3.
I copied flash.c from board/xm250/ and made modifications to suit my own
board because xm250 uses the same flash chip. I followed the steps that:
burning loader.bin-> u-boot.bin -> entering u-boot prompt -> downloading
and copying boot.bin to address 0x10000000 -> downloading and copying
u-boot.gz to address 0x10010000, then set BMS to low and reset the
board......smooth process except the following info:
1)existed at the startup of u-boot:
Program downloaded successfully
Jump to Application!
U-Boot 2009.06 (Jun 30 2009 - 14:35:56)
DRAM: 32 MB
Flash lock bit operation timed out
Flash lock bit operation failed at 10000000, CSR=EA000006
Flash lock bit operation failed at 10060000, CSR=FFFFFFFF
Flash: 8 MB
*** Warning - bad CRC, using default environment
2)existed when running "protect" command:
U-Boot> protect off 10020000 1009ffff
Flash lock bit operation failed at 10020000, CSR=FFFFFFFF
..Flash lock bit operation failed at 10040000, CSR=FFFFFFFF
..Flash lock bit operation failed at 10060000, CSR=FFFFFFFF
..Flash lock bit operation failed at 10080000, CSR=FFFFFFFF
.. done
Un-Protected 4 sectors
All seem to be timed out operations.....any idea please?
Regards,
Johnson Yu
___________________________________________________________
All New Yahoo! Mail Tired of Vi at gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
More information about the U-Boot
mailing list