Wind River Support Network

HomeDefectsLIN1022-460
Fixed

LIN1022-460 : build uboot time and /boot files time back to past time(Mar 9 2018)

Created: May 4, 2022    Updated: Apr 19, 2023
Resolved Date: Apr 19, 2023
Found In Version: 10.22.33.1
Fix Version: 10.22.33.8
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Userspace

Description


As below logs showing, build kernel time was Oct 21 2021, but build u-boot time back to Aug 19 2021 and /boot files time back to Mar 9 2018, which will make customer a lot of confused.

U-Boot 2020.04+g7eba18e1c0 (Aug 19 2021 - 15:37:50 +0000)
CPU: NXP S32G274A rev. 2.1.0
Reset cause: Functional Reset
Model: NXP S32G2XX
Board: NXP S32G274A-EVB
DRAM: 3.5 GiB
CA53 core 1 running.
CA53 core 2 running.
CA53 core 3 running.
All (4) cores are up.
MMC: FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Using external clock for PCIe0, CRNS
Configuring PCIe0 as RootComplex(x2)
Using external clock for PCIe1, CRNS
Frequency 125Mhz configured for PCIe1
Configuring PCIe1 as SGMII [XPCS0 1G, XPCS1 OFF(PCIex1)]
PCIe0: Failed to get link up
Pcie0: LINK_DBG_1: 0x00000000, LINK_DBG_2: 0x00000800 (expected 0x000000d1)
DEBUG_R0: 0x00607e00, DEBUG_R1: 0x08200000
PCI: Failed autoconfig bar 20
PCI: Failed autoconfig bar 24
PCIe1: Not configuring PCIe, PHY not configured
In: serial
Out: serial
Err: serial
usb dr_mode not found
USB EHCI 1.00
Net: EQOS phy: rgmii @ 4

Warning: eth_eqos (eth0) using random MAC address - e6:c3:38:9e:3f:11
eth0: eth_eqos PFE: emac0: none emac1: rgmii emac2: rgmii
PFEng firmware file 'mmc@0:1:s32g_pfe_class.fw' loading failed: -2

Hit any key to stop autoboot: 0
=> run loadimage
21721600 bytes read in 937 ms (22.1 MiB/s)
=> run mmcboot
Booting from mmc ...
43237 bytes read in 14 ms (2.9 MiB/s)

        Flattened Device Tree blob at 83e00000
        Booting using the fdt blob at 0x83e00000
        Loading Device Tree to 000000009fff2000, end 000000009ffff8e4 ... OK
        Reserved memory region for spin-table: addr=fff17be8 size=18
        PFEng firmware file 'mmc@0:1:s32g_pfe_class.fw' loading failed: -2
        DT: Disabling PFE
        PFEng firmware file 'mmc@0:1:s32g_pfe_class.fw' loading failed: -2
        DT: Enabling GMAC

Starting kernel ...

Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Linux version 5.10.74-yocto-standard (oe-user@oe-host) (aarch64-wrs-linux-gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37.20210721) #1 SMP PREEMPT Thu Oct 21 01:44:21 UTC 2021
Machine model: Freescale S32G274A
earlycon: linflex0 at MMIO 0x00000000401c8000 (options '115200n8')

.... ....

Wind River Linux development 21.43 nxp-s32g2xx ttyLF0

nxp-s32g2xx login: root
root@nxp-s32g2xx:~#
root@nxp-s32g2xx:~#
root@nxp-s32g2xx:~# ls /boot/ -l
total 29516

lrwxrwxrwx 1 root root 28 Mar 9 2018 Image -> Image-5.10.74-yocto-standard
rw-rr- 1 root root 21721600 Mar 9 2018 Image-5.10.74-yocto-standard
lrwxrwxrwx 1 root root 31 Mar 9 2018 Image.gz -> Image.gz-5.10.74-yocto-standard
rw-rr- 1 root root 8058149 Mar 9 2018 Image.gz-5.10.74-yocto-standard
rw-rr- 1 root root 42693 Mar 9 2018 fsl-s32g274a-rdb2.dtb
rw-rr- 1 root root 43237 Mar 9 2018 fsl-s32g2xxa-evb.dtb
rw-rr- 1 root root 1589760 Mar 9 2018 u-boot-s32g274aevb-2020.04-r0.bin
rw-rr- 1 root root 827741 Mar 9 2018 u-boot-s32g274ardb2-2020.04-r0.bin
lrwxrwxrwx 1 root root 33 Mar 9 2018 u-boot.s32 -> u-boot-s32g274aevb-2020.04-r0.bin
lrwxrwxrwx 1 root root 33 Mar 9 2018 u-boot.s32-s32g274aevb -> u-boot-s32g274aevb-2020.04-r0.bin
lrwxrwxrwx 1 root root 34 Mar 9 2018 u-boot.s32-s32g274ardb2 -> u-boot-s32g274ardb2-2020.04-r0.bin
root@nxp-s32g2xx:~# cat /proc/version
Linux version 5.10.74-yocto-standard (oe-user@oe-host) (aarch64-wrs-linux-gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37.20210721) #1 SMP PREEMPT Thu Oct 21 01:44:21 UTC 2021
root@nxp-s32g2xx:~#
root@nxp-s32g2xx:~# mount /dev/mmcblk0p1 /mnt/
root@nxp-s32g2xx:~# ls /mnt/ -l
total 23604
-rwxr-xr-x 1 root root 2359296 Apr 5 2011 IPCF_Example_S32G274.bin
-rwxr-xr-x 1 root root 21721600 Apr 5 2011 Image
-rwxr-xr-x 1 root root 42693 Apr 5 2011 fsl-s32g274a-rdb2.dtb
-rwxr-xr-x 1 root root 43237 Apr 5 2011 fsl-s32g2xxa-evb.dtb

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines nxp-s32g2xx --templates feature/docker feature/atf-s32g --distros wrlinux --dl-layers --accept-eula=yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build_BTS_nxp-s32g2xx_standard_std_wrlinux_atf
echo KERNEL_FEATURES:append = \" features/usb/serial-all.scc\" >> conf/local.conf
echo KERNEL_VERSION_SANITY_SKIP=\"1\" >> conf/local.conf
echo IMAGE_FSTYPES += \" tar.bz2\" >> conf/local.conf
echo BB_NUMBER_THREADS ?= \"24\" >> conf/local.conf
echo PARALLEL_MAKE ?= \"-j 24\" >> conf/local.conf
echo BB_DANGLINGAPPENDS_WARNONLY = \"1\" >> conf/local.conf
echo BB_NO_NETWORK:pn-atf-s32g = \"0\" >> conf/local.conf
echo HSE_LOCAL_FIRMWARE_EVB_BIN = \"/folk/wgao/s32g/firmware/hse/s32g2xx_hse_fw_0.1.0_0.8.5_pb200922.bin.rev2.pink\" >> conf/local.conf
echo IPCF_M7_APP_BIN_DIR = \"/folk/wgao/s32g/firmware/ipcf\" >> conf/local.conf
echo PNWHITELIST_wr-nxp-s32g2xx += \"ipc-shm\" >> conf/local.conf
echo IMAGE_INSTALL:append = \" ipc-shm\" >> conf/local.conf
echo LLCE_LOCAL_FIRMWARE_DIR = \"/folk/wgao/s32g/firmware/llce\" >> conf/local.conf
echo PNWHITELIST:wr-nxp-s32g2xx += \"llce\" >> conf/local.conf
echo IMAGE_INSTALL:append:nxp-s32g2xx = \" llce\" >> conf/local.conf
bitbake wrlinux-image-std

dd wic image to mmc and boot

Check u-boot date and /boot files
Live chat
Online