Hi,
We build the NOR flash image using milkv duo 256m spi nor configuration provided in duo-buildroot-sdk and copied the generated files(fip.bin, boot.spinor and rootfs.spinor) to FAT formatted microSD card and powered the device. But failed to detect NOR flash and showing JEDEC ID as FF FF FF.
U-Boot 2021.10 (Jan 24 2025 - 20:17:50 +0530) cvitek_cv181x
DRAM: 254 MiB
gd->relocaddr=0x8b0be000. offset=0xaebe000
MMC: cv-sd@4310000: 0
Loading Environment from SPIFlash...
spinor id = FF FF FF
jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff
*** Warning - spi_flash_probe_bus_cs() failed, using default environment
We found the below changes between our board and milkv board.
- The Milk V Duo 256M board using SD card pins(6 to 14) for NOR flash and accessible by SPI_0 peripheral.
- Our board using EMMC pins(20 to 25) for NOR flash and accessible by SPI NOR Flash peripheral.
In milkv duo 256m spi nor build’s dts file spi0 is used to access NOR flash, so it is failing to access flash chip on our board. How to change it to correct peripheral in dts file? And/Or any extra changes required for our board?