How to Flash an Image to the SD Card

How to Flash an Image to the SD Card

The procedure describes how to flash an Ubuntu/Debian/Yocto image including u-boot, Linux kernel and filesystem to the SD Card.


Flash a Ubuntu/Debian Image

Prerequisites

  • Download the prebuilt bootable Ubuntu image to the working directory on your development host.
  • In Windows environments, please download rufus to flash the image to the SD Card.
  • In a Linux environment use dd

Note: All files will be erased on the SD Card. The size should be preferable 16 GB or larger. For better performance an class 10 SD card or higher is advised.


Windows Host

  1. Insert an empty MicroSD Card into the development host and execute rufus.exe as the picture below. It will auto-detected your storage drives.
  1. Press the SELECT button and browse to the .img file previously copied to your working directory on the development host. Then click START and wait for the process to be finished.
    win32diskimager_load_image

Linux Host

  1. Copy the prebuilt bootable Ubuntu image to the working directory on your development host. Insert an empty SD Card into the development host and enter the following command to copy the .img to the SD Card.

    Warning: Make sure you first properly identify the SD Card device name as for example /dev/sdb or /dev/sdc. For example insert the SD Card and than check device name with dmesg. Data loss may result if written to the wrong device or in the worst case you kill your hosts OS.

    $ sudo dd if=[your image].img of=/dev/sd[x]
  2. After dd has completed, enter the following command:

    $ sync

Flash a Yocto or Android Image

Prerequisites

  • Copy the prebuilt bootable Yocto image to the working directory on your development host.

  • In Windows environments, please download the Rockchip SD Firmware tool to flash the image to the SD Card.

    Note: All files will be erased on the SD Card. The size should be preferable 16 GB or larger. For better performance an class 10 SD card or higher is advised.


Windows Host

Insert an empty MicroSD Card into the development host and execute the Rockchip SD Firmware tool.

  • Run SD Firmware Tool as an administrator

  • Select “Choose removable disk” as your SD card

  • Choose “Function mode” as SD Boot

  • Load your build Yocto image as “Firmware”

then, click the Create button to start the process.

image-20200303115215481
* The tool will prompt to the user that data will be lost. Select "Yes" to continue
  • Once done, click OK and close the SD Firmware Tool

  • Eject the SD card and insert it into the LEC-PX30 board and power on the board to boot up.

Note: There is no need to configure the boot selector of the LEC-PX30 with Industrial-Pi for booting from the SD Card. You can directly insert the SD card and power on the system.