1893 views|2 replies

164

Posts

0

Resources
The OP
 

Xunwei iTOP4418 development board Qt system ported 4G-EC20 [Copy link]

By configuring the Linux kernel driver, porting the PPP dial-up tool in the file system, porting EC20 to the Qt system and the minimum Linux system, the software packages and documents required for the porting can be downloaded from the network disk material "iTOP4418 development board data summary (excluding CD content)\09_iTOP-4418 development board minimum
Linux_Qt_Ubuntu extension document\23_Chapter_Porting EC20".
The EC20 module is encapsulated into a standard PCIe interface, and the development board mainly communicates through USB. The files provided this time include pppd source code, compiled chat and pppd tools, wcdma, wcdma_back, wcdma-chatconnect, wcdma-chat-disconnect, and the pppd_conf.sh script to be used at the end of the document, as shown in the figure below

Before compiling, you must first change the compiler to the arm-2009q3 compiler. For how to set the compiler, see manual 5.2.2 "Installation of cross-compilation tools". In addition, in order to avoid problems that may arise when using environment variables to set the compiler, most of the compilations in the document use the absolute path of the compiler. Users should also find the absolute path of their own compiler for later use. The figure below shows the compiler used in this compilation and the compiler compressed package.

From the figure above, we can see that the absolute path of the compiler is "/usr/local/arm/arm-2009q3/bin/arm-nonelinux-gnueabi-gcc".
63.1 Driver support
First, you need to make some modifications to the Linux kernel driver to enable the operating system to support EC20. First, add VID and PID, that is, the USB manufacturer ID and device ID. Add the following two items to the kernel /drivers/usb/serial/option.c file in the kernel source code:
#define EC20_VID 0x1E0E
#define EC20_PID 0x9001
as shown below

Then search for option_ids and add the following content to the option_ids list.
{ USB_DEVICE(EC20_VID, EC20_PID) },
as shown below

Return to the kernel directory and configure the following two items in make menuconfig.

  • Device Drivers →
  • USB Support →
  • USB Serial Converter support →
  • USB driver for GSM and CDMA modems

    and select all <*> PPP*** in Device Drivers > Network device support

    and then compile the kernel and burn it to the development board.
    63.2 Compile the ppp dial-up tool
    Unzip the provided source code to Ubuntu and enter the unzipped folder, as shown in the figure below.

    Use the "./configure" command to configure the source code, as shown in the figure below.

    Use the command "make CC=/ usr/local/arm/arm-2009q3/bin/ arm-none-linux-gnueabigcc" to compile the source code. Note that the absolute path of the compiler is used here.

    Compilation is complete. You can see that the pppd tool is generated in the pppd folder and the chat tool is generated in the chat folder, as shown in the figure below.

    63.3 Copy tools
    Download the pppd and chat tools generated in the above steps to the /usr/sbin/ directory of the development board. Copy the scripts wcdma,
    wcdma-chat-connect, and wcdma-chat-disconnect provided in the compressed package to the /etc/ppp/peers/ directory of the development board.
    63.4 Test
    First, install the antenna on the development board, as shown in the figure below.

    After inserting the mobile phone card, restart the development board and copy the script pppd_conf.sh to the development board, then use the command "./pppd_conf.sh &" to run the script. The running result is shown in the figure below.

    Use the command "ping -c 4 www.baidu.com &" to test, and you can see that the connection is successful (because 4G connection needs to search for signals, it takes a while to access the Internet in areas with poor signals)

    The transplantation is completed here.
This post is from ARM Technology

Latest reply

There are no pictures of the antenna installed on the development board, and several pictures are not posted Why do we need to use the dial-up tool when compiling ppp?   Details Published on 2021-3-12 20:55

赞赏

1

查看全部赞赏

 

1942

Posts

2

Resources
2
 

Thanks for sharing! Very good!

This post is from ARM Technology
 
 
 

6555

Posts

0

Resources
3
 

There are no pictures of the antenna installed on the development board, and several pictures are not posted

Why do we need to use the dial-up tool when compiling ppp?

This post is from ARM Technology
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list