contactport.blogg.se

Das u boot set boot location
Das u boot set boot location











das u boot set boot location

I have tested it and yes that’s all that is needed. I’m not sure what the flash device is on Linux.įlip the boot DIP switches to 6 and yank the SD card out. I wrote the image to flash while running FreeBSD using “dd if=FLASH.img of=/dev/flash/spi0 bs=4096 conv=sync”. Here is the script I used to create a disk image to be written to the flash: dd if=/dev/zero of=FLASH.img bs=512 count=12288 Information on building U-boot is here: HiFive Unmatched - Das U-Boot unknown version documentation U32 boot_device = mode_select & MODE_SELECT_MASK ĭiff -git a/configs/sifive_unmatched_defconfig b/configs/sifive_unmatched_defconfig a/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsiĭiff -git a/board/sifive/unmatched/spl.c b/board/sifive/unmatched/spl.c Here are the diffs I applied to U-Boot: diff -git a/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi

#DAS U BOOT SET BOOT LOCATION DRIVERS#

It was a matter of enabling the SPI flash drivers in the SPL, and adding an SPI option to spl_boot_device(). I managed to get my Unmatched to boot from flash.













Das u boot set boot location