Wind River Support Network

HomeDefectsLIN1023-1429
Fixed

LIN1023-1429 : lat wic image boot failed on 64GB sd card

Created: Jul 22, 2023    Updated: Sep 27, 2023
Resolved Date: Sep 20, 2023
Found In Version: 10.23.30.1
Fix Version: 10.23.30.2
Severity: Standard
Applicable for: Wind River Linux Distro LTS 23
Component/s: Userspace

Description

1) Fetch lat sdk tarball sdk-bcm-2xxx-rpi4.tar.bz2
2) tar -xvf sdk-bcm-2xxx-rpi4.tar.bz2
3) ./sdk-bcm-2xxx-rpi4/wrlinux-graphics-10.23.16.0-glibc-x86_64-bcm_2xxx_rpi4-wrlinux-image-full-sdk.sh -d sdk_installed
4) source sdk_installed/environment-setup-cortexa72-wrs-linux
6) appsdk genimage  -t wic
7) boot the target on 64GB by the wic image failed

Disklabel type: dos
Disk identifier: 0xbed0eb69

Old situation:

Device         Boot    Start      End  Sectors   Size Id Type
/dev/mmcblk0p1 *           8   654925   654918 319.8M  c W95 FAT32 (LBA)
/dev/mmcblk0p2        654926 12571871 11916946   5.7G  f W95 Ext'd (LBA)
/dev/mmcblk0p3      12571872 13590983  1019112 497.6M 83 Linux
/dev/mmcblk0p5        654928  1026471   371544 181.4M 83 Linux
/dev/mmcblk0p6       1026480 12571871 11545392   5.5G 83 Linux

Partition table entries are not in disk order.

/dev/mmcblk0p3: 
New situation:
Disklabel type: dos
Disk identifier: 0xbed0eb69

Device         Boot    Start       End   Sectors   Size Id Type
/dev/mmcblk0p1 *           8    654925    654918 319.8M  c W95 FAT32 (LBA)
/dev/mmcblk0p2        654926  12571871  11916946   5.7G  f W95 Ext'd (LBA)
/dev/mmcblk0p3      12571872 124669951 112098080  53.5G 83 Linux
/dev/mmcblk0p5        654928   1026471    371544 181.4M 83 Linux
/dev/mmcblk0p6       1026480  12571871  11545392   5.5G 83 Linux

Partition table entries are not in disk order.

The partition table has been altered.
Calling ioctl() to re-read partition table.
 mmcblk0: p1 p2 < p5 p6 > p3
Syncing disks.
 mmcblk0: p1 p2 < p5 p6 > p3
Expanding FS for fluxdata ...
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/mmcblk0p3 to 56049040 (1k) blocks.
The filesystem on /dev/mmcblk0p3 is now 56049040 (1k) blocks long.

TPM subsystem is not enabled.
EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Quota mode: disabled.
EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Quota mode: disabled.
/bin/ostree
EXT4-fs error (device mmcblk0p3): ext4_init_orphan_info:617: comm mount: orphan file block 0: bad checksum
EXT4-fs (mmcblk0p3): mount failed
mount: mounting /dev/mmcblk0p3 on /sysroot/var failed: Invalid argument
Waiting for fluxdata device to be ready...
EXT4-fs (mmcblk0p3): warning: mounting fs with errors, running e2fsck is recommended
EXT4-fs error (device mmcblk0p3): ext4_init_orphan_info:617: comm mount: orphan file block 0: bad checksum
EXT4-fs (mmcblk0p3): mount failed


Workaround: Use LAT to generate initramfs could workaround the issue

5) appsdk geninitramfs exampleyamls/initramfs-ostree-image-bcm-2xxx-rpi4.yaml

Workaround

Way1: Use LAT to generate initramfs could workaround the issue

    geninitramfs --log-dir log exampleyamls/initramfs-ostree-image-bcm-2xxx-rpi4.yaml

Way2: Add INITRAMFS_PKGS:append = " util-linux-mount" to local.conf

Steps to Reproduce

1fs01.wrs.com/builds/wrl10_23_binary/2023-07-21//WRLinux-lts-23-Images/bcm-2xxx-rpi4/sdk-bcm-2xxx-rpi4.tar.bz2 (http://ala-lpdfs01.wrs.com/builds/wrl10_23_binary/2023-07-21//WRLinux-lts-23-Images/bcm-2xxx-rpi4/sdk-bcm-2xxx-rpi4.tar.bz2)) wget http://ala-lpd (http://ala-lpdfs01.wrs.com/builds/wrl10_23_binary/2023-07-21//WRLinux-lts-23-Images/bcm-2xxx-rpi4/sdk-bcm-2xxx-rpi4.tar.bz2)

2) tar -jxvf sdk-bcm-2xxx-rpi4
3) ./sdk-bcm-2xxx-rpi4/wrlinux-graphics-10.23.16.0-glibc-x86_64-bcm_2xxx_rpi4-wrlinux-image-full-sdk.sh -d sdk_installed
4) source sdk_installed/environment-setup-cortexa72-wrs-linux
5) sed -i 's@[https://distro.windriver.com/dist/wrlinux/lts-23@http://ala-lpdfs01.wrs.com/builds/wrl10_23_binary/2023-07-21//WRLinux-lts-23-Images@g]' ./sdk_installed/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python3.11/site-packages/genimage/constant.py
6) appsdk genimage -p nfs-utils -p efibootmgr -p dnf -p openssh --ostree-remote-url [http://128.224.153.156/buildarea1/SharedImage/LTS23/LTS23_STD_BINARY/bcm-2xxx-rpi4/ostree_repos/20230722055413_3ff592/] -t wic ./exampleyamls/feature/expire-root-passwd.yaml ./exampleyamls/feature/xfce_desktop.yaml ./exampleyamls/sysdef/add-system-user.yaml ./exampleyamls/sysdef/add-user-home.yaml ./exampleyamls/sysdef/contains-container-base.yaml ./exampleyamls/sysdef/set-dns.yaml ./exampleyamls/sysdef/set-hostname.yaml ./exampleyamls/sysdef/set-ntp.yaml ./exampleyamls/sysdef/update-containers.yaml
7) boot the target by the wic image
Live chat
Online