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

Enable usrmerge distro feature for yoe and update layers #673

Merged
merged 10 commits into from
Apr 29, 2022
7 changes: 5 additions & 2 deletions conf/site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ TEST_TARGET = "simpleremote"
# Dont package kernel into image
RDEPENDS:${KERNEL_PACKAGE_NAME}-base = ""

# Enable persistent logs across reboots
VOLATILE_LOG_DIR = "no"

EXTRA_IMAGE_FEATURES = "debug-tweaks"

# Define a feedserver template to be part of rootfs
Expand Down Expand Up @@ -111,6 +114,6 @@ IMG_VERSION = "0.0.1"
#EXTRA_IMAGE_FEATURES:remove = "debug-tweaks"

# For running oe-selftest uncomment below lines
USER_CLASSES:remove = "buildhistory"
PRSERV_HOST = ""
#USER_CLASSES:remove = "buildhistory"
#PRSERV_HOST = ""

2 changes: 1 addition & 1 deletion conf/site.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ YOE_PROFILE = "yoe-musl-sysvinit-eglfs"
YOE_PROFILE = "yoe-musl-sysvinit-wayland"
YOE_PROFILE = "yoe-musl-sysvinit-x11"
# configure docker container to run bitbake in
export DOCKER_REPO=yoedistro/yoe-build:buster
export DOCKER_REPO=yoedistro/yoe-build:bullseye

# Keep the load in control and do not issue more parallel jobs
# when load hits 1.5 * number of cpus
Expand Down
6 changes: 3 additions & 3 deletions envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ yoe_clean_sstate() {
}

# Docker integration
# set DOCKER_REPO to something like yoedistro/yoe-build:buster
# set DOCKER_REPO to something like yoedistro/yoe-build:bullseye
# DOCKER_REPO can be set in scripts that wrap envsetup.sh
# set DOCKER_REPO to 'none' to disable docker

if [ -z "$DOCKER_REPO" ]; then
echo "Setting DOCKER_REPO to yoedistro/yoe-build:buster"
export DOCKER_REPO=yoedistro/yoe-build:buster
echo "Setting DOCKER_REPO to yoedistro/yoe-build:bullseye"
export DOCKER_REPO=yoedistro/yoe-build:bullseye
fi

# if we are building using docker, we don't really care what /bin/sh is since the Yoe docker images defaults
Expand Down
4 changes: 2 additions & 2 deletions local.sh.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# export HOST_IP=10.10.10.10

# configure docker container to run bitbake in
#export DOCKER_REPO=yoedistro/yoe-build:buster
#export DOCKER_REPO=yoedistro/yoe-build:bullseye

# Flag to control docker launch with pseudo-tty
# when output is piped or redirected to files then
Expand All @@ -28,4 +28,4 @@

