2010-11-30 05:15:37     BF518 EZBRD FLASH 4M to 3M cann't access

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

2010-11-30 05:15:37     BF518 EZBRD FLASH 4M to 3M cann't access

jingchao wang (CHINA)

Message: 96337   

 

Hi,all

 

        i turn on SW3 and not install JP16,but the flash address from 0x20300000 to 0x203fffff still can't be accessed.

 

      i want to erase all 4M Flash for uClinux image(3.6M). but i can't erase 0x20300000 to 0x203fffff,

 

 

 

bfin> md 20300000

20300000: 90779077 50015001 03fb03fb 03fb03fb    w.w..P.P........

20300010: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

20300020: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

20300030: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

20300040: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

20300050: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

20300060: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

20300070: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

20300080: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

20300090: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

203000a0: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

203000b0: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

203000c0: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

203000d0: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

203000e0: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

203000f0: 03fb03fb 03fb03fb 03fb03fb 03fb03fb    ................

QuoteReplyEditDelete

 

 

2010-11-30 06:23:33     Re: BF518 EZBRD FLASH 4M to 3M cann't access

Mike Frysinger (UNITED STATES)

Message: 96338   

 

please read the documentation and the HRM.  you cannot use the SPI CS and the async pin at the same time.

 

http://docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf518f-ezbrd#sw3_-_parallel_flash

QuoteReplyEditDelete

 

 

2010-11-30 20:19:50     Re: BF518 EZBRD FLASH 4M to 3M cann't access

jingchao wang (CHINA)

Message: 96345   

 

现在我SW3的开关已经全部在ON上了,JP16也是NOT INSTALLED状态,但是还是显示无法访问FLASH啊

 

U-Boot 2010.06 (ADI-2010R1-RC2) (Oct 20 2010 - 04:36:48)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.1) (parallel flash boot)

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Warning: Generating 'random' MAC address

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> erase 20300000 203fffff

 

................ done

Erased 16 sectors

bfin> md 20300000

20300000: 50385038 99699969 03f903f9 03f903f9    8P8Pi.i.........

20300010: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300020: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300030: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300040: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300050: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300060: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300070: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300080: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300090: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203000a0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203000b0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203000c0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203000d0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203000e0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203000f0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

bfin>

20300100: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300110: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300120: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300130: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300140: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300150: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300160: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300170: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300180: 03f903f9 03f903f9 03f903f9 03f903f9    ................

20300190: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203001a0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203001b0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203001c0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203001d0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203001e0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

203001f0: 03f903f9 03f903f9 03f903f9 03f903f9    ................

bfin>

QuoteReplyEditDelete

 

 

2010-11-30 20:37:35     Re: BF518 EZBRD FLASH 4M to 3M cann't access

Mike Frysinger (UNITED STATES)

Message: 96346   

 

like i already said, you cannot use SPI and async at the same time.  the default u-boot build uses the SPI.

 

QuoteReplyEditDelete

 

 

2010-11-30 22:05:31     Re: BF518 EZBRD FLASH 4M to 3M cann't access

jingchao wang (CHINA)

Message: 96347   

 

how to build u-boot uses the parallel flash

QuoteReplyEditDelete

 

 

2010-11-30 22:11:28     Re: BF518 EZBRD FLASH 4M to 3M cann't access

Aaron Wu (CHINA)

Message: 96348   

 

There are a number of macros defined in include/configs/bf518f-ezbrd.h, for more information please refer to: http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:parallel-flash, http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial-flash

QuoteReplyEditDelete

 

 

2010-12-02 19:54:47     Re: BF518 EZBRD FLASH 4M to 3M cann't access

jingchao wang (CHINA)

Message: 96423   

 

我注释掉了 include/configs/bf518f-ezbrd.h中的‘define CONFIG_BFIN_SPI’

 

但是这样子编译根本无法通过。。。

 

 

 

board/bf518f-ezbrd/libbf518f-ezbrd.a(bf518f-ezbrd.o):在函数‘ksz8893m_transfer’中:

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:74:对‘spi_xfer’未定义的引用

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:74: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `spi_xfer'

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:74:对‘spi_xfer’未定义的引用

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:74: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `spi_xfer'

board/bf518f-ezbrd/libbf518f-ezbrd.a(bf518f-ezbrd.o):在函数‘board_eth_init’中:

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:118:对‘spi_setup_slave’未定义的引用

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:118: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `spi_setup_slave'

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:120:对‘spi_claim_bus’未定义的引用

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:120: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `spi_claim_bus'

board/bf518f-ezbrd/libbf518f-ezbrd.a(bf518f-ezbrd.o):在函数‘ksz8893m_transfer’中:

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:74:对‘spi_xfer’未定义的引用

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:74: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `spi_xfer'

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:74:对‘spi_xfer’未定义的引用

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:74: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `spi_xfer'

board/bf518f-ezbrd/libbf518f-ezbrd.a(bf518f-ezbrd.o):在函数‘board_eth_init’中:

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:124:对‘spi_release_bus’未定义的引用

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:124: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `spi_release_bus'

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:126:对‘spi_free_slave’未定义的引用

/home/soc/u-boot-2010.06-2010R1-RC2/board/bf518f-ezbrd/bf518f-ezbrd.c:126: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `spi_free_slave'

make: *** [u-boot] Error 1

QuoteReplyEditDelete

 

 

2010-12-02 20:18:15     Re: BF518 EZBRD FLASH 4M to 3M cann't access

Mike Frysinger (UNITED STATES)

Message: 96424   

 

so modify the bf518f-ezbrd.c yourself.  the board code assumes SPI is enabled.

Attachments

    Outcomes