From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 30 Nov 2009 18:31:44 -0600 Subject: [U-Boot] I can not read Linux image from my nand flash In-Reply-To: <48abf2c20911301627i3a9f2dc2uf54435c9857d3096@mail.gmail.com> References: <48abf2c20911270414v1cebebdcoeb7be1c92b777b70@mail.gmail.com> <20091130220245.GB11515@loki.buserror.net> <48abf2c20911301627i3a9f2dc2uf54435c9857d3096@mail.gmail.com> Message-ID: <4B1463F0.1080505@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Peter Pan wrote: > The previous u-boot version I use is U-boot 1.2.0, an ancient version. > So I upgrade the u-boot to 2009-08. > The platform is MPC8247. That's a chip, not a platform. Which NAND controller driver? What happens if you also use a non-ancient Linux? Have you compared the OOB layout between U-Boot and Linux? > About build warnings, some warnings in printf for not proper type, and > yes, I get the 64-bit printf warning : > > nand_util.c:45:2: warning: #warning Please define > CONFIG_SYS_64BIT_VSPRINTF for correct output! > > After I change the loff_t from long long to unsigned long, it works fine now. I suggest doing as it says, and defining CONFIG_SYS_64BIT_VSPRINTF in your board config file instead. -Scott