I do all this using the serial console.
cd u-boot export CROSS_COMPILE=arm-linux-gnu- make distclean make orangepi_pc_plus_defconfig make allThis runs quickly, giving me the necessary binary file.
dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk1 bs=1024 seek=8 447+1 records in 447+1 records out 458738 bytes (459 kB) copied, 0.0609168 s, 7.5 MB/sAfter this, shutdown Armbian, remove the SD card and reapply power.
=> version U-Boot 2016.11-g29e0cfb-dirty (Jan 09 2017 - 11:19:55 -0700) Allwinner Technology arm-linux-gnu-gcc (GCC) 6.1.1 20160621 (Red Hat Cross 6.1.1-2) GNU ld version 2.27-3.fc24Then issue the following commands (you may as well cut and paste them from here):
setenv bootaddr 0x42000000 setenv boot_kyu echo Booting Kyu via dhcp/tftp\; dhcp\; go \${bootaddr} setenv bootcmd run boot_kyu saveenvBefore you hit reset, use the following command to get the MAC address.
=> env print ethaddr ethaddr=02:20:7f:9b:xx:yy
host orangepiplus2 { hardware ethernet 02:20:7f:9b:xx:yy; fixed-address 192.168.0.61; option host-name "orangepiplus2"; server-name "trona"; filename "orange.bin"; }Then I do this:
systemctl restart dhcpd.serviceAfter this type "boot" to the U-boot prompt (or else hit reset or power cycle). It will boot the file "orange.bin" from your tftp directory (in my case /var/lib/tftpboot).
Works great. Being able to save the U-boot environment on MMC is fantastic!
Tom's electronics pages / [email protected]