From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johnson Yu Date: Tue, 30 Jun 2009 15:35:49 +0800 Subject: [U-Boot] Undefined reference to'flash_sect_protect' in env_flash.c In-Reply-To: References: <194075.70132.qm@web28310.mail.ukl.yahoo.com> Message-ID: <4A49C055.2070902@yahoo.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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