[PATCH 4/7] mtd: spi-nor: macronix: Handle ID collision b/w MX25L12805D and MX25L12835F

Heiko Thiery heiko.thiery at gmail.com
Mon Jul 5 04:12:17 PDT 2021


Hi Michael,

Am Mo., 5. Juli 2021 um 12:59 Uhr schrieb Michael Walle <michael at walle.cc>:
>
> Hi,
>
> Am 2021-07-05 12:45, schrieb Heiko Thiery:
> > # cat
> > /sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0
> > .0/spi-nor/sfdp | xxd -p
> > 53464450000101ff00000109300000ffc2000104600000ffffffffffffff
> > ffffffffffffffffffffffffffffffffffffe520f1ffffffff0744eb086b
> > 083b04bbfeffffffffff00ffffff44eb0c200f5210d800ffffffffffffff
> > ffffffffffff003600279df9c06485cbffffffffffff
>
> Ok, I like this output esp, because you can reverse it with
> "xxd -r -p". Maybe we should also request an md5sum just to
> be sure we have the same binary.
>
> so the requested commands would be something like:
>
> # xxd -p /path/to/sfdp
> # md5sum /path/to/sfdp
> # cat /path/to/jedec_id
> # cat /path/to/partname
> # cat /path/to/manufacturer

this will be the output for your suggestion:

# P=/sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0.0/spi-nor
&&  xxd -p $P/sfdp && md5sum $P/sfdp && cat $P/jedec_id && cat
$P/partname && cat $P/manufacturer
53464450000101ff00000109300000ffc2000104600000ffffffffffffff
ffffffffffffffffffffffffffffffffffffe520f1ffffffff0744eb086b
083b04bbfeffffffffff00ffffff44eb0c200f5210d800ffffffffffffff
ffffffffffff003600279df9c06485cbffffffffffff
f7a09ec0b60c9a0acd01bf2759f0d1f4
/sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0.0/spi-nor/sfdp
c22018
mx25l12805d
macronix

-- 
Heiko



More information about the linux-mtd mailing list