Build a development environment for QQ2440 (based on VMware and Ubuntu)

Source: Internet
Author: User
Set up the QQ2440 Development Environment (based on VMware and Ubuntu)-Linux general technology-Linux programming and kernel information. The following is a detailed description. 1. Install software
(1) VMware Workstation ACE Edition (6.0.2 build-59824)
(2) Ubuntu Desktop I386 (7.10)
(3) to facilitate sharing between the client and the host, install VMware tools:
Copy vmwaretools-6.0.2-592.16.tar.gz to/tmp and decompress it. Then, go to the vmware-tools-distrib directory,
Run sudo./vmware-install.pl
There are three major problems to solve:
(A) modify the/etc/X11/xorg. conf file and change "ps/2" to "imps/2"
(B) You cannot smoothly switch the mouse from the client to the host machine ==> modify the/etc/X11/xorg. conf file and change "mouse" to "vmmouse"
(C) hgfs share failure ==> modify the compat_slab.h file in lib/modules/source/vmhgfs.tar of VMtools before installation,
If LINUX_VERSION_CODE <KERNEL_VERSION (2, 6, 22) | defined (VMW_KMEMCR_HAS_DTOR)
Change "<" to "<=". Then, pack the modified files and replace the original vmhgfs.tar file.

2. Build a cross-compilation environment
(1) install Basic Compilers
Sudo apt-get install build-essential
(2) install ncurses
Sudo apt-get install libncurses5-dev
(3) install the cross-compilation tool chain
Copy the Toolkit arm-linux-gcc-3.4.1.tgz from the CD to the Virtual Machine Hard Disk
Tar zxvf arm-linux-gcc-3.4.1.tgz-C/media/disk/qq2440/ work
(4) create a script for compiling the environment
Create a file setenv with the following content:
PATH_QQ2440_WORK =/media/disk/qq2440/work
Export PATH = $ PATH: $ PATH_QQ2440_WORK/sbin
Export PATH = $ PATH: $ PATH_QQ2440_WORK/usr/sbin
Export PATH = $ PATH: $ PATH_QQ2440_WORK/usr/local/sbin
Export PATH = $ PATH: $ PATH_QQ2440_WORK/usr/local/arm/3.4.1/bin
(5) set the compiling environment
Enter the setenv file directory under the terminal and execute source setenv
Check whether echo $ PATH has been set in the environment.

3. Compile the kernel
(1) create a source code working directory
Copy the kernel source code linux-2.6.13-qq2440_20070507.tgz from the CD to the Virtual Machine Hard Disk
Tar zxvf linux-2.6.13-qq2440_20070507.tgz-C/media/disk/qq2440/ work
(2) Modify permissions
Sudo chmod-R 777 kernel-2.6.13
(3) Start Compilation
Make clean
Make menuconfig
Make zImage
If you want to save the compilation result to a file, enter:
Make zImage 2> & 1 | tee build. log
Compile in about 4 minutes (the configuration is AMD Sempron/64bit/Socket754 2.70 GHz)
Related Article

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.