MTD partitioning code broken?
vipin at embeddedlinuxworks.com
Sat Aug 3 08:09:34 EDT 2002
I'm just getting back into playing with this again after successfully
setting up partitioning up last year..
Is there something broken with the mtd partitioning code?
I defined 3 mtd partitions on one 8MB flash in my map file (based off the
maps/netsc520.c). The partitions look fine on the printk debug log and a
"cat /proc/mtd" shows three devices with the proper sizes and names as
defined in my "mtd_partition" map structure in my map file.
However, it seems that 6 mtd partitions have been added (even though just 3
show up in /proc/mtd)!
All 6 mtd devices from /dev/mtd0...5 allow a "less -f on them".
Each of mtd[0,1], mtd[2,3] and mtd[4,5] pairs point to partitions 1,2&3
respectively. Each of the *pairs* above point to the same partitions (have
the same stuff in them, pair 1 points to partition 1 etc.).
However mtdblock0,1,2 each points to the correct partition! In fact I'm
booting root fs from /dev/mtdblock1 which does contain the correct
compressed root fs.
And I've checked that my /dev/mtd0,1,2,3,4,5 devices are pointing to char
P.S. This is a resend of my mail yesterday from my work address that
apparently did not make it even though the MX-verify script did not have a
problem with my work address(?). In case that one shows up too- apologies!
More information about the linux-mtd