# By default docker is used if DOCKER_REPO is set to a value different than
# none. If you prefer to use podman instead of docker, un-comment this line
#export DOCKER="podman"
#export DOCKER="podman"
2 changes: 1 addition & 1 deletion sources/bitbake
2 changes: 1 addition & 1 deletion sources/meta-arm
Submodule meta-arm updated 37 files
+6 −0 .gitlab-ci.yml
+9 −0 ci/edk2.yml
+1 −3 kas/fvp-baser-aemv8r64-bsp.yml
+8 −0 meta-arm-bsp/conf/machine/fvp-baser-aemv8r64.conf
+2 −1 meta-arm-bsp/conf/machine/juno.conf
+10 −15 meta-arm-bsp/documentation/fvp-baser-aemv8r64.md
+5 −0 meta-arm-bsp/recipes-bsp/boot-wrapper-aarch64/boot-wrapper-aarch64-fvp-baser-aemv8r64.inc
+1 −1 ...pes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0008-aarch64-Disable-CNTPCT_EL0-trap-for-v8-R64.patch
+1 −1 meta-arm-bsp/recipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0009-lds-Mark-the-mem-range.patch
+1 −1 meta-arm-bsp/recipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0010-common-Introduce-the-libfdt.patch
+1 −1 ...sp/recipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0011-common-Add-essential-libc-functions.patch
+1 −1 ...bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0012-Makefile-Add-the-libfdt-to-the-Makefile-system.patch
+1 −1 meta-arm-bsp/recipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0013-platform-Add-print_hex-func.patch
+1 −1 ...bsp/recipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0014-common-Add-mem-usage-to-memreserve.patch
+1 −1 ...pes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0015-boot-Add-the-enable-keep-el-compile-option.patch
+52 −0 ...p/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0017-PSCI-Apply-flush-cache-after-setting-branch_data.patch
+74 −0 ...bsp/recipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0018-PSCI-Add-function-call-entry-point.patch
+61 −0 ...sp/recipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0019-lds-Rearrange-and-mark-the-sections.patch
+345 −0 ...ipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0020-common-Provide-firmware-info-using-libfdt.patch
+98 −0 ...cipes-bsp/boot-wrapper-aarch64/files/fvp-baser-aemv8r64/0021-boot-Enable-firmware-node-initialization.patch
+1 −1 meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-juno.inc
+1 −4 meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-sgi575.inc
+1 −1 meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-baser-aemv8r64/0006-armv8-Add-ARMv8-MPU-configuration-logic.patch
+1 −1 ...ecipes-bsp/u-boot/u-boot/fvp-baser-aemv8r64/0007-armv8-Allow-disabling-exception-vectors-on-non-SPL-b.patch
+1 −1 meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-baser-aemv8r64/0008-armv8-ARMV8_SWITCH_TO_EL1-improvements.patch
+1 −1 ...ecipes-bsp/u-boot/u-boot/fvp-baser-aemv8r64/0009-armv8-Make-disabling-HVC-configurable-when-switching.patch
+1 −1 meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-baser-aemv8r64/0010-vexpress64-Do-not-set-COUNTER_FREQUENCY.patch
+1 −1 ...bsp/recipes-bsp/u-boot/u-boot/fvp-baser-aemv8r64/0011-vexpress64-Add-BASER_FVP-vexpress-board-variant.patch
+88 −0 ...m-bsp/recipes-bsp/u-boot/u-boot/fvp-baser-aemv8r64/0012-vexpress64-Configure-memory-using-device-tree.patch
+27 −0 ...ecipes-bsp/u-boot/u-boot/fvp-baser-aemv8r64/0013-vexpress64-Enable-LIBFDT_OVERLAY-in-the-vexpress_aem.patch
+2 −0 meta-arm-bsp/recipes-bsp/u-boot/u-boot_%.bbappend
+0 −1 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_10.3-2021.07.bb
+10 −2 meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
+2 −1 meta-arm/recipes-bsp/uefi/edk2-firmware.inc
+1 −0 meta-arm/recipes-bsp/uefi/sbsa-acs_3.1.bb
+0 −17 meta-arm/recipes-devtools/fvp/fvp-base-r-aem.bb
+10 −0 meta-arm/recipes-devtools/fvp/fvp-base-r-aem_11.17.21.bb
2 changes: 1 addition & 1 deletion sources/meta-openembedded
Submodule meta-openembedded updated 82 files
+2 −1 meta-gnome/recipes-extended/gparted/gparted_1.4.0.bb
+1 −1 meta-gnome/recipes-gnome/evince/evince_42.2.bb
+2 −2 meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.inc
+1 −1 meta-gnome/recipes-gnome/gspell/gspell_1.10.0.bb
+2 −2 meta-gnome/recipes-gnome/gtksourceview/gtksourceview5_5.4.1.bb
+1 −1 meta-gnome/recipes-gnome/libadwaita/libadwaita_1.1.1.bb
+1 −1 meta-gnome/recipes-gnome/nautilus/nautilus_42.1.1.bb
+4 −1 meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch
+0 −44 ...ultimedia/recipes-multimedia/pipewire/files/0001-meson-Add-option-to-enable-disable-legacy-RTKit-modu.patch
+2 −4 meta-multimedia/recipes-multimedia/pipewire/pipewire_0.3.50.bb
+1 −1 meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.bb
+7 −0 meta-networking/recipes-connectivity/ufw/ufw_0.36.1.bb
+1 −1 meta-networking/recipes-filter/arno-iptables-firewall/arno-iptables-firewall_2.1.1.bb
+3 −3 meta-networking/recipes-protocols/babeld/babeld_1.11.bb
+1 −1 meta-networking/recipes-protocols/frr/frr/frr.pam
+1 −1 meta-networking/recipes-protocols/frr/frr_8.2.2.bb
+104 −15 meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch
+10 −2 meta-networking/recipes-support/drbd/drbd-utils_9.20.2.bb
+1 −1 meta-networking/recipes-support/htpdate/htpdate_1.3.4.bb
+11 −0 meta-networking/recipes-support/libldb/libldb_2.3.3.bb
+31 −0 meta-networking/recipes-support/linux-atm/linux-atm/0001-make-Add-PREFIX-knob.patch
+3 −4 meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
+1 −1 meta-networking/recipes-support/nbdkit/nbdkit_1.31.1.bb
+8 −5 meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.1.bb
+0 −2 meta-oe/recipes-bsp/fwupd/fwupd_1.7.6.bb
+1 −2 meta-oe/recipes-bsp/lsscsi/lsscsi_0.32.bb
+2 −0 meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd_250.3.bb
+10 −10 meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch
+2 −2 meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb
+1 −1 meta-oe/recipes-devtools/ctags/ctags_5.9.20220417.0.bb
+2 −2 meta-oe/recipes-devtools/lapack/lapack_3.10.1.bb
+2 −1 meta-oe/recipes-extended/boinc/boinc-client_7.18.1.bb
+28 −0 meta-oe/recipes-extended/fluentbit/fluentbit/0001-Control-sytemd-unit-install-location-with-SYSTEM_DIR.patch
+2 −2 meta-oe/recipes-extended/fluentbit/fluentbit/cross-build-init-system-detection.patch
+3 −1 meta-oe/recipes-extended/fluentbit/fluentbit_1.3.5.bb
+1 −1 meta-oe/recipes-extended/hexedit/hexedit_1.6.bb
+2 −0 meta-oe/recipes-extended/mozjs/mozjs-91_91.8.0.bb
+1 −1 meta-oe/recipes-extended/openwsman/openwsman_2.7.1.bb
+1 −1 meta-oe/recipes-extended/ostree/ostree_2022.2.bb
+1 −1 meta-oe/recipes-extended/pam/pam-ssh-agent-auth_0.10.3.bb
+1 −1 meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb
+1 −1 meta-oe/recipes-gnome/atk/atkmm-2.36_2.36.1.bb
+1 −1 meta-oe/recipes-gnome/atk/atkmm_2.28.2.bb
+1 −1 meta-oe/recipes-gnome/gtk+/gtkmm3_3.24.5.bb
+1 −1 meta-oe/recipes-graphics/dietsplash/dietsplash_git.bb
+2 −1 meta-oe/recipes-graphics/pango/pangomm_2.46.2.bb
+0 −36 meta-oe/recipes-kernel/crash/crash/0002-crash-fix-build-error-unknown-type-name-gdb_fpregset.patch
+0 −33 meta-oe/recipes-kernel/crash/crash/0003-crash-detect-the-sysroot-s-glibc-header-file.patch
+0 −33 meta-oe/recipes-kernel/crash/crash/remove-unrecognized-gcc-option-m32-for-mips.patch
+0 −79 meta-oe/recipes-kernel/crash/crash/sim-common-sim-arange-fix-extern-inline-handling.patch
+0 −37 meta-oe/recipes-kernel/crash/crash/sim-ppc-drop-LIBS-from-psim-dependency.patch
+4 −9 meta-oe/recipes-kernel/crash/crash_8.0.0.bb
+25 −28 meta-oe/recipes-kernel/makedumpfile/makedumpfile/0001-makedumpfile-replace-hardcode-CFLAGS.patch
+1 −7 meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.7.1.bb
+1 −0 meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb
+335 −0 meta-oe/recipes-multimedia/cdrkit/files/0001-add-new-option-eltorito-platform.patch
+1 −2 meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
+1 −2 meta-oe/recipes-security/tomoyo-tools/tomoyo-tools_2.5.0.bb
+4 −2 meta-oe/recipes-shells/tcsh/tcsh_6.22.04.bb
+69 −0 meta-oe/recipes-support/gradm/gradm/0001-make-Define-SBINDIR-flag.patch
+3 −2 meta-oe/recipes-support/gradm/gradm_3.1-202111052217.bb
+1 −1 meta-oe/recipes-support/links/links-x11_2.26.bb
+1 −1 meta-oe/recipes-support/links/links_2.26.bb
+28 −0 meta-oe/recipes-support/lockdev/lockdev/0001-lockdev-Define-MAJOR-MINOR-for-non-glibc-case.patch
+5 −7 meta-oe/recipes-support/lockdev/lockdev_1.0.3.bb
+1 −1 meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.70.bb
+1 −1 meta-perl/recipes-perl/libencode/libencode-perl_3.17.bb
+1 −1 meta-perl/recipes-perl/libextutils/libextutils-cppguess-perl_0.26.bb
+2 −3 meta-perl/recipes-perl/libtest/libtest-harness-perl_3.44.bb
+1 −1 meta-python/recipes-devtools/python/python3-aenum_3.1.11.bb
+1 −1 meta-python/recipes-devtools/python/python3-aws-iot-device-sdk-python_1.5.2.bb
+1 −1 meta-python/recipes-devtools/python/python3-bitstruct_8.14.0.bb
+1 −1 meta-python/recipes-devtools/python/python3-cmd2_2.4.1.bb
+28 −0 meta-python/recipes-devtools/python/python3-cppy/0001-Fix-build-error-as-following.patch
+7 −2 meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb
+1 −1 meta-python/recipes-devtools/python/python3-django_2.2.28.bb
+2 −2 meta-python/recipes-devtools/python/python3-imageio_2.17.0.bb
+10 −2 meta-python/recipes-devtools/python/python3-marshmallow_3.15.0.bb
+56 −0 meta-python/recipes-extended/python-blivet/python3-blivetgui/0002-Use-symbolic-list-add-and-edit-icons.patch
+2 −1 meta-python/recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb
+39 −0 meta-webserver/recipes-webadmin/netdata/netdata/0001-Use-explicit-typecast-to-enum-rrdset_flags.patch
+3 −1 meta-webserver/recipes-webadmin/netdata/netdata_1.34.1.bb
2 changes: 1 addition & 1 deletion sources/meta-qcom
Submodule meta-qcom updated 33 files
+72 −0 .github/workflows/premerge.yml
+40 −0 conf/machine/qcom-armv7a.conf
+35 −0 recipes-bsp/firmware-nexus/firmware-qcom-nexus.inc
+24 −0 recipes-bsp/firmware-nexus/firmware-qcom-nexus4.bb
+9 −0 recipes-bsp/firmware-nexus/firmware-qcom-nexus5.bb
+12 −0 recipes-bsp/firmware-nexus/firmware-qcom-nexus5x.bb
+9 −0 recipes-bsp/firmware-nexus/firmware-qcom-nexus6.bb
+12 −0 recipes-bsp/firmware-nexus/firmware-qcom-nexus6p.bb
+24 −0 recipes-bsp/firmware-nexus/firmware-qcom-nexus7-2013.bb
+10 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel.bb
+69 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel.inc
+10 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel2.bb
+10 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel3.bb
+10 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel3a.bb
+10 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel4.bb
+9 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel4a-5g.bb
+9 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel4a.bb
+9 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel5.bb
+9 −0 recipes-bsp/firmware-nexus/firmware-qcom-pixel5a-5g.bb
+1 −1 recipes-bsp/firmware/firmware-ath6kl_git.bb
+1 −1 recipes-bsp/firmware/firmware-qcom-dragonboard820c_01700.1.bb
+0 −42 recipes-bsp/firmware/firmware-qcom-nexus7-2013.bb
+1 −1 recipes-bsp/firmware/firmware-qcom-rb5_20210331-v4.bb
+9 −0 recipes-bsp/packagegroups/packagegroup-firmware-ifc6410.bb
+140 −0 ...es-devtools/qc-image-unpacker/qc-image-unpacker/0001-Move-image-format-detection-to-separate-handlers.patch
+239 −0 recipes-devtools/qc-image-unpacker/qc-image-unpacker/0002-Add-support-for-bootldr-images.patch
+30 −0 recipes-devtools/qc-image-unpacker/qc-image-unpacker/0003-Do-not-let-dirname-tamper-with-inputFile.patch
+63 −0 recipes-devtools/qc-image-unpacker/qc-image-unpacker/0004-Fail-if-an-image-can-not-be-opened.patch
+28 −0 recipes-devtools/qc-image-unpacker/qc-image-unpacker_git.bb
+3 −3 recipes-kernel/linux-firmware/linux-firmware_%.bbappend
+13 −1 recipes-test/images/initramfs-firmware-image.bb
+35 −0 recipes-test/images/initramfs-firmware-nexus-image.bb
+6 −0 recipes-test/images/initramfs-test-image.bb
2 changes: 1 addition & 1 deletion sources/meta-yoe/conf/distro/yoe.inc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ INHERIT += "${@bb.utils.contains('BUILD_ARCH', 'ppc64le', '', 'uninative', d)}"
# Add /etc/build to every image
INHERIT += "image-buildinfo"

DISTRO_FEATURES:append = " largefile opengl multiarch wayland pam vulkan"
DISTRO_FEATURES:append = " largefile opengl multiarch wayland pam vulkan usrmerge"

#PREFERRED_PROVIDER_pkgconfig = "pkgconf"
#PREFERRED_PROVIDER_pkgconfig-native = "pkgconf-native"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_OVERLAY_FS=y
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://wireguard.cfg \
file://updater.cfg \
file://extra.cfg \
file://overlayfs.cfg \
"

KERNEL_CONFIG_FRAGMENTS += "${WORKDIR}/wireguard.cfg \
${WORKDIR}/updater.cfg \
${WORKDIR}/extra.cfg \
${WORKDIR}/overlayfs.cfg \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTERNATIVE_LINK_NAME[findfs] = "${sbindir}/findfs"
71 changes: 42 additions & 29 deletions sources/meta-yoe/recipes-support/updater/files/updater.installer
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ msg_splash() {
fi
}

rescue_shell() {
msg "$@"
msg "Something went wrong. Dropping you to a shell."
busybox --install -s
exec /bin/sh
}

start_splash() {
if [ -e /usr/bin/psplash ]; then
splash_enabled=1
Expand All @@ -76,13 +83,11 @@ restart() {
initialize() {
msg "============================================================"
msg "Updater version $VERSION"
mkdir -p /dev
mkdir -p /sys
mkdir -p /proc
mkdir -p /dev /sys /proc

mount -t devtmpfs none /dev
mount -t sysfs sysfs /sys
mount -t proc proc /proc
mount -t sysfs none /sys
mount -t proc none /proc

start_splash

Expand Down Expand Up @@ -274,7 +279,15 @@ mount_data() {
return 1
fi
fi
mkdir -p $mount/log
}

mount_overlay() {
mkdir -p /mnt/data/upper /mnt/data/work /mnt/data/persistent
mount -t overlay -o ro,lowerdir=/mnt/data/persistent:/mnt/rootfs,upperdir=/mnt/data/upper,workdir=/mnt/data/work overlay /mnt/rootfs
}

umount_overlay() {
umount $dir
}

umount_data() {
Expand All @@ -285,39 +298,35 @@ umount_data() {
}

mount_rootfs_sd() {
mkdir -p $ROOTFS_MOUNT_POINT
if ! mount $SD_ROOTFS_DEV $ROOTFS_MOUNT_POINT; then
mkdir -p /mnt/rootfs /mnt/data /mnt/boot
if ! mount $SD_ROOTFS_DEV /mnt/rootfs; then
fsck -y $SD_ROOTFS_DEV
if ! mount $SD_ROOTFS_DEV $ROOTFS_MOUNT_POINT; then
if ! mount $SD_ROOTFS_DEV /mnt/rootfs; then
msg_splash "Error mount SD rootfs, please fix ..."
speak "updater, S D file system error"
sleep 9999d
fi
fi

mkdir -p $SD_BOOT_MOUNT_IN_ROOTFS $SD_DATA_MOUNT_IN_ROOTFS
mount_boot $SD_BOOT_MOUNT $SD_BOOT_DEV
mount_data $SD_DATA_MOUNT $SD_DATA_DEV
mount --move $SD_BOOT_MOUNT $SD_BOOT_MOUNT_IN_ROOTFS
mount --move $SD_DATA_MOUNT $SD_DATA_MOUNT_IN_ROOTFS
mount_boot /mnt/boot $SD_BOOT_DEV
mount_data /mnt/data $SD_DATA_DEV
mount_overlay
}

mount_rootfs_emmc() {
mkdir -p $ROOTFS_MOUNT_POINT
if ! mount $EMMC_ROOTFS_DEV $ROOTFS_MOUNT_POINT; then
mkdir -p /mnt/rootfs /mnt/data /mnt/boot
if ! mount $EMMC_ROOTFS_DEV /mnt/rootfs; then
fsck -y $EMMC_ROOTFS_DEV
if ! mount $EMMC_ROOTFS_DEV $ROOTFS_MOUNT_POINT; then
if ! mount $EMMC_ROOTFS_DEV /mnt/rootfs; then
msg_splash "Error mount EMMC rootfs, please fix ..."
speak "updater, E M M C file system error"
sleep 9999d
fi
fi

mkdir -p $EMMC_BOOT_MOUNT_IN_ROOTFS $EMMC_DATA_MOUNT_IN_ROOTFS
mount_boot $EMMC_BOOT_MOUNT $EMMC_BOOT_DEV
mount_data $EMMC_DATA_MOUNT $EMMC_DATA_DEV
mount --move $EMMC_BOOT_MOUNT $EMMC_BOOT_MOUNT_IN_ROOTFS
mount --move $EMMC_DATA_MOUNT $EMMC_DATA_MOUNT_IN_ROOTFS
mount_boot /mnt/boot $EMMC_BOOT_DEV
mount_data /mnt/data $EMMC_DATA_DEV
mount_overlay
}

mount_rootfs_nand() {
Expand Down Expand Up @@ -474,16 +483,16 @@ update_from_sd() {
}

update_from_data() {
update_file=$(find_update_file $DATA_MOUNT_POINT)
update_file=$(find_update_file $DATA_MOUNT_POINT/upper/data)
if [ "$update_file" != "" ]; then
speak "update found on data partition"
msg_splash "Updating from Data partition: $update_file"
if ! process_update $DATA_MOUNT_POINT/$update_file; then
if ! process_update $DATA_MOUNT_POINT/upper/data/$update_file; then
msg_splash "Failed to process update from data partition"
speak "updater, failed to process update from data partition"
return 1
else
rm -rf $DATA_MOUNT_POINT/$update_file
rm -rf $DATA_MOUNT_POINT/upper/data/$update_file
msg_splash "Update from Data partition complete"
return 0
fi
Expand Down Expand Up @@ -525,14 +534,18 @@ boot() {
fi

msg_splash "Moving system mounts into rootfs..."
mount --move /dev $ROOTFS_MOUNT_POINT/dev
mount --move /proc $ROOTFS_MOUNT_POINT/proc
mount --move /sys $ROOTFS_MOUNT_POINT/sys
#mount --move /dev /mnt/rootfs/dev
#mount --move /proc /mnt/rootfs/proc
#mount --move /sys /mnt/rootfs/sys
umount /proc
umount /sys
umount /dev

msg_splash "switching to main filesystem"
msg_splash 50

exec switch_root -c /dev/console $ROOTFS_MOUNT_POINT /sbin/init 5
#exec switch_root -c /dev/console /mnt/rootfs /sbin/init
exec switch_root /mnt/rootfs /sbin/init
}

initialize
Expand Down
2 changes: 1 addition & 1 deletion sources/openembedded-core
Submodule openembedded-core updated 84 files
+1 −1 meta-selftest/conf/layer.conf
+1 −1 meta-skeleton/conf/layer.conf
+0 −2 meta/classes/create-spdx.bbclass
+4 −0 meta/classes/devshell.bbclass
+1 −0 meta/classes/go.bbclass
+5 −1 meta/classes/qemu.bbclass
+8 −0 meta/conf/bitbake.conf
+2 −1 meta/conf/distro/include/maintainers.inc
+1 −0 meta/conf/distro/include/tclibc-glibc.inc
+1 −2 meta/conf/distro/include/tclibc-musl.inc
+2 −2 meta/conf/layer.conf
+2 −1 meta/lib/oe/terminal.py
+1 −1 meta/lib/oeqa/sdk/cases/buildepoxy.py
+33 −0 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-Install-wpa_passphrase-when-not-disabled.patch
+5 −2 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
+1 −1 meta/recipes-core/busybox/busybox.inc
+1 −1 meta/recipes-core/glibc/glibc-version.inc
+4 −4 meta/recipes-core/musl/gcompat_git.bb
+75 −0 meta/recipes-core/musl/musl-locales_git.bb
+3 −3 meta/recipes-core/musl/musl_git.bb
+1 −1 meta/recipes-devtools/apt/apt_2.4.5.bb
+56 −0 meta/recipes-devtools/e2fsprogs/e2fsprogs/extents.patch
+1 −0 meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb
+31 −35 meta/recipes-devtools/gcc/gcc-11.3.inc
+0 −0 meta/recipes-devtools/gcc/gcc-cross-canadian_11.3.bb
+0 −0 meta/recipes-devtools/gcc/gcc-cross_11.3.bb
+0 −0 meta/recipes-devtools/gcc/gcc-crosssdk_11.3.bb
+0 −0 meta/recipes-devtools/gcc/gcc-runtime_11.3.bb
+0 −0 meta/recipes-devtools/gcc/gcc-sanitizers_11.3.bb
+0 −0 meta/recipes-devtools/gcc/gcc-source_11.3.bb
+0 −138 meta/recipes-devtools/gcc/gcc/0001-CVE-2021-35465.patch
+5 −5 meta/recipes-devtools/gcc/gcc/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch
+0 −39 meta/recipes-devtools/gcc/gcc/0002-CVE-2021-35465.patch
+13 −13 meta/recipes-devtools/gcc/gcc/0002-gcc-poison-system-directories.patch
+1 −1 meta/recipes-devtools/gcc/gcc/0003-64-bit-multilib-hack.patch
+0 −103 meta/recipes-devtools/gcc/gcc/0003-CVE-2021-35465.patch
+0 −304 meta/recipes-devtools/gcc/gcc/0004-CVE-2021-35465.patch
+6 −6 meta/recipes-devtools/gcc/gcc/0004-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch
+53 −0 meta/recipes-devtools/gcc/gcc/0005-cpp-honor-sysroot.patch
+57 −44 meta/recipes-devtools/gcc/gcc/0006-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch
+42 −0 meta/recipes-devtools/gcc/gcc/0007-gcc-Fix-argument-list-too-long-error.patch
+1 −1 meta/recipes-devtools/gcc/gcc/0008-libtool.patch
+0 −59 meta/recipes-devtools/gcc/gcc/0009-cpp-honor-sysroot.patch
+1 −1 meta/recipes-devtools/gcc/gcc/0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch
+7 −7 meta/recipes-devtools/gcc/gcc/0010-Use-the-multilib-config-files-from-B-instead-of-usin.patch
+1 −1 meta/recipes-devtools/gcc/gcc/0011-Avoid-using-libdir-from-.la-which-usually-points-to-.patch
+3 −3 meta/recipes-devtools/gcc/gcc/0012-Ensure-target-gcc-headers-can-be-included.patch
+0 −38 meta/recipes-devtools/gcc/gcc/0012-gcc-Fix-argument-list-too-long-error.patch
+1 −1 meta/recipes-devtools/gcc/gcc/0013-Don-t-search-host-directory-during-relink-if-inst_pr.patch
+4 −4 meta/recipes-devtools/gcc/gcc/0014-libcc1-fix-libcc1-s-install-path-and-rpath.patch
+47 −42 meta/recipes-devtools/gcc/gcc/0015-Makefile.in-Ensure-build-CPP-CPPFLAGS-is-used-for-bu.patch
+20 −19 meta/recipes-devtools/gcc/gcc/0016-If-CXXFLAGS-contains-something-unsupported-by-the-bu.patch
+7 −7 meta/recipes-devtools/gcc/gcc/0017-handle-sysroot-support-for-nativesdk-gcc.patch
+4 −4 meta/recipes-devtools/gcc/gcc/0018-Search-target-sysroot-gcc-version-specific-dirs-with.patch
+25 −0 meta/recipes-devtools/gcc/gcc/0019-nios2-Define-MUSL_DYNAMIC_LINKER.patch
+8 −2 meta/recipes-devtools/gcc/gcc/0020-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch
+1 −1 meta/recipes-devtools/gcc/gcc/0021-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch
+1 −1 meta/recipes-devtools/gcc/gcc/0022-sync-gcc-stddef.h-with-musl.patch
+2 −2 meta/recipes-devtools/gcc/gcc/0023-Re-introduce-spe-commandline-options.patch
+3 −3 meta/recipes-devtools/gcc/gcc/0024-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch
+2 −2 meta/recipes-devtools/gcc/gcc/0025-gentypes-genmodes-Do-not-use-__LINE__-for-maintainin.patch
+1 −1 meta/recipes-devtools/gcc/gcc/0026-mingw32-Enable-operation_not_supported.patch
+5 −5 meta/recipes-devtools/gcc/gcc/0027-libatomic-Do-not-enforce-march-on-aarch64.patch
+0 −31 meta/recipes-devtools/gcc/gcc/0027-nios2-Define-MUSL_DYNAMIC_LINKER.patch
+15 −9 meta/recipes-devtools/gcc/gcc/0028-debug-101473-apply-debug-prefix-maps-before-checksum.patch
+4 −6 meta/recipes-devtools/gcc/gcc/0029-Fix-install-path-of-linux64.h.patch
+0 −23 meta/recipes-devtools/gcc/gcc/0042-Fix-thread-stack-size-init.patch
+0 −0 meta/recipes-devtools/gcc/gcc_11.3.bb
+0 −0 meta/recipes-devtools/gcc/libgcc-initial_11.3.bb
+0 −0 meta/recipes-devtools/gcc/libgcc_11.3.bb
+0 −0 meta/recipes-devtools/gcc/libgfortran_11.3.bb
+1 −1 meta/recipes-devtools/python/python3-hypothesis_6.44.0.bb
+3 −0 meta/recipes-devtools/python/python3_3.10.4.bb
+0 −71 meta/recipes-devtools/subversion/subversion/disable_macos.patch
+1 −2 meta/recipes-devtools/subversion/subversion_1.14.2.bb
+1 −2 meta/recipes-graphics/xorg-app/mkfontscale_1.2.2.bb
+1 −2 meta/recipes-graphics/xorg-app/xdpyinfo_1.3.3.bb
+2 −1 meta/recipes-graphics/xorg-app/xorg-app-common.inc
+1 −2 meta/recipes-graphics/xorg-app/xrandr_1.5.1.bb
+2 −0 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.1.bb
+2 −0 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.1.bb
+6 −1 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.1.bb
+19 −0 scripts/git-intercept/git
+1 −1 scripts/lib/wic/plugins/imager/direct.py