MX25L51245G: MX25L51245G_3V_512Mb_v1_6.pdf
W25Q512JV : W25Q512JV_SPI_RevB_06252019_KMS.pdf
离线
昨晚下单今天就收到了,速度真快。
jflashspi.exe 测试了一把, 烧了一个64M 文件, 校验 OK。
离线
离线
64MB的价格如何?
https://detail.tmall.com/item.htm?id=608913139149
23元左右, 是有点贵, 不过我们这个利润还行, 甲方要求用spi nor flash.
离线
修改 drivers/mtd/spi-nor/spi-nor.c:
{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+ { "mx25l51235f", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
启动log, 64M spi flash OK:
[ 0.935189] 6 cmdlinepart partitions found on MTD device spi32766.0
[ 0.941502] Creating 6 MTD partitions on "spi32766.0":
[ 0.946657] 0x000000000000-0x000000050000 : "uboot"
[ 0.953878] 0x000000050000-0x0000000a0000 : "logob"
[ 0.960793] 0x0000000a0000-0x0000000f0000 : "logoa"
[ 0.967459] 0x0000000f0000-0x000000100000 : "dtb"
[ 0.974305] 0x000000100000-0x000000600000 : "kernel"
[ 0.981114] 0x000000600000-0x000004000000 : "rootfs"
生成多个随机数bin文件:
cd /opt
dd if=/dev/urandom of=*.bin bs=1M count=8
# md5sum *
f7a1c8476056e68c4da1196b334e14e9 1.bin
fec2bb418ebbe9eac54e9f20d1990c5e 2.bin
58ded8e3dc0a3b6ddcfa0a09b7c9d900 3.bin
ff0080fa3cd0d1134c3e78a6b9f41bdb 4.bin
d4061aa0567478cae0b19fe2a8953f07 5.bin
多次启动后文件大小和校验和均正常.
离线