Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to Yocto scarthgap [Part3] #1545

Draft
wants to merge 97 commits into
base: main
Choose a base branch
from

Conversation

quaresmajose
Copy link
Member

The full PR was submitted #1532 but it was very big and we decided to break it down into smaller parts to facilitate the review process.

These small parts have not been tested at all and only the complete PR has been, so it is quite possible that they will not work separately as they are submitted now.

The full list of changes that have been tested are at https://github.com/foundriesio/meta-lmp/tree/scarthgap-next

Rebased on top of #1540

| cat ../layers/meta-virtualization/scripts/scripts/README-oe-go-mod-autogen.txt
| ../layers/meta-virtualization/scripts/oe-go-mod-autogen.py --repo https://github.com/docker/compose --rev v2.21.0
| mv modules.txt ../layers/meta-lmp/meta-lmp-base/recipes-containers/docker-compose/files
| mv relocation.inc src_uri.inc ../layers/meta-lmp/meta-lmp-base/recipes-containers/docker-compose
| # manualy update PV and SRCREV

Signed-off-by: Jose Quaresma <[email protected]>
gdb/systemd: enable minidebuginfo support conditionally
Enabling minidebuginfo is not useful if gdb and systemd-coredump
are unable to parse it.

In order to parse it, gdb needs xz support. Systemd needs coredump enabled, as
well as elfutil enabled as well (systemd-coredump loads libdw which is part of elfutils using dlopen).

https://git.yoctoproject.org/poky/commit/?id=959b1f7de437db9156da11fb799a3c2f4e9082dc

Signed-off-by: Jose Quaresma <[email protected]>
Signed-off-by: Jose Quaresma <[email protected]>
The current SPDX version can correctly handle dependencies
so we don't need to do this anymore.

Signed-off-by: Jose Quaresma <[email protected]>
we also need to adjust the LICENSE_DIRECTORY because our deploy is
shared by both muticonfigs.

| ERROR: mc:k3r5:quilt-native-0.67-r0 do_populate_lic: Recipe quilt-native is trying to install files into a shared area when those files already exist. The files and the manifests listing them are:
|   /srv/oe/build/deploy/licenses/x86_64/quilt-native/generic_GPL-2.0-only
|    (not matched to any task)
|   /srv/oe/build/deploy/licenses/x86_64/quilt-native/recipeinfo
|    (not matched to any task)
|   /srv/oe/build/deploy/licenses/x86_64/quilt-native/COPYING
|    (not matched to any task)
| Please adjust the recipes so only one recipe provides a given file.
| ERROR: Logfile of failure stored in: /srv/oe/build/tmp-lmp-k3r5/work/x86_64-linux/quilt-native/0.67/temp/log.do_populate_lic.72562

Signed-off-by: Jose Quaresma <[email protected]>
Signed-off-by: Jose Quaresma <[email protected]>
This workaround is mainly to revert the KERNEL_DEVICETREE change [1]

That change updates the kernel from 61 to 6.6 and defines the KERNEL_DEVICETREE
with the DTB_FILES but relocated.
[1] https://git.yoctoproject.org/meta-yocto/commit/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf?id=58ac51b7a44fbb165311c7226ae8b15cd004114d

Signed-off-by: Jose Quaresma <[email protected]>
Added to fix the lack of systemd in the initramfs [1]
but look like is not need anymore.

[1] foundriesio@17d647d

Signed-off-by: Jose Quaresma <[email protected]>
Signed-off-by: Jose Quaresma <[email protected]>
Signed-off-by: Jose Quaresma <[email protected]>
Signed-off-by: Jose Quaresma <[email protected]>
Signed-off-by: Jose Quaresma <[email protected]>
quaresmajose and others added 30 commits November 22, 2024 11:28
Relevant changes:
- cc8b1802 ktypes/standard: enable CONFIG_CRC64

Signed-off-by: Jose Quaresma <[email protected]>
When we have lmpdebug in DISTRO_FEATURES it will be good to enable systemd coredump

Signed-off-by: Jose Quaresma <[email protected]>
The IMAGE_NAME already includes the IMAGE_NAME_SUFFIX in the scarthgap

IMAGE_NAME="lmp-base-console-image-intel-corei7-64.rootfs-20241014163026"

Signed-off-by: Jose Quaresma <[email protected]>
This image is not used anywhere

Signed-off-by: Jose Quaresma <[email protected]>
When a default dtb is not used the fit now points to the default kernel
index, which is 1 by default.

Signed-off-by: Ricardo Salveti <[email protected]>
Based on scarthgap.

Signed-off-by: Ricardo Salveti <[email protected]>
Align base version with the same default version used in meta-rpi.

Signed-off-by: Ricardo Salveti <[email protected]>
Relevant changes:
- 16feae8a bsp: add BSP fragments for raspberrypi5
- 9bff1de1 bsp: raspberrypi4: config updates for 6.6
- 94d1435a kver: bumping to v6.6.54
- 3c4731cb netfilter: Enable CONFIG_NETFILTER_XTABLES_COMPAT
- 1dd9e613 features/intel-npu: introduce Intel NPU fragment
- 12e25b9a bsp/intel-corei7-64: enable Intel IOMMU support
- 130af14e features/intel-pinctrl: add pinctrl driver for Intel Meteor Lake
- dd8d897b full_nohz: remove RCU_FAST_NO_HZ gone from upstream
- 8f915afd cgl: drop SELINUX_DISABLE option
- 18f9024a nft_test.cfg: Enable CONFIG_VETH
- f4c820c0 features/nf_tables: Add net_fib_* options for greater ptest coverage
- 754686f5 features/nf_tables: nft_objref is now builtin
- 4bf6d3f7 features/net_sched: Add MULTIQ and NET_EMATCH config
- d3a802b6 features/net: Add xdp feature config
- 97f449ea features/vfio: remove CONFIG_VFIO_VIRQFD

Signed-off-by: Ricardo Salveti <[email protected]>
This reverts commit 5cb0fa1.

Signed-off-by: Jose Quaresma <[email protected]>
Use L4T_VERSION variable, and convert it to the same format as it's
currenlty exposed via ESRT table:

$ cat /sys/firmware/efi/esrt/entries/entry0/fw_version
2295296

Signed-off-by: Igor Opaniuk <[email protected]>
By using the sort-key[1] label in the conf files, this PR positions ostree
deployments above UEFI provisioning applications.

[1] https://uapi-group.org/specifications/specs/boot_loader_specification/#sorting

Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Don't install systemd-bless-boot.service, as ak-lite invokes
bless-boot tool manually fio SOTA targets with fioefi support.

Signed-off-by: Igor Opaniuk <[email protected]>
Fix ESP partition defined path.

Signed-off-by: Igor Opaniuk <[email protected]>
Disable nv_update_verifier service, as it's invoked manually by
ak-lite for SOTA targets with fioefi support.

Signed-off-by: Igor Opaniuk <[email protected]>
* Add support for upgrade_available cmd
* Parse target sysroot deployment path from boot entries

Signed-off-by: Igor Opaniuk <[email protected]>
Add support for obtaining current boot firmware version,
which is exposed in ESRT table.

[1] https://uefi.org/specs/UEFI/2.9_A/23_Firmware_Update_and_Reporting.html
Signed-off-by: Igor Opaniuk <[email protected]>
Define SRCREV_FORMAT for the Plug-and-Trust expansion.

Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Add support for deploying systemd-boot to ESP partition.
Considering that default deployment has always index == 0, the filenames
in ESP for efi binaries are generated in this way:
deployment index       path
0:                     /boot/EFI/BOOT/bootx64.efi
1:                     /boot/EFI/BOOT/bootx64-1.efi
2:                     /boot/EFI/BOOT/bootx64-2.efi

Signed-off-by: Igor Opaniuk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants