This is the full operation, please help to check which step is wrong so linux kernel changes does not goes into the Image:
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.36-2.1.0.xml
$ repo sync
$ export BSPDIR=$(pwd)
$ DISTRO=fsl-imx-wayland MACHINE=imx93-11x11-lpddr4x-evk source imx-setup-release.sh -b buildwayland
$ bitbake linux-imx
========================================================================================
the log shows
========================================================================================
NOTE: Your conf/bblayers.conf has been automatically updated.
Loading cache: 100% |###########################################################################################################################| Time: 0:00:01
Loaded 5717 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################| Time: 0:00:01
Parsing of 3642 .bb files complete (3641 cached, 1 parsed). 5718 targets, 619 skipped, 17 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.8.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx93-11x11-lpddr4x-evk"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "6.6-scarthgap"
TUNE_FEATURES = "aarch64 armv8a crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:f43f393ef0246b7bee6eed8bcf8271cf2b8cdf40"
meta-oe
meta-multimedia
meta-python = "HEAD:80e01188fa822d87d301ee71973c462d7a865493"
meta-freescale = "HEAD:0f8091c63dd8805610c09b08409bc58492a3b16f"
meta-freescale-3rdparty = "HEAD:6c063450d464eb2f380443c7d9af1b94ce9b9d75"
meta-freescale-distro = "HEAD:b9d6a5d9931922558046d230c1f5f4ef6ee72345"
meta-imx-bsp
meta-imx-sdk
meta-imx-ml
meta-imx-v2x = "HEAD:f23d0ce80d40c4128116fa0b4dde5f5af9b0357d"
meta-nxp-demo-experience = "HEAD:8fd7154c05b716e9635279047f65785399432d88"
meta-nxp-matter-baseline
meta-nxp-openthread = "HEAD:783becb4b5716d989f50db95b7133d38eae5b47b"
meta-arm
meta-arm-toolchain = "HEAD:1b85bbb4cab9658da3cd926c62038b8559c5c64e"
meta-clang = "HEAD:fe561f41aef0cff9e6f96730ab59f28dca2eb682"
meta-gnome
meta-networking
meta-filesystems = "HEAD:80e01188fa822d87d301ee71973c462d7a865493"
meta-qt6 = "HEAD:dc13e1bfda4a4757a08c2d6673bc4bac012c4a80"
meta-parsec
meta-tpm = "HEAD:11ea91192d43d7c2b0b95a93aa63ca7e73e38034"
meta-virtualization = "HEAD:6a80f140e387621f62964209a2e07d3bcfb125ce"
WARNING: /home/colin/Desktop/Work_Files/I3C/nxp_bsp/imx-yocto-bsp/sources/meta-imx/meta-imx-bsp/recipes-kernel/linux/linux-imx_6.6.bb:do_compile is tainted from a forced run
WARNING: /home/colin/Desktop/Work_Files/I3C/nxp_bsp/imx-yocto-bsp/sources/meta-imx/meta-imx-bsp/recipes-kernel/linux/linux-imx_6.6.bb:do_deploy is tainted from a forced run
Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 345 (0% match, 100% complete)########################################## | ETA: 0:00:00
Initialising tasks: 100% |######################################################################################################################| Time: 0:00:00
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 1075 tasks of which 1075 didn't need to be rerun and all succeeded.
Summary: There were 2 WARNING messages.
========================================================================================
the output Image is
Image--6.6.36+git0+d23d64eea5-r0-imx93-11x11-lpddr4x-evk-20250102073143.bin
========================================================================================
the kernel git history:
commit 877ae856160db41ab7a76d9e2767f87543ea69ce (HEAD -> lf-6.6.y)
Author: colin_wang <lykaios1203@gmail.com>
Date: Thu Dec 26 19:04:15 2024 +0800
add patch but with modify
commit d23d64eea5111e1607efcce1d601834fceec92cb (tag: lf-6.6.36-2.1.0, origin/lf-6.6.y)
Author: Wei Fang <wei.fang@nxp.com>
Date: Wed Sep 4 13:06:28 2024 +0800
LF-13425 arm64: dts: imx8mq: adjust TX drive strength of FEC
The default drive strength of TXD, TXC and TX_CTL were all set
to 0x7, which is the maximum drive strength. However, it will
cause low dB margin issue at 250MHz frequency band. Based on
the suggestion from SE team, change the drive strength from
0x7 to 0x6.
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
========================================================================================
After I copy the Image and rename it to 'Image' to place in the /run/media/boot-mmcblk0p1/
root@imx93-11x11-lpddr4x-evk:~# ls /run/media/boot-mmcblk0p1/
Image imx93-11x11-evk-iw612-otbr.dtb imx93-11x11-evk.dtb
Image_ori imx93-11x11-evk-ld.dtb imx93-11x11-evk_m33_TCM_low_power_wakeword.bin
imx93-11x11-evk-aud-hat.dtb imx93-11x11-evk-lpuart.dtb imx93-11x11-evk_m33_TCM_power_mode_switch.bin
imx93-11x11-evk-boe-wxga-lvds-panel.dtb imx93-11x11-evk-mqs.dtb imx93-11x11-evk_m33_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin
imx93-11x11-evk-flexio-i2c.dtb imx93-11x11-evk-mt9m114.dtb imx93-11x11-evk_m33_TCM_rpmsg_lite_str_echo_rtos.bin
imx93-11x11-evk-flexspi-m2.dtb imx93-11x11-evk-rm67199.dtb imx93-11x11-evk_m33_TCM_sai_low_power_audio.bin
imx93-11x11-evk-i2c-spi-slave.dtb imx93-11x11-evk-root.dtb tee.bin
imx93-11x11-evk-i3c.dtb imx93-11x11-evk-rpmsg-lpv.dtb
imx93-11x11-evk-inmate.dtb imx93-11x11-evk-rpmsg.dtb
========================================================================================
then reboot, still i see
imx93-11x11-lpddr4x-evk login: root
root@imx93-11x11-lpddr4x-evk:~# cat /proc/version
Linux version 6.6.36-lts-next-g877ae856160d (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240716) #1 SMP PREEMPT Wed Sep 4 08:22:45 UTC 2024
the build date is still Sep 4, which is the 6.6 upstream config, but i already make changes to the kernel source
the following patch should work:
diff --git a/meta/lib/oe/reproducible.py b/meta/lib/oe/reproducible.py
index 9ac75c02e3..ddce9e3a9d 100644
--- a/meta/lib/oe/reproducible.py
+++ b/meta/lib/oe/reproducible.py
@@ -6,6 +6,7 @@
import os
import subprocess
import bb
+import time
# For reproducible builds, this code sets the default SOURCE_DATE_EPOCH in each
# component's build environment. The format is number of seconds since the
@@ -153,6 +154,8 @@ def fixed_source_date_epoch(d):
return 0
def get_source_date_epoch(d, sourcedir):
+ if 1 == 1:
+ return int(time.time())
return (
get_source_date_epoch_from_git(d, sourcedir) or
get_source_date_epoch_from_youngest_file(d, sourcedir) or
Found that the changes are actually in the Image, but the build time remains unchange even if adding new patch to the kernel source , adding KERNEL_DEBUG_TIMESTAMPS=1 via command like
KERNEL_DEBUG_TIMESTAMPS=1 bitbake linux-imx
still not update the time, current will add custom debug kernel message to check if image is updated, if there is other way to trigger the time update please reply, or I can mark this as temp solution. thanks
Refers to https://community.nxp.com/t5/i-MX-Processors/Time-in-version-is-inconsistent-with-compilation-time/m...
the kernel built time is unchanged if you do not make you own git commit, you can pass the KERNEL_DEBUG_TIMESTAMPS=1 env, thus make a full clean build of your kernel, and the kernel built time will be changed.