QT210 android2.3 and android4.0 burning write compilation Diary

Source: Internet
Author: User
Tags diff gnupg git clone

QT210 Download the burn compilation android2.3 process

Working Environment: ubuntu12.04.5 | QT210 Development Board Discs | QT210 Development Board

android2.3 compilation Environment: GCC version 4.4.7 | Java Version 6 | java version 5 | git version 1.7.9.5

Tips by Chsry: Light Grey is a part of the command and information that the terminal window runs to save, ubuntu14.04 cannot compile QT210 android2.3 (cannot install JAVA6)

After installing the ubuntu12.04.5, the first job is to update the software. Click Enter Update Manager to update the software to the latest state. After the system has been updated all the software, continue to the back.

Build a cross-compilation environment , will install the required 4 files

Arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.tar

u-boot-samsung-dev.bz2

android-kernel-samsung-dev-full.bz2

android-samsung-dev-full-rtl81xx.bz2

Create a new folder "QT210" in the/home/work/directory and copy the files to this directory

Under Terminal, enter the following content , create the arm directory in/usr/local , must add the directory command before you must add sudo

Cd/usr/local

sudo mkdir arm

Then go to the QT210 directory and unzip the tool chain to the /usr/local/arm directory

sudo tar jxvf arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.tar-c/usr/local/arm/

(Note: This command is on the same line , do not use carriage return!) the line wrap on the picture is text input that wraps over the width of the window , and all of the following actions are the same. )

The command is preceded by sudo, sometimes requires a user password , enter after the loss, followed by such operations , no longer prompt.

To see if the tool chain is installed correctly , enter

ls/usr/local/arm/arm-2009q3/bin/

In order to restart, you can also run this toolchain directly in the shell editor at the end of the /ROOT/.BASHRC file by adding the following line:

Export path= $PATH:/usr/local/arm/arm-2009q3/bin (can also be entered directly at the terminal, indicating that the current user is currently active)

[email protected]:/etc# gedit/root/.bashrc[email protected]:/etc# source/root/.bashrc[email protected]:/etc# echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/arm/arm-2009q3/bin

(1) Compiling u-boot

Make sure to return to the QT210 directory and unzip the U-boot source code :

The command is as follows :

Tar jxvf u-boot-samsung-dev.bz2

Enter the u-boot code directory :

The command is as follows :

CD u-boot-samsung-dev/

Clear the original compilation traces :

The command is as follows :

Make clean

Make Distclean

To configure a single board type :

Make Smdkv210single_config

Compile : Command :

Make

Finally, we will generate the target file we want to burn in the current directory ' U-boot.bin '

(2) Compiling Kernel

Back to /home/armzone/qt210 directory

cd/home/armzone/qt210

Pressure Core Source code package

Tar jxvf android-kernel-samsung-dev-full.bz2

CD Android-kernel-samsung-dev-full

Copy the Mkimage file from the Uboot directory to the /usr/bin

sudo cp/home/work/qt210/u-boot-samsung-dev/tools/mkimage/usr/bin/

Then execute the following command :

CP config_qt210_android. config

Start compiling kernel

The compile kernel command is as follows :

Make Uimage

After the completion of the compilation will generate the file ' uimage ', compile the generated uimage located in the arch/arm/boot directory !

(3) Compiling Android

(1) Unzip the android2.3.1 source code file , the command is as follows :

Back to home/work/qt210 directory

(2) Many library files required for installation , this step is important and requires patience :

Click Save to save and then close gedit

The compilation process takes two steps : The first step is to install the necessary libraries , and the second executes the compilation scripts.

After adding the source , make the source update , enter in the terminal :

sudo apt-get update

(a) in the first part of the library , execute the following command in the terminal interface :

sudo apt-get install Git-core GnuPG Flex Bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential Zip Curl LIBNC Urses5-dev Zlib1g-dev g++

(Note: This command is on the same line , do not insert carriage returns !) it is recommended to copy the Cmd.txt file from the CD to the virtual machine , and then copy the command , the following operations require the same , no longer repeat )

The download prompt will appear in the middle, enter y, and enter to continue. (Follow the installation process , need to download will have this prompt , do this , no longer repeat )

"Error found: unable to find Libwxgtk2.6-dev, modified as follows:"

sudo apt-get install git-core GnuPG Flex Bison gperf libsdl-dev libesd0-dev build-essential Zip Curl libncurses5-d EV zlib1g-dev g++

boot$ sudo apt-get install Git-core GnuPG Flex Bison gperf libsdl-dev libesd0-dev build-essential Zip Curl Libncurses5-dev Zlib1g-dev g++

The following new packages will be installed:   bison build-essential  curl dpkg-dev esound-common flex g++ g++-4.6 git-core gperf  Libalgorithm-diff-perl libalgorithm-diff-xs-perl   libalgorithm-merge-perl libasound2-dev  Libaudiofile-dev libaudiofile1 libavahi-client-dev libavahi-common-dev libbison-dev   Libcaca-dev libdbus-1-dev libdpkg-perl libdrm-dev libesd0 libesd0-dev libfl-dev  libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev   libice-dev libncurses5-dev  libpcre3-dev libpcrecpp0 libpng12-dev libpthread-stubs0 libpthread-stubs0-dev  Libpulse-dev   libsdl1.2-dev libslang2-dev libsm-dev libstdc++6-4.6-dev  Libtimedate-perl libtinfo-dev libx11-dev libx11-doc libxau-dev   libxcb1-dev  Libxdmcp-dev libxext-dev libxt-dev m4 mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev   X11proto-xext-dev xorg-sgml-doctools xtrans-dev zlib1g-dev

(b) The second part of the library , execute the following command in the terminal interface

sudo apt-get install gcc-multilib g++-multilib libc6 Libc6-dev

>sudo apt-get Install gcc-multilib g++-multilib libc6 Libc6-dev

The following NEW packages would be installed:g++-4.6-multilib g++-multilib gcc-4.6-multilib gcc-multilib lib64gcc1 li B64GOMP1 lib64quadmath0 lib64stdc++6 libc6-amd64 libc6-dev-amd64

Continue to install the library, in the terminal input

sudo apt-get install libncursesw5 libncursesw5-dev libncurses5-dev libncurses5

>sudo apt-get Install libncursesw5 libncursesw5-dev libncurses5-dev libncurses5

The following NEW packages'll be Installed:libncursesw5-dev

Setting up Libncursesw5-dev (5.9-4) ...

Continue to install the library, in the terminal input

(c) Install Java Libraries , including Sun-java5 and sun-java6:

The first is to install sun-java6

The following method is followed in the ubuntu12.04 version (JDK6 is not available in the ubuntu14.04 version!!!!) )

>sudo gedit/etc/apt/sources.list

Add Deb Http://old-releases.ubuntu.com/ubuntu/hardy multiverse at the end

$ sudo add-apt-repository "Deb Http://old-releases.ubuntu.com/ubuntu/hardy Multiverse" (if you follow the above settings This line code is not necessary)
$ sudo apt-get update
$ sudo apt-get install SUN-JAVA6-JDK

>sudo Apt-get Install SUN-JAVA6-JDK

The following NEW packages'll be installed:gsfonts-x11 java-common libodbc1 odbcinst odbcinst1debian2 sun-java6-bin SUN-JAVA6-JDK Sun-java6-jre UNIXODBC

In the installation process need to accept the Java protocol , will automatically jump out of the interface of the protocol , press the "tab" key to select "OK" when the red background.

Press Enter or space to confirm.

->java-version

Java Version "1.6.0_06"

Java (TM) SE Runtime Environment (build 1.6.0_06-b02)

Java HotSpot (TM) Client VMs (build 10.0-b22, mixed mode, sharing)

Then install sun-java5

In the terminal interface, execute the following command :

sudo apt-get install SUN-JAVA5-JDK

>sudo Apt-get Install SUN-JAVA5-JDK

The following NEW packages'll be Installed:sun-java5-bin Sun-java5-demo sun-java5-jdk sun-java5-jre

