Building The Driver; Install Cross Compiler; Modify The Source Code File Of Linux Kernel - Quectel UC20 User Manual

Embedded linux usb driver
Hide thumbs Also See for UC20:
Table of Contents

Advertisement

UMTS/HSPA Module
UC20 Embedded Linux USB Driver User Guide
The USB Host Controller driver, the bottom of the hierarchical structure, is a software module which
interacts directly with hardware.
USB core, the core of the whole USB host driver, is responsible for the management of USB bus, USB
bus devices, and USB bus bandwidth, providing the interfaces for USB device driver, through which the
applications can access the USB system files.
USB device drivers interact with the applications, and mainly provide the interfaces for accessing the
specific USB devices.
3.2.

Building the Driver

During the development based on embedded Linux OS, you must retrieve the Linux kernel source code
files and install an appropriate cross compiler first, then modify the kernel configuration and
corresponding source code files, and compile the kernel to generate image file, then burn the file into the
target machine (The OS of the target machine is Android 4.0.3, and the corresponding Linux kernel
version is 3.0.8).The detailed steps are shown as below:

3.2.1. Install Cross Compiler

Cross-compilation is an important technology for embedded development. Its feature is that the source
code files are not compiled in native machine but the other one. In general we call the former target
machine and the latter host machine.
The reason of adopting cross-compilation is that most embedded target system cannot provide enough
resources for compiling source code files, so we have to do that in a high-performance host machine in
which we will create an environment of cross-compilation for the target machine.
In general, the vendor of the embedded machine would provide the cross compiler and the installment
method about it. Here, we use the cross compiler "arm-linux-gcc-4.5.1", install it and add the compiler's
path in the system environment variables, then re-logout system, then you can use the cross compiler to
compile the source code files.

3.2.2. Modify the Source Code File of Linux Kernel

Modify the source code file "option.c" in Linux kernel by adding VID and PID of UC20, so that the OS can
recognize it.
UC20_Embedded_Linux_USB_Driver_User_Guide
Confidential / Released
9 / 18

Advertisement

Table of Contents
loading

Table of Contents