Skip to content
Microchip SAMA5 Buildroot External
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
board/microchip uboot-env: use display instead of pda Oct 10, 2018
configs configs: remove smartrefrigerator from sama5d3_xplained demo Oct 11, 2018
docs initial commit Feb 23, 2018
package libplanes: bump version Oct 5, 2018
patches/qt5base patches/qt5base: bump patches to 5.10.1 Apr 6, 2018
system system: add support for configuring init scripts Feb 23, 2018
COPYING vision: new package Sep 27, 2018 libplanes: use buildroot host-swig package Mar 22, 2018
external.desc initial commit Feb 23, 2018 initial commit Feb 23, 2018


Microchip SAMA5 Buildroot External

This buildroot external includes Microchip packages, patches, setup, and configuration to create the SAMA5 demo. This project provides an extension to buildroot to support these customizations outside of the standard buildroot tree.

Install System Dependencies

The external is tested on Ubuntu 16.04 LTS. The following system build dependencies are required.

sudo apt-get install subversion build-essential bison flex gettext \
libncurses5-dev texinfo autoconf automake libtool mercurial git-core \
gperf gawk expat curl cvs libexpat-dev bzr unzip bc python-dev

In some cases, buildroot will notify that additional host dependencies are required. It will let you know what those are.

Buildroot Dependencies

Many of the demo applications included in this external depend on Qt 5.9 or later. This buildroot external requires a new version of buildroot equal to or greater than 2018.02-at91.


Clone, configure, and build. When building, use the appropriate defconfig in the buildroot-external-microchip/configs directory for your board.

git clone
git clone -b 2018.02-at91
cd buildroot-at91
BR2_EXTERNAL=../buildroot-external-microchip/ make sama5d4_xplained_demo_defconfig

The resulting bootloader, kernel, and root filesystem will be put in the 'output/images' directory. There is also a complete sdcard.img.

Optionally Configure Packages and Kernel

Userspace packages and the Linux kernel, for example, can be optionally selected and configured using buildroot.

To configure userspace packages and build:

make menuconfig

To configure the kernel and build:

make linux-menuconfig

Create a list of software licenses used:

make legal-info

Create an SD Card

A SD card image is generated in the file sdcard.img. The first partition of this image contains a FAT filesystem with at91bootstrap, u-boot, a u-boot env, DTB files, and kernel. The second partition contains the root filesystem. This image can be written directly to an SD card.

You need at least a 1GB SD card. All the data on the SD card will be lost. Find the device node name for your card. To copy the image on the SD card:

cd output/images
sudo dd if=sdcard.img of=/dev/sdX bs=1M

Another method, which is cross platform, to write the SD card image is to use Etcher.

For more information on how these components are generated and what makes up a bootable SD card, see SDCardBootNotice.

Configuring the LCD Display

You may have to manually set the DTB file to be inline with the actual display you are using. To do this, as the board is booting hold down the enter key in the debug serial console until you get to the u-boot command prompt. Use the following commands to set and save the dtb_name variable.

=> setenv dtb_name at91-sama5d2_xplained_pda7.dtb
=> saveenv
=> boot


For more information on using and updating buildroot, see the buildroot documentation.


This project is licensed under the GPLv2 or later with exceptions. See the COPYING file for more information. Buildroot is licensed under the GPLv2 or later with exceptions. See the COPYING file in that project for more information.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.