VAR-SOM-MX7 NAND Flash Burning: Difference between revisions

From Variscite Wiki
(Created page with "{{PageHeader|VAR-SOM-MX7 - NAND flash Burning}} {{DocImage|category1=VAR-SOM-MX7|category2=Yocto}} __toc__ = Introduction = The Variscite VAR-SOM-MX7 has either an on-SOM NAND...")
 
No edit summary
Line 1: Line 1:
{{PageHeader|VAR-SOM-MX7 - NAND flash Burning}} {{DocImage|category1=VAR-SOM-MX7|category2=Yocto}} __toc__
{{PageHeader|VAR-SOM-MX7 - Flashing the internal storage device}} {{DocImage|category1=VAR-SOM-MX7|category2=Yocto}} __toc__
 
= Introduction =
= Introduction =
The Variscite VAR-SOM-MX7 has either an on-SOM NAND flash or eMMC, and either of them can be used to boot from and to hold the filesystem.<br>
The Variscite VAR-SOM-MX7 has either an on-SOM NAND flash or eMMC, and either of them can be used to boot from and to hold the filesystem.<br>
For NAND flash we use a UBI file system and for eMMC we use ext4.<br>
For NAND flash we use a UBI file system and for eMMC we use ext4.
 
= NAND Structure =


== NAND Structure ==
These are the defined MTD partitions on the NAND flash:<br>
These are the defined MTD partitions on the NAND flash:<br>
0x000000000000-0x000000200000 : "spl"<br>
0x000000000000-0x000000200000 : "spl"<br>
Line 12: Line 15:
0x000000e00000-0x000040000000 : "rootfs"<br>
0x000000e00000-0x000040000000 : "rootfs"<br>


Note: Since currently there's no SPL support for the i.MX7, the first partition is actually used for U-Boot and the second one is for future use.<br>
Note: Since currently there's no SPL support for the i.MX7, the first partition is actually used for U-Boot and the second one is for future use.
 
= Yocto Built binaries for eMMC/NAND flash =


== Yocto Built binaries for NAND flash ==
The resulted images are located at tmp/deploy/images/imx7-var-som:
The resulted images are located at tmp/deploy/images/imx7-var-som:


Line 22: Line 26:
! scope="col" | Description
! scope="col" | Description
|-
|-
| style="padding: 5px;"| fsl-image-gui-imx7-var-som.ubi
| style="padding: 5px" | fsl-image-gui-imx7-var-som.tar.bz2
| style="padding: 5px;"| A complete UBI image containing a UBIFS volume, for writing to NAND flash.
| style="padding: 5px" | Tarball with rootfs files. Used here for writing to eMMC.
|-
| style="padding: 5px" | fsl-image-gui-imx7-var-som.ubi
| style="padding: 5px" | A complete UBI image containing a UBIFS volume, for writing to NAND flash.
|-
| style="padding: 5px" | zImage
| style="padding: 5px" | Linux kernel image. Used here for both eMMC and NAND flash.
|-
|-
| style="padding: 5px;"| zImage
| style="padding: 5px" | u-boot.imx-sd
| style="padding: 5px;"| Linux kernel image, same binary for SD card/eMMC/NAND flash.
| style="padding: 5px" | U-Boot image. Used here for eMMC.
|-
|-
| style="padding: 5px;"| u-boot.imx-nand
| style="padding: 5px" | u-boot.imx-nand
| style="padding: 5px;"| U-Boot built for NAND Flash.
| style="padding: 5px" | U-Boot built for NAND flash.
|-
|-
| style="padding: 5px;"| zImage-imx7d-var-som-nand.dtb
| style="padding: 5px" | zImage-imx7d-var-som-emmc.dtb
| style="padding: 5px;"| Device tree blob for SOMs with NAND flash.
| style="padding: 5px" | Device tree blob for SOMs with eMMC.
|-
|-
| style="padding: 5px" | zImage-imx7d-var-som-nand.dtb
| style="padding: 5px" | Device tree blob for SOMs with NAND flash.
|}
|}


