Skip to content

arm-autonomy: Add support for building/installing an alternate kernel

Diego Sueiro yocto-meta-arm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8arm-autonomy/linux-linaro-arm-rt: add linux-RT patch for xen dynamic eventsmeta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-rt-5.4/0001-xen-use-handle_fasteoi_irq-to-handle-xen-dynamic-eve.patch meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-rt_5.4.bbappend+85 -00 replies
2/8arm-autonomy/linux-linaro-arm-rt: Add preempt-rt-extras.scc KERNEL_FEATUREmeta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/arm-autonomy-kmeta-extra/features/arm-autonomy/preempt-rt-extras.cfg meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/arm-autonomy-kmeta-extra/features/arm-autonomy/preempt-rt-extras.scc meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-rt_5.4.bbappend+12 -00 replies
3/8arm-autonomy/classes: Introduce alternate-kernel.bbclassmeta-arm-autonomy/classes/alternate-kernel.bbclass+26 -00 replies
4/8arm-autonomy/arm-autonomy-host-image-minimal: Build/Install alternate kernelmeta-arm-autonomy/recipes-core/images/arm-autonomy-host-image-minimal.bb+4 -00 replies
5/8arm-autonomy/n1sdp: Add support for building/installing alternate kernelmeta-arm-autonomy/dynamic-layers/meta-arm-bsp/conf/machine/n1sdp-extra-settings.inc+22 -00 replies
6/8arm-autonomy/n1sdp: Add GRUB config when including alternate kernelmeta-arm-autonomy/dynamic-layers/meta-arm-bsp/conf/machine/n1sdp-extra-settings.inc meta-arm-autonomy/dynamic-layers/meta-arm-bsp/wic/arm-autonomy-n1sdp-rt-grub.cfg+49 -10 replies
7/8arm-autonomy/init: Change execution order between modutils.sh and checkroot.shmeta-arm-autonomy/recipes-core/initscripts/initscripts_1.0.bbappend meta-arm-autonomy/recipes-kernel/modutils-initscripts/modutils-initscripts.bbappend+7 -00 replies
8/8arm-autonomy/modutils-initscripts: Fix modules.dep updatemeta-arm-autonomy/recipes-kernel/modutils-initscripts/modutils-initscripts.bbappend meta-arm-autonomy/recipes-kernel/modutils-initscripts/modutils-initscripts/fix-modules-dep-creation.patch+37 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] arm-autonomy: Add support for building/installing an alternate kernel

This patch series introduces the support for building and installing an alternate kernel image and modules in an image. The alternate kernel inclusion is controlled via the 'alternate-kernel' DISTRO_FEATURE.

The alternate-kernel.bbclass is to be inherited by image recipes and requires the PREFERRED_PROVIDER_alternate/kernel and KERNEL_PACKAGE_NAME_pn-atlkernel-recipe to be set. The class will also install the kernel-modules package for both virtual/kernel and alternate/kernel.

Also, a patch is introduced in linux-linaro-arm-rt recipe to fix xen behavior in kernels with PREEMPT_RT. The preempt-rt-extras.scc KERNEL_FEATURE was added to linux-linaro-arm-rt in order to accomodate extra kernel configs for arm-autonomy based projects.

For N1SDP machine, all the required settings are done to include the alternate-kernel as well as the GRUB config file to boot it.

The last two patches are fixing an erroneous behavior of the modutils.sh initscript where the depmod command fails to run when the '/' is firstly mounted as ro. A proper investigation will be done with oe-core only, and if it is reproduced with a qemu machine, the fix will be sent to the upstream project.

Diego Sueiro (8):
arm-autonomy/linux-linaro-arm-rt: add linux-RT patch for xen dynamic
events
arm-autonomy/linux-linaro-arm-rt: Add preempt-rt-extras.scc
KERNEL_FEATURE
arm-autonomy/classes: Introduce alternate-kernel.bbclass arm-autonomy/arm-autonomy-host-image-minimal: Build/Install alternate
kernel
arm-autonomy/n1sdp: Add support for building/installing alternate
kernel
arm-autonomy/n1sdp: Add GRUB config when including alternate kernel arm-autonomy/init: Change execution order between modutils.sh and
checkroot.sh
arm-autonomy/modutils-initscripts: Fix modules.dep update

 .../classes/alternate-kernel.bbclass          | 26 ++++++
 .../conf/machine/n1sdp-extra-settings.inc     | 44 +++++++++-
 .../arm-autonomy/preempt-rt-extras.cfg        |  7 ++
 .../arm-autonomy/preempt-rt-extras.scc        |  3 +
 ...asteoi_irq-to-handle-xen-dynamic-eve.patch | 80 +++++++++++++++++++
 .../linux/linux-linaro-arm-rt_5.4.bbappend    |  7 ++
 .../wic/arm-autonomy-n1sdp-rt-grub.cfg        | 28 +++++++
 .../images/arm-autonomy-host-image-minimal.bb |  4 +
 .../initscripts/initscripts_1.0.bbappend      |  5 ++
 .../modutils-initscripts.bbappend             |  6 ++
 .../fix-modules-dep-creation.patch            | 33 ++++++++
 11 files changed, 242 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm-autonomy/classes/alternate-kernel.bbclass
 create mode 100644 meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/arm-autonomy-kmeta-extra/features/arm-autonomy/preempt-rt-extras.cfg
 create mode 100644 meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/arm-autonomy-kmeta-extra/features/arm-autonomy/preempt-rt-extras.scc
 create mode 100644 meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-rt-5.4/0001-xen-use-handle_fasteoi_irq-to-handle-xen-dynamic-eve.patch
 create mode 100644 meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-rt_5.4.bbappend
 create mode 100644 meta-arm-autonomy/dynamic-layers/meta-arm-bsp/wic/arm-autonomy-n1sdp-rt-grub.cfg
 create mode 100644 meta-arm-autonomy/recipes-core/initscripts/initscripts_1.0.bbappend
 create mode 100644 meta-arm-autonomy/recipes-kernel/modutils-initscripts/modutils-initscripts.bbappend
 create mode 100644 meta-arm-autonomy/recipes-kernel/modutils-initscripts/modutils-initscripts/fix-modules-dep-creation.patch
Signature · 1 line
2.17.1