Skip to contentSkip to conversation

M-Sys's driver and public driver

DISCUSSION Ruslan Satlykov 3 participants 6 messages Feb 6, 2001 – Feb 7, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

Here is my (some) trouble. Under the Linux, I have a DOC partitioned with M-Systems's doc driver to two partiotions. It's works fine after rebooting, I can read/write on it, but some days ago I have tryed 2.4 kernel, with embedded DOC driver in it. Well, I had successfully mounted the chip, but when I had rebooted I lose all my data on the flash :(... GPL's driver "says" me words like 'ECC read error' at the mount time, but I had ignored this warnings... And - unlucky final, as you see :)

For details:
DiskOnChip 2000, size - 4-8Mb, firmware version - 1.21.

And, after rebooting native M-System's driver can not 'fdisk' and mount my chip (I need to repair it with original DOC's image, getted with getmimg.bat from M-Systems floppy)

Thanks.
Ruslan.

P.S. But - thank you very much for your work!! :) And sorry for my English.

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

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

Well, I had successfully mounted the chip, but when I had rebooted I
lose all my data on the flash :(... GPL's driver "says" me words like 'ECC read error' at the mount time, but I had ignored this warnings... And - unlucky final, as you see :)

Is this a DiskOnChip 2000 or a DiskOnChip Millennium?

--
dwmw2

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

#2 lore raw
Quoted 4 lines · DW> [email protected] said:
Quoted 4 lines

Well, I had successfully mounted the chip, but when I had rebooted I
lose all my data on the flash :(... GPL's driver "says" me words like 'ECC read error' at the mount time, but I had ignored this warnings... And - unlucky final, as you see :)

DW> Is this a DiskOnChip 2000 or a DiskOnChip Millennium? DW>
DiskOnChip 2000.... And, can I ask the mailing list? I had downloaded the newest MTD distribution by the CVS, and - how I can add this set to the fresh copy of the linux kernel? Yes, I maked the patch, and what I must t do next? :))
Thank you,
Ruslan

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

#3 lore raw
Quoted 1 line · [email protected] said:

DiskOnChip 2000....

Ouch. No clue ATM what's caused that.

Quoted 4 lines

And, can I ask the mailing list? I had downloaded
the newest MTD distribution by the CVS, and - how I can add this set to the fresh copy of the linux kernel? Yes, I maked the patch, and what I must t do next? :)) Thank you, Ruslan

Drop the contents of the kernel/ directory over the top of your kernel's drivers/mtd directory. Likewise the include/linux/mtd directory.

--
dwmw2

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

#4 lore raw

DW> Ouch. No clue ATM what's caused that.
OK :)

Quoted 4 lines
Quoted 4 lines

And, can I ask the mailing list? I had downloaded
the newest MTD distribution by the CVS, and - how I can add this set to the fresh copy of the linux kernel? Yes, I maked the patch, and what I must t do next? :)) Thank you, Ruslan

DW> Drop the contents of the kernel/ directory over the top of your kernel's DW> drivers/mtd directory. Likewise the include/linux/mtd directory. David, I had copyed it to the named directories, but when a try to make a kernel (after make menuconfig), I got the messages about undefined variables DEBUG_LEVEL0, 1, etc... After editing file drivers/mtd/mtdcore.c (I had replaced DEBUG_LEVEL0 with DEBUG_LEVEL_0, etc, as declared in linux/mtd/compatmac.h, the problem has been solved...
And, at the first compilation there was error like
'linux/compatmac.h': No such file or directory. I had copyed this file from linux/mtd to linux include dir, but I'm not sure, that it was correct. Is it two different files with one name, placed in the differents include directories?

Thank you,
Ruslan

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

#5 lore raw
In reply to David Woodhouse
Quoted 2 lines · David Woodhouse

Drop the contents of the kernel/ directory over the top of your kernel's drivers/mtd directory. Likewise the include/linux/mtd directory.

...and jffs.h and cjffs.h into include/linux, although you might be able to get away with it if you're not using jffs.

cheers
john

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