From eb68b63b7ef424ac2cc69eb07a581941b0a2d7a7 Mon Sep 17 00:00:00 2001 From: AshwinUjjwal Date: Tue, 17 Feb 2026 12:45:30 +0530 Subject: [PATCH 1/3] add linux-nilrt-fitimage.bb for ARM Create a NILRT-specific linux-nilrt-fitimage.bb recipe based on upstream linux-yocto-fitimage.bb. This lays the foundation for building FIT images for ARM safemode and runmode images. Signed-off-by: AshwinUjjwal --- conf/machine/xilinx-zynq.conf | 4 ++-- recipes-kernel/linux/linux-nilrt-fitimage.bb | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 recipes-kernel/linux/linux-nilrt-fitimage.bb diff --git a/conf/machine/xilinx-zynq.conf b/conf/machine/xilinx-zynq.conf index 0e5cd8d37..82533b37a 100644 --- a/conf/machine/xilinx-zynq.conf +++ b/conf/machine/xilinx-zynq.conf @@ -5,8 +5,8 @@ TARGET_ARCH = "arm" DEFAULTTUNE = "cortexa9-vfpv3" -KERNEL_CLASSES += "kernel-fitimage" -KERNEL_IMAGETYPE = "fitImage" +KERNEL_CLASSES += "kernel-fit-image" +KERNEL_IMAGETYPE = "bzImage" KERNEL_FEATURES:remove = "cfg/fs/vfat.scc" diff --git a/recipes-kernel/linux/linux-nilrt-fitimage.bb b/recipes-kernel/linux/linux-nilrt-fitimage.bb new file mode 100644 index 000000000..3279dc236 --- /dev/null +++ b/recipes-kernel/linux/linux-nilrt-fitimage.bb @@ -0,0 +1,13 @@ +SUMMARY = "The Linux kernel as a FIT image (optionally with initramfs) for NILRT" +SECTION = "kernel" + +# If an initramfs is included in the FIT image more licenses apply. +# But also the kernel uses more than one license (see Documentation/process/license-rules.rst) +LICENSE = "GPL-2.0-with-Linux-syscall-note" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note;md5=0bad96c422c41c3a94009dcfe1bff992" + +inherit linux-kernel-base kernel-fit-image + +# Set the version of this recipe to the version of the included kernel +# (without taking the long way around via PV) +PKGV = "${@get_kernelversion_file("${STAGING_KERNEL_BUILDDIR}")}" \ No newline at end of file From a86adc26e1328a5610fefa90e7d016b191205f95 Mon Sep 17 00:00:00 2001 From: AshwinUjjwal Date: Mon, 2 Mar 2026 12:36:02 +0530 Subject: [PATCH 2/3] nilrt-runmode-rootfs: Enable FIT image support for ARM runmode Enable FIT image generation and deployment for Xilinx Zynq ARM platform. Add kernel-fit-extra-artifacts to KERNEL_CLASSES and set KERNEL_IMAGETYPE to zImage in xilinx-zynq.conf to ensure required kernel artifacts are generated. Install linux-nilrt-fitimage package into the runmode rootfs so the FIT image is available during image creation. Add bootimg_fixup_arm() to rename the generated zImage to linux_runmode.itb in the rootfs, matching NILRT bootloader expectations. This ensures the correct FIT image is present for ARM runmode boot. Signed-off-by: AshwinUjjwal --- conf/machine/xilinx-zynq.conf | 4 ++-- recipes-core/images/nilrt-runmode-rootfs.bb | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/conf/machine/xilinx-zynq.conf b/conf/machine/xilinx-zynq.conf index 82533b37a..d1de26a15 100644 --- a/conf/machine/xilinx-zynq.conf +++ b/conf/machine/xilinx-zynq.conf @@ -5,8 +5,8 @@ TARGET_ARCH = "arm" DEFAULTTUNE = "cortexa9-vfpv3" -KERNEL_CLASSES += "kernel-fit-image" -KERNEL_IMAGETYPE = "bzImage" +KERNEL_CLASSES += "kernel-fit-extra-artifacts" +KERNEL_IMAGETYPE = "zImage" KERNEL_FEATURES:remove = "cfg/fs/vfat.scc" diff --git a/recipes-core/images/nilrt-runmode-rootfs.bb b/recipes-core/images/nilrt-runmode-rootfs.bb index a78030576..a0938ff93 100644 --- a/recipes-core/images/nilrt-runmode-rootfs.bb +++ b/recipes-core/images/nilrt-runmode-rootfs.bb @@ -14,6 +14,9 @@ IMAGE_INSTALL:append:x64 = "\ nilrt-grub-runmode \ " +IMAGE_INSTALL:append:xilinx-zynq = "\ + linux-nilrt-fitimage \ + " require includes/nilrt-image-base.inc require includes/nilrt-xfce.inc require includes/nilrt-proprietary.inc @@ -40,7 +43,7 @@ bootimg_fixup_x64() { } bootimg_fixup_arm() { - mv "${IMAGE_ROOTFS}/${KERNEL_IMAGEDEST}/fitImage" "${IMAGE_ROOTFS}/${KERNEL_IMAGEDEST}/linux_runmode.itb" + mv "${IMAGE_ROOTFS}/${KERNEL_IMAGEDEST}/zImage" "${IMAGE_ROOTFS}/${KERNEL_IMAGEDEST}/linux_runmode.itb" } IMAGE_PREPROCESS_COMMAND:append:x64 = " bootimg_fixup_x64; " From 9251b332899c245e16333d1cf40166028cc2590a Mon Sep 17 00:00:00 2001 From: AshwinUjjwal Date: Tue, 7 Apr 2026 22:32:14 +0530 Subject: [PATCH 3/3] u-boot, ti-wifi-utils: update env config and fix wifi utils setup - Set UBOOT_ENV_SRC to bootscript.txt - Set UBOOT_ENV_SUFFIX to scr - Update ti-wifi-utils recipe: - Fix LICENSE checksum path - Adjust SRC_URI formatting and protocol - Include required patches for build warnings and efuse handling These changes improve U-Boot environment handling and ensure ti-wifi-utils builds correctly with updated configurations. Signed-off-by: AshwinUjjwal --- conf/machine/xilinx-zynq.conf | 2 ++ .../ti-wifi-utils/files/0001-fix-efuse_param_type_enm.patch | 1 + .../ti-wifi-utils/files/0001-fix-packed-member-warning.patch | 1 + recipes-connectivity/ti-wifi-utils/ti-wifi-utils_git.bb | 4 ++-- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/machine/xilinx-zynq.conf b/conf/machine/xilinx-zynq.conf index d1de26a15..6b648d87c 100644 --- a/conf/machine/xilinx-zynq.conf +++ b/conf/machine/xilinx-zynq.conf @@ -25,6 +25,8 @@ UBOOT_LOADADDRESS ?= "0x8000" UBOOT_ENTRYPOINT ?= "${UBOOT_LOADADDRESS}" UBOOT_ENV = "bootscript" UBOOT_ENV_BINARY ?= "bootscript.txt" +UBOOT_ENV_SRC ?= "bootscript.txt" +UBOOT_ENV_SUFFIX ?= "scr" # Set to "" to not generate unnecessary /etc/${UBOOT_INITIAL_ENV}* files. UBOOT_INITIAL_ENV = "" # Since we don't actually use u-boot built here, use a random machine config. diff --git a/recipes-connectivity/ti-wifi-utils/files/0001-fix-efuse_param_type_enm.patch b/recipes-connectivity/ti-wifi-utils/files/0001-fix-efuse_param_type_enm.patch index d05cb1f41..aeb09a597 100644 --- a/recipes-connectivity/ti-wifi-utils/files/0001-fix-efuse_param_type_enm.patch +++ b/recipes-connectivity/ti-wifi-utils/files/0001-fix-efuse_param_type_enm.patch @@ -2,6 +2,7 @@ From c4d382a73a1c96c4c1568d4b33363d3ce91c42ba Mon Sep 17 00:00:00 2001 From: Can Wong Date: Wed, 22 Oct 2025 14:55:52 -0500 Subject: [PATCH] fix efuse_param_type_enm +Upstream-Status: Inappropriate --- plt.h | 2 +- diff --git a/recipes-connectivity/ti-wifi-utils/files/0001-fix-packed-member-warning.patch b/recipes-connectivity/ti-wifi-utils/files/0001-fix-packed-member-warning.patch index 261aa1a76..1793bf6e5 100644 --- a/recipes-connectivity/ti-wifi-utils/files/0001-fix-packed-member-warning.patch +++ b/recipes-connectivity/ti-wifi-utils/files/0001-fix-packed-member-warning.patch @@ -2,6 +2,7 @@ From 868075373104c403bc96f061c3117d762a8dae69 Mon Sep 17 00:00:00 2001 From: Can Wong Date: Wed, 22 Oct 2025 14:48:10 -0500 Subject: [PATCH] fix packed member warning +Upstream-Status: Inappropriate --- ini.c | 112 +++++++++++++++++++++++++++++++++++++++++----------------- diff --git a/recipes-connectivity/ti-wifi-utils/ti-wifi-utils_git.bb b/recipes-connectivity/ti-wifi-utils/ti-wifi-utils_git.bb index 7b69c15b7..d2223247b 100644 --- a/recipes-connectivity/ti-wifi-utils/ti-wifi-utils_git.bb +++ b/recipes-connectivity/ti-wifi-utils/ti-wifi-utils_git.bb @@ -1,6 +1,6 @@ DESCRIPTION = "The calibrator and other useful utilities for TI wireless solution based on wl12xx driver" LICENSE = "0BSD" -LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/0BSD;md5=f667a3c3830a55a17ec3067709f4526c" DEPENDS = "libnl" @@ -8,7 +8,7 @@ PV = "R8.6+git${SRCPV}" #Tag: R8.6 SRCREV = "cf8965aad73764022669647fa33852558a657930" -SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git;branch=master;tag=${SRCREV} \ +SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git;protocol=https;branch=master \ file://0001-fix-packed-member-warning.patch \ file://0001-fix-efuse_param_type_enm.patch \ "