22
This assumes a pre-built U-Boot image delivered with the BSP or built from the U-
Boot source code. If using a non-padded U-Boot image, "skip=2" should be omitted
from the above command line. The first 1 KB of the SD/MMC card, that includes the
partition table, will be preserved.
3.3.3.
Copying the Kernel Image
The following command will copy the kernel image to the SD/MMC card:
$ sudo dd if=uImage of=/dev/sdb bs=512 seek=2048 conv=fsync
This will copy uImage to the media at offset 1 MB (bs x seek = 512 x 2048 = 1MB).
3.3.4.
Copying the Root File System (rootfs)
First, a partition table must be created. If a partition already exists and it is big
enough for the file system you want to deploy, then you can skip this step.
To create a partition, at offset 16384 (in sectors of 512 bytes) enter the following
command:
$ sudo fdisk /dev/sdb
Note:
On most Linux host operating systems, SD card will be mounted automatically
upon insertion. Therefore, before running fdisk, please make sure that SD card is
unmounted (via 'sudo umount /dev/sdb').
Type the following parameters (each followed by <ENTER>):
u
[switch the unit to sectors instead of cylinders]
d
[repea
t this until no partition is reported by the ‘p’ command ]
n
[create a new partition]
p
[create a primary partition]
1
[the firs partition]
16384 [start at offset sector #16384, i.e. 8MB, which leaves enough space for
the kernel, the boot loader and its configuration data]
<enter> [using the default value will create a partition that spans to the last
sector of the medium]
w
[this writes the partition table to the medium and fdisk exits]
The file system format ext3 or ext4 is a good option for removable media due to the
built- in journaling. Run the following command to format the partition:
Summary of Contents for EBC2A0
Page 1: ...1 EBC2A0 2 5 SBC with Freescale i MX6 Processor ARM Cortex A9 Architecture User Manual Ver 1st...
Page 7: ...7 Chapter 1 Product Overview This chapter provides background Information of SBC...
Page 10: ...10 1 3 Block Diagram...
Page 18: ...18 Chapter 3 Software User Guide This chapter details the Linux operation on ICM 2010...