This guide will teach the user to read and write from an attached SD card.


In order to make use of the SD Card slot on the Carrier Board your kit must first be booting from eMMC to make this slot available. See Flashing Images to the eMMC and Changing Boot Configurations.


The following steps can be used on both your Host (Linux/Ubuntu Machine) and Target (Linux running on your phyCORE-AM57x).

Mounting the SD Card

  • Create a temporary directory to mount your desired SD card partition:

    Linux

    mkdir ~/temp
    CODE
  • Mount the partition. You will need to create new directories if you want to mount more than one partition on the card to the system.

    Linux

    mount /dev/mmcblk1p1 ~/temp
    CODE

Reading from the SD Card

  • After the SD card is mounted you can navigate through the directories just like you normally would in Linux. The SD Card used in this step has a file called "test.txt" on the first partition. The following command is only intended as an example and won't work unless you have this file present on your SD Card as well.

    Linux

    ls ~/temp
    cp ~/temp/test.txt /home/root/
    CODE

Writing to the SD Card

  • Just like in Linux, basic commands will work for copying or moving files around.

    Linux

    cp /home/root/test.txt ~/temp/test-duplicate.txt
    CODE

Unmounting the SD Card

  • Make sure you umount the sd card before unplugging the device from the kit.

    Linux

    umount ~/temp
    CODE