Now i am using DM365 in ramdisk.
Refer to http://wiki.davincidsp.com/index.php/LSP210DeviceDrivers
I can re-compile those flash nand related functions successfully.
Now i wanna do is just flash my filesystem in nand.
# cat /proc/mtd
dev: size erasesize name
mtd0: 003c0000 00004000 "bootloader"
mtd1: 00040000 00004000 "params"
mtd2: 00400000 00004000 "kernel"
mtd3: 03800000 00004000 "filesystem1"
mtd4: 00000000 00004000 "filesystem2"
mtd5: 00002000 00000010 "spi_eeprom"
But in executing ,
# flash_eraseall /dev/mtd3
Erasing 16 Kibyte @ 410000 -- 7 % complete.
Skipping bad block at 0x00414000
Erasing 16 Kibyte @ 17ec000 -- 42 % complete.
Skipping bad block at 0x017f0000
Skipping bad block at 0x017f4000
Skipping bad block at 0x017f8000
Skipping bad block at 0x017fc000
Erasing 16 Kibyte @ 2410000 -- 64 % complete.
Skipping bad block at 0x02414000
Erasing 16 Kibyte @ 37ec000 -- 99 % complete.
Skipping bad block at 0x037f0000
Skipping bad block at 0x037f4000
Skipping bad block at 0x037f8000
Skipping bad block at 0x037fc000
It flash whole of nand... ( uboot ,kernal ,and filesystem are flashed! I don't wanna this! )
Could someone have the same problem? Please give me a hand...
Thank you very much.