== NAND Flashing scripts==
= Installing the Yocto binaries =
If you followed the [[VAR-SOM-MX7_Yocto_Jethro_R1_build#Create_an_extended_SD_card |Create an extended SD card]] steps, the [[#NAND flash flashing scripts|NAND flashing scripts]] will be included in your SD card. <br>
The [[#NAND flash flashing scripts|NAND flashing scripts]] are easy-to-use example scripts for burning images into NAND flash / eMMC.<br>


=== NAND flash images locations ===
If you followed the [[VAR-SOM-MX7 Yocto Jethro R1 build#Create an extended SD card|Create an extended SD card]] steps, the [[#Images_locations|Yocto binaries]] and the [[#Flashing_script|flashing script]] will be included in your SD card.<br>
Following is the directory structure on your SD card, which elaborates the files' location that the below flashing scripts are expecting:
The flashing script is an easy-to-use example script for flashing images into NAND flash / eMMC.<br>
<pre>
There are also sections below describing how to flash the images manually to [[#Manual_step-by-step_flashing_to_NAND_flash|NAND flash]] and to [[#Manual_step-by-step_flashing_to_eMMC|eMMC]].
/opt/images/
 
== Images locations ==
 
Following is the directory structure on your SD card, which elaborates the files' location that the below installation script is expecting:
<pre>/opt/images/
└── Yocto
└── Yocto
    ├── imx7d-var-som-emmc.dtb
    ├── imx7d-var-som-nand.dtb
     ├── rootfs.tar.bz2
     ├── rootfs.tar.bz2
     ├── rootfs.ubi.img
     ├── rootfs.ubi
     ├── u-boot.img
     ├── u-boot.imx-nand
    ├── uImage
     ├── u-boot.imx-sd
    ├── uImage-imx6dl-var-som-cap.dtb
     └── zImage
     ├── uImage-imx6dl-var-som-res.dtb
    ├── uImage-imx6dl-var-som-solo-cap.dtb
    ├── uImage-imx6dl-var-som-solo-res.dtb
    ├── uImage-imx6dl-var-som-solo-vsc.dtb
    ├── uImage-imx6dl-var-som-vsc.dtb
    ├── uImage-imx6q-var-som-cap.dtb
    ├── uImage-imx6q-var-som-res.dtb
     └── uImage-imx6q-var-som-vsc.dtb
</pre>
</pre>


== Prepare images for NAND flash / eMMC flashing ==
=== Prepare the images for NAND flash / eMMC flashing ===
Plug the bootable SD card into your host machine.
Plug the bootable SD card into your host machine and mount the rootfs partition - here we assume it is mounted on /media/rootfs.<br>
Then your host machine should mount the rootfs partition on /media/rootfs.<br>
Copy all the mentioned yocto-built binaries to the SD card:<br>
Copy all the mentioned yocto-built binaries to the SD card:
* <span style="color:red">Note:</span> If you followed the [[VAR-SOM-MX7 Yocto Jethro R1 build#Create an extended SD card|Create an extended SD card]] steps, the [[#Flashing script|flashing script]] and all relevant binaries are already included in your SD card, and the below commands are redundant!<br>
<br>
* <span style="color:red">Note:</span> If you followed the [[VAR-SOM-MX6 Yocto Jethro R4 Build Yocto release#Create an extended SD card |Create an extended SD card]] steps, the [[#NAND flash flashing scripts|NAND flashing scripts]] and all relevant binaries are already included in your SD card, and the below commands are redundant!<br>


<pre>
<pre>
$ export YOCTO_IMGS_PATH=~/var-som-mx6-yocto-jethro/tmp/deploy/images/var-som-mx6
$ export YOCTO_IMGS_PATH=~/var-mx6ul-mx7-yocto-jethro/build_x11/tmp/deploy/images/imx7-var-som
$ export P2_MOUNT_DIR=/media/rootfs/
$ export P2_MOUNT_DIR=/media/rootfs/
</pre>


<pre>
Linux:
Linux:
$ sudo cp ${YOCTO_IMGS_PATH}/uImage ${P2_MOUNT_DIR}/opt/images/Yocto/
$ sudo cp ${YOCTO_IMGS_PATH}/zImage ${P2_MOUNT_DIR}/opt/images/Yocto/
</pre>
 
NAND images:
<pre>
Device Tree:
$ sudo cp ${YOCTO_IMGS_PATH}/zImage-imx7d-var-som-nand.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/imx7d-var-som-nand.dtb


SPL/U-Boot:
U-Boot:
$ sudo cp ${YOCTO_IMGS_PATH}/SPL-nand ${P2_MOUNT_DIR}/opt/images/Yocto/SPL
$ sudo cp ${YOCTO_IMGS_PATH}/u-boot.imx-nand ${P2_MOUNT_DIR}/opt/images/Yocto/
$ sudo cp ${YOCTO_IMGS_PATH}/u-boot-nand-2015.04-r0.img ${P2_MOUNT_DIR}/opt/images/Yocto/u-boot.img


File System:
File System:
$ sudo cp ${YOCTO_IMGS_PATH}/fsl-image-gui-var-som-mx6.tar.bz2 ${P2_MOUNT_DIR}/opt/images/Yocto/rootfs.tar.bz2
$ sudo cp ${YOCTO_IMGS_PATH}/fsl-image-gui-imx7-var-som.ubi ${P2_MOUNT_DIR}/opt/images/Yocto/rootfs.ubi
$ sudo cp ${YOCTO_IMGS_PATH}/fsl-image-gui-var-som-mx6.ubi ${P2_MOUNT_DIR}/opt/images/Yocto/rootfs.ubi.img
</pre>


eMMC images:
<pre>
Device Tree:
Device Tree:
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6dl-var-som-cap.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
$ sudo cp ${YOCTO_IMGS_PATH}/zImage-imx7d-var-som-emmc.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/imx7d-var-som-emmc.dtb
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6dl-var-som-res.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
 
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6dl-var-som-solo-cap.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
U-Boot:
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6dl-var-som-solo-res.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
$ sudo cp ${YOCTO_IMGS_PATH}/u-boot.imx-sd ${P2_MOUNT_DIR}/opt/images/Yocto/
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6dl-var-som-solo-vsc.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
 
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6dl-var-som-vsc.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
File System:
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6q-var-dart.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
$ sudo cp ${YOCTO_IMGS_PATH}/fsl-image-gui-imx7-var-som.tar.bz2 ${P2_MOUNT_DIR}/opt/images/Yocto/rootfs.tar.bz2
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6q-var-som-cap.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6q-var-som-res.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
$ sudo cp ${YOCTO_IMGS_PATH}/uImage-imx6q-var-som-vsc.dtb ${P2_MOUNT_DIR}/opt/images/Yocto/
</pre>
</pre>


== NAND flash flashing scripts ==
== Flashing script ==
The flashing scripts are located on the SD card at /usr/bin/:
 
The flashing script is located on the SD card at /usr/bin/:
<pre>install_yocto.sh - Flash Yocto into NAND flash or eMMC (Run and follow usage instructions)
</pre>
 
== Manual step-by-step flashing to NAND flash ==
 
Use the prepared SD card to boot the board and run the following:
<br><br>
<pre>
<pre>
install_yocto.sh - Flash Yocto into NAND flash or eMMC (Run and follow usage instructions)
$ cd /opt/images/Yocto
(install_yocto_emmc.sh - This script is being called by install_yocto.sh when choosing to install the rootfs to eMMC - it should not be called directly!)
</pre>
</pre>


== Manual step-by-step flashing to NAND ==
Flash U-Boot to NAND flash:
Assuming you followed the [[#Prepare images for NAND flash / eMMC flashing|Prepare images for NAND flash / eMMC flashing]] section above:
=== Flash SPL & U-Boot ===
<pre>
<pre>
$ cd /opt/images/Yocto
$ flash_erase /dev/mtd0 0 0
$ flash_erase /dev/mtd0 0 0
$ kobs-ng init -x SPL --search_exponent=1 -v
$ kobs-ng init -x u-boot.imx-nand --search_exponent=1 -v
$ flash_erase /dev/mtd1 0 0
$ flash_erase /dev/mtd2 0 0
$ nandwrite -p /dev/mtd1 u-boot.img
</pre>
</pre>


=== Flash Linux Kernel image & Device Tree ===
Flash the Linux Kernel image & Device Tree to NAND flash:
You need to pick and choose the right .dtb file. See the [[#Yocto Built binaries for NAND flash|table]] above for a complete description.
<pre>
<pre>
$ cd /opt/images/Yocto
$ flash_erase /dev/mtd3 0 0
$ flash_erase /dev/mtd2 0 0
$ nandwrite -p /dev/mtd3 zImage
$ nandwrite -p /dev/mtd2 uImage
$ nandwrite -p /dev/mtd3 -s 0x7e0000 imx7d-var-som-nand.dtb
$ nandwrite -p /dev/mtd1 -s 0x1e0000 uImage-imx6q-var-som.dtb (Example, select the right one!)
</pre>
</pre>


=== Flash UBIFS ===
Flash the UBI File System to NAND flash:
<pre>
<pre>
$ cd /opt/images/Yocto
$ ubiformat /dev/mtd4 -f rootfs.ubi
$ ubiformat /dev/mtd3 -f rootfs.ubi.img
</pre>
</pre>


== Flash File System to eMMC ==
== Manual step-by-step flashing to eMMC ==
Flashing eMMC requires several steps including partition, format and untar of the file system.
 
Flashing the eMMC requires several steps including flashing of U-Boot and the Linux kernel, partitioning, file system formatting and image extraction.<br>
We recommend to use our provided scripts to perform this task.<br>
We recommend to use our provided scripts to perform this task.<br>
<br>
<br>
Use the prepared SD card to boot the board and run the following:
<br><br>
<pre>
<pre>
$ export node=/dev/mmcblk0
$ export node=/dev/mmcblk2
$ cd /opt/images/Yocto
$ cd /opt/images/Yocto
</pre>
</pre>
Line 160: Line 175:
Create a partition table:
Create a partition table:
<pre>
<pre>
$ (echo n; echo p; echo 1; echo; echo; echo p; echo w) | fdisk -u $node
$ (echo n; echo p; echo 1; echo 8192; echo 24575; echo t; echo c; \
  echo n; echo p; echo 2; echo 24576; echo; \
  echo p; echo w) | fdisk -u $node
$ sync
$ sync
</pre>
</pre>


Format the rootfs partition with ext4 file system:
Format the partitions:
<pre>
<pre>
$ mkfs.ext4 ${node}p1 -L rootfs
$ mkfs.vfat ${node}p1 -n BOOT-VARMX7
$ mkfs.ext4 ${node}p2 -L rootfs
$ sync
</pre>
</pre>


Flash the rootfs:
Flash U-Boot to eMMC:
<pre>
<pre>
$ mkdir /run/media/mmcblk0p1
$ dd if=u-boot.imx-sd of=${node} bs=1K seek=1; sync
$ mount ${node}p1 /run/media/mmcblk0p1
$ tar xvpf rootfs.tar.bz2 -C /run/media/mmcblk1p1/
$ sync
$ umount /run/media/mmcblk0p1
</pre>
</pre>


 
Copy the Linux kernel image and the device tree blob to the BOOT partition:
And finally, set the U-Boot env. variable "rootfs_device" to "emmc" by one of the following two methods:
<pre>
<pre>
$ fw_setenv rootfs_device emmc
$ mkdir /run/media/mmcblk2p1
(A "Warning: Bad CRC, using default environment" message is expected, since this is the first write of the U-Boot environment to the NAND flash)
$ mount -t vfat ${node}p1 /run/media/mmcblk2p1
$ cp imx7d-var-som-emmc.dtb /run/media/mmcblk2p1/
$ cp zImage /run/media/mmcblk2p1/
$ sync
$ umount /run/media/mmcblk2p1
</pre>
</pre>
or:
 
Extract the rootfs archive:
<pre>
<pre>
Reboot and stop at the U-Boot command line, and enter the following:
$ mkdir /run/media/mmcblk2p2
=> setenv rootfs_device emmc
$ mount ${node}p2 /run/media/mmcblk2p2
=> saveenv
$ tar xvpf rootfs.tar.bz2 -C /run/media/mmcblk2p2
$ sync
$ umount /run/media/mmcblk2p2
</pre>
</pre>


= Summary =
= Summary =
This page is not valid for DART-MX6. For DART-MX6, please follow the link to the relevant page.<br>
This page is not valid for DART-MX6. For DART-MX6, please follow the link to the relevant page.<br>
We described the results of a Yocto build, how to copy it to a bootable SD card and how to flash it to NAND and eMMC.<br>
We described the results of a Yocto build, how to copy it to a bootable SD card and how to flash it to NAND and eMMC.<br>
With our extended SD card and our recovery SD card we provide an installation script located at /usr/bin/install_yocto.sh. It is much safer to use it instead of flashing the system manually.<br>
With our extended SD card and our recovery SD card we provide an installation script located at /usr/bin/install_yocto.sh. It is much safer to use it instead of flashing the system manually.

Revision as of 13:21, 1 September 2016

VAR-SOM-MX7 - Flashing the internal storage device

Introduction

The Variscite VAR-SOM-MX7 has either an on-SOM NAND flash or eMMC, and either of them can be used to boot from and to hold the filesystem.
For NAND flash we use a UBI file system and for eMMC we use ext4.

NAND Structure

These are the defined MTD partitions on the NAND flash:
0x000000000000-0x000000200000 : "spl"
0x000000200000-0x000000400000 : "u-boot"
0x000000400000-0x000000600000 : "u-boot_env"
0x000000600000-0x000000e00000 : "kernel"
0x000000e00000-0x000040000000 : "rootfs"

Note: Since currently there's no SPL support for the i.MX7, the first partition is actually used for U-Boot and the second one is for future use.

Yocto Built binaries for eMMC/NAND flash

The resulted images are located at tmp/deploy/images/imx7-var-som:

File Name Description
fsl-image-gui-imx7-var-som.tar.bz2 Tarball with rootfs files. Used here for writing to eMMC.
fsl-image-gui-imx7-var-som.ubi A complete UBI image containing a UBIFS volume, for writing to NAND flash.
zImage Linux kernel image. Used here for both eMMC and NAND flash.
u-boot.imx-sd U-Boot image. Used here for eMMC.
u-boot.imx-nand U-Boot built for NAND flash.
zImage-imx7d-var-som-emmc.dtb Device tree blob for SOMs with eMMC.
zImage-imx7d-var-som-nand.dtb Device tree blob for SOMs with NAND flash.

Installing the Yocto binaries

If you followed the Create an extended SD card steps, the Yocto binaries and the flashing script will be included in your SD card.
The flashing script is an easy-to-use example script for flashing images into NAND flash / eMMC.
There are also sections below describing how to flash the images manually to NAND flash and to eMMC.

Images locations

Following is the directory structure on your SD card, which elaborates the files' location that the below installation script is expecting:

/opt/images/
└── Yocto
    ├── imx7d-var-som-emmc.dtb
    ├── imx7d-var-som-nand.dtb
    ├── rootfs.tar.bz2
    ├── rootfs.ubi
    ├── u-boot.imx-nand
    ├── u-boot.imx-sd
    └── zImage

Prepare the images for NAND flash / eMMC flashing

Plug the bootable SD card into your host machine and mount the rootfs partition - here we assume it is mounted on /media/rootfs.
Copy all the mentioned yocto-built binaries to the SD card:

$ export YOCTO_IMGS_PATH=~/var-mx6ul-mx7-yocto-jethro/build_x11/tmp/deploy/images/imx7-var-som
$ export P2_MOUNT_DIR=/media/rootfs/
Linux:
$ sudo cp ${YOCTO_IMGS_PATH}/zImage				${P2_MOUNT_DIR}/opt/images/Yocto/

NAND images:

Device Tree:
$ sudo cp ${YOCTO_IMGS_PATH}/zImage-imx7d-var-som-nand.dtb	${P2_MOUNT_DIR}/opt/images/Yocto/imx7d-var-som-nand.dtb

U-Boot:
$ sudo cp ${YOCTO_IMGS_PATH}/u-boot.imx-nand			${P2_MOUNT_DIR}/opt/images/Yocto/

File System:
$ sudo cp ${YOCTO_IMGS_PATH}/fsl-image-gui-imx7-var-som.ubi	${P2_MOUNT_DIR}/opt/images/Yocto/rootfs.ubi

eMMC images:

Device Tree:
$ sudo cp ${YOCTO_IMGS_PATH}/zImage-imx7d-var-som-emmc.dtb	${P2_MOUNT_DIR}/opt/images/Yocto/imx7d-var-som-emmc.dtb

U-Boot:
$ sudo cp ${YOCTO_IMGS_PATH}/u-boot.imx-sd			${P2_MOUNT_DIR}/opt/images/Yocto/

File System:
$ sudo cp ${YOCTO_IMGS_PATH}/fsl-image-gui-imx7-var-som.tar.bz2	${P2_MOUNT_DIR}/opt/images/Yocto/rootfs.tar.bz2

Flashing script

The flashing script is located on the SD card at /usr/bin/:

install_yocto.sh	- Flash Yocto into NAND flash or eMMC (Run and follow usage instructions)

Manual step-by-step flashing to NAND flash

Use the prepared SD card to boot the board and run the following:

$ cd /opt/images/Yocto

Flash U-Boot to NAND flash:

$ flash_erase /dev/mtd0 0 0
$ kobs-ng init -x u-boot.imx-nand --search_exponent=1 -v
$ flash_erase /dev/mtd2 0 0

Flash the Linux Kernel image & Device Tree to NAND flash:

$ flash_erase /dev/mtd3 0 0
$ nandwrite -p /dev/mtd3 zImage
$ nandwrite -p /dev/mtd3 -s 0x7e0000 imx7d-var-som-nand.dtb

Flash the UBI File System to NAND flash:

$ ubiformat /dev/mtd4 -f rootfs.ubi

Manual step-by-step flashing to eMMC

Flashing the eMMC requires several steps including flashing of U-Boot and the Linux kernel, partitioning, file system formatting and image extraction.
We recommend to use our provided scripts to perform this task.

Use the prepared SD card to boot the board and run the following:

$ export node=/dev/mmcblk2
$ cd /opt/images/Yocto

Make sure the eMMC is not mounted:

$ umount ${node}p*

Delete current data on eMMC:

$ dd if=/dev/zero of=${node}p1 bs=1024 count=1024
$ dd if=/dev/zero of=${node}p2 bs=1024 count=1024
$ dd if=/dev/zero of=${node}p3 bs=1024 count=1024
$ dd if=/dev/zero of=${node}p4 bs=1024 count=1024
$ dd if=/dev/zero of=${node}p5 bs=1024 count=1024
$ dd if=/dev/zero of=${node}p6 bs=1024 count=1024
$ dd if=/dev/zero of=${node}p7 bs=1024 count=1024
$ sync
$ (echo d; echo 1; echo d; echo 2; echo d; echo 3; echo d; echo w) | fdisk $node
$ sync
$ dd if=/dev/zero of=$node bs=1M count=4
$ sync

Create a partition table:

$ (echo n; echo p; echo 1; echo 8192; echo 24575; echo t; echo c; \
   echo n; echo p; echo 2; echo 24576; echo; \
   echo p; echo w) | fdisk -u $node
$ sync

Format the partitions:

$ mkfs.vfat ${node}p1 -n BOOT-VARMX7
$ mkfs.ext4 ${node}p2 -L rootfs
$ sync

Flash U-Boot to eMMC:

$ dd if=u-boot.imx-sd of=${node} bs=1K seek=1; sync

Copy the Linux kernel image and the device tree blob to the BOOT partition:

$ mkdir /run/media/mmcblk2p1
$ mount -t vfat ${node}p1	/run/media/mmcblk2p1
$ cp imx7d-var-som-emmc.dtb	/run/media/mmcblk2p1/
$ cp zImage			/run/media/mmcblk2p1/
$ sync
$ umount /run/media/mmcblk2p1

Extract the rootfs archive:

$ mkdir /run/media/mmcblk2p2
$ mount ${node}p2 /run/media/mmcblk2p2
$ tar xvpf rootfs.tar.bz2 -C /run/media/mmcblk2p2
$ sync
$ umount /run/media/mmcblk2p2

Summary

This page is not valid for DART-MX6. For DART-MX6, please follow the link to the relevant page.
We described the results of a Yocto build, how to copy it to a bootable SD card and how to flash it to NAND and eMMC.
With our extended SD card and our recovery SD card we provide an installation script located at /usr/bin/install_yocto.sh. It is much safer to use it instead of flashing the system manually.