Create Burning Card Via Command Line

This is a step by step instructions to create burning card for linux users, you can also use the Windows approach instead.


Before starting

In some cases, if your SD card have more then one partitions.

gouwa@Wesion:~$ ls /dev/sdb*
/dev/sdb  /dev/sdb1  /dev/sdb2

you might need delete the other partitions first:

fdisk /dev/sdb

Create the Burning TF Card

Insert the TF card into your PC, and make sure the disk is unmounted:

$ umount /dev/sdb1

Format the TF Card as Fat32:

$ sudo mkfs.vfat /dev/sdb1 

Use dd to write the bootloader/u-boot to the first sector of TF Card:

$ sudo dd of=/dev/sdb conv=fsync,notrunc bs=1 count=444
$ sudo dd of=/dev/sdb conv=fsync,notrunc bs=512 skip=1 seek=1

Notice: u-boot file is build for SD, and u-boot.bin is for EMMC.

Copy the images to TF Card:

Pop the TF card in again, then run the following command:

$ cp -a aml_sdc_burn.ini Vim_Marshmallow_160928/update.img /media/gouwa/9CE9-3938/

Tips: aml_sdc_burn.ini is a configuration file for u-boot to burn/download images into onboard EMMC storage

Eject the TF Card:

$ sudo eject /dev/sdb


Upgrade using Burning TF Card

  1. Insert the burning TF card into your device, and power on
  2. Follow the guidance to boot into upgrade mode
  3. Wait the upgrading process to complete

Further Reading: