Installing the Filesystem to an SD Card
Installing a filesystem to an SD card
This tutorial will guide you on manually installing the filesystem onto an SD card.
Insert and mount the SD card
Insert the SD card 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"
[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: