3.1.1 Cloning the Buildroot File System and Packages

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, you must clone the buildroot-at91 and buildroot-external repositories under the same parent directory.

The buildroot is cloned from linux4sam GitHub by the following command:
git clone https://github.com/linux4sam/buildroot-at91.git

The buildroot is cloned to the directory \buildroot-at91.

The buildroot external is cloned from MicrochipTech GitHub by the following command:

git clone https://github.com/MicrochipTech/wilcs02-buildroot-external-microchip.git

The buildroot-external is cloned to the directory \wilcs02-buildroot-external-microchip

You need to switch the branch of buildroot repositories by the following commands:

$ cd buildroot-at/
$ git checkout linux4microchip-2023.10 -b linux4microchip-2023.10