Skip to contentSkip to conversation

Mount MTD device on host PC

DISCUSSION Naveen Sattigeri 2 participants 2 messages Dec 27, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Sir/Madam,

I'm facing some problem while trying to mount a compact flash as a MTD device on my host/development PC. I would be glad if anyone could help.

The setup which I'm using in the lab is as follows:
[1]. Host PC with RedHat 9.0 and MontaVista 4.0. [2]. Target Compact Flash is Pretec make (128MB).

What I want to achieve:
[1]. When I connect the target flash to the host PC (to the IDE Slot), I want the target flash to be detected by the host PC as a MTD device, so that I can mount a JFFS2/EXT3 filesystem in it.

What I have done so far to achieve this:
[1]. I have built/compiled a customised kernel in the Host PC.
[2]. MTD support has been enabled in the Host PC (using command menuconfig).

My observations so far:
[1]. When the target flash is connected to the Host PC, the Host PC detects it as a "hdd" device and not a "mtd" device.

My Query:
[1]. What steps do I need to perform to ensure that the Host PC detects the target flash as a MTD device, when connected to it over IDE Slot (using FRC cable).

Regards,

Naveen Sattigeri.
Design Engineer,
Automation Campus,
Larsen & Toubro Ltd,
Mahape,
Navi Mumbai - 400710.
Ph: 022-67226479

      ____________________________________________________________________________________

Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping

#1 lore raw
Quoted 22 lines · On Wed, 26 Dec 2007 20:09:40 -0800 (PST) Naveen Sattigeri…

Sir/Madam,

I'm facing some problem while trying to mount a compact flash as a MTD device on my host/development PC. I would be glad if anyone could help.

The setup which I'm using in the lab is as follows:
[1]. Host PC with RedHat 9.0 and MontaVista 4.0. [2]. Target Compact Flash is Pretec make (128MB).

What I want to achieve:
[1]. When I connect the target flash to the host PC (to the IDE Slot), I want the target flash to be detected by the host PC as a MTD device, so that I can mount a JFFS2/EXT3 filesystem in it.

What I have done so far to achieve this:
[1]. I have built/compiled a customised kernel in the Host PC.
[2]. MTD support has been enabled in the Host PC (using command menuconfig).

Quoted 4 lines

My observations so far:
[1]. When the target flash is connected to the Host PC, the Host PC detects it as a "hdd" device and not a "mtd" device.

That's because Compact flash doesn't export the raw flash chips.

Quoted 5 lines

My Query:
[1]. What steps do I need to perform to ensure that the Host PC detects the target flash as a MTD device, when connected to it over IDE Slot (using FRC cable).

You can't. Buy a different type of flash if you want to use MTD. Otherwise, you have to use block2mtd or some other abstraction layer to make the IDE device presented by CF appear as an MTD.

josh