NOR flash partitions gone
I did a git pull of Josh's for-2.6.25 tree. Now the NOR partitions are no longer setup.
nor_flash@0,0 {
compatible = "amd,s29gl032a", "cfi-flash";
bank-width = <2>;
reg = <0 0 400000>;
#address-cells = <1>;
#size-cells = <1>;
partition@300000 {
label = "fpga";
reg = <300000 40000>;
};
partition@340000 {
label = "env";
reg = <340000 40000>;
};
partition@380000 {
label = "u-boot";
reg = <380000 80000>;
};
};It still detects the chip, it just doesn't configure the partitions. Any ideas?
Cheers,
Sean
Quoted 24 lines · Sean MacLennan
I did a git pull of Josh's for-2.6.25 tree. Now the NOR partitions are no longer setup.
nor_flash@0,0 { compatible = "amd,s29gl032a", "cfi-flash"; bank-width = <2>; reg = <0 0 400000>; #address-cells = <1>; #size-cells = <1>; partition@300000 { label = "fpga"; reg = <300000 40000>; }; partition@340000 { label = "env"; reg = <340000 40000>; }; partition@380000 { label = "u-boot"; reg = <380000 80000>; }; };
Quoted 1 line
It still detects the chip, it just doesn't configure the partitions. Any ideas?
Try turning off command line partition support -- there's a bug in it that was exposed by changes to the OF physmap code (in particular, it returns -EINVAL rather than zero when no command line partitions are present).
-Scott
Quoted 25 lines · Sean MacLennan
I did a git pull of Josh's for-2.6.25 tree. Now the NOR partitions are no longer setup.
nor_flash@0,0 { compatible = "amd,s29gl032a", "cfi-flash"; bank-width = <2>; reg = <0 0 400000>; #address-cells = <1>; #size-cells = <1>; partition@300000 { label = "fpga"; reg = <300000 40000>; }; partition@340000 { label = "env"; reg = <340000 40000>; }; partition@380000 { label = "u-boot"; reg = <380000 80000>; }; };
Quoted 2 lines
It still detects the chip, it just doesn't configure the partitions. Any ideas?
Probably CONFIG_MTD_OF_PARTS is not set?
Good luck,
Signature · 4 lines
Anton Vorontsov email: [email protected] backup email: [email protected] irc://irc.freenode.net/bd2
Quoted 4 lines · Anton Vorontsov
Probably
CONFIG_MTD_OF_PARTSis not set?Good luck,
That was it! Thanks!
Cheers,
Sean