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.

in linux add support for second SD card am3352

Other Parts Discussed in Thread: AM3352

Hello

On my AM3352 custom board a /media/mmcblk0p2 is mounted to access first SD card mmc0.

I want to add support for a second SD card mmc1 .

Do i only have to add a call to mmc1_init() function in board-am335xevm.c to have access to the second sd card under linux (will there be a /media/mmcblk0p2 mounted automatically ?)

Best regards

  • Yes, just make sure you call mmc1_init before you call mmc0_init.

    I think it will automatically be mounted, but I'm not sure.

    Steve K.

  • Hi Christophe,

    Do i only have to add a call to mmc1_init() function in board-am335xevm.c to have access to the second sd card under linux (will there be a /media/mmcblk0p2 mounted automatically ?)

    Typically We follow,

    If you had 2 MMC support,

    /media/mmcblk0p2 --> It is the Second partition of MMC0 for linux filesystem

    /media/mmcblk0p1 --> It is the First partition of MMC0 for bootable binaries

    /media/mmcblk1p2 --> It is the Second partition of MMC1 for linux filesystem

    /media/mmcblk1p1 --> It is the First partition of MMC1 for bootable binaries

    If you want to mount filesystem from MMC1 then change the bootargs in u-boot ( rootfs=/dev/mmcblk1p2).