Commit Graph

164 Commits

Author SHA1 Message Date
Patrick Vogelaar e04b6cf215 fix(cn913x-bldn-mbv): fix machine and phy
* change the MACHINE from cn9130-bldn-mbv to cn9131-bldn-mbv
* update trusted platform to support falcon board and represnt the solidrun settings
* add patch that fixes phy issues
2023-05-30 21:55:27 +02:00
Samuel Dolt 2adfda1626 feat(wks): rename partition
Now we use fw0, fw1, efi, ebg0, ebg1, rootfs0 and rootfs1 partition
name.

BREAKING CHANGE: bootX partition are now named ebgX
BREAKING CHANGE: platformX partition are now named rootfsX
2023-05-24 11:12:12 +02:00
Samuel Dolt 952a80baa5 feat(cn9130-cf-pro): add u-boot update functionality to swupdate 2023-05-16 11:08:40 +02:00
Samuel Dolt 518c651ef9 feat(coreos-image-swupdate.bbclass): add a way to dynamically extends the
sw-description files

The COREOS_SWUPDATE_EXTENDS_FOR and COREOS_IMAGE_SWUPDATE_EXTRACLASSES
variable can now be used to configure the coreos-image-swupdate to
dynamically extends some part of the sw-description by calling some
python function
2023-05-15 18:23:02 +02:00
Samuel Dolt fb4702780b feat(swupdate): add efibootguard update support
This also change the beaglebone target to use a GPT
partitioned disk

BREAKING CHANGE: .swu image generated can not be used on old
device, thus the device has to be reflashed.

BREAKING CHANGE: Support for MBR formatted disk is removed, as
it was only used for Beaglebone
2023-05-15 18:09:18 +02:00
Patrick Vogelaar 66461ac473 fix(3rd-party): commit id of efibootguard is corrected
after recreating the repo the commit IDs of our own commits changed.
This commit fixes that.
2023-05-09 08:32:24 +02:00
Samuel Dolt 6e8620a51f fix(coreos-efi-secureboot.bbclass): fix cache invalidation
COREOS_EFI_SECUREBOOT_KEYDIR_HASH was intended to store a hash
of each file present in build/key in order to discard the sstate
cache on key changes. But this variables was wrongly always empty
due to a wrong check in a loop.
2023-05-05 09:02:20 +02:00
Patrick Vogelaar dc4afa8bd2 fix(3rd-party): update 3rd-party submodules 2023-05-03 12:43:13 +02:00
Samuel Dolt d8df1d5b9d feat(meta-belden-marvell-bsp): update u-boot to v2023.04
BREAKING CHANGE: cn9130-cex7 machine configuration is removed
2023-04-26 14:05:36 +02:00
Patrick Vogelaar 7e5acb1fcd Pull request #73: fix(coreos-efibootguard.py): fix the script for older python version
Merge in ICO/coreos from fix/devtool_efibootguard_script to master

* commit 'c003449178fdb31ca8f39c15516129774591944a':
  fix(coreos-efibootguard.py): fix the script for older python version
2023-04-25 21:32:21 +02:00
Patrick Vogelaar c003449178 fix(coreos-efibootguard.py): fix the script for older python version
On the BIL build container (python v3.8) the script throws an error
which is fixed now.
2023-04-25 15:28:27 +02:00
Samuel Dolt b22684d2cd fix(coreos-image-uki.bbclass): fix default value of COREOS_KERNEL1_CMDLINE 2023-04-24 15:19:02 +02:00
Patrick Vogelaar fa35089782 fix(u-boot): add missing file and fix build 2023-04-21 21:10:43 +02:00
Patrick Vogelaar 2d69b5e24b fix(devicetree): fix boot for Falcon
* compatible node in device tree is adjusted
* config for cn9131 Falcon is removed since it is based on cn9130
* config for cn9130 based Falcon is added
2023-04-19 21:15:34 +02:00
Patrick Vogelaar 3d1f75db68 feat(kernel): add netfilter kernel config
To support the full feature set of iptables the kernelconfig is added.
The config fragment is copied from the yocto-kernel-cache repository.
2023-04-03 16:03:56 +02:00
Samuel Dolt d69a877f0c fix(swupdate): partially revert the emmc flasher suppport
commit 367814e94c introduced a change in the default
configuration of swupdate that broke our default update
system.

This commit revert this part of the emmc flasher support
for now
2023-03-15 15:12:16 +01:00
Samuel Dolt d1ffd51919 fix(vm-x64.conf): disable watchdog in efibootguard
Efibootguard shouldn't turn on the watchdog as we don't
support it yet from the Linux side
2023-03-15 15:11:06 +01:00
Samuel Dolt 55821f53bd fix(packagegroup-coreos-base): fix mispelled dep 2023-03-15 13:33:47 +01:00
Samuel Dolt 8e2e6b35b4 Pull request #66: Use packagroupe for default set of package
Merge in ICO/coreos from feat/package-group to master

* commit '5bddcaad7adf75ec63c18f72d8455204edf39cf4':
  feat(coreos-container-image.bbclass): use coreos specific package-group for IMAGE_INSTALL
  feat(coreos-image.bbclass): use coreos specific package-group for IMAGE_INSTALL
2023-03-15 09:52:33 +01:00
Samuel Dolt 3c24c04c53 fix(belden-coreos.conf): don't provide a syslog runtime
CoreOS use journald by default. Without this a syslog provided may
get pulled by packagegroup-core-full-cmdline or packagegroup-core-boot
2023-03-13 15:36:51 +01:00
Samuel Dolt 5bddcaad7a feat(coreos-container-image.bbclass): use coreos specific package-group for IMAGE_INSTALL 2023-03-13 11:12:15 +01:00
Samuel Dolt 958f5d244b feat(coreos-image.bbclass): use coreos specific package-group for IMAGE_INSTALL 2023-03-13 11:11:31 +01:00
Samuel Dolt a9116ae295 fix(coreos-efibootguard.py): don't fail if board doesn't use dtb 2023-03-09 10:36:35 +01:00
Samuel Dolt e2a53121a5 Pull request #61: add devtool generate-uki command
Merge in ICO/coreos from feat/devtool-kernel to master

* commit '1c8f7e9163ba5fec161bb858643a57274ea07882':
  feat(devtool): add a generate-uki command
  fix(coreos-image-uki.bbclass): use APPENDS to set the kernel arguments
  refactor: use black to format python code in vscode
2023-03-08 16:29:30 +01:00
Samuel Dolt 1c8f7e9163 feat(devtool): add a generate-uki command
The generate-uki command can be used to build and sign new UKI (Unified
Kernel Image). By default all parameters are taken from bitbake but the
kernel command line and the device tree used can be customized
2023-03-08 15:45:08 +01:00
Samuel Dolt a5fcbaa3d4 fix(coreos-image-uki.bbclass): use APPENDS to set the kernel arguments 2023-03-08 11:14:00 +01:00
Samuel Dolt 75c190ab38 feat(coreos-container-image): systemd can be installed in the image
Allow to use systemd as an IMAGE_FEATURES inside a container image
2023-03-01 15:17:55 +01:00
Samuel Dolt e9247d5cd0 feat(conf): enable sstate server by default
This enable the usage of the sstate.gad.local server to speed up
build by default.
2023-03-01 11:08:08 +01:00
Samuel Dolt 367814e94c feat(coreos-emmc-flasher): beaglebone support
This introduce a new coreos-emmc-flasher-beaglebone
recipe that create a SWU file that can be used to
create the partition in the internal emmc of a beaglebone
and flash both u-boot and efibootguard.

Support for create efibootguard configuration partition
and flashing kernel and rootfs is not included.
2023-02-22 14:23:46 +01:00
Darko Trogrlic 672bd63329 feat: cmake demo is added to demo image recipe 2023-02-17 11:22:16 +01:00
Patrick Vogelaar 558096e264 feat(systemd-service-demo):Add a systemd demo
The demo includes following features:
* notifications (ready and status)
* dependencies between services (strong and week)
2023-02-10 15:43:22 +01:00
Patrick Vogelaar b0747d657d refactor(coreos-images): rename coreos-image-demo -> coreos-image-all-features
* rename coreos-image-demo -> coreos-image-all-features
* create coreos-image-demo in meta-belden-coreos-demo
2023-02-10 15:43:22 +01:00
Samuel Dolt 010f907937 Pull request #50: fix(coreos-image-ci): fix syntax error
Merge in ICO/coreos from fix/coreos-image to master

* commit '2f42fcb05113dfabd88a1c82f51c71ea8b6d375a':
  fix(coreos-image-ci): fix syntax error
2023-02-07 13:16:52 +01:00
Samuel Dolt 9b82b53461 Pull request #51: fix(cockpit-podman): don't call make clean in do_configure
Merge in ICO/coreos from fix/cockpit-podman-configure to master

* commit 'c1da18b58c2b4dd5727f17fb83b70e394b02fe83':
  fix(cockpit-podman): don't call make clean in do_configure
2023-02-07 13:16:44 +01:00
Patrick Vogelaar 037c62be2c Pull request #47: fix(swupdate): make swupdate dependent on EFI
Merge in ICO/coreos from fix/remove_swupdate_from_qemu to master

* commit '17855553fc0f98d2946d11eb2ecc1379a44242ec':
  fix(swupdate): make swupdate dependent on EFI
2023-02-06 15:59:50 +01:00
Samuel Dolt c1da18b58c fix(cockpit-podman): don't call make clean in do_configure 2023-02-06 15:27:57 +01:00
Samuel Dolt 2f42fcb051 fix(coreos-image-ci): fix syntax error 2023-02-06 11:38:06 +01:00
Samuel Dolt f086fe20de Pull request #48: Feat/coreos device
Merge in ICO/coreos from feat/coreos-device to master

* commit '57107f5cea3ff2e61701c18753cacdada8d1e04f':
  feat(swupdate): install swupdate-progress by default
  feat(coreos-device): add a coreos-device script and a devtool plugin
2023-02-06 10:03:29 +01:00
Samuel Dolt 57107f5cea feat(swupdate): install swupdate-progress by default
swupdate-progress will automatically restart the device after
an update.
2023-02-03 14:12:53 +01:00
Samuel Dolt 34717ecbda feat(coreos-device): add a coreos-device script and a devtool plugin
The devtool plugin offer a high level integration with Bitbake and
thus is under GPLv2 license.

The coreos-device script is a low level scripts that implement all
the functionality and is not under GPLv2
2023-02-03 13:03:59 +01:00
Patrick Vogelaar 17855553fc fix(swupdate): make swupdate dependent on EFI
This fixes that swupdate service cannot be starten for qemu machines.
2023-02-03 10:50:41 +01:00
Samuel Dolt e86b46771e Pull request #46: chore(efibootguard): better handling of efibootguard related variables
Merge in ICO/coreos from chore/efibootguard-handling to master

* commit 'e02d4b95f8e257d55f70b1dfbf6435ddd564b09e':
  chore(efibootguard): better handling of efibootguard related variables
2023-02-03 10:33:17 +01:00
Samuel Dolt e02d4b95f8 chore(efibootguard): better handling of efibootguard related variables
Default value related to efibootguard are not set inside the distro
and MACHINE that use coreos-image and doesn't define EFI as a
MACHINE_FEATURE doesn't get the efibootguard-tools package.
2023-02-02 11:47:06 +01:00
Samuel Dolt 342f288d04 chore(container): remove the container machine overrides
We can build container with non-container machine with
coreos-container-image classes so having a MACHINEOVERRIDES
for container machines only is misleading
2023-02-02 10:12:00 +01:00
Samuel Dolt 89d820d4a6 fix(container): fix build failure with container machines with coreos-image class 2023-02-02 10:11:06 +01:00
Samuel Dolt b4e480e15d Pull request #43: Feat/os release
Merge in ICO/coreos from feat/os-release to master

* commit '60686d70f3aaca72712c82e4166923a3aa708dac':
  refactor(base-files): add git information to issues files
  refactor(belden-coreos): remove GIT info from DISTRO_VERSION
  feat(os-release): add COREOS_GIT_BRANCH and COREOS_GIT_REVISION field
2023-02-01 11:28:44 +01:00
Samuel Dolt 49b20dbb31 Pull request #44: fix(wks): use --size instead of --fixed-size
Merge in ICO/coreos from fix/swupdate to master

* commit '2a128e872151b26b8729bf240f9b0931838c471c':
  fix(wks): use --size instead of --fixed-size
2023-02-01 11:27:56 +01:00
Samuel Dolt 2a128e8721 fix(wks): use --size instead of --fixed-size
--fixed-size produce a partition of the right size but doesn't expand
the filesystem. Instead we use --size --extra-space and
--overhead-factor to have a fixed size partition and fixed size
filesystem
2023-01-31 16:00:36 +01:00
Samuel Dolt c0c5955efe Pull request #41: Artifacts files inside deploy dir for the CI
Merge in ICO/coreos from feat/ci-artifacts-list to master

* commit '92d900ba2f71e867d1ea672d8716bcac4fe54f35':
  fix(coreos-efi-secureboot): only install sb key if needed
  feat(coreos-image-ci): add a special image class to generate CI file
  feat(coreos-container-image): add COREOS_IMAGE_EXTRACLASSES support
2023-01-31 14:29:17 +01:00
Samuel Dolt 92d900ba2f fix(coreos-efi-secureboot): only install sb key if needed
Checking for COREOS_EFI_SECUREBOOT_INSTALL_PUBKEY_IN_EFIDIR
was not done properly resulting of the key always being
installed inside the EFI partition.
2023-01-31 13:26:06 +01:00
Samuel Dolt 60686d70f3 refactor(base-files): add git information to issues files 2023-01-31 12:22:06 +01:00
Samuel Dolt f1393776af refactor(belden-coreos): remove GIT info from DISTRO_VERSION 2023-01-31 12:21:41 +01:00
Samuel Dolt 61b831cb5a feat(os-release): add COREOS_GIT_BRANCH and COREOS_GIT_REVISION field 2023-01-31 11:27:39 +01:00
Samuel Dolt f831331e7e Pull request #38: Refactor/images
Merge in ICO/coreos from refactor/images to master

* commit '0b3e395862d9dea90a9c170c3a48a12fd985e3c6':
  chore(coreos-image-minimal-dev): delete the recipes
  refactor: rename coreos-image-full-cmdline to coreos-image-demo
2023-01-31 10:25:09 +01:00
Samuel Dolt cfb1638fb4 feat(coreos-image-ci): add a special image class to generate CI file
We need to generate some more file to better integrate the CI system
with this repository. The new class generate a new IMAGE.ci-artifacts
file with the list of file that need to be uploaded by the CI to our
storage server. To enable this class, the CI need to add:

`COREOS_IMAGE_EXTRACLASSES += "coreos-image-ci"`

to the auto.conf configuration file inside the build directory.
2023-01-30 16:09:15 +01:00
Darko Trogrlic 5f658cf199 fix(swupdate): re-adding swupdate and .swu image generation 2023-01-30 16:04:07 +01:00
Samuel Dolt 2b84253de8 feat(coreos-container-image): add COREOS_IMAGE_EXTRACLASSES support 2023-01-30 15:16:47 +01:00
Samuel Dolt 711b0f08bd Pull request #39: Fix/swu
Merge in ICO/coreos from fix/swu to master

* commit 'c65869b9c9a667fb689c5d3498ef21117d5ab648':
  fix(do_swuimage): use DEPENDS to get kernel arguments
  fix(coreos-image): COREOS_IMAGE_EXTRACLASSES now work as expected
2023-01-30 13:59:24 +01:00
Darko Trogrlic 259dd34e7c Pull request #33: docs: using cmake with yocto recipe - example
Merge in ICO/coreos from doc_demo_cmake_yocto to master

* commit '04547f38760b95a1fed7afef9449c4925e657fcb':
  docs: removing from cmake-demo from image recipe
  docs: moving cmake-demo to demo layer
  docs: changing cmake version in CMakeLists.txt
  docs: editing comments and removing config setting
  docs: using cmake with yocto recipe - example
  docs: removing from cmake-demo from image recipe
  docs: moving cmake-demo to demo layer
  docs: changing cmake version in CMakeLists.txt
  docs: editing comments and removing config setting
  docs: using cmake with yocto recipe - example
2023-01-30 13:34:07 +01:00
Samuel Dolt c65869b9c9 fix(do_swuimage): use DEPENDS to get kernel arguments
WKS_KERNEL_ARGS was using previously inside COREOS to pass the
kernel arguments between the machine configuration and image
generation. This was already replaced by the APPEND variable
that do the same and is documented in oe-core.
2023-01-30 13:28:15 +01:00
Samuel Dolt f20fc6a32d fix(coreos-image): COREOS_IMAGE_EXTRACLASSES now work as expected
COREOS_IMAGE_EXTRACLASSES is used to ihnerit classes dynamically during
parsing, that mean that it can't depends on operator that operate after
parsing, like ??=, :append, ...

Now we use the ?= and += operator that operate during parsing
2023-01-30 13:25:35 +01:00
Darko Trogrlic 23169c0e74 docs: removing from cmake-demo from image recipe 2023-01-27 16:42:15 +01:00
Darko Trogrlic f11edc5908 docs: moving cmake-demo to demo layer 2023-01-27 16:42:15 +01:00
Darko Trogrlic 4003ab491e docs: changing cmake version in CMakeLists.txt 2023-01-27 16:42:15 +01:00
Darko Trogrlic 0b533c97c3 docs: editing comments and removing config setting
Adding spaces to make comments more readable. Removing a config setting that is already default.
2023-01-27 16:42:15 +01:00
Darko Trogrlic eee10303f8 docs: using cmake with yocto recipe - example 2023-01-27 16:42:15 +01:00
Samuel Dolt 0b3e395862 chore(coreos-image-minimal-dev): delete the recipes 2023-01-27 14:31:12 +01:00
Samuel Dolt fea1ac4d8b refactor: rename coreos-image-full-cmdline to coreos-image-demo
coreos-image-full-cmdline contains more than command line utils.

It's the image that we usually use for our demo so let's use that
name.
2023-01-27 14:31:12 +01:00
Samuel Dolt f0f662b494 feat(coreos-image-testable): add an image to be used in the CI 2023-01-27 11:01:38 +01:00
Samuel Dolt 726b151913 Pull request #34: fix(beaglebone): fix kernel argument to select the right rootfs
Merge in ICO/coreos from fix/beaglebone-bootargs to master

* commit '6b773adee07bd22c6b1047385d2b214c59dab513':
  fix(beaglebone): fix kernel argument to select the right rootfs
2023-01-26 09:51:19 +01:00
Samuel Dolt 0ce3f1a45c fix(cockpit-podman): fix recipes
This resolve the problem that cockpit-podman sometimes fail
to build with an error message saying that uplading
package-lock.json is not possible when not inside of a
git repository.
2023-01-25 16:37:37 +01:00
Samuel Dolt 6b773adee0 fix(beaglebone): fix kernel argument to select the right rootfs 2023-01-25 12:33:04 +01:00
Samuel Dolt a21878bcf3 fix(cn913x): compatible dts has to match between kernel and u-boot 2023-01-24 15:28:00 +01:00
Samuel Dolt e83a1da19d feat(swupdate): add swupdate and .swu image generation 2023-01-24 15:28:00 +01:00
Samuel Dolt 4e8716628f feat(efibootguard): replace systemd-boot by efibootguard
We are now using efibootguard to provide a A/B boot path for
the kernel and the rootfs.

This commit remove some change for systemd/systemd-boot that are
not needed anymore and rework how we set the command line, as we
will need to have the command line argument of the kernel both
inside do_image_wic and in a future do_image_swu
2023-01-24 15:28:00 +01:00
Samuel Dolt e1b6c73137 feat(container): add coreos-container-image and coreos-container-package class 2023-01-03 11:33:03 +01:00
Samuel Dolt f83fa6725f fix(u-boot-coreos-efi): add missing depends on u-boot-tools 2022-12-14 13:41:49 +01:00
Samuel Dolt d1685d3068 refactor(container): rename the container image feature to podman 2022-12-02 14:23:22 +01:00
Samuel Dolt e9efb7027b feat(networkmanager): add networkmanager as an image feature 2022-12-02 14:23:22 +01:00
Samuel Dolt 1fe4a473b6 fix(coreos-generic-machine/vm.inc): generate wic.xz 2022-12-02 11:23:49 +01:00
Samuel Dolt 059464debf fix(bblayers): add missing layers dependancies
The layer.conf of meta-belden-coreos now depends on:
- meta-virtualization (needed for podman)
- meta-webserver (needed for cockpit)

The bblayers.conf.sample file now enable theses two layers and theirs dependancies
2022-12-01 15:57:34 +01:00
Samuel Dolt dbf83bcf33 Pull request #19: integration of container image and container runtime based on podman
Merge in ICO/coreos from feat/podman to master

* commit 'b7fd85c8b08b56700255071c3025d6a9c61995ec':
  chore(submodule): move meta-openembedded and meta-virtualization to bitbucket clone
  feat(container): add podman as container runtime
  meta-belden-bsp: add containers machine
2022-11-30 11:33:48 +01:00
Samuel Dolt a633344e1e feat(container): add podman as container runtime 2022-11-29 11:41:36 +01:00
Samuel Dolt 2557c4030f meta-belden-bsp: add containers machine 2022-11-29 11:40:52 +01:00
Samuel Dolt a094c751d6 fix(cn913x.inc): ensure flash-image.bin is generated for wic 2022-11-29 10:42:12 +01:00
Can Ercandogu 3f30c262d5 Pull request #17: Fix machine type typo
Merge in ICO/coreos from private/cxe12011/fix_machine_typo to master

* commit '24c5c9f308537a1feb1a823e5d1df468801d2b2a':
  Deleted the obsolete file
  Fix machine type typo
2022-11-29 07:51:31 +01:00
Can Ercandogu 24c5c9f308 Deleted the obsolete file 2022-11-28 17:34:22 +01:00
Can Ercandogu 08712c335b Fix machine type typo 2022-11-28 17:24:37 +01:00
Samuel Dolt 91d617cafb cn913x: enable UEFI boot 2022-11-24 15:37:07 +01:00
Patrick Vogelaar 85119d3ad1 Pull request #12: No ro FS for dev image and solidrun board improvements
Merge in ICO/coreos from feat/dev_image_improvements to master

* commit '412f3f3bb40d364624a85db267d092bdae4cea86':
  No ro FS for dev image and solidrun board improvements
2022-11-24 15:34:04 +01:00
Patrick Vogelaar 412f3f3bb4 No ro FS for dev image and solidrun board improvements
* dev image is now r/w which makes it easier to just try things out
* remove mount point from boot.src partition which causes it to not
  show in /etc/fstab. The presence of the entry caused boot problems.
2022-11-24 15:32:15 +01:00
Samuel Dolt 489a1a9764 Pull request #13: Add UEFI support
Merge in ICO/coreos from feat/uefi to master

* commit '25ac363358200694e85f9149f2480daec24c5377':
  documentation: fix typo
  meta-belden-coreos-bsp: add support for EFI and EFI Secure Boot
  coreos-doc: use python3-native instead of python3 from the host
  meta-belden-coreos-sanity: add some machine configuration checks
  meta-belden-coreos-bsp: add the beaglebone machine
  meta-belden-coreos-bsp: add beaglebone machine
  meta-belden-coreos-bsp: add layer
2022-11-18 09:24:11 +01:00
Samuel Dolt a3e168b217 meta-belden-coreos-bsp: add support for EFI and EFI Secure Boot 2022-11-09 15:35:15 +01:00
Patrick Vogelaar cbc5ba0cfd Update sanitychecker
* Update error text -> typo
* Add ubuntu 22.04 to the tested ditros
2022-11-09 06:52:49 +01:00
Patrick Vogelaar af70af4cd9 Pull request #10: Re-enable the read-only-rootfs
Merge in ICO/coreos from feat/reenable_ro_rootfs to master

* commit '128263b184370563a1b3ce422fd52871f7be434a':
  Re-enable the read-only-rootfs
2022-11-01 16:11:26 +01:00
Samuel Dolt 3b30978021 coreos-doc: use python3-native instead of python3 from the host
This fix the recipes by ihneriting the python3native class. DEPENDS
was also fix, as we need the native version of the needed package
and not the one from the target. It was previously only building
because bitbake use by default the host python3 and on my computer
I was having all the deps locally installed.
2022-10-31 08:56:13 +01:00
Samuel Dolt 8220408791 meta-belden-coreos-sanity: add some machine configuration checks 2022-10-31 08:55:14 +01:00
Samuel Dolt 8215d715df meta-belden-coreos-bsp: add the beaglebone machine 2022-10-31 08:55:14 +01:00
Samuel Dolt d564945da9 meta-belden-coreos-bsp: add beaglebone machine 2022-10-31 08:55:14 +01:00
Samuel Dolt 6c45058ef2 meta-belden-coreos-bsp: add layer 2022-10-31 08:55:09 +01:00