* nftl_format and 2 Mb DOC
@ 2000-08-25 17:42 Ciro Cattuto
2000-08-26 7:15 ` Ciro Cattuto
0 siblings, 1 reply; 2+ messages in thread
From: Ciro Cattuto @ 2000-08-25 17:42 UTC (permalink / raw)
To: mtd
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
--
Ciro Cattuto, Open Source Developer, Linuxcare Italia SpA
Tel. +39.338.3002140 Fax +39.049.8036484
ciro@linuxcare.com http://www.linuxcare.com/
ciro@prosa.it http://www.prosa.it/
Linuxcare. Support for the revolution.
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: nftl_format and 2 Mb DOC
2000-08-25 17:42 nftl_format and 2 Mb DOC Ciro Cattuto
@ 2000-08-26 7:15 ` Ciro Cattuto
0 siblings, 0 replies; 2+ messages in thread
From: Ciro Cattuto @ 2000-08-26 7:15 UTC (permalink / raw)
To: mtd
On Fri, Aug 25, 2000 at 07:42:11PM +0200, Ciro Cattuto wrote:
> ...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
--
Ciro Cattuto, Open Source Developer, Linuxcare Italia SpA
Tel. +39.338.3002140 Fax +39.049.8036484
ciro@linuxcare.com http://www.linuxcare.com/
ciro@prosa.it http://www.prosa.it/
Linuxcare. Support for the revolution.
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-08-26 13:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-25 17:42 nftl_format and 2 Mb DOC Ciro Cattuto
2000-08-26 7:15 ` Ciro Cattuto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox