Installing the Filesystem to an SD Card: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
mNo edit summary
(One intermediate revision by one other user not shown)
Line 8: Line 8:
$ watch "dmesg | tail -5"
$ watch "dmesg | tail -5"
</pre>
</pre>
Then, when you insert the SD card you should see something like this:


<pre>
<pre>
Line 43: Line 45:
::[[Configuring the Avnet S6-OMAP board to use an SD Card root filesystem]]
::[[Configuring the Avnet S6-OMAP board to use an SD Card root filesystem]]
::[[Getting Started Guide for the AVNET OMAPL138 EVM]]
::[[Getting Started Guide for the AVNET OMAPL138 EVM]]
[[Category:Ubuntu]][[Category:Resolving Common Linux Problems]]

Revision as of 16:05, 17 March 2014

This tutorial will guide you on manually installing the filesystem onto an SD card.

Insert and mount the SD card

If you haven't already done this, insert the SD card into your SD card reader and locate the right /dev device. You can run the following command before inserting the SD card to see where Linux locates the SD card in the /dev directory.

$ watch "dmesg | tail -5"

Then, when you insert the SD card you should see something like this:

[477930.856298]  sdc: sdc1
[477931.648223] kjournald starting.  Commit interval 5 seconds
[477931.652410] EXT3 FS on sdc1, internal journal
[477931.652470] EXT3-fs: recovery complete.
[477931.652491] EXT3-fs: mounted filesystem with ordered data mode.

Create a temporary mount point and mount the SD card.

$ mkdir temp
$ sudo mount /dev/sdc1 temp

Copy the filesystem to the SD card

Copy the filesystem to the SD card, ensuring that you preserve all of the file attributes and ownership.

The filesystem built by the SDK is in the SDK install directory under <sdk install dir>/fs/fs

$ sudo cp -adpr <sdk install directory>/fs/fs temp
$ sync
$ sudo umount temp
$ rm -rf temp

The filesystem should now be ready to use on your board.

See also:

Formatting a new SD card
Configuring the Avnet S6-OMAP board to use an SD Card root filesystem
Getting Started Guide for the AVNET OMAPL138 EVM