81e238bd9e
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.
9 lines
175 B
Batchfile
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
|