freebsd-ports/sysutils/u-boot-sopine-spi/files/boot.cmd
Emmanuel Vadot 81e238bd9e u-boot-sopine-spi: Add new port
While the u-boot-sopine port can boot from SPI on the Pine64-LTS and Sopine
module the env is saved and read from the eMMC.
This is a modified sopine u-boot that only read and store the env in the spi
flash available on thoses boards.
Additionally there is also a sopine-spi-flasher.img that can be burnt on a sdcard
and when booted it will program the spi flash.
2020-11-13 17:13:13 +00:00

9 lines
175 B
Batchfile

sf probe
sf erase 0 0x100000
fatload mmc 0 ${kernel_addr_r} u-boot-sunxi-with-spl.bin
sf write ${kernel_addr_r} 0 0x100000
echo "Flash programmed"
while true; do
sleep 1
done