Building an Ubuntu Core 18 image for Nitrogen i.MX6 board

This article is written by Taiten Peng. Have you got i.MX6 hardware and are wondering how Ubuntu Core would run on it? In this blog, we will build an Ubuntu Core 18 image with the generic Ubuntu kernel for an i.MX6 based Boundary Devices board. The Nitrogen6X hardware from Boundary Device is well supported upstream and kernel patches have already landed into Ubuntu 4.15 LTS kernel.  This allows you to create an Ubuntu Core 18 image and try an official kernel from Canonical. What you’ll need Reference hardware: Nitrogen6X with 2GB memory Tools – build environment: Host OS: Ubuntu 18.04 LTS 64bitTools: ubuntu-image, snapcraft Perform the following command to install ubuntu-image and snapcraft: sudo snap install –classic ubuntu-image sudo snap install –classic snapcraft At a glance, understanding the basics In order to build an Ubuntu Core image, there are essential components that need to be prepared such as a gadget snap or signed model assertion file. A kernel snap is also required, technically, but it does not have to be a custom kernel snap on the Nitrogen6X hardware. Building a custom Ubuntu Core image for i.MX6 Using Nitrogen6X hardware as an example. Build a gadget snap Example gadget snap for nitrogen6q2g board with upstream u-boot source. Create a model assertion and sign Example model json file { “type”: “model”, “authority-id”: “YOUR_ID”, “brand-id”: “YOUR_ID”, “series”: “16”, “base”: “core18”, “model”: “nitrogen6x”, “architecture”: “armhf”, “gadget”: “nitrogen6”, “kernel”: “pc-kernel=18”, “timestamp”: “2019-06-21T08:56:10+00:00” } More detail in creating model assertion and signing can be found in this tutorial. Build an Ubuntu Core 18 image sudo ubuntu-image –snap YOUR_GADGET_SNAP.snap -o nitrogen6x.img YOUR_MODEL_ASSERTION.model For instance, something like ubuntu-image –snap nitrogen6x-gadget-snap/nitrogen6_18-0.1_armhf.snap -o nitrogen6x.img nitrogen6x.model Installation and booting Flash the bootloader Nitrogen6x won’t boot the bootloader from a SDcard or USB. You will need to do the following step to…


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version