REL 1.0
Page 15 of 59
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15M Android User Manual
2.2.3
Android Build Procedure
Create directory as you like and open the created directory
$ mkdir <folder_name>
$ cd < folder_name >
Copy the android Source from Deliverables to the PC and extract it and enter into the android source
directory by using the below command
$ tar -xvzf /<path to iW-RainboW-G15M-Q7-RX.X-RELX.X-Android7.1.1_Deliverables>/Source-
Code/android_N7.1.1_1.0.0.tar.gz
Open the extracted directory
$ cd android_N7.1.1_1.0.0
Apply iW-RainboW-G15 android patches by executing below commands,
$ patch -Np1 < /<path to iW-RainboW-G15M-Q7-RX.X-RELX.X-Android7.1.1_Deliverables>/Source-
Code/PATCH000-iW-PRDVZ-SC-01-R5.0-RELx.x-Android_basic_customization.patch
Execute the following commands to build the Android BSP
$ source build/envsetup.sh
$ lunch iWave_G15M_Q7-user
$ make 2>&1 | tee build-log.txt
It may produce errors due to jack admin server. To fix this please run the below commands.
$ export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
$ out/host/linux-x86/bin/jack-admin kill-server
$ out/host/linux-x86/bin/jack-admin start-server
Once the compilation is over, the build-log.txt file will contain the execution output. And after the successful
compilation the binaries will be placed in below path.
~/android_N7.1.1_1.0.0/out/target/product/iWave_G15M_Q7/
The binary files are listed below
boot-imx6*.img
recovery-imx6*.img
system.img
u-boot-imx6*.imx
userdata.img
Since the iW-RainboW-G15M-Q7 Solo platform has only 512MB RAM, split the system.img and program for
iW-RainboW-G15M-Q7 Solo platform only. Execute the below commands to split the system.img
$ simg2img system.img system_raw.img
$ dd if=system_raw.img of=system1.img bs=1M count=256 skip=0
$ dd if=system_raw.img of=system2.img bs=1M count=256 skip=256
$ dd if=system_raw.img of=system3.img bs=1M count=256 skip=512
$ dd if=system_raw.img of=system4.img bs=1M count=256 skip=768