Professional Documents
Culture Documents
Change History
Date Revision CR ID/Defect Section Change Description Author
Version ID Number
Contents
1 Purpose ...................................................................................................................................... 4
2 Scope .......................................................................................................................................... 5
3 Overview ................................................................................................................................... 6
3.1 Linux Kernel Driver Architecture Supporting Huawei Module Dongle in Android OS .................................. 6
3.2 Linux Driver Integration Pack in Android OS ................................................................................................. 7
5 Appendix ................................................................................................................................. 17
5.1 Ensuring the Availability of a Correct USB Se rial Port Driver in the System ................................................ 17
5.2 Getting the Current Port Mapping Information of the Board ......................................................................... 18
1 Purpose
This guide instructs the kernel driver int egration development for Huawei module dongle
based on Android operating system (OS). It is intended for the driver developers of the
products based on Android OS.
2 Scope
3 Overview
U
User program s
e
r
s
Character device Block device layer Network device layer VFS TTY Others p
layer layer layer a
c
e
USB device driver layer
K
USB serial port driver Network device driver Other device drivers e
r
n
USB core e
l
As shown in the preceding diagram, in the USB driver architecture of Linux OS, the driver
module closely related to Huawei module dongle is the USB serial port driver module at the
USB driver layer. Therefore, this guide focuses on the driver -related integration operations.
This integration scheme involves the following Linux kernel source code file:
drivers/usb/serial/option.c
CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y
b. If the Android kernel version is earlier than 2.6.33, skip step a and configure as follows
directly.
Step 3 Select Exit to exit all configuration screens. When the following dialog box is displayed,
select Yes to save the configuration.
Step 4 After the configuration is completed, run the make command and compile the revised kernel
version.
5 Appendix
If the following (or similar) information exists in the kernel log, it can be confirmed that a
correct USB serial port driver is in the system.