SFI NOR sizes totally off ?!?

Holger Schurig holgerschurig at gmail.com
Mon Jun 23 02:28:09 PDT 2014


Seems like "ls -l" is right, but "devinfo" is wrong:

barebox:/ ls -l /dev/m25p0
crw-------   67108864 /dev/m25p0
barebox:/ devinfo m25p0
Parameters:
  size: 5468012149590870304
  erasesize: 4096
  writesize: 1
  oobsize: 0
barebox:/ of_dump /soc/aips-bus at 02000000/spba-bus at 02000000/ecspi at 02010000
ecspi at 02010000 {
        #address-cells = <0x1>;
        #size-cells = <0x0>;
        compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
        reg = <0x2010000 0x4000>;
        interrupts = <0x0 0x21 0x4>;
        clocks = <0x2 0x72 0x2 0x72>;
        clock-names = "ipg", "per";
        dmas = <0x4 0x7 0x7 0x1 0x4 0x8 0x7 0x2>;
        dma-names = "rx", "tx";
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <0x5>;
        fsl,spi-num-chipselects = <0x3>;
        cs-gpios = <0x6 0x18 0x0 0x6 0x19 0x0 0x6 0x1a 0x0>;
        spiflash at 0 {
                #address-cells = <0x1>;
                #size-cells = <0x1>;
                compatible = "n25q512ax3", "m25p80";
                spi-max-frequency = <0x989680>;
                reg = <0x0>;
        };
};



More information about the barebox mailing list