spi flash启动,按照分区依次烧写BOOT.mcs,uImage,devicetree.dtb,uramdisk.image.gz
然后按照分区修改了uboot的环境变量:setenv qspiboot 'echo Copying Linux from QSPI flash to RAM... && sf probe 0 0 0 && sf read ${kernel_load_address} 0xd00000 ${kernel_size} && sf read ${devicetree_load_address} 0x1200000 ${devicetree_size} && echo Copying ramdisk... && sf read ${ramdisk_load_address} 0x1220000 ${ramdisk_size} && bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}\0'
另外,devicestree.dtb里分区也做了相应修改。
之后上电启动报错:
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
请教各位大大,这是哪里出了问题,怎么解决呢?
非常感谢!