use "nandwrite" instead of "cp"?
dear all,
thanks for your help,
now i try to:
1> eraseall /dev/mtd1
2> cp test.img /dev/mtdblock1
(should i use "nandwrite" instead of "cp" here?)
3> mount -t jffs2 /dev/mtdblock1 /mnt
then it still report many "magic bitmask not found"
do i missing something?
thanks in advanced!:)
best regards,
kevin
Quoted 35 lines
----following message
Quoted 33 lines
log------------------------------------------------------
jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00298014:0xa3dcin
steadjffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00298018:0xccfein
steadjffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x0029801c:0xd1b5in
steadjffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00298020:0xf8fdin
steadjffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00298024:0xb452in
stead
Further such events for this erase block will not be printednand_read_ecc: Failed ECC read, page0x00007fc0nand_read_ecc: Failed ECC read, page0x00007fc0nand_read_ecc: Failed ECC read, page0x00007fc1nand_read_ecc: Failed ECC read, page0x00007fc1nand_read_ecc: Failed ECC read, page0x00007fc2nand_read_ecc: Failed ECC read, page0x00007fc2nand_read_ecc: Failed ECC read, page0x00007fc3nand_read_ecc: Failed ECC read, page0x00007fc3jffs2_scan_empty(): Read0x1000bytes at0x00df8000returned -5
mount: wrong fs type, bad option, bad superblock on/dev/mtdblock1,
or too many mounted file systems______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
jffs2 mounting problem
dear all,
thanks for your help,
now i try to:
1> eraseall /dev/mtd1
2> cp test.img /dev/mtdblock1
test.img is created from:
mkfs.jffs2 -r rootfs_jffs2 -e 16K -l -o test.img nand device is TC58128FT (16MBytes Nand flash)
(should i use "nandwrite" instead of "cp" here?)
3> mount -t jffs2 /dev/mtdblock1 /mnt
then it still report many "magic bitmask not found"
do i missing something?
or is it caused by bad-block/ecc-error?
thanks in advanced!:)
best regards,
kevin
Quoted 21 lines
Quoted 21 lines
----following message
Quoted 20 lines
log------------------------------------------------------
jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00298014:0xa3dcin
steadjffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00298018:0xccfein
steadjffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x0029801c:0xd1b5in
steadjffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00298020:0xf8fdin
steadjffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00298024:0xb452in
stead
Further such events for this erase block will not be printednand_read_ecc: Failed ECC read, page0x00007fc0nand_read_ecc: Failed ECC read, page0x00007fc0nand_read_ecc: Failed ECC read, page0x00007fc1
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
nand_read_ecc: Failed ECC read, page0x00007fc1nand_read_ecc: Failed ECC read, page0x00007fc2nand_read_ecc: Failed ECC read, page0x00007fc2nand_read_ecc: Failed ECC read, page0x00007fc3nand_read_ecc: Failed ECC read, page0x00007fc3jffs2_scan_empty(): Read0x1000bytes at0x00df8000returned -5
mount: wrong fs type, bad option, bad superblock on/dev/mtdblock1,
or too many mounted file systems
----- following eraseall log ------------------------------- Erasing 16 Kibyte @ dc4000 -- 98 % complete.MTD_ioctl Erasing 16 Kibyte @ dc8000 -- 98 % complete.MTD_ioctl Erasing 16 Kibyte @ dcc000 -- 98 % complete.MTD_ioctl Erasing 16 Kibyte @ dd0000 -- 98 % complete.MTD_ioctl Erasing 16 Kibyte @ dd4000 -- 98 % complete.MTD_ioctl Erasing 16 Kibyte @ dd8000 -- 98 % complete.MTD_ioctl Erasing 16 Kibyte @ ddc000 -- 98 % complete.MTD_ioctl Erasing 16 Kibyte @ de0000 -- 99 % complete.MTD_ioctl Erasing 16 Kibyte @ de4000 -- 99 % complete.MTD_ioctl Erasing 16 Kibyte @ de8000 -- 99 % complete.MTD_ioctl Erasing 16 Kibyte @ dec000 -- 99 % complete.MTD_ioctl Erasing 16 Kibyte @ df0000 -- 99 % complete.MTD_ioctl Erasing 16 Kibyte @ df4000 -- 99 % complete.MTD_ioctl Erasing 16 Kibyte @ df8000 -- 99 % complete.MTD_ioctlnand_erase: attempt to erase a bad block at page 0x00007fc0
./eraseall: /dev/mtd1: MTD Erase failure: Input/output error Erasing 16 Kibyte @ dfc000 -- 99 % complete.MTD_ioctlnand_erase: attempt to erase a bad block at page 0x00007fe0
./eraseall: /dev/mtd1: MTD Erase failure: Input/output error Erased 14336 Kibyte @ 0 -- 100% complete.MTD_close
-----------------------end of log ----------------------------