Skip to contentSkip to conversation

nftl_format and 2 Mb DOC

DISCUSSION Ciro Cattuto 1 participant 2 messages Aug 25, 2000 – Aug 26, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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]
#1 lore raw
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_format happy, 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]