Hi Nick,

> root@amsdelta<mailto:root@amsdelta>:~# cat /proc/mtd
> dev:  size     erasesize  name
> mtd0: 00380000 00004000 "Kernel"
> mtd1: 00040000 00004000 "u-boot"
> mtd2: 00040000 00004000 "u-boot params"
> mtd3: 00040000 00004000 "Amstrad LDR"
> mtd4: 01b00000 00004000 "File system"
> mtd5: 000c0000 00004000 "PBL reserved"
> Just realised there are all the same Block size, look at the erasesize.

Yes, all 16 KiB.

> “flash_erase /dev/mtd0 0 16” whats the 16 for at the end of the line,
> is it what block size to  erase, ( can’t work out what number to put
> there)could I just erase the whole partition(mtd0) with “flash_erase
> /dev/mtd0 0 0”..? I don’t want to made a mistake..??

See https://github.com/vamanea/mtd-utils/blob/master/flash_erase.c#L60

-- 
Cheers, Ralph.

_______________________________________________
e3-hacking mailing list
e3-hacking@earth.li
https://www.earth.li/mailman/listinfo/e3-hacking

Reply via email to