Step 4 : Compile Free-RTOS

  • In this program, you are going to learn

  • How to ?

Topics in this section,

  • Make sure current dir is $HOME

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

$ git clone https://github.com/TImada/raspi4_freertos.git
  • Change the current directory to CORTEX_A72_64-bit_Raspberrypi4 as mentioned below.

$ cd raspi4_freertos/FreeRTOS/Demo/CORTEX_A72_64-bit_Raspberrypi4
  • Download the following patch and place it in CORTEX_A72_64-bit_Raspberrypi4 directory:

  • Apply the changes using the above patch to the uart directory using below command:

CORTEX_A72_64-bit_Raspberrypi4$ patch --directory=uart/ --strip=1 < add_patch_to_uart.patch
  • Go to uart directory and build the FreeRTOS UART using below command

$ cd uart
$ make CROSS=aarch64-none-elf-
  • Copy the uart.elf file to the SD card.

$ sudo cp ./uart.elf /mnt/boot/freertos.elf

What is /.bashrc file?