Date
1 - 2 of 2
[isar-cip-core][PATCH v4 6/8] add linux 6.1 mainline kernel
Felix Moessbauer <felix.moessbauer@...>
This patch adds the vanilla 6.1 linux kernel for testing and for boards
which need a more recent kernel than what CIP can offer.
The kernel can be selected from the menu, similar to the other kernels.
As defconfig, we always use the kernels internal configuration, because
there is no cip-kernel-config for that version yet. In addition, the
squashfs knob is selected to support the swupdate pattern without any
modifications.
Signed-off-by: Felix Moessbauer <felix.moessbauer@...>
---
Kconfig | 4 ++++
kas/opt/6.1-mainline.yml | 18 ++++++++++++++++++
recipes-kernel/linux/files/squashfs.cfg | 1 +
recipes-kernel/linux/linux-mainline_6.1.bb | 18 ++++++++++++++++++
4 files changed, 41 insertions(+)
create mode 100644 kas/opt/6.1-mainline.yml
create mode 100644 recipes-kernel/linux/files/squashfs.cfg
create mode 100644 recipes-kernel/linux/linux-mainline_6.1.bb
diff --git a/Kconfig b/Kconfig
index cd24ce2..a932bbe 100644
--- a/Kconfig
+++ b/Kconfig
@@ -97,6 +97,9 @@ config KERNEL_4_19
config KERNEL_5_10
bool "Kernel 5.10.x-cip"
+config KERNEL_6_1_MAINLINE
+ bool "Kernel 6.1.x-mainline"
+
endchoice
config KAS_INCLUDE_KERNEL
@@ -104,6 +107,7 @@ config KAS_INCLUDE_KERNEL
default "kas/opt/4.4.yml" if KERNEL_4_4
default "kas/opt/4.19.yml" if KERNEL_4_19
default "kas/opt/5.10.yml" if KERNEL_5_10
+ default "kas/opt/6.1-mainline.yml" if KERNEL_6_1_MAINLINE
config KERNEL_RT
bool "Real-time CIP kernel"
diff --git a/kas/opt/6.1-mainline.yml b/kas/opt/6.1-mainline.yml
new file mode 100644
index 0000000..84d12b0
--- /dev/null
+++ b/kas/opt/6.1-mainline.yml
@@ -0,0 +1,18 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2023
+#
+# Authors:
+# Felix Moessbauer <felix.moessbauer@...>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+ version: 12
+
+local_conf_header:
+ kernel-version: |
+ KERNEL_DEFCONFIG = ""
+ KERNEL_NAME = "mainline"
diff --git a/recipes-kernel/linux/files/squashfs.cfg b/recipes-kernel/linux/files/squashfs.cfg
new file mode 100644
index 0000000..7a89d00
--- /dev/null
+++ b/recipes-kernel/linux/files/squashfs.cfg
@@ -0,0 +1 @@
+CONFIG_SQUASHFS=y
diff --git a/recipes-kernel/linux/linux-mainline_6.1.bb b/recipes-kernel/linux/linux-mainline_6.1.bb
new file mode 100644
index 0000000..8a879a0
--- /dev/null
+++ b/recipes-kernel/linux/linux-mainline_6.1.bb
@@ -0,0 +1,18 @@
+# Example recipe for building the mainline kernel
+#
+# This software is a part of ISAR.
+# Copyright (c) Siemens AG, 2018-2020
+#
+# SPDX-License-Identifier: MIT
+
+require recipes-kernel/linux/linux-custom.inc
+
+ARCHIVE_VERSION = "${@ d.getVar('PV')[:-2] if d.getVar('PV').endswith('.0') else d.getVar('PV') }"
+
+SRC_URI += " \
+ https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${ARCHIVE_VERSION}.tar.xz \
+ file://squashfs.cfg"
+
+SRC_URI[sha256sum] = "2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
+
+S = "${WORKDIR}/linux-${ARCHIVE_VERSION}"
--
2.34.1
which need a more recent kernel than what CIP can offer.
The kernel can be selected from the menu, similar to the other kernels.
As defconfig, we always use the kernels internal configuration, because
there is no cip-kernel-config for that version yet. In addition, the
squashfs knob is selected to support the swupdate pattern without any
modifications.
Signed-off-by: Felix Moessbauer <felix.moessbauer@...>
---
Kconfig | 4 ++++
kas/opt/6.1-mainline.yml | 18 ++++++++++++++++++
recipes-kernel/linux/files/squashfs.cfg | 1 +
recipes-kernel/linux/linux-mainline_6.1.bb | 18 ++++++++++++++++++
4 files changed, 41 insertions(+)
create mode 100644 kas/opt/6.1-mainline.yml
create mode 100644 recipes-kernel/linux/files/squashfs.cfg
create mode 100644 recipes-kernel/linux/linux-mainline_6.1.bb
diff --git a/Kconfig b/Kconfig
index cd24ce2..a932bbe 100644
--- a/Kconfig
+++ b/Kconfig
@@ -97,6 +97,9 @@ config KERNEL_4_19
config KERNEL_5_10
bool "Kernel 5.10.x-cip"
+config KERNEL_6_1_MAINLINE
+ bool "Kernel 6.1.x-mainline"
+
endchoice
config KAS_INCLUDE_KERNEL
@@ -104,6 +107,7 @@ config KAS_INCLUDE_KERNEL
default "kas/opt/4.4.yml" if KERNEL_4_4
default "kas/opt/4.19.yml" if KERNEL_4_19
default "kas/opt/5.10.yml" if KERNEL_5_10
+ default "kas/opt/6.1-mainline.yml" if KERNEL_6_1_MAINLINE
config KERNEL_RT
bool "Real-time CIP kernel"
diff --git a/kas/opt/6.1-mainline.yml b/kas/opt/6.1-mainline.yml
new file mode 100644
index 0000000..84d12b0
--- /dev/null
+++ b/kas/opt/6.1-mainline.yml
@@ -0,0 +1,18 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2023
+#
+# Authors:
+# Felix Moessbauer <felix.moessbauer@...>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+ version: 12
+
+local_conf_header:
+ kernel-version: |
+ KERNEL_DEFCONFIG = ""
+ KERNEL_NAME = "mainline"
diff --git a/recipes-kernel/linux/files/squashfs.cfg b/recipes-kernel/linux/files/squashfs.cfg
new file mode 100644
index 0000000..7a89d00
--- /dev/null
+++ b/recipes-kernel/linux/files/squashfs.cfg
@@ -0,0 +1 @@
+CONFIG_SQUASHFS=y
diff --git a/recipes-kernel/linux/linux-mainline_6.1.bb b/recipes-kernel/linux/linux-mainline_6.1.bb
new file mode 100644
index 0000000..8a879a0
--- /dev/null
+++ b/recipes-kernel/linux/linux-mainline_6.1.bb
@@ -0,0 +1,18 @@
+# Example recipe for building the mainline kernel
+#
+# This software is a part of ISAR.
+# Copyright (c) Siemens AG, 2018-2020
+#
+# SPDX-License-Identifier: MIT
+
+require recipes-kernel/linux/linux-custom.inc
+
+ARCHIVE_VERSION = "${@ d.getVar('PV')[:-2] if d.getVar('PV').endswith('.0') else d.getVar('PV') }"
+
+SRC_URI += " \
+ https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${ARCHIVE_VERSION}.tar.xz \
+ file://squashfs.cfg"
+
+SRC_URI[sha256sum] = "2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
+
+S = "${WORKDIR}/linux-${ARCHIVE_VERSION}"
--
2.34.1
Jan Kiszka
On 03.03.23 13:48, Felix Moessbauer wrote:
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
This patch adds the vanilla 6.1 linux kernel for testing and for boardsThis is still the outdated 6.1 base releasing. Fixing on merge.
which need a more recent kernel than what CIP can offer.
The kernel can be selected from the menu, similar to the other kernels.
As defconfig, we always use the kernels internal configuration, because
there is no cip-kernel-config for that version yet. In addition, the
squashfs knob is selected to support the swupdate pattern without any
modifications.
Signed-off-by: Felix Moessbauer <felix.moessbauer@...>
---
Kconfig | 4 ++++
kas/opt/6.1-mainline.yml | 18 ++++++++++++++++++
recipes-kernel/linux/files/squashfs.cfg | 1 +
recipes-kernel/linux/linux-mainline_6.1.bb | 18 ++++++++++++++++++
4 files changed, 41 insertions(+)
create mode 100644 kas/opt/6.1-mainline.yml
create mode 100644 recipes-kernel/linux/files/squashfs.cfg
create mode 100644 recipes-kernel/linux/linux-mainline_6.1.bb
diff --git a/Kconfig b/Kconfig
index cd24ce2..a932bbe 100644
--- a/Kconfig
+++ b/Kconfig
@@ -97,6 +97,9 @@ config KERNEL_4_19
config KERNEL_5_10
bool "Kernel 5.10.x-cip"
+config KERNEL_6_1_MAINLINE
+ bool "Kernel 6.1.x-mainline"
+
endchoice
config KAS_INCLUDE_KERNEL
@@ -104,6 +107,7 @@ config KAS_INCLUDE_KERNEL
default "kas/opt/4.4.yml" if KERNEL_4_4
default "kas/opt/4.19.yml" if KERNEL_4_19
default "kas/opt/5.10.yml" if KERNEL_5_10
+ default "kas/opt/6.1-mainline.yml" if KERNEL_6_1_MAINLINE
config KERNEL_RT
bool "Real-time CIP kernel"
diff --git a/kas/opt/6.1-mainline.yml b/kas/opt/6.1-mainline.yml
new file mode 100644
index 0000000..84d12b0
--- /dev/null
+++ b/kas/opt/6.1-mainline.yml
@@ -0,0 +1,18 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2023
+#
+# Authors:
+# Felix Moessbauer <felix.moessbauer@...>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+ version: 12
+
+local_conf_header:
+ kernel-version: |
+ KERNEL_DEFCONFIG = ""
+ KERNEL_NAME = "mainline"
diff --git a/recipes-kernel/linux/files/squashfs.cfg b/recipes-kernel/linux/files/squashfs.cfg
new file mode 100644
index 0000000..7a89d00
--- /dev/null
+++ b/recipes-kernel/linux/files/squashfs.cfg
@@ -0,0 +1 @@
+CONFIG_SQUASHFS=y
diff --git a/recipes-kernel/linux/linux-mainline_6.1.bb b/recipes-kernel/linux/linux-mainline_6.1.bb
new file mode 100644
index 0000000..8a879a0
--- /dev/null
+++ b/recipes-kernel/linux/linux-mainline_6.1.bb
@@ -0,0 +1,18 @@
+# Example recipe for building the mainline kernel
+#
+# This software is a part of ISAR.
+# Copyright (c) Siemens AG, 2018-2020
+#
+# SPDX-License-Identifier: MIT
+
+require recipes-kernel/linux/linux-custom.inc
+
+ARCHIVE_VERSION = "${@ d.getVar('PV')[:-2] if d.getVar('PV').endswith('.0') else d.getVar('PV') }"
+
+SRC_URI += " \
+ https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${ARCHIVE_VERSION}.tar.xz \
+ file://squashfs.cfg"
+
+SRC_URI[sha256sum] = "2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
+
+S = "${WORKDIR}/linux-${ARCHIVE_VERSION}"
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux