Step 3 : u-boot compilation

  • In this program, you are going to learn

  • How to ?

  • Make sure current dir is $HOME

$ cd $HOME
  • Use below command to doenload the source code.

$ git clone https://github.com/u-boot/u-boot
  • Compilation

$ cd u-boot
$ export CROSS_COMPILE=aarch64-none-elf-
$ echo 'CONFIG_CMD_CACHE=y' >> ./configs/rpi_4_defconfig
$ make rpi_4_defconfig
$ make -j4 (if your PC has 4 processor cores)
$ sudo cp ./u-boot.bin /mnt/boot/u-boot.bin

What is ?