Physmap, exposing a master partition/device.
Tom Rathbone
tom.rathbone at gmail.com
Wed Dec 20 10:37:24 EST 2006
Hi All,
Using physmap partitions I'd like to be able to write to my flash
device as a whole and also access it as partitions. This way under
usual operation I can use the partitions and when doing a full
re-flash I can write the whole device including the partition table
and can also write across partition boundaries.
In comments in mtdpart.c I have seen this:
--
/*
* This function, given a master MTD object and a partition table, creates
* and registers slave MTD objects which are bound to the master according to
* the partition definitions.
* (Q: should we register the master MTD object as well?)
*/
int add_mtd_partitions(struct mtd_info *master,
--
What changes would be required to include a master partition? Can I do
this separately using add_mtd_device? Alternatively is there a way to
unpartition the flash from userspace?
Thanks,
Tom.
More information about the linux-mtd
mailing list