需要注意的是临时变量IO_ADDR_W =(ulong)nand 的位置。我刚开始就是写到我注释的地方导致的错误。导致的错误可能是全部都是坏块: Skipping bad block at 0x00000000
Skipping bad block at 0x00020000
Skipping bad block at 0x00040000
Skipping bad block at 0x00060000
Skipping bad block at 0x00080000
Skipping bad block at 0x000a0000
Skipping bad block at 0x000c0000
Skipping bad block at 0x000e0000
Skipping bad block at 0x00100000
Skipping bad block at 0x00120000
... ...