Skip to contentSkip to conversation

doc2000 geometry problem?

DISCUSSION dr john halewood 2 participants 3 messages Jul 5, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I've got a feeling this is going to turn out to be bad hardware but I thought it would be worth checking first.
I'm yet another person trying to embed linux using the doc2000 on a
NatSemi-based platform (Geode aka MediaGX - uck). I've got the system up and running but I've run into a problem (this is with 2.2.16+current mtd cvs). As I add the modules dmesg looks like this
M-Systems NAND Flash Translation Layer driver. (C) 1999 MVHI
$Id: nftl.c,v 1.34 2000/06/07 14:48:52 dwmw2 Exp $
M-Systems DiskOnChip driver. (C) 1999 Machine Vision Holdings, Inc. DiskOnChip 2000 found at address 0xD4000
1 flash chips found. Total DiskOnChip size: 8 Mb
Cannot calculate an NFTL geometry to match size of 0x3c0.
Using C:1024 H:0 S:1 (== 0 sects)
nftla: nftla1
It turns out that /dev/nftla1 is a FAT12 partition: the people who supplied me
with the board also helpfully put their Wince-based thin client software on the DOC. Now here's the rub: I can't reformat the doc2000. The nftldump, erase and nftl_format utils all return an error (-1, helpful that) on the ioctl(blah,MEMGETINFO,&blah) call, which makes me suspect that there's something about this chip that's not very healthy. Anyone have any clues or have I just done something really stupid?

cheers
john

To unsubscribe, send "unsubscribe mtd" to [email protected]

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

The nftldump, erase and nftl_format utils all return an error (-1,
helpful that) on the ioctl(blah,MEMGETINFO,&blah) call,

You _are_ using them on the flash device /dev/mtd0 aren't you, not on the nftl device /dev/nftla ?

You shouldn't need to do it though - can you not mount the /dev/nftla1 partition? Or reformat it to ext2 with 'mkfs.ext2 /dev/nftla1' ?

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#2 lore raw
Quoted 2 lines · David Woodhouse

You _are_ using them on the flash device /dev/mtd0 aren't you, not on the nftl device /dev/nftla ?

yup

Quoted 3 lines

You shouldn't need to do it though - can you not mount the /dev/nftla1 partition? Or reformat it to ext2 with 'mkfs.ext2 /dev/nftla1' ?

This is the funny bit: I mounted the fat partition on /dev/nftla1 happily, but couldn't see any files on it. Trying to write to it gave a "No Virtual Unit Chains available" message, and reformatting it this mkfs reported a success but left the fat partition there. Is the fact that it sees 0 sectors significant or is this normal?

john

To unsubscribe, send "unsubscribe mtd" to [email protected]