Skip to contentSkip to conversation

DOC2000 erase size of 16k?

DISCUSSION pla 3 participants 3 messages Aug 12, 2001 – Aug 13, 2001 Memory technology devices (MTD)

lore
Share & tools
lore

pla

author
#0 lore raw

I have a problem with a DOC2000. I use the 2.4.5 kernel, and the 20010807 MTD snapshot for the utils.

Everything goes just fine at boot. The NFTL driver reports "Could not find valid boot record."
"Could not mount NFTL device."
Okay, I think, not a problem, the MTD-JFFS HowTo specifically says to run nftl_format for that problem.

Now for the problem... nftl_format reports "Erase size not 8Kb - I'm confused". I do a "cat /proc/mtd", and it shows me "mtd0: 02000000 "DiskOnChip 2000". Note the lack of an erase size in there (someone posted about a similar problem about two months ago, with no replies, but he also reported an odd boot message from the MTD driver).

So, I quickly hacked nftl_format.c to show me what *it* sees as the erase size, and it tells me 16K.

Anyone have any ideas? In case it matters, I use devfs, but had no problems with it recognizing the DiskOnChip or any "normal" devices.

Thank you.

- Ben

#1 lore raw
Quoted 2 lines · [email protected] said:

I have a problem with a DOC2000. I use the 2.4.5 kernel, and the 20010807 MTD snapshot for the utils.

Use the latest code. It may fix it.

Quoted 2 lines · [email protected] said:

Okay, I think, not a problem, the MTD-JFFS HowTo specifically says to run nftl_format for that problem.

It shouldn't. Never run nftl_format unless you really have to.

--
dwmw2

#2 lore raw
Quoted 5 lines · David Woodhouse
Quoted 2 lines · [email protected] said:

Okay, I think, not a problem, the MTD-JFFS HowTo specifically says to run nftl_format for that problem.

It shouldn't. Never run nftl_format unless you really have to.

I've seen a couple of other folks being confused by this issue- and I guess that I'm to blame (as I put it there).
Since it's been a LONG time since I last played with DOC, I don't remember anything re. using them anymore :)

Could you please correct the HOWTO with what to do instead (if the DOC format is screwed up etc.)?

Thanks

Vipin