Wind River Support Network

HomeDefectsLIN1021-3464
Fixed

LIN1021-3464 : fail to mount SD card

Created: Apr 28, 2022    Updated: Jun 9, 2022
Resolved Date: May 16, 2022
Found In Version: 10.21.20.9
Fix Version: 10.21.20.13
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: BSP, Userspace

Description

remove the limitation of creating wic file.

WIC_CREATE_EXTRA_ARGS = "--no-fstab-update"

Steps to Reproduce

Build LTS21 wrlinux-image-std image for bcm-2xxx-rpi4,

LTS21 RCPL0009

Setup Project:

$ git clone --branch WRLINUX_10_21_LTS_RCPL0009  https://gateway.delivers.windriver.com/git/linux-lts/release/wrlinux-lts.21/WRLinux-lts-21-Core/wrlinux-x
$ ./wrlinux-x/setup.sh --machines bcm-2xxx-rpi4


Source bitbake build env:

$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env

Set below config :

IMAGE_FSTYPES += "tar.bz2 wic wic.gz wic.bmap" and WKS_FILE="bcm-2xxx-rpi-sdimage.wks" in conf/local.conf 

Build std images:

$ bitbake parted-native dosfstools-native mtools-native bmap-tools-native
$ bitbake wrlinux-image-std

Added below line bcm-2xxx-rpi-sdimage.wks

part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs --align 4096 --fixed-size 1024M
part /var --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var --ondisk mmcblk0 --fstype=ext4 --label var --align 4096 --fixed-size 1024M --fsoptions=ro,relatime,sync

Build wic images:

$ wic create bcm-2xxx-rpi-sdimage -e wrlinux-image-std

-> Deploy bcm-2xxx-rpi-sdimage-202205121558{*}-mmcblk0.direct{*}
 image to rpi4 based target using SD card boot.

-> Flash .wic file using *dd* command to SD memory card and boot it.

-> Once target is up check whether mount is done or not with "{*}cat /proc/mounts{*}" command.

-> Expected results : "{*}cat /proc/mounts{*}" shows below partition mounted upon boot.

 *“/dev/mmcblk0p3 /var ext4 rw,relatime 0 0”*

-> Actual Results : 

 “/dev/mmcblk0p3 /var ext4 rw,relatime 0 0” is not mounted by default upon boot. 
Live chat
Online