4.4.5
Building an Android OTA package
1.
Open the terminal console and change directory to BSP scripts folder
2.
Perform following command:
root@tylor-Zhaoyang-K29:~# ./mk_otapackage.sh <product name>
where<product name> is:
•rsb4221 for rsb-4221 board
3.
You will get an android kernel image file named update.zip.
4.5
Debug Console
Connecting 9-pin D-SUB of debug console cable with host computer serial port and
using serial port terminal application (like minicom, putty or teraterm) to config serial
portas1152008N1.
Then plugging 4-pin connector of debug console cable into RSB-4221's debug port
(also known as /dev/ttyO0inAndroidsystem)
4.6
Boot up from SD card or eMMC
RSB-4221 supports boot up from SD card or onboard flash. This section will guide
you how to build an image for RSB-4221 Android system boot media.
4.6.1
Storages Device Names:
Device
SD card
eMMC
4.6.2
Creating a Bootable SD Card
You can find a pre-built image from the Advantech website. Please follow these steps
to create a SD card for boot up.
1.
Copy "4221AIVxxxx_yyyy-mm-dd.tar.gz" package to your /root/.
2.
Open "Terminal" on Ubuntu 14.04 LTS..
3.
$sudosu (Change to "root" authority)
4.
Input your password.
5.
root@tylor-Zhaoyang-K29:~# cd /root/
6.
root@tylor-Zhaoyang-K29:~# tar xzvf 4221AIVxxxx_yyyy-mm-dd.tar.gz (Unzip
files)
7.
Insert one SD card to your developing computer
8.
Check the SD card location, like /dev/sdb
9.
root@tylor-Zhaoyang-K29:~# cd ./4221AIVxxxx_yyyy-mm-dd/scripts
10.
root@tylor-Zhaoyang-K29:~#./mksd-recovery.sh /dev/sdb
11.
Type "y" (Start to copy files, wait until it shows [Done])
Then insert the Linux system SD card to RSB-4221, and it will boot up with android.
4.6.3
Transfering System to Onboard eMMC
1.
Open the debug console
2.
Bootup from SD card
Perform the following command:
Name
/dev/block/mmcblk0
/dev/block/mmcblk1
41
RSB-4221 User Manual