# Booting Error with Uboot

**URL:** https://forums.sifive.com/t/booting-error-with-uboot/6200
**Category:** HiFive Unmatched
**Created:** [June 15, 2023, 4:25am UTC](https://forums.sifive.com/t/booting-error-with-uboot/6200 "2023-06-15T04:25:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![eden](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@eden](https://forums.sifive.com/u/eden)
#### Post date: [June 15, 2023, 4:25am UTC](https://forums.sifive.com/t/booting-error-with-uboot/6200/1 "2023-06-15T04:25:50Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/sifive/original/2X/2/24d546d4e93a8a441b28f1db947d9a5077315e46.png)

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

---

<div class="post-metadata">

### Author: ![eden](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@eden](https://forums.sifive.com/u/eden)
#### Post date: [June 15, 2023, 6:30am UTC](https://forums.sifive.com/t/booting-error-with-uboot/6200/2 "2023-06-15T06:30:26Z")

</div>

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