Booting Error with Uboot

After building the uboot source code,flash the uboot image to SPI,the following error has occurred。and cannot entry OS

flash image step:
①modprobe mtdblock
②sgdisk -g --clear -a 1 --new=1:40:2087 --change-name=1:spl --typecode=1:5B193300-FC78-40CD-8002-E86C45580B47 --new=2:2088:10279 --change-name=2:uboot --typecode=2:2E54B353-1271-4842-806F-E436D6AF6985 --new=3:10280:10535 --change-name=3:env --typecode=3:0FC63DAF-8483-4772-8E79-3D69D8477DE4 /dev/mtdblock0
③partprobe
④dd if=u-boot-spl.bin of=/dev/mtdblock0 bs=4096 seek=5 conv=sync
⑤dd if=u-boot.itb of=/dev/mtdblock0 bs=4096 seek=261 conv=sync

e…I have solved it !this riscv-gnu-chain cross compile tool chain version is wrong

1 Like