Hardware driver for cross-compiling pdaxrom

Source: Internet
Author: User
The hardware driver for cross-compiling pdaxrom-general Linux technology-Linux programming and kernel information. The following is a detailed description. The following content is not recommended for new users

Before compiling the kernel or hardware driver of pdaxrom, you must have basic knowledge and sufficient operation experience, such as installing linux, install ubuntu or redhat fc in ubuntu. Compiled programs, kernel, and kernel compilation parameters in Desktop linux.

The following section does not describe the step by step for beginners. the compiling of the kernel is indeed different from clicking the net step when installing the api. Each step may be difficult to solve. For different models and different kernel, You need to download different software packages. For this type of problem, you need to do it yourself.

Build a linux environment on a PC
If you plan to use this linux environment only for the pdaxrom compilation service, the simplest is to download the following vmware image file, which can be used directly in vmware.

Http://mail.pdaxrom.org/1.1.0bet... -1.1.0beta1.tar.bz2
The later kernel compilation and dirver compilation are based on this environment.

Set the compiling environment
Decompress the compilation tool in the linux root directory
Arm-cacko-linux-gnu-2.95.3-2.2.5-hardfloat-19.50_21.09.05.tar
The newly generated directory is in/opt/cross/arm/2.95.3/bin.
Check the file links in the/opt/cross/arm/2.95.3/bin directory.
The actual compilation tool is a file starting with arm-cacko-linux-gnu.

Before compilation, set the path
Export PATH =/opt/cross/arm/2.95.3/bin: $ PATH
Do not use the environment variables included in 2.95.3. They may point to the wrong include directory instead of the include directory of the kernel source.

Copy kernel source
Decompress the kernel source to/home/root/c1000. The new directory is linux_n1.
The kernel sourcefile is linux-c1000-20050228-rom1_01.tar.bz2.
Mkdir/usr/src
Cd/usr/src
Ln-s/home/root/c1000/linux_n1 linux

Decompress pdaxrom-build to/home/root/c1000. The new directory is pdaxXrom-builder.
The buildfile is pdaxrom-builder-000049_27.12.05.tar.bz2.

Generic patch for kernel
The Directory of the kernel patch is
/Home/root/c1000/pdaxXrom-builder/patched-local/linux-c1000-20050228-rom1_01/generic
Patches with serial numbers must be used in sequence.
No sequence number, no sequence relationship

Configure kernel
Copy the kernel config file to the kernel source directory.
The path of the config file is
/Home/root/c1000/pdaXrom-builder/config/kernel/kernel-2.4.20-akita-cacko
Copy
/Usr/src/linux/. akita

Try to compile kernel
Cd/usr/src/linux
Make menuconfig
Load. akita Configuration
Exit and save
Make dep
Make zImage

Roku wificard driver
Decompress pcmcia-cs.tar.bz2 from the archos to generate a new directory named pcmcia.

Restore file links

./Configure

Compile only pcmcia without compiling driver
Make all

Compile only the wlags driver
./Build

Depmod-

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.