![Embux ICM-2010 Series Скачать руководство пользователя страница 20](http://html1.mh-extra.com/html/embux/icm-2010-series/icm-2010-series_user-manual_2399678020.webp)
20
u
[switch the unit to sectors instead of cylinders]
d
[repeat this until no partition is reported by the ‘p’ command ]
n
[create a new partition]
p
[create a primary partition]
1
[the firs partition]
32768 [start at offset sector #32768, i.e. 16MB, 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]
Use the commands above to create rest 9 partitions to complete the partition table.
3.2.3.
Copying the Boot loader Image
Once the partition table is ready, enter the following command to copy the U-Boot
image to the SD/MMC card:
$ sudo dd if=u-boot.imx of=/dev/sdb bs=1k seek=1 conv=fsync
3.2.4.
Copying the Kernel Image and Device Tree Files
The following command will copy the kernel image and device tree files to the
SD/MMC card:
$ sudo mount –t vfat /dev/sdb10 /home/user/mountpoint
$ cp uImage /home/user/mountpoint
$ cp boot-env /home/user/mountpoint
$ cp imx6dl-embux-icm2010.dtb /home/user/mountpoint
$ sync
$ sudo umount /home/user/mountpoint
3.2.5.
Copying the Root File System (rootfs)
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:
$ sudo mkfs.ext3 /dev/sdb1
Or
$ sudo mkfs.ext4 /dev/sdb1
Copy the target file system to the partition: