Skip to contentSkip to conversation

Moving from 2.2.18 + M-system proprietray code to 2.4.6 => does not work

DISCUSSION VALETTE Eric 2 participants 4 messages Jul 12, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I have been using a motherboard with a DOC 2000. I can boot from the diskOnChip and see it as a disk device with a ext2 filesystem using 2.2.18 + Msystem patch + own cooked lilo patch...

Now I upgraded the system to a stock 2.4.6 kernel *with devfs enabled*

When I boot, I see the follwing message :

M-Systems DiskOnChip driver. (C) 1999 Machine Vision Holdings, Inc. DiskOnChip 2000 found at address 0xD8000
Flash chip found: Manufacturer ID: 98, Chip ID: 73 (Toshiba TH58V128DC) 2 flash chips found. Total DiskOnChip size: 32 MiB
Ignoring DiskOnChip 2000 at 0xDA000 - already configured Ignoring DiskOnChip 2000 at 0xDC000 - already configured Ignoring DiskOnChip 2000 at 0xDE000 - already configured M-Systems NAND Flash Translation Layer driver. (C) 1999 MVHI $Id: nftlcore.c,v 1.73 2001/06/09 01:09:43 dwmw2 Exp $
nftla: p1
devfs: devfs_register(disc): NULL ops, got c02d8850 from major table
devfs: devfs_register(part1): NULL ops, got c02d8850 from major tableL

In /dev/nflt/disc0 I have two devices

/dev/nftl# ls
disc0

albator:/dev/nftl# cd disc0
albator:/dev/nftl/disc0# ls -l
total 0
brw-------    1 root     root      93,   0 Jan  1  1970 disc
brw-------    1 root     root      93,   1 Jan  1  1970 part1

No other things.

NB : /dev/discs/disc1# ls -l
total 0

brw-------    1 root     root      93,   0 Jan  1  1970 disc
brw-------    1 root     root      93,   1 Jan  1  1970 part1

But I can not mount the filesystem. The filesystem is valid as it works with the 2.2.18 kernel...

Any idea?

Signature · 8 lines
   __
  /  `                          Eric Valette - Canon CRF
 /--   __  o _.                 Canon Development Europe Team Leader
(___, / (_(_(__                 Rue de la touche lambert
                                35517 Cesson-Sevigne  Cedex
                                FRANCE
Tel: +33 (0)2 99 87 68 91       Fax: +33 (0)2 99 84 11 30
E-mail: [email protected]    http://www.crf.canon.fr
#1 lore raw
Quoted 7 lines · [email protected] said:

NB : /dev/discs/disc1# ls -l
total 0

brw-------    1 root     root      93,   0 Jan  1  1970 disc
brw-------    1 root     root      93,   1 Jan  1  1970 part1

But I can not mount the filesystem. The filesystem is valid as it works with the 2.2.18 kernel...

Does it work without devfs?

--
dwmw2

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

NB : /dev/discs/disc1# ls -l
total 0

brw-------    1 root     root      93,   0 Jan  1  1970 disc
brw-------    1 root     root      93,   1 Jan  1  1970 part1
Quoted 5 lines
Quoted 3 lines

But I can not mount the filesystem. The filesystem is valid as it works with the 2.2.18 kernel...

Does it work without devfs?

I did not even tested it as I need devfs for USB devices hotplug... Besides, I had hoped to not be hurt by major/minor like I had been in the past...

What are the right major minor for DOC 2000? I found values in mtd.h and other in major.h.

Signature · 8 lines
   __
  /  `                          Eric Valette - Canon CRF
 /--   __  o _.                 Canon Development Europe Team Leader
(___, / (_(_(__                 Rue de la touche lambert
                                35517 Cesson-Sevigne  Cedex
                                FRANCE
Tel: +33 (0)2 99 87 68 91       Fax: +33 (0)2 99 84 11 30
E-mail: [email protected]    http://www.crf.canon.fr
#3 lore raw
Quoted 2 lines · [email protected] said:

What are the right major minor for DOC 2000? I found values in mtd.h
and other in major.h.

It's not defined in either of those two files. It's in <linux/mtd/nftl.h>:

	#define NFTL_MAJOR 93

--
dwmw2