This guide will teach the user to read and write from an attached SD card.
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:
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.
mount /dev/mmcblk1p1 ~/tempCODE
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.
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.
cp /home/root/test.txt ~/temp/test-duplicate.txtCODE
Unmounting the SD Card
Make sure you umount the sd card before unplugging the device from the kit.