cancel
Showing results for 
Search instead for 
Did you mean: 

root '/dev/disk/by-partuuid/' doesn't exist or does not contain a /dev

DMårt
Lead

I get this issue in the booting process of Linux. Then nothing else happens, except outputs from Optee.

 

F/TC:? 0 pta_scmi_ocall:207 Posting MSG message on channel 0
root '/dev/disk/by-partuuid/e91c4e10-16e6-4c0e-bd0e-77becf4a3582' doesn't exist or F/TC:? 0 regulator_set_voltage:202 vddcpu 800000uV
does not contain a /dev.

 Question:

I assume that this is a common issue for the MP2 platform. Is there anyway I could fix this? Extlinux.conf perhaps? 

I have the same clock settings as DK.

See attached file.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
3 REPLIES 3
Christophe Guibout
ST Employee

Hello @DMårt,

This issue not relate to MP2 : here, it seems the partuuid from the kernel command line (which is stored in extlinux.conf) is not found in your mass storage.

I would recommand to check the rootfs partuuid : in U-boot, check the uuid of the rootfs partition : part list mmc <your dev id>. If the uuid is different, update the extlinux to match.

BR,

Christophe

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hello  

Here is my partitions:

STM32MP> mmc list
STM32 SD/MMC: 0 (SD)
STM32MP> part list mmc 0

Partition Map for MMC device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000022      0x00000221      "fsbla1"
        attrs:  0x0000000000000000
        type:   8da63339-0007-60c0-c436-083ac8230908
                (8da63339-0007-60c0-c436-083ac8230908)
        guid:   1295dcd4-d8ed-4037-b619-3c0cebe1eabc
  2     0x00000222      0x00000421      "fsbla2"
        attrs:  0x0000000000000000
        type:   8da63339-0007-60c0-c436-083ac8230908
                (8da63339-0007-60c0-c436-083ac8230908)
        guid:   8b84b94f-844c-42d8-b871-e429ba2f17ac
  3     0x00000422      0x00000621      "metadata1"
        attrs:  0x0000000000000000
        type:   8a7a84a0-8387-40f6-ab41-a8b9a5a60d23
                (8a7a84a0-8387-40f6-ab41-a8b9a5a60d23)
        guid:   5a38ccfd-38f6-423b-bfcd-88f820500d8c
  4     0x00000622      0x00000821      "metadata2"
        attrs:  0x0000000000000000
        type:   8a7a84a0-8387-40f6-ab41-a8b9a5a60d23
                (8a7a84a0-8387-40f6-ab41-a8b9a5a60d23)
        guid:   b8da8bd7-1256-4e01-bc82-95a3de5a209a
  5     0x00000822      0x00002821      "fip-a"
        attrs:  0x0000000000000000
        type:   19d5df83-11b0-457b-be2c-7559c13142a5
                (19d5df83-11b0-457b-be2c-7559c13142a5)
        guid:   4fd84c93-54ef-463f-a7ef-ae25ff887087
  6     0x00002822      0x00004821      "fip-b"
        attrs:  0x0000000000000000
        type:   19d5df83-11b0-457b-be2c-7559c13142a5
                (19d5df83-11b0-457b-be2c-7559c13142a5)
        guid:   09c54952-d5bf-45af-acee-335303766fb3
  7     0x00004822      0x00004c21      "u-boot-env"
        attrs:  0x0000000000000000
        type:   3de21764-95bd-54bd-a5c3-4abe786f38a8
                (u-boot-env)
        guid:   da661617-93cb-4d54-8efa-4724b8188bdc
  8     0x00004c22      0x00024c21      "bootfs"
        attrs:  0x0000000000000004
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
                (linux)
        guid:   e8a9c1b4-07d6-4e26-abfb-4ddcda541cb6
  9     0x00024c22      0x000a1c21      "vendorfs"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
                (linux)
        guid:   0ebd1a31-e02c-499c-8f06-cb478a053f93
 10     0x000a1c22      0x008a1c21      "rootfs"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
                (linux)
        guid:   e91c4e10-16e6-4c0e-bd0e-77becf4a3582
 11     0x008a1c22      0x009997de      "userfs"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
                (linux)
        guid:   07a9156a-dca6-494d-8e59-ae51d74387cd

My extlinux.conf

# Generic Distro Configuration file generated by OpenEmbedded
MENU BACKGROUND /splash_landscape.bmp
TIMEOUT 20
LABEL OpenSTLinux
	KERNEL /Image.gz
	FDT /stm32mp257f-watermelon-wine-1a-mx.dtb
	INITRD /st-image-resize-initrd
	APPEND root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw   earlycon console=${console},${baudrate}

 

My boot log: (See attached file)

Hit any key to stop autoboot:  1  0 
Boot over mmc0!
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:8...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
Retrieving file: /splash_landscape.bmp
1:	OpenSTLinux
2:	OpenSTLinux2
3:	OpenSTLinux Single
4:	OpenSTLinux mmcblk0p10
Enter choice: 1:	OpenSTLinux
Retrieving file: /Image.gz
Retrieving file: /st-image-resize-initrd
append: debug root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw   earlycon console=ttySTM0,115200
Retrieving file: /stm32mp257f-watermelon-wine-1a-mx.dtb
   Uncompressing Kernel Image
## Flattened Device Tree blob at 90000000
   Booting using the fdt blob at 0x90000000
Working FDT set to 90000000
   Loading Ramdisk to 8f7ee000, end 8ffff5cd ... OK
   Loading Device Tree to 000000008f7cd000, end 000000008f7ed3a0 ... OK
Working FDT set to 8f7cd000
Error during panel fixup ! (-1)

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd040]
[    0.000000] Linux version 6.6.116 (oe-user@oe-host) (aarch64-ostl-linux-gcc (GCC) 13.4.0, GNU ld (GNU Binutils) 2.42.0.20240723) #1 SMP PREEMPT Sun Nov  2 13:14:42 UTC 2025
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: STMicroelectronics STM32MP257F-DK STM32CubeMX board - openstlinux-6.6-yocto-scarthgap-mpu-v26.02.18
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000f2800000, size 128 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x00000000f2800000..0x00000000fa7fffff (131072 KiB) map reusable linux,cma
....
....
....
[    1.884784] stm32-dma3 40420000.dma-controller: created LLI gen_pool at 0x000000000a03e000, size 8KiB
[    1.894032] stm32-dma3 40420000.dma-controller: STM32 DMA3 registered rev:1.3
[    1.903003] stm32-usart 400e0000.serial: failed to get alias id, errno -19
[    1.909331] stm32-usart 40220000.serial: Wakeup might not be available: No autonomous clock
[    1.909371] mmci-pl18x 48220000.mmc: Got CD GPIO
[    1.916139] stm32-usart 40220000.serial: interrupt mode for rx (no dma)
[    1.925311] mmci-pl18x 48220000.mmc: mmc0: PL180 manf 53 rev3 at 0x48220000 irq 53,0 (pio)
[    1.927348] stm32-usart 40220000.serial: interrupt mode for tx (no dma)
[    1.942643] 40220000.serial: ttySTM0 at MMIO 0x40220000 (irq = 54, base_baud = 4000000) is a stm32-usart
[    1.957660] printk: console [ttySTM0] enabled
[    1.957660] printk: console [ttySTM0] enabled
[    1.960778] printk: bootconsole [stm32] disabled
[    1.960778] printk: bootconsole [stm32] disabled
[    1.973111] clk: Disabling unused clocks
[    1.974208] ALSA device list:
[    1.977048]   No soundcards found.
[    1.987721] Freeing unused kernel memory: 3776K
[    1.987877] Run /init as init process
[    1.990345]   with arguments:
[    1.993392]     /init
[    1.995617]   with environment:
[    1.998764]     HOME=/
[    2.001203]     TERM=linux
[    2.028236] mmc0: new ultra high speed SDR104 SDHC card at address 59b4
[    2.030290] mmcblk0: mmc0:59b4 NCard 7.48 GiB
DEBUG: Loading module udev
DEBUG: Running udev_run
Starting systemd-udevd version 255.21^


