Deploy the Yocto with SD card script - noritake-itron/itron-bsp-manual GitHub Wiki

Deploy the Yocto with SD card script

Index

Noritake-Itron SD card creation scripts

The Itron TX SD card creation script is provided on an "AS IS" basis.

You can use the script to create TX SD card or TX recovery SD card.

We can use the output of the Yocto build to create a bootable SD card, and use it to flash the target NAND flash/eMMC (TX recovery SD card only).

The SD card script usage and options

Usage

To use that script first you have to build the Yocto Linux image.

You can find instruction how to build the Yocto image here:

Build the Yocto linux

When you finish building your image (fsl-image-gui or fsl-image-qt5) and you want to deploy the image you have to run the following command:

sudo MACHINE=<tx10> ./itron-create-sdcard.sh [options] /dev/sdX
Note: /dev/sdX - change /dev/sdX to your device name
Note: - please choose the proper machine
Note: [options] - please add chosen options
*Note: to run the script you have to be in itron-fsl-yocto directory *

Options

Following options are available:

  • -h Display help message
  • -s Only show partition sizes to be written, without actually write them
  • -a Automatically set the rootfs partition size to fill the SD card
  • -i Select an alternative image name. Choose between fsl-image-gui or fsl-image-qt5.
  • -r Create recovery card. You can use that card to install Yocto on the eMMC.
  • -rb Select an alternative building directory for recovery (eMMC) image.
  • -ri Select an alternative image name for recovery (eMMC) image. Choose between fsl-image-gui or fsl-image-qt5.
  • -rm Select an alternative machine name for recovery (eMMC) image.
  • -n Add a release Notes text file.

If you don't use the '-a' option, a default rootfs size of 7400MiB will be used. Once the script is done, you can use the SD card to boot the Yocto linux on your board.

Deploy the Yocto to eMMC with the recovery image

With the TX Create Yocto SD Card script you can create also the special version of SD card - TX recovery SD card.

The TX recovery SD card allows you to deploy the Yocto Linux to eMMC or NAND.

Once the script is done, use the TX recovery SD card to boot, and then to flash your internal storage/s either use the icon Install Yocto or the following linux shell script:

install_yocto.sh -b tx10
Note: after the -b option you have to specify the machine name

Alternative ways to deploy Yocto to SD card

Use the dd command

You can use the dd command to deploy the image to the SD card.

You have to be in your build directory.

For example:

cd ~/itron-fslc-yocto/build_wayland

or

cd ~/itron-fslc-yocto/build_xwayland

Then you can you deploy the image with the dd command.

For GUI (tx10):

sudo dd if=tmp/deploy/images/tx10/fsl-image-gui-tx10.sdcard of=/dev/sdX bs=1M && sync

or

For Qt5 (tx10):

sudo dd if=tmp/deploy/images/tx10/fsl-image-qt5-tx10.sdcard of=/dev/sdX bs=1M && sync

⚠️ **GitHub.com Fallback** ⚠️