MY-I.MX6-DEMOAndroid4.2.2 environment construction
[Copy link]
1 Installubuntu12.04(If you use the virtual machine downloaded from Mingyuan Zhirui, please jump directly to the section Download the source code and unzip it) Here we recommend that users use the 64-bit Ubuntu 12.04 operating system, which has been compiled and verified on a real machine. , 宋体, sans-serif] 2 InstallJDK1.6 SELog in to http://www.myzr.com. cn’s download area, download the jdk-6u45-linux-x64.bin file $ cd /usr $ sudo mkdir java $ cd java $ sudo cp ~ /jdk-6u45-linux-x64.bin ./ $ sudo chmod 777 ./jdk-6u45-linux-x64.bin $ sudo ./jdk-6u45-linux-x64.bin $ sudo gedit /etc/profile Add the following environment variables export JAVA_HOME=/usr/java/jdk1.6.0_45 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$PATH:$JRE_HOME/bin $ source /etc/profile $ java –version , 宋体, sans-serif] 3 Install and compile the libraries required for the Android system$ sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so $ sudo apt-get install gcc:i386 linux-libc-dev:i386 $ sudo apt-get install uuid uuid-dev $ sudo apt-get install zlib1 g-dev liblz-dev $ sudo apt-get install liblzo2-2 liblzo2-dev $ sudo apt-get install uuid-dev:i386 $ sudo apt-get install liblzo2-dev:i386 $ sudo ln -sf /lib/i386-linux-gnu/libuuid.so.1 /usr/lib/libuuid.so[/align ] 4 Download the source code and unzip the source code4.1 Download the source codeLog in to http://www.myzr.com. cn Download Zone Download Android4.2 source code Android4.2 source code package: myzr_android4_2_2_1_1_0.tar.bz2 4.2 Unzip the source code$ mkdir ~/myandroid $ cd ~ $ tar -jxvf myzr_android4_2_2_1_1_0.tar.bz2 –C ~/myandroid 4.3 Compile source code (Android system)4.3.1 Set environment variables$ export ARCH=arm $ export 102, 102, 102)] 4.3.2 编译uboot 4.3.2 102)]$ cd ~/myandroid/bootable/bootloader/uboot-imx $ make distclean $ make mx6q_sabresd_android_config $ make 4.3.3 Compilekernel$ cd ~/myandroid/kernel_imx $ make imx6_android_defconfig $ make uImage 4.3.4 Compilebootimg (uImagel and ramdisk)$ cd ~/myandroid $ source build/envsetup.sh $ lunch sabresd_6dq-eng (this is the debug version, the release version is changed to lunch sabresd_6dq-usr) $ make bootimage 4.3.5 Compilesystem$ cd ~/myandroid $ source build/envsetup.sh $ lunch sabresd_6dq-eng (this is the debug version, the release version is changed to lunch sabresd_6dq-usr) $ make
|