Booting from Flash

Works good!

U-Boot SPL 2021.07-dirty (Aug 23 2021 - 22:10:37 -0700)
Trying to boot from SPI        <------------


U-Boot 2021.07-dirty (Aug 23 2021 - 22:10:37 -0700)

CPU:   rv64imafdc
Model: SiFive HiFive Unmatched A00
DRAM:  16 GiB

Here’s an Ubuntu kernel that has /dev/mtd0 enabled.

https://www.w6rz.net/linux-image-5.14.0-rc7_5.14.0-rc7-1_riscv64.deb
https://www.w6rz.net/linux-headers-5.14.0-rc7_5.14.0-rc7-1_riscv64.deb
https://www.w6rz.net/linux-libc-dev_5.14.0-rc7-1_riscv64.deb

And here are the u-boot 2021.07 files that boot from flash (with @skibo patches and SiFive patches).

https://www.w6rz.net/u-boot-flash-1200mhz.itb
https://www.w6rz.net/u-boot-spl-flash-1200mhz.bin

https://www.w6rz.net/u-boot-flash-1400mhz.itb
https://www.w6rz.net/u-boot-spl-flash-1400mhz.bin

https://www.w6rz.net/u-boot-flash-1500mhz.itb
https://www.w6rz.net/u-boot-spl-flash-1500mhz.bin

I used flashcp to write the flash.

sudo apt-get install mtd-utils

sudo flashcp -v flash.img /dev/mtd0

1 Like