* What is recommended way to partition mtdram device
@ 2007-03-27 8:32 MikeW
2007-04-23 11:23 ` What is recommended way to partition mtdram device - workaround MikeW
0 siblings, 1 reply; 2+ messages in thread
From: MikeW @ 2007-03-27 8:32 UTC (permalink / raw)
To: linux-mtd
I require a partitioned mtdram device for system emulation purposes.
The documentation says that the ways to partition an MTD device are:
1) boot cmd line
2) table of data in device
3) create a map driver
If mtdram is to be loaded with modprobe (desktop Linux), that rules out 1).
So can I create partitions by dd-ing a partition table at the start of the
device ?
Can I create a map driver for the device to describe the partitions ?
Thanks,
MikeW
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What is recommended way to partition mtdram device - workaround
2007-03-27 8:32 What is recommended way to partition mtdram device MikeW
@ 2007-04-23 11:23 ` MikeW
0 siblings, 0 replies; 2+ messages in thread
From: MikeW @ 2007-04-23 11:23 UTC (permalink / raw)
To: linux-mtd
MikeW <mw_phil <at> yahoo.co.uk> writes:
>
> I require a partitioned mtdram device for system emulation purposes.
>
> The documentation says that the ways to partition an MTD device are:
> 1) boot cmd line
> 2) table of data in device
> 3) create a map driver
>
> If mtdram is to be loaded with modprobe (desktop Linux), that rules out 1).
>
> So can I create partitions by dd-ing a partition table at the start of the
> device ?
> Can I create a map driver for the device to describe the partitions ?
>
> Thanks,
> MikeW
Finally used '--bind' mount option to remount different parts
of the current filesystem ('/opt/mtdblock0...n').
Allowed initial testing of the filesystem mounting and partition
allocation.
Just a simple compile-time #define to switch between
/opt/mtdblockN -> /dev/mtdblockN
flags=MS_BIND -> 0
fstype="" -> "JFFS2"
Good luck.
MikeW
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-23 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-27 8:32 What is recommended way to partition mtdram device MikeW
2007-04-23 11:23 ` What is recommended way to partition mtdram device - workaround MikeW
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox