Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
74f1102
chore(omnect-is-int): replaces legacy initramfs scripts with Rust init
JoergZeidler Mar 3, 2026
f22e85b
chore(omnect-os-init): enables UUID-based root partition detection
JoergZeidler Mar 17, 2026
7e89e6e
chore(initramfs): enhances ifor diverse boot environments
JoergZeidler Mar 23, 2026
b60d1e9
chore(omnect-os-init): updates omnect-os-init Bitbake recipe
JoergZeidler Mar 23, 2026
3729acc
chore(omnect-os-init): update omnect-os-init recipe
JoergZeidler Mar 24, 2026
a346bf5
chore(omnect-os-init): added resize-data handling
JoergZeidler Mar 25, 2026
cc40cb7
fix(omnect-os-init): enable resize-data feature
JoergZeidler Mar 25, 2026
61eb056
fix: cargo feature delimiter
JoergZeidler Mar 25, 2026
612dc0b
chore(omnect-os-init): update omnect-os-init recipe
JoergZeidler Mar 25, 2026
c06072a
chore(omnect-os-init): add e2fsprogs-e2fsck
JoergZeidler Mar 26, 2026
eda9d0b
chore(omnect-os-init): update omnect-os-init recipe
JoergZeidler Mar 27, 2026
2bea87b
chore(omnect-os-init): add factory-reset handling
JoergZeidler Mar 30, 2026
b3a5f56
chore(omnect-os-init): update omnect-os-init recipe
JoergZeidler Mar 30, 2026
bb5aa5d
chore(omnect-os-init): update omnect-os-init recipe
JoergZeidler Mar 31, 2026
918dd97
chore(omnect-os-init): add gpt, release-image and persistent-var-log …
JoergZeidler Apr 9, 2026
887d1ce
feat(omnect-os-init): update to integrate factory-reset-mode1
JoergZeidler Jun 30, 2026
9b3b1b9
chore(omnect-os-init): update SRCREV for omnect-os-init recipe
JoergZeidler Jul 2, 2026
836ac26
chore(omnect-os-init): update recipe source
JoergZeidler Jul 28, 2026
8bdde53
fix(u-boot): declare every env variable the rust initramfs writes
JoergZeidler Jul 28, 2026
219cbd4
fix(u-boot): declare every env variable the rust initramfs writes
JoergZeidler Jul 28, 2026
78d8407
Merge remote-tracking branch 'JoergZeidler/feature_init_rust' into fe…
JoergZeidler Jul 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions classes/omnect_initramfs.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,3 @@ IMAGE_FEATURES = ""
IMAGE_LINGUAS = ""
KERNELDEPMODDEPEND = ""
IMAGE_NAME_SUFFIX = ""

# don't use rootfs module initramfs-framework-base
BAD_RECOMMENDATIONS += "initramfs-module-rootfs"

# check consistency of script ordering
ROOTFS_POSTPROCESS_COMMAND:append = " omnect_initramfs_check;"
omnect_initramfs_check() {
file_numbers=$(ls -1 ${IMAGE_ROOTFS}/init.d/ | sed 's/^\([0-9]\+\)-.*$/\1/g')
if [ "$(echo ${file_numbers})" != "$(echo ${file_numbers} | sort -u)" ]; then
bbfatal "wrong script ordering in ${IMAGE_ROOTFS}/init.d/"
fi
}
2 changes: 1 addition & 1 deletion conf/machine/include/phytec-imx8mm.inc
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ OMNECT_BOOTLOADER_RECIPE_PATH = "${LAYERDIR_phytec}/recipes-bsp/u-boot/u-boot-ph
# OMNECT_BOOTLOADER_CHECKSUM_EXPTECTED:pn-bootloader-versioned - build will fail, if the
# computed checksum is different to this; set to <oldchecksum> when
# OMNECT_BOOTLOADER_CHECKSUM_COMPATIBLE:pn-bootloader-versioned is set
OMNECT_BOOTLOADER_CHECKSUM_EXPECTED:pn-bootloader-versioned = "5165f005922e91b9513e4316db9316097f421109e2e678f6aed21f3a5cfbff51"
OMNECT_BOOTLOADER_CHECKSUM_EXPECTED:pn-bootloader-versioned = "73d490ae9bf6014a6c18c34d002a4cd07d00587afb4a3b84cae957466df3fbad"
8 changes: 2 additions & 6 deletions recipes-bsp/grub/grub-efi/omnect.inc.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,13 @@ else
save_env omnect_validate_update_failed
fi

if [ "x${omnect_rootblk}" != "x" ]; then
set kernel_param_rootblk=rootblk=${omnect_rootblk}
export kernel_param_rootblk
fi

if [ "${default}" != "Certificate Provision" ]; then
set default="omnect-os"
fi

menuentry 'omnect-os' --unrestricted {
set root=(hd0,gpt${omnect_os_bootpart})
linux /boot/bzImage rootpart=${omnect_os_bootpart} ${kernel_param_rootblk} ${omnect_extra_bootargs} @@OMNECT_APPEND_1ST_BOOT@@
probe --set=bootpart_fsuuid --fs-uuid ${root}
linux /boot/bzImage rootpart=${omnect_os_bootpart} bootpart_fsuuid=${bootpart_fsuuid} ${kernel_param_rootblk} ${omnect_extra_bootargs} @@OMNECT_APPEND_1ST_BOOT@@
initrd /boot/initramfs.cpio.gz
}
2 changes: 1 addition & 1 deletion recipes-bsp/grub/grub-efi_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ do_install:append:class-target() {
install -m 0644 ${WORKDIR}/grubenv ${D}${EFI_BOOT_PATH}/grubenv
}

GRUB_BUILDIN:append = " echo sleep"
GRUB_BUILDIN:append = " echo sleep probe"
11 changes: 11 additions & 0 deletions recipes-bsp/u-boot/u-boot/omnect_env.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
/* Attention: if vars are already part of CONFIG_EXTRA_ENV_SETTINGS
* this doesnt work; these vars are shown correctly via userland fw_printenv,
* but u-boot takes the default env value
*
* Every variable the OS writes at runtime belongs in this list. An unlisted
* variable is not guaranteed to survive a u-boot saveenv, which
* omnect_update_flow performs on the update paths.
*/
#define OMNECT_REQUIRED_WRITEABLE_ENV_FLAGS_EXTRA
#define OMNECT_REQUIRED_WRITEABLE_ENV_FLAGS \
Expand All @@ -15,6 +19,13 @@
"flash-mode-devpath:sw," \
"omnect_bootloader_updated:bw," \
"omnect_extra_bootargs:sw," \
"omnect_factory_reset_last_error:sw," \
"omnect_first_boot_done:bw," \
"omnect_fsck_boot:sw," \
"omnect_fsck_cert:sw," \
"omnect_fsck_data:sw," \
"omnect_fsck_etc:sw," \
"omnect_fsck_factory:sw," \
"omnect_os_bootpart:dw," \
"omnect_validate_extra_bootargs:sw," \
"omnect_validate_update:bw," \
Expand Down
36 changes: 10 additions & 26 deletions recipes-omnect/images/omnect-os-initramfs.bb
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,35 @@ inherit omnect_initramfs

IMAGE_NAME = "${OMNECT_INITRAMFS_IMAGE_NAME}"

FLASH_MODE_X_PACKAGES = " \
bmaptool \
dhcpcd \
xz \
"

GRUB_SUPPORT_PACKAGES = " \
grub-editenv \
grub-env \
"

UBOOT_SUPPORT_PACKAGES = " \
libubootenv \
libubootenv-bin \
"
RESIZE_DATA_PACKAGES = "\
e2fsprogs-resize2fs \
gptfdisk \
parted \
"

UBOOT_SUPPORT_PACKAGES = " \
libubootenv \
libubootenv-bin \
"

PACKAGE_INSTALL = "\
base-passwd \
bash \
coreutils \
dosfstools \
e2fsprogs \
e2fsprogs-e2fsck \
e2fsprogs-mke2fs \
e2fsprogs-tune2fs \
initramfs-framework-base \
initramfs-module-debug \
jq \
kmod \
omnect-os-initramfs-scripts \
e2fsprogs-tune2fs \
omnect-os-init \
os-release \
util-linux-blkid \
util-linux-fsck \
util-linux-sfdisk \
util-linux-uuidgen \
${ROOTFS_BOOTSTRAP_INSTALL} \
${VIRTUAL-RUNTIME_base-utils} \
${@bb.utils.contains('DISTRO_FEATURES', 'flash-mode-2', '${FLASH_MODE_X_PACKAGES} dropbear', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'flash-mode-3', '${FLASH_MODE_X_PACKAGES} curl', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'resize-data', '${RESIZE_DATA_PACKAGES}', '', d)} \
${@bb.utils.contains('MACHINE_FEATURES', 'efi', 'efibootmgr', '', d)} \
${@bb.utils.contains('OMNECT_RELEASE_IMAGE', '1', '', 'initramfs-module-debug', d)} \
"

PACKAGE_INSTALL:append:omnect_grub = " ${GRUB_SUPPORT_PACKAGES}"
Expand All @@ -77,4 +61,4 @@ add_fsck_vfat_support() {

inherit ${@bb.utils.contains('DISTRO_FEATURES', 'flash-mode-2', 'omnect_user', '', d)}
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'efi-secure-boot', 'user-key-store', '', d)}
inherit omnect-initramfs-sign
inherit omnect-initramfs-sign
94 changes: 0 additions & 94 deletions recipes-omnect/initrdscripts/omnect-os-initramfs-scripts.bb

This file was deleted.

Loading
Loading