Step 5 : Flash SD Card

  • In this program, you are going to learn

  • How to ?

  • Go to main directory

$ cd $HOME
$ wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/bcm2711-rpi-4-b.dtb
$ wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/bootcode.bin
$ wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/start4.elf
  • Create the config.txt file and copy the below lines and save the file

$ vi config.txt
  • Place the following contents in config.txt file.

kernel=u-boot.elf
arm_64bit=1
enable_uart=1
uart_2ndstage=1
  • Copy all the below files to TF card(SD card)

bcm2711-rpi-4-b.dtb
bootcode.bin
start4.elf
config.txt
freertos.elf
  • Copy using cp command,

$ cp /home/test/bcm2711-rpi-4-b.dtb /mnt/boot/
$ cp /home/test/bootcode.bin /mnt/boot/
$ cp /home/test/start4.elf /mnt/boot/
$ cp /home/test/config.txt /mnt/boot/
$ cp /home/test/freertos.elf /mnt/boot/
  • Check the contents of /mnt/boot

$ ls -l /mnt/boot/