6.1 Building and Flashing the Demo Application Image

To build the demo application image, the steps are similar to the build steps outlined in Building and Flashing the Linux System Image for SAMA5D27-SOM1-EK1, except the source of the buildroot-external files.

The following are the detailed steps to build the demo application image:

  1. Clone the buildroot from linux4sam GitHub using the following command:
    git clone https://github.com/linux4microchip/buildroot-mchp.git
    Note: The buildroot is cloned to the directory \buildroot-at91.
  2. Go to the buildroot directory and switch the branch of the buildroot repositories using the following commands:
    $ cd buildroot-mchp/
    $ git checkout linux4microchip-2024.10 -b linux4microchip-2024.10 
  3. Clone the buildroot-external repository from the MicrochipTech GitHub using the following command:
    git clone https://github.com/MicrochipTech/wilcs02-buildroot-external-microchip.git
    Note: The buildroot-external repository is cloned to the directory \wilcs02-buildroot-external-microchip.
  4. Go to the buildroot-external directory and switch the branch of the buildroot external repositories using the following commands for the demo application:
    $ cd wilcs02-buildroot-external-microchip/
    $ git checkout wilcs02-demo-v3.0-2024.10
  5. To build the root file system with the Linux kernel, browse to the directory buildroot-at and create the .config file using the following commands:
    $ cd buildroot-at/
    $ BR2_EXTERNAL=../wilcs02-buildroot-external-microchip / make sama5d27_som1_ek_headless_wilcs02_defconfig
  6. Start the build operation using $ make command from the buildroot-at91 directory.
  7. After the completion of the build operation, the user can find the generated files in the buildroot-at91/output/images directory.
    Figure 6-1. List of Generated Files