Cn9130 : about the media used

Hy :slight_smile:

For my porject, i select to boot on SD card or emmc thanks to the u-boot.

But when Linux was loaded, i need to know if i use the SD card or the Emmc.

In the dmesg, i see this :

[    5.212397] Run /init as init process
[    5.216077]   with arguments:
[    5.219087]     /init
[    5.221407]   with environment:
[    5.221560] mmc1: new high speed SDHC card at address 0001
[    5.224588]     HOME=/
[    5.230483] mmcblk1: mmc1:0001 00000 29.8 GiB
[    5.232483]     TERM=linux
[    5.238196]  mmcblk1: p1 p2 p3
[    5.239653]     board=pro
[    7.280315] random: crng init done

Can i recover this information with a command line?

Actually, to know where i am, i do this :

-Create a folderwithe a command line in uboot
-In bash script : look for this folder in sd card and emmc.

Thanks by advance :slight_smile:

do you need to know which device you booted the bootloader from, or which device your Linux system is booted from? For instance, you can boot the u-boot firmware from uSDHC but still run Linux from the eMMC depending on your settings in u-boot.

If it is the latter then you can use the lsblock -l to see what devices are used.