imx93-11x11-lpddr4x-evk can not update kernel

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx93-11x11-lpddr4x-evk can not update kernel

1,783件の閲覧回数
lykaios1203
Contributor II

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

0 件の賞賛
返信
9 返答(返信)

1,685件の閲覧回数
Nobita
Contributor III

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

 

0 件の賞賛
返信

1,672件の閲覧回数
lykaios1203
Contributor II
Applied this patch but proc version still shows the same time:

diff --git a/meta/lib/oe/reproducible.py b/meta/lib/oe/reproducible.py
index 448befce33..4d76405deb 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
@@ -156,6 +157,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

root@imx93-11x11-lpddr4x-evk:~# cat /proc/version
Linux version 6.6.36-lts-next-g877ae856160d-dirty (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

Changes still goes into the Image as the new kernel log contain new build msg

BTW adding this patch will introduce logs like

ERROR: When reparsing /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_create_sp
dx, the basehash value changed from 1cf6a19055bc4176f091ff31f0f7d0d39f972ed4820a2253065969871965d77d to 31f5333b4a6c41d760b3c9ccfdb72ce0eebb2e7f9c5d6e7655f4d18
3dc56612e. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake linux-imx -cdo_create_spdx -Snone
ERROR: Then:
ERROR: $ bitbake linux-imx -cdo_create_spdx -Sprintdiff


there are 160 error with this, but built image still generate and can work, when i revert the change for adding time in py, the errors are gone, not sure if this is related
0 件の賞賛
返信

1,713件の閲覧回数
lykaios1203
Contributor II

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

0 件の賞賛
返信

1,746件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Try to add below two steps after adding patch.

bitbake linux-imx -f -c compile
bitbake linux-imx

 

Regards

Harvey

0 件の賞賛
返信

1,717件の閲覧回数
lykaios1203
Contributor II
I tried this but the build time does not change, the new commit is 877ae856160db41ab7a76d9e2767f87543ea69ce as from above post
0 件の賞賛
返信

1,764件の閲覧回数
Nobita
Contributor III

For your situation, I also suggest you to check your boot device, the /run/media/boot-mmcblk0p1 should be the emmc on board.

0 件の賞賛
返信

1,716件の閲覧回数
lykaios1203
Contributor II
besides the usb device there is one boot device so i think is should be the one

root@imx93-11x11-lpddr4x-evk:~# ls /run/media/
Colin_USB-sda1 boot-mmcblk0p1
0 件の賞賛
返信

1,767件の閲覧回数
Nobita
Contributor III

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.

0 件の賞賛
返信

1,717件の閲覧回数
lykaios1203
Contributor II
the new commit is 877ae856160db41ab7a76d9e2767f87543ea69ce as from above post added to the source but time does not change
0 件の賞賛
返信