25 ODROID-XU4 USER MANUAL
Wait for the download process to complete, then uncompress
the le using the following command:
$ unxz ./ubuntu-16.04-mate-odroid-xu3-20161011.img.xz
This will result in an uncompressed image le called ubuntu-
16.04-mate-odroid-xu3-20161011.img. Attach the USB SD card read-
er/writer with the boot media into an appropriate USB port. After a
few moments, check for an entry that corresponds to the SD card or
eMMC module using the following command (your results may differ):
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk1p2 58G 3.7G 53G 7% /
...
/dev/sdb1 30G 224K 30G 1% /media/odroid/BLANK
This tells us that the write destination path to the boot media is /
dev/sdb. Given this information, we can carefully construct the image
copy command using appropriate input and output paths:
$ cd ~/linux-img
$ sudo dd \
if=./ubuntu-16.04-mate-odroid-xu3-20161011.img \
of=/dev/sdb \
bs=1M conv=fsync
$ sync
The “dd” command is very powerful, so use it with a lot of care.
If incorrect parameters (especially the of parameter) are used here,
you could potentially ruin the OS installation of the computer. The “dd”
command is often referred to as the disk destroyer command.
This step could take a while. So, wait for it to complete before
proceeding. Once completed, remove the USB SD card reader / writer
from the USB port of the computer. Remove the boot media and place
it on the non-conductive surface.
The above steps are to ash the Linux image. To ash an An-
droid image, simply download a different compressed le, and all sub-
sequent steps would be that same as those listed above. As noted
earlier, the Android images can be found at http://bit.ly/1XwOatZ.
Flashing an Image on an OSX Computer
The procedure for creating an image le using OSX is similar
to Linux, with some small differences. First, download and install the
Chapter 2