Skip to contentSkip to conversation

linux-ti-staging: Add v6.12 recipe

PATCH New Ryan Eatmon 1 participant 4 messages Oct 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/4 linux-ti-staging: Add v6.12 recipe

Adding needed recipes for initial testing and development of the 6.12 kernel for the next LTS.

---
v2: Added --find-copies-harder option.

 .../linux/linux-ti-staging-6.12/defconfig              |  2 ++
 .../linux/linux-ti-staging-6.12/k3/defconfig           |  2 ++
 .../omapl138/defconfig                                 |  0
 .../linux/linux-ti-staging-6.12/ti33x/defconfig        |  2 ++
 .../linux/linux-ti-staging-6.12/ti43x/defconfig        |  2 ++
 .../linux/linux-ti-staging-rt-6.12/defconfig           |  2 ++
 .../linux/linux-ti-staging-rt-6.12/k3/defconfig        |  2 ++
 .../omapl138/defconfig                                 |  1 +
 .../linux/linux-ti-staging-rt-6.12/ti33x/defconfig     |  2 ++
 .../linux/linux-ti-staging-rt-6.12/ti43x/defconfig     |  2 ++
 ...i-staging-rt_6.6.bb => linux-ti-staging-rt_6.12.bb} | 10 ++--------
 .../linux/linux-ti-staging-systest-6.12/defconfig      |  2 ++
 .../linux/linux-ti-staging-systest-6.12/k3/defconfig   |  2 ++
 .../omapl138/defconfig                                 |  0
 .../linux/linux-ti-staging-systest_6.12.bb             |  7 +++++++
 ...inux-ti-staging_6.1.bb => linux-ti-staging_6.12.bb} | 10 ++++++----
 meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc         |  4 ++++
 17 files changed, 40 insertions(+), 12 deletions(-)
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig
 copy meta-ti-bsp/recipes-kernel/linux/{linux-ti-staging-6.1 => linux-ti-staging-6.12}/omapl138/defconfig (100%)
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig
 copy meta-ti-bsp/recipes-kernel/linux/{linux-ti-staging-6.6 => linux-ti-staging-rt-6.12}/omapl138/defconfig (70%)
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig
 copy meta-ti-bsp/recipes-kernel/linux/{linux-ti-staging-rt_6.6.bb => linux-ti-staging-rt_6.12.bb} (55%)
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.12/defconfig
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.12/k3/defconfig
 copy meta-ti-bsp/recipes-kernel/linux/{linux-ti-staging-6.1 => linux-ti-staging-systest-6.12}/omapl138/defconfig (100%)
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.12.bb
 copy meta-ti-bsp/recipes-kernel/linux/{linux-ti-staging_6.1.bb => linux-ti-staging_6.12.bb} (87%)
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig new file +2 -0
new file mode 100644
index 00000000..9d579e41
@@ -0,0 +1,2 @@
+use-kernel-config=multi_v7_defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig new file +2 -0
new file mode 100644
index 00000000..fd07b34e
@@ -0,0 +1,2 @@
+use-kernel-config=defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/omapl138/defconfig renamed from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/omapl138/defconfig +0 -0
similarity index 100%
copy from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/omapl138/defconfig
copy to meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/omapl138/defconfig
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig new file +2 -0
new file mode 100644
index 00000000..9d579e41
@@ -0,0 +1,2 @@
+use-kernel-config=multi_v7_defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig new file +2 -0
new file mode 100644
index 00000000..9d579e41
@@ -0,0 +1,2 @@
+use-kernel-config=multi_v7_defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig new file +2 -0
new file mode 100644
index 00000000..9d579e41
@@ -0,0 +1,2 @@
+use-kernel-config=multi_v7_defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig new file +2 -0
new file mode 100644
index 00000000..fd07b34e
@@ -0,0 +1,2 @@
+use-kernel-config=defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/omapl138/defconfig renamed from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.6/omapl138/defconfig +1 -0
similarity index 70%
copy from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.6/omapl138/defconfig
copy to meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/omapl138/defconfig
index 099493af..3d890b6e 100644
@@ -1 +1,2 @@
 use-kernel-config=davinci_all_defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig new file +2 -0
new file mode 100644
index 00000000..9d579e41
@@ -0,0 +1,2 @@
+use-kernel-config=multi_v7_defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig new file +2 -0
new file mode 100644
index 00000000..9d579e41
@@ -0,0 +1,2 @@
+use-kernel-config=multi_v7_defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.12.bb renamed from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb +2 -8
similarity index 55%
copy from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb
copy to meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.12.bb
index c73a1880..9e5c4ee4 100644
@@ -1,15 +1,9 @@
-require linux-ti-staging_6.6.bb
+require linux-ti-staging_6.12.bb
 
 KERNEL_LOCALVERSION:append = "-rt"
 
 # Look in the generic major.minor directory for files
 # This will have priority over generic non-rt path
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:"
-
-BRANCH = "ti-rt-linux-6.6.y"
-
-SRCREV = "d05688f353d10af170286db56535443184202eab"
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.12:"
 
 include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''}
-
-PV = "6.6.44+git"
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.12/defconfig new file +2 -0
new file mode 100644
index 00000000..9d579e41
@@ -0,0 +1,2 @@
+use-kernel-config=multi_v7_defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.12/k3/defconfig new file +2 -0
new file mode 100644
index 00000000..fd07b34e
@@ -0,0 +1,2 @@
+use-kernel-config=defconfig
+config-fragment=
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.12/omapl138/defconfig renamed from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/omapl138/defconfig +0 -0
similarity index 100%
copy from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/omapl138/defconfig
copy to meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.12/omapl138/defconfig
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.12.bb new file +7 -0
new file mode 100644
index 00000000..8ce23368
@@ -0,0 +1,7 @@
+require linux-ti-staging_6.12.bb
+
+DEFAULT_PREFERENCE = "-1"
+
+# Look in the generic major.minor directory for files
+# This will have priority over generic non-rt path
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.12:"
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb renamed from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +6 -4
similarity index 87%
copy from meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
copy to meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb
index 840233fd..f6f8732b 100644
@@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 inherit ti-secdev
 inherit kernel
 
+DEFAULT_PREFERENCE = "-1"
+
 require recipes-kernel/linux/setup-defconfig.inc
 require recipes-kernel/linux/ti-kernel.inc
 include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}
@@ -14,17 +16,17 @@ include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else '
 DEPENDS += "gmp-native libmpc-native"
 
 # Look in the generic major.minor directory for files
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.12:"
 
 KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
 		      ${EXTRA_DTC_ARGS}"
 
 S = "${WORKDIR}/git"
 
-BRANCH ?= "ti-linux-6.1.y"
+BRANCH ?= "ti-linux-6.12.y"
 
-SRCREV ?= "da449d8c3cf600b0346a6696e1e3cc431422e765"
-PV = "6.1.105+git"
+SRCREV ?= "9852d85ec9d492ebef56dc5f229416c925758edc"
+PV = "6.12-rc1+git"
 
 KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git"
 KERNEL_GIT_PROTOCOL = "https"
meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +4 -0
index 4bcbc27e..09cfdb12 100644
@@ -20,6 +20,10 @@ KERNEL_PATCHES:bsp-mainline = " \
     file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \
 "
 
+KERNEL_PATCHES:bsp-ti-6_12 = " \
+    file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \
+"
+
 KERNEL_PATCHES:bsp-ti-6_6 = " \
     file://0001-vt-conmakehash-improve-reproducibility.patch \
 "
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 2/4 u-boot-ti-staging: Add v2024.10 recipe

Adding needed recipe for initial testing and development of the 2024.10 version of u-boot for the next LTS.

---
v2: Added --find-copies-harder option.

 ...t-ti-staging_2023.04.bb => u-boot-ti-staging_2024.10.bb} | 6 ++++--
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc                | 3 +++
 2 files changed, 7 insertions(+), 2 deletions(-)
 copy meta-ti-bsp/recipes-bsp/u-boot/{u-boot-ti-staging_2023.04.bb => u-boot-ti-staging_2024.10.bb} (52%)
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.10.bb renamed from meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb +4 -2
similarity index 52%
copy from meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb
copy to meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.10.bb
index b92a0a93..1ab94fcc 100644
@@ -1,9 +1,11 @@
 require u-boot-ti.inc
 
