This Repository provides a U-Boot Image for DE0-Nano-SoC.
- U-Boot v2017.11 (customized)
- Build for DE0-Nano-SoC
- 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-de0-nano-soc.sh (easy)
- run this chapter step-by-step (annoying)
shell$ git clone git://git.denx.de/u-boot.git u-boot-2017.11-de0-nano-soc
shell$ cd u-boot-2017.11-de0-nano-soc
shell$ git checkout -b u-boot-2017.11-de0-nano-soc refs/tags/v2017.11
shell$ patch -p0 < ../files/u-boot-2017.11-de0-nano-soc.diff
shell$ git add --update
shell$ git commit -m "patch for de0-nano-soc"
shell$ git tag -a 2017.11-de0-nano-soc -m "Release 2017.11 for de0-nano-soc"
shell$ cd u-boot-2017.11-de0-nano-soc
shell$ export ARCH=arm
shell$ export CROSS_COMPILE=arm-linux-gnueabihf-
shell$ make socfpga_de0_nano_soc_defconfig
shell$ make
shell$ cp spl/u-boot-spl.sfp ../u-boot-spl.sfp
shell$ cp u-boot.img ../u-boot.img