From: Pieter Date: Tue, 03 Feb 2009 11:28:19 +0200 Subject: [U-Boot] Solved: need help with flash in U-boot 2009 In-Reply-To: <49871F4E.8060404@vastech.co.za> References: <49871F4E.8060404@vastech.co.za> Message-ID: <49880E33.3080303@vastech.co.za> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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........... > 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