This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5718: eMMC device node name

Part Number: AM5718

hi

When my board is not plugged into the sd card, the emmc device node name is mmcblk0, the emmc device node name is mmcblk0 when inserting sd, and the sd card device node name is mmcblk1. I want the emmc device node to become mmcblk1 after inserting the sd card , sd card device node is mmcblk0. What should I do?

  • user5361157 said:
    I want the emmc device node to become mmcblk1 after inserting the sd card , sd card device node is mmcblk0. What should I do?

    This is not something normally done in a system, usually the desire is to keep device names uniquely associated with actual devices. Attempting this would probably involve changing the device probe order across U-Boot and Linux.

    What specifically are you trying to accomplish? If you can explain your use case in a bit more detail we might be able to come up with an alternative solution. For example a lot can be done in U-Boot scripting to work around handling boot from different devices. Then, you an also tell the Kernel by UUID which device to boot from rather than from a specific device which provides yet another level of abstraction that could be beneficial depending on what you are trying to do.

    Regards, Andreas