This whitepaper shows how to use a SD card or an USB drive as an storage media when using a LeopardBoard DM36x.

This whitepaper shows how to use a SD card or an USB drive as an storage media when using a LeopardBoard DM36x.

−

== Using a SD card as storage media ==

+

= Using a SD card as storage media =

In order to use a SD card as a storage media you must insert it into the MMC/SD card slot located in the LeopardBoard DM365 as is shown in the Figure 1.

In order to use a SD card as a storage media you must insert it into the MMC/SD card slot located in the LeopardBoard DM365 as is shown in the Figure 1.

Line 57:

Line 57:

</pre>

</pre>

−

== Using a USB drive as storage media ==

+

= Using a USB drive as storage media =

In order to use your LeopardBoard's USB port to connect a USB drive device you must first setup your board in USB Host mode. See [[How to configure DM365 for USB host, device and OTG support]] for details.

In order to use your LeopardBoard's USB port to connect a USB drive device you must first setup your board in USB Host mode. See [[How to configure DM365 for USB host, device and OTG support]] for details.

Line 110:

Line 110:

umount /media/usb

umount /media/usb

</pre>

</pre>

+

+

+

[[Category:Whitepaper]]

Revision as of 16:28, 25 May 2011

Introduction

This whitepaper shows how to use a SD card or an USB drive as an storage media when using a LeopardBoard DM36x.

Using a SD card as storage media

In order to use a SD card as a storage media you must insert it into the MMC/SD card slot located in the LeopardBoard DM365 as is shown in the Figure 1.

Figure 1. MMC/SD Card connection.

Once you have inserted the SD card into the slot you will be able to see an output like the showed below, if you started the board with the SD card plugged, you must type the dmesg command in your target and look for the output into the log message.

In the example showed the SD card was detected with the device name mmcblk0 and there was only one partition detected p1. In order to get access to the SD card you must mount it first following the next steps:

1. Create a directory where to mount the device

mkdir <directory>

Example:

mkdir -p /media/sd

2. Mount the device

mount /dev/<device name> <target directory>

Example:

mount /dev/mmcblk0p1 /media/sd

Once your SD has been mounted, you can access its content by entering into the directory where you mounted it. Everything you write into this directory will be written into the SD card. When you finish to write data into the SD card you must unmount it before you extract it by running the following command:

In the previous output it is possible to see that the USB drive was recognized with the device name sda with just one partition: sda1. Once you get the name of the partition you want to use you can follow the next steps in order to get access to it from your target.

1. Create a directory where to mount the device

mkdir <directory>

mkdir -p /media/usb

2. Mount the device

mount /dev/<device name> <target directory>

mount /dev/sda1 /media/usb

Once your USB drive has been mounted, you can access its content by entering into the directory where you mounted it. Everything you write into this directory will be written into the USB drive. When you finish to write data into the USB drive you must unmount it before you extract it by running the following command: