drmpeg
(Ron Economos)
February 2, 2024, 3:25am
15
No, that’s about creating your own rootfs. If you want to get rid of the SD card, you have to burn u-boot into the the SPI flash. The instructions are here:
I think it can be done, at least with Ubuntu 22.04. First, download the latest u-boot .deb file.
http://launchpadlibrarian.net/593560393/u-boot-sifive_2022.01+dfsg-2ubuntu2_riscv64.deb
Then extract the .deb with dpkg-deb.
dpkg-deb -x u-boot-sifive_2022.01+dfsg-2ubuntu2_riscv64.deb /tmp
The files will be in /tmp/usr/lib/u-boot/sifive_unmatched/
Load the MTD block driver.
sudo modprobe mtdblock
And then write the flash.
sudo sgdisk -g --clear -a 1 \
--new=1:40:2087 --change-name=…