Running AGL on Intel MinnowBoard (and most Intel 64 bits HW)
This documentation is aiming at people who want to run Automotive Grade
Linux (AGL) on Intel Hardware (HW).
While the reference HW used by AGL project is the Open Source MinnowBoard, this documentation MinnowBoard wiki can be used to enable most of 64-bit Intel Architecture (IA) platforms using UEFI as boot loader.
In addition to the MinnowBoard, support for the upCore & UpSquared boards has been added. You need to run the 64-bit version of the UEFI bootloader. MinnowBoard Max and Turbot as well as Joule are both 64-bit capable.
Note: This page is more focused on those who want to create bespoke AGL images and BSPs.
If you are interested in creating applications to run on AGL, please visit the Developing Apps for AGL documentation.
UEFI has evolved a lot recently and you likely want to check that your HW firmware is up-to-date, this is mandatory for both the MinnowBoard-Max and the Joule. Not required on Minnowboard-Turbo and Up boards.
Where to find an AGL bootable image
Download a ready made image
AGL provides ready made images for developers. You will find them on AGL Download web site image are located in YourPreferedRelease/intel-corei7-64/deploy/images/intel-corei7-64/ Create a bootable SD card with the script mkefi-agl.sh check the available options with the -v option. mkefi-agl.sh -v
Building an AGL image from scratch using Yocto
Note: an alternative method for building an image is to use the AGL SDK delivered in a Docker container.
There is currently no SDK dedicated to IA but the SDK provided for the Porter Board can build an IA image without changes (just
aglsetup.sh needs to call for Intel).
See chapter 2 of Porter QuickStart.
Download AGL source code
Downloading the AGL sources from the various Git repositories is automated with the
repo tool. Basic steps to download the AGL source code is described below and for more advanced topics involving the
repo tool, please refer to the
To install the
mkdir -p ~/bin; export PATH=~/bin:$PATH; curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo; chmod a+x ~/bin/repo;
Configuring for the current (older) stable (Electric Eel 5.0.x)
cd AGL-5.0.x; repo init -b eel -m default.xml -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
Configuring for master (DD)
cd AGL-master; repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo;
Once that you repo is initialised either with the stable or WIP, you need to sync the repo to fetch the various git trees.
Downloading the configured AGL source code
Building the AGL distro
You are now ready to initialise your Yocto build.
When running the command:
source meta-agl/scripts/aglsetup.sh -h
You will notice the Intel entries
Simply select that entry to replace porter in the -m option.
Note: agl-netboot option is required to create the right initramfs even if you do not boot from a network
source meta-agl/scripts/aglsetup.sh \ -m intel-corei7-64 \ -b build \ agl-devel agl-demo agl-appfw-smack agl-netboot agl-audio-4a-framework
Note: use the option “-m joule” when building for a Joule developer Kit target.
Start the build This can take several hours depending of your CPU and internet connection and will required several GB on /tmp as well as on your build directory
Your newly baked disk image (.wic.xz) will be located at:
Alternative: Download a ready made image from AGL web site
The Continuous Integration (CI) process from AGL creates and publish daily and stable builds.
Pointers to both can be found in AGL supported HW (see Reference BSP/Intel).
Once you have validated your process you can start to play/work with the snapshot pointer.
Note that snapshot build may not work.
Follow the directory:
and download the file:
Create a bootable media
Depending your target HW you will use an USB stick, an SD card or a HDD/SDD.
The creation process remains the same independently of the selected support.
It does require to have access to a Linux machine with
sudo or root password.
Insert you removable media in the corresponding interface
Check the device name where the media can be accessed with the command
lsblk # Note that you want the name of the raw device not of a partition on the media #(eg. /dev/sdc or /dev/mmcblk0)
Download the script
This script is present in the directory meta-agl/scripts from blowfish 2.0.4, alternatively you can download it from the following Git repo:
check the available options
sh mkefi-agl.sh -v;
create your media with the command adjusted to your configuration
sudo sh mkefi-agl.sh MyAglImage.hdd /dev/sdX #/dev/sdX is common for USB stick, /dev/mmcblk0 for laptop integrated SD card reader
Boot the image on the target device
Insert the created media with the AGL image in the target device
Power on the device
Select Change one off boot option (generally F12 key during power up)
Select your removable device
Let AGL boot
Note:: depending on the speed of the removable media, the first boot may not complete, in that case simply reboot the device.
This is quite common with USB2 sticks.
By default the serial console is configured and activated at the rate of 115200 bps.