This guide contains step-by-step instructions to create a Burning Card for Linux users. You may also use this Windows Guide(VIM1/VIM2/VIM3) instead.
The operation of VIM1, VIM2 and VIM3 is almost the same, so this document will take VIM1 as an example.
As the burning card only support FAT32 filesystem, because the Ubuntu desktop image size is large then 4GB, so it is not supported to burn via TF card.
Preparation
- Build your own, or download (VIM1/VIM2/VIM3) the latest U-Boot file for SD-Cards.
- You may need to format the SD-Card Via FDisk (VIM1/VIM2/VIM3) if your SD-Card contains >1 partition.
Before You Start
You may have to delete all the partitions first, you will loss all data on it, please remember to save them.
1 | $ sudo fdisk /dev/sdX |
Then you need to creat only 1 partition:
1 | $ sudo fdisk /dev/sdX |
NOTEFirst sector must set to 4096.
The partition will be like this:
1 | Command (m for help): p |
The Start should be 4096.
Create the Burning SD-Card
Insert the SD-Card into your PC, and make sure the disk is unmounted:
1 | $ sudo umount /dev/sdX1 |
Format the SD-Card to FAT32:
1 | $ sudo mkfs.vfat /dev/sdX1 |
NoteReplace
sdX
with the correct one on your PC.
Use dd
to write the Bootloader/U-Boot to the first sector of SD-Card:
1 | $ sudo dd if=u-boot.bin.sd.bin of=/dev/sdX conv=fsync,notrunc bs=1 count=444 |
Tipsu-boot file
u-boot.bin.sd.bin
is build for SD, andu-boot.bin
is for eMMC.
Copy the images to your SD-Card, you can build the image yourself or download from our storage.
Insert the SD-Card in again, then run the following command:
1 | $ cp -a aml_sdc_burn.ini update.img /media/XXX/9CE9-3938/ |
Tips
aml_sdc_burn.ini
is a configuration file for U-Boot to burn/download images into the onboard eMMC storage. You can found it here
NoteThe package in
aml_sdc_burn.ini
should match your image!
e.g. The image name above isupdate.img
, so thepackage
inaml_sdc_burn.ini
should bepackage = update.img
.
Eject the SD-Card:
1 | $ sudo eject /dev/sdX |
Done!