Support for Ubuntu Core tegra-igx images in jammy

Bug #2070070 reported by Loïc Minier
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Fix Released
Medium
Unassigned
Jammy
Fix Released
Medium
Unassigned

Bug Description

This bug is to track changes needed to be able to build jammy Ubuntu Core images for arm64+tegra-igx to support hardware based on NVIDIA Tegra SoCs. NB some initial support had already been backported; see LP #2015644.

[ Impact ]

 * This allows building missing image flavors for the NVIDIA Tegra families of hardware, notably Ubuntu Core images for the tegra-igx subarch.
 * This should also allow building of classic ISO installer images for tegra-igx, albeit that's a lesser priority.

[ Test Plan ]

 * Changes to livecd-rootfs were tested locally and can be tested from the -proposed package by building a Core image for tegra-igx as follows:
sudo apt install livecd-rootfs
mkdir build
cd build

rm -rf auto local config
rm -f livecd.*.model-assertion
mkdir -p auto
for s in config build clean; do ln -s /usr/share/livecd-rootfs/live-build/auto/$s auto/; done
lb clean --purge
export PROJECT=ubuntu-core ARCH=arm64 SUBARCH=tegra-igx SUITE=jammy IMAGEFORMAT=ubuntu-image CHANNEL=edge
lb config
sudo -E lb build

[ Where problems could occur ]

 * Changes are relatively light, but in the case of a regression for instance due to broken logic, this could break existing image builds, in which case an older livecd-rootfs could be reuploaded.

[ Other Info ]

 * These images are still being developed and its possible further changes are needed as we iterate through the maturity of the image.

Related branches

Loïc Minier (lool)
Changed in livecd-rootfs (Ubuntu):
status: New → Fix Released
importance: Undecided → Medium
Changed in livecd-rootfs (Ubuntu Jammy):
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Please test proposed package

Hello Loïc, or anyone else affected,

Accepted livecd-rootfs into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.765.44 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in livecd-rootfs (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Loïc Minier (lool) wrote :
Download full text (3.2 KiB)

Installed https://launchpad.net/ubuntu/+source/livecd-rootfs/2.765.44/+build/28611104/+files/livecd-rootfs_2.765.44_arm64.deb in a jammy arm64 LXD container and ran commands from the Test plan:
ubuntu@jammy:~/build$ rm -rf auto local config
rm -f livecd.*.model-assertion
mkdir -p auto
for s in config build clean; do ln -s /usr/share/livecd-rootfs/live-build/auto/$s auto/; done
lb clean --purge
export PROJECT=ubuntu-core ARCH=arm64 SUBARCH=tegra-igx SUITE=jammy IMAGEFORMAT=ubuntu-image CHANNEL=edge
lb config
sudo -E lb build

[2024-06-28 13:46:32] lb_clean --purge
P: Executing auto/clean script.
[2024-06-28 13:46:32] lb_clean noauto --purge
P: Executing auto/clean script.
[2024-06-28 13:46:32] lb_clean noauto --all
P: Cleaning chroot
P: Executing auto/clean script.
[2024-06-28 13:46:32] lb_clean noauto --cache
[2024-06-28 13:46:32] lb_config
P: Executing auto/config script.
Building on jammy.lxd
Configured ubuntu-image for the following model assertion:
type: model
authority-id: canonical
series: 16
brand-id: canonical
model: ubuntu-core-22-tegra-igx-edge
architecture: arm64
base: core22
grade: signed
snaps:
  -
    default-channel: 22-igx/edge
    id: 9pjCtYlNoT9Fx6RiHMhhBoIG6ZYXBvJc
    name: tegra
    type: gadget
  -
    default-channel: 22-igx/edge
    id: Rjyoy6Zhe9mlkBQqmVzaUdPB2TblFSwV
    name: tegra-kernel
    type: kernel
  -
    default-channel: latest/edge
    id: amcUKQILKXHHTlmSa7NMdnXSx02dNeeT
    name: core22
    type: base
  -
    default-channel: latest/edge
    id: PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4
    name: snapd
    type: snapd
timestamp: 2024-04-23T15:12:16+00:00
sign-key-sha3-384: 9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn

AcLBXAQAAQoABgUCZipp6AAKCRDgT5vottzAEj6mD/9lINl13Ju5yVBySIxByJVzJ84nxFlpFLAh
Bnb+7cNLAIWKLB57oG49oYx5aXpGaH3RNoQ9rGI/r7axRDgqpYStA0tFO0NM04sBWi4tkc2Cj+xj
v/uX//p+Xwx9IcynnvPG2aavfebA3tzBN3AV+QTjgo4rHhIJNiNNx8Qs7FHYTvFuZh6tYHbMX7wd
N0kE8axVCm8ado+vIbBmkzqE5EYoYtoer4DO90WqkmnGq07w+6Uth5AfUoXQfegl37xeXigAnhGO
sKos/FDw/G7IcAzp24VI4HmCnCj7W0I6iKmuEUr6JiXZoD7eEXr/CNMQpeeO/HD2vXnAmBF3V8W/
9brjFI5wTjHkxgMwzZ3z4RtqpG8Vx1Udcn6w2+cUzB3j5afJlg5mZAuE60StY38AVByaU4+PTSGv
nVP5ZQHiFQzz23VWmc5/blVDHYuvYikXUjbTBWfFszAby/UJIPvfS+dTTRNz0+cIa0qgkCsDma6B
qRDpepOXDw97mu1LwDH+SvLQM2Cnaa+tcO7cjslPiQq+MOjCVAgvOtZFi12lgpqJmwDiX8x4r3MZ
/fu7DO+zfPzjmujhr8p/skjRUmAu1OOwe8lrUzvfKBjm0j+hY02o8mV2NkkqxItnqQ3tyyUwyxlW
wXXWWlvCds7QJgP34C6m0CIhfwV8E2r/gaVvbkjv/Q==
----------------------------------------------------------
[2024-06-28 13:46:32] lb_build
P: Executing auto/build script.
WARNING: proceeding to download snaps ignoring validations, this default will change in the future. For now use --validation=enforce for validations to be taken into account, pass instead --validation=ignore to preserve current behavior going forward
Fetching snapd
Fetching tegra-kernel
Fetching core22
Fetching tegra

Worked fine, model assertion is correct and manifest is as expected:
ubuntu@jammy:~/build$ ls
auto
config
livecd.ubuntu-core-tegra-igx.img.xz
livecd.ubuntu-core-tegra-igx.manifest
livecd.ubuntu-core-tegra-igx.model-assertion
output
ubuntu@jammy:~/build$ cat livecd.ubuntu-core-tegra-igx.manifest
core22 1522.snap
snapd 22...

Read more...

Revision history for this message
Loïc Minier (lool) wrote :

I also booted the resulting Core image on a Jetson AGX Orin, I had to try a couple of times, not sure why, perhaps quirks with the BIOS and me trying to boot from a SD card reader, but eventually I got the installer prompt from Ubuntu Core, albeit I didn't manage to progress it, I think it demonstrates a good starting point for the image – might still have to address the kernel/userspace etc.

================================================================================
  Ubuntu Core ================================================================================
  Configure the network and setup an administrator account on this all-snap
  Ubuntu Core system.

tags: added: verification-done
removed: verification-needed
tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.765.44

---------------
livecd-rootfs (2.765.44) jammy; urgency=medium

  [ Rémy Martin ]
  * Backport support for building tegra-igx Server and Core images;
    LP: #2070070.

livecd-rootfs (2.765.43) jammy; urgency=medium

  * buildd/02-disk-image-uefi add udev early hook to satisfy grub-probe
    and grub-install. (LP: #2064175)

livecd-rootfs (2.765.42) jammy; urgency=medium

  [ Ankush Pathak ]
  * Add policy:unconfined_restrictions feature to 6.5 kernel (LP: #2062929)

 -- Philip Roche <email address hidden> Thu, 27 Jun 2024 14:11:06 +0100

Changed in livecd-rootfs (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for livecd-rootfs has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.