From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bo Shen Date: Sun, 17 Mar 2013 10:45:34 +0800 Subject: [U-Boot] AT91SAM9M10 Custom Board U-boot reboot after Wrong Image Format In-Reply-To: <75a803dfe802a36bf8d636b30b6b56f0@netopen.com.br> References: <1363177574526-149567.post@n7.nabble.com> <51412754.8070707@gmail.com> <63f3857f52f5657a4a4817c11a38e566@netopen.com.br> <514282C5.4010203@gmail.com> <54a8dde1b2d64623374eb97048f5bbed@netopen.com.br> <5143B6A0.2020506@gmail.com> <75a803dfe802a36bf8d636b30b6b56f0@netopen.com.br> Message-ID: <51452E4E.5000704@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marcio, This is not u-boot related, I think you should post this issue to Linux kernel mailing list. On 03/16/2013 10:58 PM, marcio at netopen.com.br wrote: [Snip] > NAND device: Manufacturer ID: 0x2c, Chip > ID: 0xba (Micron NAND 256MiB 1,8V 16-bi > t) > Scanning device for bad > blocks > Bad eraseblock 40 at 0x000000500000 > Bad eraseblock 41 at > 0x000000520000 > Bad eraseblock 800 at 0x000006400000 > Bad eraseblock 801 > at 0x000006420000 > Creating 3 MTD partitions on > "atmel_nand": > 0x000000000000-0x000000500000 : > "Bootstrap" > 0x000000500000-0x000006400000 : > "system" > 0x000006400000-0x000010000000 : "userdata" > UBI: attaching mtd1 > to ubi0 > UBI: physical eraseblock size: 131072 bytes (128 KiB) > UBI: > logical eraseblock size: 129024 bytes > UBI: smallest flash I/O unit: > 2048 > UBI: sub-page size: 512 > UBI: VID header offset: 512 (aligned > 512) > UBI: data offset: 2048 I check the NAND flash spec and find you may use wrong parameters for generating UBIFS image. --->8--- Page size x16: 1056 words (1024 + 32 words) ---<8--- and no sub-page. So, I think mini I/O unit should be 1024 x 4 = 4096 Bytes > uncorrectable error : > uncorrectable error > : > uncorrectable error : > uncorrectable error : > UBI error: ubi_io_read: > error -74 (ECC error) while reading 64 bytes from PEB 2: > 0, read 64 > bytes This is ECC error, I think you should also update the driver for atmel_nand.c (mainly ECC layout) Best Regards, Bo Shen