Development

Differences between revisions 2 and 3
Revision 2 as of 2018-11-02 15:21:32
Size: 3485
Editor: sil2100
Comment:
Revision 3 as of 2018-11-02 15:35:33
Size: 4586
Editor: sil2100
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:

New images are composed using the ubuntu-image tool and so called model assertions. In our case, model assertions tell ubuntu-image what to compose the created image of. It is the model that defines the base snap to use, the gadget and kernel. There are different model assertions for 16 and 18, for each supported platform.
Line 65: Line 67:

== Model assertions ==

One can get the model assertions for the selected supported platform by using the following commands:

=== Core 18 ===

 * Raspberry Pi 2: `snap known --remote model series=16 model="ubuntu-core-18-pi2" brand-id=canonical`
 * Raspberry Pi 3: `snap known --remote model series=16 model="ubuntu-core-18-pi3" brand-id=canonical`
 * Raspberry Pi CM3: `snap known --remote model series=16 model="ubuntu-core-18-cm3" brand-id=canonical`
 * Dragonboard: `snap known --remote model series=16 model="ubuntu-core-18-dragonboard" brand-id=canonical`
 * amd64: `snap known --remote model series=16 model="ubuntu-core-18-amd64" brand-id=canonical`
 * i386: `snap known --remote model series=16 model="ubuntu-core-18-i386" brand-id=canonical`


This document serves the purpose of gathering all the useful information regarding the construction of and development of the ubuntu-core flavor.

Overview

Every ubuntu-core image is composed of a defined set of snaps. The following section gives a quick overview of what each snap is about and includes a handy list of links for the given project.

New images are composed using the ubuntu-image tool and so called model assertions. In our case, model assertions tell ubuntu-image what to compose the created image of. It is the model that defines the base snap to use, the gadget and kernel. There are different model assertions for 16 and 18, for each supported platform.

The base (core) snap

This is the base filesystem with all the bare-essential libraries and tools for any system to work. Like the core snap, this is required to be present on any 18 core-enabled system. Basically it has to offer any crucial functionality that is needed for a minimal system to function and cannot be easily installed through separate snaps.

The gadget snap

Each supported device has its own gadget snap. Gadget snaps are what defines the device, carrying binaries for the bootloader, declaring the partition layout etc.

There following gadget snaps are only used for the 16 series. Even though some of those repositories have 18 branches and/or include some snaps in the 18 track, they do not participate in any of the core18 images and should only be used for core16 (core):

The snapd snap

The snap offering snapd itself. This was once part of the core snap but it has been ripped out as a separate snap since recently.

The kernel snap

For core16 only (not used for core18), legacy snaps:

  • pi2-kernel - the generic Raspberry Pi kernel, now renamed to pi-kernel.

Model assertions

One can get the model assertions for the selected supported platform by using the following commands:

Core 18

  • Raspberry Pi 2: snap known --remote model series=16 model="ubuntu-core-18-pi2" brand-id=canonical

  • Raspberry Pi 3: snap known --remote model series=16 model="ubuntu-core-18-pi3" brand-id=canonical

  • Raspberry Pi CM3: snap known --remote model series=16 model="ubuntu-core-18-cm3" brand-id=canonical

  • Dragonboard: snap known --remote model series=16 model="ubuntu-core-18-dragonboard" brand-id=canonical

  • amd64: snap known --remote model series=16 model="ubuntu-core-18-amd64" brand-id=canonical

  • i386: snap known --remote model series=16 model="ubuntu-core-18-i386" brand-id=canonical

Documentation

UbuntuCore/Development (last edited 2024-03-18 13:14:35 by alfonsosanchezbeato)