+DEFAULT_PREFERENCE = "-1"
+
 include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
 
 PR = "r0"
 
-BRANCH = "ti-u-boot-2023.04"
+BRANCH = "ti-u-boot-2024.10"
 
-SRCREV = "7044504f44002fe46b4598420852033d335d56c7"
+SRCREV = "c97ada2dc66934ee00a7a03d9ed078bdfb7b4039"
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +3 -0
index e1f1972e..97237d66 100644
@@ -26,6 +26,9 @@ SRC_URI = "${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};branch=${BRANCH}"
 
 PV:append = "+git"
 
+# u-boot builds a tool mkeficapsule and it needs this
+DEPENDS += "gnutls-native"
+
 # u-boot needs devtree compiler to parse dts files
 DEPENDS += "dtc-native bc-native flex-native bison-native python3-setuptools-native"
 
Signature · 1 line
2.17.1
#2 lore raw

PATCH v2 3/4 ti-bsp: Add ti-6_12

In reply to Ryan Eatmon

Add new BSP for the 6.12 kernel and u-boot 2024.10 versions.

---
v2: Fix copy/paste typo in new ti-6_12 section.

 meta-ti-bsp/conf/machine/include/ti-bsp.inc | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
meta-ti-bsp/conf/machine/include/ti-bsp.inc +14 -1
index 33611689..4cb2aab4 100644
@@ -35,6 +35,19 @@ BSP_BOOTLOADER_VERSION:bsp-next = "%"
 # in next, usually present in TI staging or derivative like BB.org
 MACHINE_FEATURES:remove:bsp-next = "gpu"
 
+# ==========
+# ti-6_12
+# TI staging kernel 6.12, u-boot 2024.10
+# ==========
+BSP_KERNEL_PROVIDER:bsp-ti-6_12 = "linux-ti-staging"
+BSP_KERNEL_VERSION:bsp-ti-6_12 = "6.12%"
+BSP_BOOTLOADER_PROVIDER:bsp-ti-6_12 = "u-boot-ti-staging"
+BSP_BOOTLOADER_VERSION:bsp-ti-6_12 = "2024.10%"
+
+# GPU support requires out-of-tree SGX and Rogue drivers not available
+# in 6.12 yet
+MACHINE_FEATURES:remove:bsp-ti-6_12 = "gpu"
+
 # ==========
 # ti-6_6
 # TI staging kernel 6.6, u-boot 2024.04
@@ -42,7 +55,7 @@ MACHINE_FEATURES:remove:bsp-next = "gpu"
 BSP_KERNEL_PROVIDER:bsp-ti-6_6 = "linux-ti-staging"
 BSP_KERNEL_VERSION:bsp-ti-6_6 = "6.6%"
 BSP_BOOTLOADER_PROVIDER:bsp-ti-6_6 = "u-boot-ti-staging"
-BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024%"
+BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024.04%"
 
 # Only Rogue is enabled so far, SGX falls back to SW rendering
 BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver"
Signature · 1 line
2.17.1
#3 lore raw

PATCH v2 4/4 debugss-module-drv: Add patch for kernel 6.11 change

In reply to Ryan Eatmon

There was a change to the return value for a function pointer in the kernel v6.11. This patch adapts the module to the kernel change.

---
 .../dsptop/debugss-module-drv_git.bb          |  5 +-
 ...kernel-6.11-changed-return-value-for.patch | 58 +++++++++++++++++++
 2 files changed, 62 insertions(+), 1 deletion(-)
 create mode 100644 meta-ti-extras/recipes-bsp/dsptop/files/0002-debugss_kmodule-kernel-6.11-changed-return-value-for.patch
meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb +4 -1
index 81e544f7..74ceed9d 100644
@@ -18,4 +18,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 include dsptop.inc
 
-SRC_URI += "file://0001-debugss_kmodule-Add-include-for-mod_devicetable.h.patch"
+SRC_URI += "\
+    file://0001-debugss_kmodule-Add-include-for-mod_devicetable.h.patch \
+    file://0002-debugss_kmodule-kernel-6.11-changed-return-value-for.patch \
+"
meta-ti-extras/recipes-bsp/dsptop/files/0002-debugss_kmodule-kernel-6.11-changed-return-value-for.patch new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.17.1