flash partitioning

liran raz liranrazlinux at gmail.com
Sat Aug 16 00:23:29 EST 2008


hi,
Using the following configuration in the
dts file (mpc8272ads.dts):

 localbus at f0010100 {
  compatible = "fsl,mpc8272-localbus",
               "fsl,pq2-localbus";
  #address-cells = <2>;
  #size-cells = <1>;
  reg = <f0010100 40>;

  ranges = <0 0 fc000000 04000000>;
        };

flash at fc000000 {
                device_type = "rom";
                compatible = "direct-mapped";
                probe-type = "CFI";
  reg = <fc000000 04000000>;
  bank-width = <4>;
  device-width = <2>;
  #address-cells = <1>;
  #size-cells = <1>;
                partitions = <0 200000
                              2000000 a00000
                              c000000 a00000
                              16000000 600000
                              1c000000 e00000
                              2a000000 600000
                              30000000 e00000
                              3e000000 100000
                              3f000000 80000
                              3f800000 40000
                              3fc00000 40000>;
                partition-names =
"part01","part02","part03","part04","part05","part06","part07","part08","part09","part10","part11";
 };

I can't see the different partitions linked to the /dev/mtd<x>
devices in the startup messages. When testing the devices
I see that only /dev/mtd0 is actually linked to the beginning
of the flash. (other /dev/mtd1 etc.. can't be opened).
I included below also the relevant startup messages.
Does anyone have any idea what is wrong with my flash
configuration format?
Thanks, Liran.

Linux version: 2.6.24
Processor: mpc8272
Startup messages:
physmap platform flash device: 04000000 at fc000000
physmap-flash.0: Found 2 x16 devices at 0x0 in 32-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20080815/f046236c/attachment.htm>


More information about the Linuxppc-embedded mailing list