2.1 Cloning a Kernel Source and Root File System

The demo uses buildroot and buildroot-external to get the suitable toolchain, root file system and Linux kernel.

To get the source code and build, clone the buildroot-at91 and buildroot-external-microchip repositories under the same parent directory.

The buildroot is cloned from linux4sam github at the following address:
$ git clone https://github.com/linux4sam/buildroot-at91.git
The buildroot is cloned at the following path in the current directory:
\buildroot-at91
The buildroot-external is cloned from linux4microchip github at the following address:
$ git clone https://github.com/linux4microchip/buildroot-external-microchip.git
The buildroot-external is cloned at the following path in the current directory:
\buildroot-external-microchip

It is recommended that the same linux4microchip tags be used to ensure that there is no mismatch between the versions of these two repositories, for example, the tag linux4microchip-2023.04 used to switch to the WILC Linux 16.1 release source.

The user can list them and use one of them by doing this:

$ cd buildroot-external-microchip 
$ git tag | grep linux4microchip
linux4microchip-2023.04
linux4microchip-2022.10
...
$ git checkout linux4microchip-2023.04 -b buildroot-external-microchip-linux4microchip-2023.04
Switched to a new branch 'buildroot-external-microchip-linux4microchip-2023.04'

$ cd ../buildroot-at91/
$ git tag | grep linux4microchip
linux4microchip-2023.04
linux4microchip-2022.10
...
$ git checkout linux4microchip-2023.04 -b buildroot-at91-linux4microchip-2023.04
Switched to a new branch 'buildroot-at91-linux4microchip-2023.04'