Write clean marker to block at 0x00040000 failed: -22

Andrey Yurovsky andrey at cozybit.com
Tue Apr 15 23:10:40 EDT 2008


I don't think that you want to use cat to copy an image to the Flash:
http://www.linux-mtd.infradead.org/faq/nand.html#L_nand_copyimg
If it's a NAND flash, use nandwrite, for example.

2008/4/14 李海红 <lhh at nbicc.com>:
> Dear linux-mtd
>
>
>  nbicc[/]# cat /proc/mtd
>  dev:    size   erasesize  name
>  mtd0: 01000000 00020000 "EM86XX mapped flash"
>  mtd1: 00350000 00020000 "RootFS"
>  mtd2: 00080000 00020000 "User"
>  mtd3: 00010000 00020000 "BootROM1"
>  mtd4: 00020000 00020000 "BootROM2"
>
>  [lhh]# ./flash_erase /dev/mtdblock/2
>  Erase Total 1 Units
>  [lhh]# cat ./jffs2.img > /dev/mtdblock/2
>  [lhh]# mount -t jffs2 /dev/mtdblock/2 /tmp/
>  [lhh]# Write clean marker to block at 0x00040000 failed: -22
>  Write clean marker to block at 0x00020000 failed: -22
>
>  Who can tell me what does this error mean.thanks sososososo much!
>
>  Best Regards!
>
>  Li Haihong
>  Hardware Engineer
>  Ningbo CAS IC Design Center
>  Fax: 86-574-87908484
>  Tel: 86-574-87910104
>  Web: www.nbicc.com
>  E-Mail:lhh at nbicc.com
>  ______________________________________________________
>  Linux MTD discussion mailing list
>  http://lists.infradead.org/mailman/listinfo/linux-mtd/
>


More information about the linux-mtd mailing list