DEBUG: Loading module rootfs
DEBUG: Calling module hook (pre): udev_shutdown_hook_handler
DEBUG: Finished module hook (pre): udev_shutdown_hook_handler
DEBUG: Running rootfs_run
DEBUG: No e2fs compatible filesystem has been mounted, mounting PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582...
DEBUG: Sleeping for 1 second(s) to wait for root to settle...
DEBUG: No e2fs compatible filesystem has been mounted, mounting /dev/disk/by-partuuid/e91c4e10-16e6-4c0e-bd0e-77becf4a3582...
DEBUG: Sleeping for 1 second(s) to wait for root to settle...
DEBUG: No e2fs compatible filesystem has been mounted, mounting /dev/disk/by-partuuid/e91c4e10-16e6-4c0e-bd0e-77becf4a3582...
DEBUG: Sleeping for 1 second(s) to wait for root to settle...
DEBUG: No e2fs compatible filesystem has been mounted, mounting /dev/disk/by-partuuid/e91c4e10-16e6-4c0e-bd0e-77becf4a3582...
DEBUG: Sleeping for 1 second(s) to wait for root to settle...
DEBUG: No e2fs compatible filesystem has been mounted, mounting /dev/disk/by-partuuid/e91c4e10-16e6-4c0e-bd0e-77becf4a3582...
DEBUG: Sleeping for 1 second(s) to wait for root to settle...
DEBUG: No e2fs compatible filesystem has been mounted, mounting /dev/disk/by-partuuid/e91c4e10-16e6-4c0e-bd0e-77becf4a3582...
DEBUG: Sleeping for 1 second(s) to wait for root to settle...
root '/dev/disk/by-partuuid/e91c4e10-16e6-4c0e-bd0e-77becf4a3582' doesn't exist or does not contain a /dev.

[   12.205221] psci-cpuidle-domain psci: sync_state() pending due to 0.m33

When I run initrd stand-alone.

Command (m for help): q

~ # [  403.404430]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
~ # ls -al /dev/disk/by-partlabel/
drwxr-xr-x    2 root     root           260 Jan  1 00:06 .
drwxr-xr-x    9 root     root           180 Jan  1 00:06 ..
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 bootfs -> ../../mmcblk0p8
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 fip-a -> ../../mmcblk0p5
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 fip-b -> ../../mmcblk0p6
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 fsbla1 -> ../../mmcblk0p1
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 fsbla2 -> ../../mmcblk0p2
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 metadata1 -> ../../mmcblk0p3
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 metadata2 -> ../../mmcblk0p4
lrwxrwxrwx    1 root     root            16 Jan  1 00:06 rootfs -> ../../mmcblk0p10
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 u-boot-env -> ../../mmcblk0p7
lrwxrwxrwx    1 root     root            16 Jan  1 00:06 userfs -> ../../mmcblk0p11
lrwxrwxrwx    1 root     root            15 Jan  1 00:06 vendorfs -> ../../mmcblk0p9

By opening the console:

# Generic Distro Configuration file generated by OpenEmbedded
MENU BACKGROUND /splash_landscape.bmp
TIMEOUT 20
LABEL OpenSTLinux
        KERNEL /Image.gz
        FDT /stm32mp257f-watermelon-wine-1a-mx.dtb
        INITRD /st-image-resize-initrd
        APPEND debug init_fatal_sh root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw   earlycon console=${console},${baudrate}
STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer

@Christophe Guibout 

 

Hi!

To "by pass" this problem.

Just run this in initrd

fdisk /dev/mmcblk0

 Then press quit to populate /dev with mmcblk0p1 to mmcblk0p11

q

 Then run the initrd init file

exec init

 Then Linux continues to boot.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer