2009-09-21 04:05:05     Custom BF533 board with m28w160ct flash

Document created by Aaronwu Employee on Sep 24, 2013
Version 1Show Document
  • View in full screen mode

2009-09-21 04:05:05     Custom BF533 board with m28w160ct flash

Rainer Zufall (GERMANY)

Message: 80185   

 

Hi.

 

I have a custom board which is based on the EZKIT BF533 but with an m28w160ct flash (which should be CFI conform).

 

I've flashed the u-boot-bf533-ezkit-2009R1-rc3 (which runs perfectly on my EZKIT) to my custom board.

 

U-Boot starts up and I get a warning (see below)

 

If I try to save eviroment to flash I'll get an error message:

 

 

 

U-Boot 2008.10 (ADI-2009R1-rc3) (Jul 16 2009 - 18:01:25)

 

CPU:   ADSP bf533-0.3 (Detected Rev: 0.5) (parallel flash boot)

Board: ADI BF533 EZ-Kit Lite board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 594 MHz, Core: 594 MHz, System: 118.800 MHz

RAM:   32 MB

Flash:  2.1 MB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

bfin> save

Saving Environment to Flash...

Un-Protected 1 sectors

Erasing Flash...

Erasing Flash locations, Please Wait

Erased 1 sectors

Writing to Flash... Flash not erased at offset 0x20000 Please erase to reprogram

Flash not Erased

Protected 1 sectors

 

 

 

Why do I get this messages?

TranslateQuoteReplyEditDelete

 

 

2009-09-21 09:28:43     Re: Custom BF533 board with m28w160ct flash

Mike Frysinger (UNITED STATES)

Message: 80190   

 

did you configure your env settings properly ?  you cant pick random addresses.  they must be sector aligned.

QuoteReplyEditDelete

 

 

2009-09-22 04:44:39     Re: Custom BF533 board with m28w160ct flash

Rainer Zufall (GERMANY)

Message: 80234   

 

How do I have to do this? I found nothing about this issue in the documentation.

TranslateQuoteReplyEditDelete

 

 

2009-09-22 09:59:43     Re: Custom BF533 board with m28w160ct flash

Mike Frysinger (UNITED STATES)

Message: 80245   

 

so open the datasheet, read the sector layout, and then set your u-boot env defines according to that.  if you dont understand the env defines, then read the u-boot documentation in the top level README.

QuoteReplyEditDelete

 

 

2009-09-22 10:20:27     Re: Custom BF533 board with m28w160ct flash

Rainer Zufall (GERMANY)

Message: 80246   

 

This means I won't have a chance to acces this flash with the pre compiled u-boot-bf533-ezkit-2009R1-rc3 image?

 

The only way is to compile u-boot with the correct defines? Did I understand that correct?

TranslateQuoteReplyEditDelete

 

 

2009-09-22 10:22:26     Re: Custom BF533 board with m28w160ct flash

Mike Frysinger (UNITED STATES)

Message: 80247   

 

if you arent using a bf533-ezkit, then you shouldnt be using the precompiled image.  the precompiled images are supported *only* on the board they're targetting.

Attachments

    Outcomes