[U-Boot] uboot-v2 NAND erase problem

Hi,
I complie uboot-v2 (use pcm038_defconfig) for my own imx27 board. My nand flash is sansung K9F1G08R0A 2k page 8 bit nand
loadb and tftp functions work well and uboot can boot up linux kernel correctly But I when I erased /dev/nan0.kernel.bb and reburn uImage I got this error:
Hit any key to stop autoboot: 0 could not read: error -74
Does anybody know why?
BTW in nand flash driver I used static struct nand_ecclayout nand_hw_eccoob_2k = { .eccbytes = 36, .eccpos = { 7, 8, 9, 10, 11, 12, 13, 14, 15, 23, 24, 25, 26, 27, 28, 29, 30, 31, 39, 40, 41, 42, 43, 44, 45, 46, 47, 55, 56, 57, 58, 59, 60, 61, 62, 63, }, .oobfree = { {2, 5}, {16, 7}, {32, 7}, {48, 7}, }, };
this->ecc.size = 512; this->ecc.bytes = 9; this->ecc.layout = &nand_hw_eccoob_2k;
When I programmed uImage and rootfs ,I reset the board uboot echos lots of BADBLOCK.
participants (1)
-
景文林