[email protected]:~$ java-versionjava Version "1.6.0_06"Java (TM) SE Runtime Environment (build 1.6.0_06-b02)Java HotSpot (TM) Client VMs (build 10.0-b22, mixed mode, sharing)

(3) Execute the Compile command

Go to andriod directory

under the Android code directory , execute the following command :

For 32-bit Systems ,

./build_android_32.sh

For 64-bit Systems ,

./build_android_64.sh

Question one:frameworks/base/libs/utils/refbase.cpp:483:67:error:passing ' const Android::refbase::weakref_impl ' as ' this ' argument of ' void Android::refbase::weakref_impl:: Trackme (bool, BOOL) ' discards qualifiers [-fpermissive]Cause: The Ubuntu 11.10 version of GCC 4.6 is too high, and Android compilation requires GCC 4.4Workaround: Replace GCC, g++ version 4.6 for 4.4sudo apt-get install gcc-4.4sudo apt-get install g++-4.4sudo rm-rf/usr/bin/gcc/usr/bin/g++sudo ln-s/usr/bin/gcc-4.4/usr/bin/gccsudo ln-s/usr/bin/g++-4.4/usr/bin/g++ Question 2:g++: Error: –fpermissive: No file or directoryMake : * * * [OUT/HOST/LINUX-X86/OBJ/STATIC_LIBRARIES/LIBUTILS_INTERMEDIATES/REFBASE.O] Error 1Workaround: sudo apt-get install g++-4.4-multilibthe compilation can proceed smoothly after this operation. >./build_android_32.sh (no administrative rights required)Total compile time is 1731 seconds[[[Make RAMDisk image for U-boot] ]]image Name:ramdisk Created:fri 20:09:51 image type:arm Linux ramdisk image (uncompressed) Data size:1340861 Bytes = 1309.43 KB = 1.28 MB Load address:30800000 Entry point:30800000[[[Make additional images for FastBoot] ]]No Zimage is found at.. /android-kernel-samsung-dev/arch/arm/boot set Kernel_dir If you want to make additional images Ex.) Export kernel_dir=~id/android_kernel_smdkv210 OK Success!!!In/home/work/qt210/android-samsung-dev-full-rtl81xx/out/target/product/ SMDKV210 can see the ramdisk-uboot.img and System.img and userdata.img three files

QT210 Download the burn compilation android4.0 process

Working Environment: ubuntu12.04.5 | Arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.tar file in CD-ROM

android4.0 Compilation Environment: GCC version 4.4.7 | java version 6 | git version 1.7.9.5 (because android4.0 cannot be compiled, it is not possible to verify that the environment is correct, Wait for future revisions)

(1) Open terminal, enter: Apt-get update is complete, then enter: Apt-get install git to complete the installation of Git. (2) Install JAVA6 (previously installed)(3) Install the library file (there is no update, because the following steps are not compiled android4.0 steps, so temporarily not used)(4) Build a cross-compilation environment (previously set up)
cd/usr/local mkdir arm sudo tar jxvf arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.t Ar.tar-c/usr/local/arm/
Add export path= $PATH to the end of the GEDIT/ROOT/.BASHRC file:/usr/local/arm/arm-2009q3/bin
(5) Download the U-boot file on GitHub: in the/home/work/qt210 directory: >git clone [email protected]:jackyh/qt210_ics_uboot.git(6) compile U-boot: CD./qt210_ics_uboot make Smdkv210single_config make build U-boot.bin (7)copy mkimage to/usr/bin in Uboot directory : >sudo cp/home/work/qt210/qt210_ics_uboot/tools/mkimage/usr/bin/ (in fact, the environment variable is set, before a similar operation)
(7) Download kernel, under the/home/work/qt210 directory: >git clone [email protected]:jackyh/qt210_ics_kernel3.0.8.git(8) compile kernel: cd qt210_ics_kernel3.0.8/cp config_capacity. config make-j2 uimage generate Uimage(9) Compile android4.0 (This step cannot be withheld because of missing files)Editor: 2015-08-15-by-chsrySource: http://www.cnblogs.com/chsry/

QT210 android2.3 and android4.0 burning write compilation Diary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.