UDOO creating a bootable Micro SD card from precompiled binaries
The following paragraphs will guide to in the creation of a bootable micro SD card for UDOO board, starting from precompiled binaries. This method offers more flexibility and customization opportunities for the average users.
If you don’t feel confident about using binaries you should use the image file method to create your Micro SD card.
Note: The following step by step guide is referred to a Linux System.
Step by step guide
Download the binaries
A bootable SD card has 4 different elements:
- U-Boot (it's a .bin file)
- Kernel (it's an uimage file)
- kernel's modules
- File System (it's a compressed file, e.g. .tar.gz)
Create a new folder "udoo-dev" under your Home directory, then browse the UDOO's web site to the Download page and download the binaries you need.
GParted the Micro SD card
Insert the Micro SD card in the card reader and launch GParted from command line:
Select the Micro SD from the drop down menu, e.g. /dev/sdc.
NOTE: Be sure you’ re using the correct label; using of the wrong device identifier could result in the loss of all data on the Hard Drive of the host PC used.
Create a partition table from the top menu: Device → Create Partition Table... → Apply.
Create a new partition with the following parameters:
- Free space preceding (MiB): 10
- New size (MiB): based to the SD size
- Free space following (MiB): 10
- Create as: Primary partition
- File system: ext3 (ext4 is not supported yet)
- Label: <UDOO_MICROSD_LABEL>
Click on Apply and wait for the partition to be done, then exit GParted.
Copy the files to the Micro SD card
Mount the just-created partition and then extract the tar.gz file containing the filesystem inside the microSD card with the following command (this operation could take up to 30 minutes):
sudo tar -xzvpf <NAME_OF_TAR_FS> -C /media/<UDOO_MICROSD_LABEL>/
Note: Always remember to replace the strings inside the brackets with the right filenames.
Copy the binary inside the Micro SD card /boot folder by using the following command:
sudo cp uImage /media/<UDOO_MICROSD_LABEL>/boot
Remove the existing modules from the file system:
sudo rm -rv /media/<UDOO_MICROSD_LABEL>/lib/modules/*
Copy the new modules:
sudo cp -av lib /media/<UDOO_MICROSD_LABEL>/
Install the U-Boot
Unmount the partition:
sudo umount /media/<UDOO_MICROSD_LABEL>
Copy the u-boot.bin file inside the Micro SD:
sudo dd if=u-boot.bin of=/dev/<MICROSD_DEVICE_NAME> bs=512 seek=2 skip=2
e.g. <MICROSD_DEVICE_NAME> is /dev/sdc NOTE: Be sure you’ re using the correct device filename; use of the wrong device identifier could result in the loss of all data on the Hard Drive of the host PC used. Before remove the Micro SD card run the command to write any data buffered in memory out to disk:
The microSD card is now ready.