STM32MP1 U-Boot freezes while "Starting Kernel" (stalls on "Waiting for root device" in earlyprink)
I have an STM32MP157D-DK1 board, and I'm trying to build a custom Linux image for it with the Yocto Project. I followed the guide here (https://forum.digikey.com/t/yocto-getting-started-with-the-stm32mp157/14074) to create a core-image-minimal.
I’m trying to use the basic boot chain to avoid TF-A (for now). So, I formatted an SD card with the following (using fdisk):
Disk /dev/mmcblk2: 7.29 GiB, 7822376960 bytes, 15278080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A1B93A60-F8E0-CB47-88F9-E559CD43B510
Device Start End Sectors Size Type
/dev/mmcblk2p1 2048 2559 512 256K Microsoft basic data
/dev/mmcblk2p2 4096 4607 512 256K Microsoft basic data
/dev/mmcblk2p3 6144 10239 4096 2M Microsoft basic data
/dev/mmcblk2p4 10240 141311 131072 64M Linux filesystem
/dev/mmcblk2p5 141312 15278046 15136735 7.2G Linux filesystemI also set the legacy BIOS bootable flag on /mmcblk2p4 (bootfs).
I copied the following image files to each of the partitions (from tmp/deploy/images/stm32mp1):
sudo dd if=u-boot/basic_stm32mp15/u-boot-spl.stm32-stm32mp157d-dk1-basic of=/dev/mmcblk2p1
sudo dd if=u-boot/basic_stm32mp15/u-boot-spl.stm32-stm32mp157d-dk1-basic of=/dev/mmcblk2p2
sudo dd if=u-boot/basic_stm32mp15/u-boot-stm32mp157d-dk1-basic.img of=/dev/mmcblk2p3
sudo dd if=st-image-bootfs-poky-stm32mp1.ext4 of=/dev/mmcblk2p4 bs=1M
sudo dd if=core-image-minimal-stm32mp1.ext4 of=/dev/mmcblk2p5 bs=1MThe boot process gets stuck on "Starting kernel ..." So, I went back and enabled earlyprintk as per this guide (https://wiki.st.com/stm32mpu/wiki/Dmesg_and_Linux_kernel_log#earlyprintk). The boot process still gets to the same "Starting kernel ..." step, but I've got some more information. I'm just confused about what it's trying to do. It reaches the "Waiting for root device..." line, hangs for about a minute, and then restarts the whole boot process.
The boot log is too long for the post, so I pasted it here: https://gist.github.com/ShawnHymel/590b95359dfd8449abd6f45f8f5b6794
