This Repository provides a U-Boot Image for DE10-Nano.
- U-Boot v2017.11 (customized)
- Build for DE10-Nano
- Customized boot by uEnv.txt
- Customized boot by boot.scr
- Enable bootmenu
https://github.com/ikwzm/FPGA-SoC-Linux/blob/master/doc/install/format-disk-de0-nano-soc.md
Write u-boot-spl.sfp and u-boot.img to the partition of the youngest sector number of SD-Card.
For example, when formatting SD-Card as shown in the previous section, U-Boot writes to partition-3 of SD-Card as follows.
shell$ dd if=u-boot-spl.sfp of=/dev/sdc3 bs=64k seek=0
shell$ dd if=u-boot.img of=/dev/sdc3 bs=64k seek=4
There are two ways
- run scripts/build-u-boot-2017.11-de10-nano.sh (easy)
- run this chapter step-by-step (annoying)
shell$ git clone git://git.denx.de/u-boot.git u-boot-2017.11-de10-nano
shell$ cd u-boot-2017.11-de10-nano
shell$ git checkout -b u-boot-2017.11-de10-nano refs/tags/v2017.11
shell$ patch -p0 < ../files/u-boot-2017.11-de10-nano.diff
shell$ git add --update
shell$ git commit -m "patch for de10-nano"
shell$ git tag -a v2017.11-1-de10-nano -m "Release v2017.11-1 for de10-nano"
shell$ cd u-boot-2017.11-de10-nano
shell$ export ARCH=arm
shell$ export CROSS_COMPILE=arm-linux-gnueabihf-
shell$ make socfpga_de10_nano_defconfig
shell$ make
shell$ cp spl/u-boot-spl.sfp ../u-boot-spl.sfp
shell$ cp u-boot.img ../u-boot.img