I have a device(MT7621) and it works well on SPI flash. Now want to change to NAND, but I have no flasher of NAND. So I want to boot from SPI as before then write/flash NAND under Openwrt.
Now the issue is after I enable NAND driver in openwrt and burn it SPI flash, openwrt can boot and load kernel, but then it will try to load rootfs from NAND. Since NAND is empty, boot process will stop.
Is there a way to boot from SPI flash always?
I have tried to mark NAND driver as "Module" but built failed.