
Getting started with Udoo
By :

We have an idea about a list of UDOO components that we may use to start building amazing projects. However, before we continue, we need to configure our board to run the Android operating system and also our development environment so that we can start writing and deploying our first application.
All prototypes you build in this book are based on Android KitKat 4.4.2 that is the latest supported version at the time of this writing. During the course of this book you will build many projects that make use of the Android Support Library to ensure compatibility with newer Android versions that the UDOO board will support.
The UDOO board doesn't have internal storage or a built-in boot program because it relies on external storage, a microSD card, in which you can install a bootloader and a compatible operating system. The easiest way to create a bootable microSD card, is to download and copy a precompiled image, though it's possible to create a clean operating system using released binaries and kernel sources.
http://www.udoo.org/downloads/ points to the official UDOO download page that contains the links for all the available precompiled images.
Among Linux images, we can find and download the latest supported version of Android KitKat 4.4.2. As stated earlier, UDOO comes in two different versions with dual and quad processors so we must download the right version, according to the owned platform.
To install the Android image from Windows, you need some extra tools to unpack and copy the image into the microSD card. The downloaded .zip
file is in 7-Zip compression format, so you need to install a third-party unarchive program such as 7-Zip. When the extracting process is done, we have an uncompressed .img
file ready for copy on an empty card.
To write the uncompressed image into our microSD card, perform the following steps:
FAT32
filesystem.Win32DiskImager.exe
executable and be sure to select the Run as administrator option from the context menu..img
file previously extracted.To install the Android image from Mac OS X, we need a third-party tool to unpack the downloaded .zip
file, because it's in 7-Zip compression format and we can't use the built-in unarchive software. We have to download software such as Keka, which is freely available at http://www.kekaosx.com/.
If we love the Mac OS X terminal, we can use the Homebrew package manager that is available at http://brew.sh/.
In this case, from the command line, we can simply install the p7zip
package and use the 7za
utility to unpack the file as follows:
brew install p7zip 7za x [path_to_zip_file]
To proceed and write the uncompressed image into our microSD card, perform the following steps:
Downloads
is the name of that folder, we can issue the following command:cd Downloads
df -h
df –h
/dev/disk1s1
while it isn't /dev/disk0s2
because it's our hard disk.sudo diskutil unmount /dev/[partition_name]
/dev/disk1s1
, the related raw disk will be /dev/rdisk1
.We are going to use the dd
tool. This command writes raw disk images using low-level instructions. This means that you need to exactly follow the next steps and be really sure that you choose the correct disk device, because if it is wrong, you can lose all your data from an unwanted storage.
dd
with the following command:sudo dd bs=1m if=[udoo_image_name].img of=/dev/[raw_disk_name]
A full example of the previous command is as follows:
sudo dd bs=1m if=[udoo_image_name].img of=/dev/rdisk1
dd
is writing the Android image in the background. Once the process is complete, it outputs the transferred bytes report, as shown in the following example:6771+1 records in 6771+1 records out 7100656640 bytes transferred in 1395.441422 secs (5088466 bytes/sec)
sudo diskutil eject /dev/[raw_disk_name]
To install the Android image from Linux, we need a third-party tool to unpack the downloaded .zip
file. Because the file is in 7-Zip compression format, we need to install the p7zip
package porting from the command line using the package manager of our distribution. Then we can use the 7za
utility to unpack the file or any other graphical unarchiver that makes you comfortable.
We can proceed to write the uncompressed image into our microSD card using the following steps:
Downloads
folder, we can issue the following command:cd Downloads
sudo fdisk -l | grep Disk
Disk /dev/sda: 160.0 GB, 160041885696 bytes Disk /dev/mapper/ubuntu--vg-root: 157.5 GB, 157454172160 bytes Disk /dev/sdb: 7948 MB, 7948206080 bytes
In this case, /dev/sda
is our hard disk while /dev/sdb
is our microSD card. If this is not your case and you are using an internal card reader, it's possible that the device is named /dev/mmcblk0
.
When you've found the right device name, keep it in mind so that we can use it later.
mount | grep [device_name]
sudo umount /dev/[partition_name]
dd
is a tool that writes raw disk images using low-level instructions. This means that you need to exactly follow the next steps and be really sure that you choose the correct disk device because, if it is wrong, you can lose all your data from an unwanted storage memory.
dd
command:sudo dd bs=1M if=[udoo_image_name].img of=/dev/[device_name]
Assuming /dev/sdb
is our microSD card, the following is a full example:
sudo dd bs=1M if=[udoo_image_name].img of=/dev/sdb
dd
is writing the image in the background. Once the process is complete, it outputs the transferred bytes report, as follows:6771+1 records in 6771+1 records out 7100656640 bytes transferred in 1395.441422 secs (5088466 bytes/sec)
sudo eject /dev/[device_name]
Once we have a bootable microSD card, we can insert it into our UDOO board, use our external monitor or LVDS panel and connect a mouse and a keyboard. After the power is switched on, the Android logo shows up and when the loading process is finished, we can finally see the Android home interface.
Change the font size
Change margin width
Change background colour