spi0有一块 128M的 GD5F1GQ5UEYIGR nand flash,能正常下载固件运行,因为空间不够用现在在 spi1处也加了块 128M GD5F1GQ5UEYIGR作为存储数据用,请问各位老师 怎么把这个识别出来
改了设备树 &spi1 {
clock-frequency = <100000000>;
pinctrl-0 = <&spi1_pins_a &spi1_pins_b>;
pinctrl-1 = <&spi1_pins_c>;
pinctrl-names = "default", "sleep";
spi_slave_mode = <0>;
spi1_cs_number = <1>;
spi1_cs_bitmap = <1>;
status = "okay";
spi-nand@0 {
compatible = "spi-nand";
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <100000000>;
reg = <0x0>;
nand-on-flash-bbt;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "spi1-data";
reg = <0x0 0x8000000>;
};
};
};
}; 还是没出来 localhost:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 26M 26M 0 100% /rom
none 55M 0 55M 0% /dev
tmpfs 55M 0 55M 0% /tmp
/dev/ubi0_7 66M 3.7M 59M 6% /overlay
overlayfs:/overlay 66M 3.7M 59M 6% /
tmpfs 11M 120K 11M 2% /run
shm 55M 0 55M 0% /dev/shm
localhost:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00040000 "boot0"
mtd1: 00300000 00040000 "uboot"
mtd2: 00100000 00040000 "secure_storage"
mtd3: 1fb00000 00040000 "sys"
localhost:~# dmesg | grep -i "spi-nand"
[ 1.086831] sunxi-spinand-phy: get spi-nand Model from fdt fail
[ 1.995607] spi-nand: probe of spi1.0 failed with error -16