Waiting for root MMC device

I’m using 6.4.10 kernel and from time to time I’ve got following error during booting of the kernel: Waiting for root device /dev/mmcblk0p2. And after that kernel is waiting indefinitely. It occurs about 6-7 times out of 10 tries to boot the system.

Anybody knows this issue and could help with it? Any pointers? Or Ideas? I could try newest kernel but I’m curious if somebody knows the reason for it.

I answer myself to my own questions :slight_smile: I dig a bit into kernel sources and found out that solution for my problem is to define following aliases in device tree file:

mmc0 = &mmc0;
mmc1 = &mmc1;
mmc2 = &mmc2;

With this my board is booting properly and boot up of the kernel+user space takes about 4 seconds to be fully usable :slight_smile: