nftl_format and 2 Mb DOC
Hi,
in the nftl_format sources I read the following:
---------------------------------------------------
if (meminfo.erasesize != 0x2000) {
printf("Erase size not 8Kb - I'm confused\n");
close(fd);
return 1;
}---------------------------------------------------
...now, 2 Mb DOC have 4k erase size, and I'd like to add support for this. Is there something I should be aware of before I start hacking to make nftl_format happy, instead than confused? ;)
Ciro
Signature · 10 lines
Ciro Cattuto, Open Source Developer, Linuxcare Italia SpA Tel. +39.338.3002140 Fax +39.049.8036484 [email protected] http://www.linuxcare.com/ [email protected] http://www.prosa.it/ Linuxcare. Support for the revolution. To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 3 lines · Ciro Cattuto
...now, 2 Mb DOC have 4k erase size, and I'd like to add support for this. Is there something I should be aware of before I start hacking to make
nftl_formathappy, instead than confused? ;)
The code in nftl_format looks pretty independent of the erase zone size, so I simply removed the check against 0x2000. It seems to work fine, except for an error while writing OOB data, which I'm not sure is related to nftl_format itself.
Ciro
Signature · 10 lines
Ciro Cattuto, Open Source Developer, Linuxcare Italia SpA Tel. +39.338.3002140 Fax +39.049.8036484 [email protected] http://www.linuxcare.com/ [email protected] http://www.prosa.it/ Linuxcare. Support for the revolution. To unsubscribe, send "unsubscribe mtd" to [email protected]