Mount MTD device on host PC
jwboyer at gmail.com
Thu Dec 27 00:07:42 EST 2007
On Wed, 26 Dec 2007 20:09:40 -0800 (PST)
Naveen Sattigeri <naveen_j_s at yahoo.com> wrote:
> 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:
> . Host PC with RedHat 9.0 and MontaVista 4.0.
> . Target Compact Flash is Pretec make (128MB).
> What I want to achieve:
> . 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:
> . I have built/compiled a customised kernel in the
> Host PC.
> . MTD support has been enabled in the Host PC
> (using command menuconfig).
> My observations so far:
> . 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.
> My Query:
> . 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.
More information about the linux-mtd