From: Scott Wood Date: Mon, 30 Nov 2009 16:02:45 -0600 Subject: [U-Boot] I can not read Linux image from my nand flash In-Reply-To: <48abf2c20911270414v1cebebdcoeb7be1c92b777b70@mail.gmail.com> References: <48abf2c20911270414v1cebebdcoeb7be1c92b777b70@mail.gmail.com> Message-ID: <20091130220245.GB11515@loki.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Nov 27, 2009 at 08:14:41PM +0800, Peter Pan wrote: > My u-boot version is u-boot-2009-08. > In my U-boot, after I entered "nboot 800000 0 0", > the following messages shows: > > Loading from NAND 1GiB 3,3V 8-bit, offset 0x0 > Image Name: Linux-2.6.22.sac.rd > Image Type: PowerPC Linux Kernel Image (gzip compressed) > Data Size: 1045865 Bytes = 1021.4 kB > Load Address: 00000000 > Entry Point: 00000000 > NAND read from offset ffffffff failed 0 > ** Read error > > The image in nand is written in linux 2.6.22 using > nandwrite -p /dev/mtd3 uImage > This command works fine before. What u-boot verison is "before"? What platform? Are you getting any build warnings about 64-bit printf, BTW? > I looked into the source tree, and u-boot should read out > the first block in my nand flash to show the information > of my image. But, after that, U-boot just think all the following > blocks are bad blocks, so it read failed. Perhaps u-boot and your version of Linux disagree about NAND layout. -Scott