Hi,Everybody! I need add a new OEM spi nand flash for R3, and I have imitated the driver new files that already exist in the project, and made sure that the compilation is normal and compiled, but spi nand flash don’t work from boot, help pls.
- NG not startup log:
2.Flash JPG:
[图片]-
BOOT mode: SW1 set 4bit: 1’b 0’b 1’b '1b(SPI NAND)
-
Complie PC use Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-57-generic x86_64);
-
Project use “origin git.openwrt.org Git - openwrt/openwrt.git/summary (fetch) ”;
-
SPI NAND Flash programer use DediProg StarProg-F;
-
SPI NAND Flash use file"openwrt-mediatek-filogic-bananapi_bpi-r3-snand-preloader.bin" burning is OK;
8.Add Files from prject: /home/verbena/elijah/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-5.15.79/drivers/mtd/nand/spi/xtxtech.c add /home/verbena/elijah/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-5.15.79/drivers/mtd/nand/spi/Makefile modify /home/verbena/elijah/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-5.15.79/drivers/mtd/nand/spi/core.c modify /home/verbena/elijah/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-5.15.79/include/linux/mtd/spinand.h modify
/home/verbena/elijah/openwrt/build_dir/target-aarch64_cortex-a53_musl/u-boot-mt7986_bananapi_bpi-r3-snand/u-boot-2022.10/drivers/mtd/nand/spi/xtxtech.c add /home/verbena/elijah/openwrt/build_dir/target-aarch64_cortex-a53_musl/u-boot-mt7986_bananapi_bpi-r3-snand/u-boot-2022.10/drivers/mtd/nand/spi/Makefile modify /home/verbena/elijah/openwrt/build_dir/target-aarch64_cortex-a53_musl/u-boot-mt7986_bananapi_bpi-r3-snand/u-boot-2022.10/drivers/mtd/nand/spi/core.c modify /home/verbena/elijah/openwrt/build_dir/target-aarch64_cortex-a53_musl/u-boot-mt7986_bananapi_bpi-r3-snand/u-boot-2022.10/include/linux/mtd/spinand.h modify