© Copyright e-con Systems. 2020. All rights reserved.
Preparing SD card with Prebuilt Binary
This section describes the steps to prepare SD card with prebuilt binaries for
ROCK960 board using Ubuntu (14.04 or16.04) host system.
The commands and output messages in this manual are represented by different
colors as listed in below table.
Table 3: Notation of Colors
Color
Notation
Blue
Commands running in Development PC
Red
Commands running in Development Board
The steps to prepare SD card with prebuilt binaries are as follows:
Note
: Use empty SD card without any data.
1.
Open the Terminal application on host computer to find SD card device name.
2.
Unplug SD card from the host computer if it is connected.
3.
Run the following command to view the list of disk name.
$ lsblk
4.
Insert the SD card into the host computer.
5.
Run the previous command to view the newly recognized list of disk name.
6.
Run the following command to navigate to the location where prebuilt binary is
stored in the host system.
$ cd <location of prebuilt_binary>
The
system.img
file is the required binary to flash in the SD card.
7.
Unmount the SD card if it is mounted.
8.
Run the following command to flash the system.img into the SD card.
$ sudo dd if=system.img of=/dev/sdX bs=4M oflag=sync
status=noxfer
Note
:
•
The above flashing command will take few minutes to complete
.
•
/dev/sdX
must be replaced with the appropriate device node of the SD card
such as
/dev/sda
or
/dev/sdb
. This can be obtained by dmesg command on
your host Linux PC after the SD card reader is inserted.
Warning
: If wrong device node is mentioned, the data loss in corresponding
device may occur.
9.
Run the following command to synchronize the disk write process, once SD card
flashing is completed.