[E3-hacking] Understanding the E3s Partitions
Ralph Corderoy
ralph at inputplus.co.uk
Sun Apr 14 09:46:14 BST 2019
Hi Nick,
> root at amsdelta<mailto:root at 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.
More information about the e3-hacking
mailing list