[U-Boot-Users] Problem in CFI driver (Spansion flash 8-bit mode)

nicky geerts nicky.geerts.news at gmail.com
Fri Jun 29 12:53:53 CEST 2007


> #ifndef CFG_FLASH_CFI_WIDTH
> #define CFG_FLASH_CFI_WIDTH     FLASH_CFI_8BIT
> #endif

You don't really need to specify the CFI_WIDTH, the flash detection
will determine that automagically, it tries all combination of
multiple banks and bus widths in sequence untill it finds one that is
supported starting with the bus width specified in
CFG_FLASH_CFI_WIDTH. if it is not specified it starts with 8bits.  it
doesn't hurt though.

> > MPC8641D-AMC> md 0xfff00000
> > fff00000: 05275619 2d556f42 746f3120 322e302e    .'V.-UoBto1 2.0.
> > fff00010: 2820754a 206e3932 32203030 2037202d    ( uJ n922 00 7 -
> > fff00020: 3431333a 3a383630 00290000 00000000    413::860.)......

Your problem seems endianness related.  PowerPC is usually big endian,
but it is able to switch to little endian just as easily, did you
define it to be little endian somewhere in your configuration?




More information about the U-Boot mailing list