Page 1 of 1

SD card access from Xillinux

PostPosted:
by dragutinv
Hi, I am trying to access SD card from using opencv or cpp on Xillinux, but I can't find way to access SD card. Can you help me with this?

Re: SD card access from Xillinux

PostPosted:
by support
Hello,

The SD card appears in Xillinux as /dev/mmcblk0, with the two partitions as /dev/mmcblk0p1 and /dev/mmcblk0p2. The latter is referred to as /dev/root in the mount table, and mounted as /. /dev/mmcblk0p1 is the small FAT partition of the SD card. You can mount it, for example, by creating a directory called /mnt/card:

mkdir /mnt/card

and then mount it with

mount /dev/mmcblk0p1 /mnt/card/

And then access the files under /mnt/card

Regards,
Eli