All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johnson Yu <johnson.yn83@yahoo.co.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] Undefined reference to'flash_sect_protect' in env_flash.c
Date: Tue, 30 Jun 2009 15:35:49 +0800	[thread overview]
Message-ID: <4A49C055.2070902@yahoo.co.uk> (raw)
In-Reply-To: <m2bpo70z9i.fsf@ohwell.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

  reply	other threads:[~2009-06-30  7:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3341.1246291212.8190.u-boot@lists.denx.de>
2009-06-29 16:26 ` [U-Boot] Undefined reference to'flash_sect_protect' in env_flash.c Johnson Yu
2009-06-29 16:40   ` Detlev Zundel
2009-06-30  7:35     ` Johnson Yu [this message]
2009-06-30 13:37       ` Detlev Zundel
2009-07-10 10:53     ` [U-Boot] Integrate AT91 Boot func into U-boot, under A91RM9200 board Johnson Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A49C055.2070902@yahoo.co.uk \
    --to=johnson.yn83@yahoo.co.uk \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.