[U-Boot] Solved: need help with flash in U-boot 2009

Pieter phenning at vastech.co.za
Tue Feb 3 10:28:19 CET 2009


Pieter wrote:
> Hi all
>
> We recently ported a MPC8548 board from U-Boot 1.2 to U-Boot 2009.01.
> U-Boot seems to work fine except for Flash operations, and we can boot
> Linux 2.6.27 kernel using nfs.
>
> We are using CFI ( AMD nor flash). The problem presented it self as the
> inability to erase a  sector of flash. With further investigation we
> became aware that we can not red the flash correctly.  It seams like the
> 1st 16bits of the 32 bit value is read correctly, but instead of reading
> the second 16bits, the 1st 16 bits are repeated. as shown below (
> comparing the output of U-Boot 2009 and U-Boot 1.2
>
> U-Boot 2009:
>
>     UBoot=> md
>     f8000020                                                                                                        
>                                      
>     f8000020: 65716571 73007300 00000000 00000000    eqeqs.s.........    
>
> U-Boot 1.2
>
>     UBoot=> md
>     f8000020                                                                                                        
>                                      
>     f8000020: 65717575 73000000 00000000 00000000    equus...........
>                                     
<snip>
I found the problem and thought I'll post the solution in case someone
down the line makes the same mistake.
In porting to U-Boot 2009 I defined the port size in BR0 as 16bit, where
it should have be 32 bit.

cheers pieter


More information about the U-Boot mailing list