2025-04-02 12:24 AM
I got a STM32MP257F-DK with preprogrammed 16GB SD card and the Linux start-up works fine.
When I'm building a Linux image based on openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 (DISTRO=openstlinux-weston, MACHINE=stm32mp2) and using a command "sudo dd if=../flashlayout_st-image-weston/optee/../../FlashLayout_sdcard_stm32mp257f-dk-optee.raw of=/dev/mmcblk0 bs=8M conv=fdatasync status=progress" with a 32 GB SD card the Linux start-up ends to errors as
[ 10.043162] RESIZE-HELPER START
[ 10.173849] RESIZE-HELPER: Using systemd-growfs
[ 10.199307] EXT4-fs warning (device mmcblk0p10): ext4_resize_begin:83: There are errors in the filesystem, so online resizing is not allowed
[ 10.223720] EXT4-fs (mmcblk0p8): resizing filesystem from 65536 to 65536 blocks
[ 10.252068] EXT4-fs (mmcblk0p9): resizing filesystem from 49152 to 256000 blocks
[ 11.194098] EXT4-fs (mmcblk0p9): resized filesystem to 256000
[ 11.575969] EXT4-fs (mmcblk0p11): resizing filesystem from 131072 to 717278 blocks
[ *] A start job is running for Resize r…ailable disk space (6s / no limit)
[ 16.234221] mmc0: error -84 writing Cache Flush bit
[ 16.234265] I/O error, dev mmcblk0, sector 52270 op 0x1:(WRITE) flags 0x9800 phys_seg 1 prio class 2
[** ] A start job is running for Resize r…ilable disk space (35s / no limit)
[ *** ] A start job is running for Resize r…ilable disk space (54s / no limit)
[ 63.966145] EXT4-fs (mmcblk0p11): resized to 524289 blocks
[ 64.421126] mmc0: error -84 writing Cache Flush bit
[ 64.421172] I/O error, dev mmcblk0, sector 9150294 op 0x1:(WRITE) flags 0x9800 phys_seg 1 prio class 2
[** ] A start job is running for Resize r…ilable disk space (55s / no limit)
[ 64.951391] EXT4-fs error (device mmcblk0p11) in setup_new_flex_group_blocks:723: IO failure
[ 64.954302] EXT4-fs warning (device mmcblk0p11): ext4_resize_fs:2194: error (-30) occurred during file system resize
[ 64.964898] EXT4-fs (mmcblk0p11): resized filesystem to 524289
[ 64.970760] EXT4-fs error (device mmcblk0p11): ext4_journal_check_start:84: comm systemd-growfs: Detected aborted journal
[ 64.985404] EXT4-fs (mmcblk0p11): Remounting filesystem read-only
And eventually a user is not asked for to log in.
When I clone the preprogrammed SD card to the same SD card having the error case above the Linux start-up works fine.
Is the problem in the command "./create_sdcard_from_flashlayout.sh ../flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp257f-dk-optee.tsv" ?