AnsweredAssumed Answered

Cannot flash complete NAND in one go

Question asked by henri_bragge on Feb 14, 2014
Latest reply on Feb 18, 2014 by henri_bragge

Hi,

 

I have a problem flashing NAND on MX53 (SABRE-AI). After I flash bootloader with kobs-ng and then the kernel right after, everything seems to go okay (readback from flash is correct), but after rebooting, I can see that kernel is corrupt (some bytes have flipped to 0xff). After re-writing kernel-only, then it will appear correct after reboot. Why cannot I write complete NAND in one go, is it even supposed to work? From the forums or application notes I didn't find anything concerning this problem.

 

Here are the commands I've been using:

# flash_erase /dev/mtd0 0 0

# kobs-ng init --chip_0_device_path=/dev/mtd0 uboot.bin

# flash_erase /dev/mtd1 0 0

# nandwrite -p /dev/mtd1 kernel.bin

 

I have verified the behavior with two different NAND models: MT29F2G08 and S34ML01G2. My kernel version is 2.6.35.3.

Outcomes