iTOP-4412 development board-QtE4.7-usb3G network card transplantation tutorial

Publisher:rocky96Latest update time:2022-02-19 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The development board used is Xunwei's iTOP-4412 development board

 

Porting Huawei E261 WCDMA 12d1:1446USB network card to 4412 development board

QtELinux system.

 

1 Kernel Configuration

Configure the following kernel options

 

 

 

 

 

and

 

 

 

 

As shown below

 

 

Then compile the kernel and burn it to the development board.

 

2 Compilation of tools

This migration requires four tools, which are interdependent. To facilitate compilation, copy them to the same directory.

And decompress it, as shown below.

 

 

 

2.1 Compile libusb-0.1.12

Enter the folder libusb-0.1.12 and execute the following command.

 

Enter the folder libusb-0.1.12 and execute the following command.

./configure --host=arm-none-linux-gnueabi --prefix=$(pwd)/../__install

It will set the compiler to use and specify that the path of the directory generated after make install is the path of the parent directory.

__install folder, the result is as shown below,

 

 

 

 

Then execute "make" and "make install", and you can see that the "__install" file is generated in the parent directory.

folder as shown below.

 

 

 

 

2.2 Compile usb-modeswitch-1.2.6

Compiling the tool requires the library files and header files generated in the previous step, namely __install/include and

__install/lib folder, enter the source code folder usb-modeswitch-1.2.6, and change the Makefile to the following content

Allow.

 

 

as well as

 

 

Save and compile, and enter the make command, as shown in the figure below.

 

 

2.3 Compile usb-modeswitch-data-20140327

Enter the usb_modeswitch.d directory of the source code folder, as shown in the figure below.

 

 

Use the command "vim 12d1:1446" to open the file and modify it to the following content.

 

As shown below

 

 

The most important part of the above code is DefaultVendor = 0x12d1 and DefaultProduct = 0x1446, which

The VID and PID of the USB device are defined.

 

 

2.4 Compile ppp-2.4.4

Enter the source directory and run the following command to compile

 

 

 

The compilation is complete. You can see that the pppd tool is generated in the pppd folder and the chat folder is generated in the chat folder.

tool, as shown below.

 

 

 

 

The compilation work is now completed. Next, copy the tools compiled in each step to the development board.

(1) Copy libusb.so, libusb-0.1.so.4, libusb-0.1.so.4.4.4 from the __install/lib directory in 2.1 to

to the /lib folder of the development board.

(2) Copy the usb_modeswitch file compiled in 2.2 to the /usr/sbin/ directory of the development board.

(3) Copy the file 12d1:1446 modified in 2.3 to the /etc/usb_modeswitch.d/ directory of the development board.

Note that Windows and Linux have different file naming conventions. : will be automatically converted to %3A on Windows.

Users need to copy the file to the development board first and then rename it. The renaming operation is shown in the figure below.

 

 

(4) Copy the pppd and chat tools obtained in 2.4 to the /usr/sbin/ directory of the development board.

(5) Install the scripts wcdma, wcdma-chat-connect, and wcdma-chat-disconnect provided in the compressed package

Copy it to the /etc/ppp/peers/ directory of the development board.

 

3 Testing

After the copying is complete, insert the network card E261 into the development board, and the development board will pop up the following content.

 

 

 

Wait for the network card to flash blue light, then enter the following command

usb_modeswitch -W -c /etc/usb_modeswitch.d/12d1:1446

Then run the script pppd_conf.sh provided in the compressed package. It takes about 20 seconds to run.

The network is shown in the figure below.

 

Reference address:iTOP-4412 development board-QtE4.7-usb3G network card transplantation tutorial

Previous article:Xunwei 4412 development board network-the configuration method of the minimum LAN
Next article:How to modify the iTOP-4412 development board to drive the LCD graphics card and the Linux boot log

Recommended posts

DIY smart car - "RoboMaster", the software framework has been open sourced
Hey,friends,summerishereagain~ Inthishotsummer Doyoualsohaveyourownunstoppablerestlessnessanddreams? Forexample,makea... Arobotthatcanbeatupitsownpeople Alandinvincibletankthatcanlobtheenemy
Fillmore DIY/Open Source Hardware
【CH579M-R1】First time rubbing my hands
IgottheWCHevaluationboardforthethirdtime. Coincidentally,severaltimeswhenIwaslookingforICs,EEworldwouldpromoteaWCHevent. Thefunctionsareprettyclose.ThistimeIamgoingtobuildaBluetoothgateway.WCHwillc
ljj3166 Domestic Chip Exchange
【Follow me Season 2 Episode 1】Simple method to achieve
UsingtheAdafruitCircuitPlaygroundExpressand2442(Servo) GettingStartedTasks(Required):BuildtheDevelopmentEnvironmentandLightUptheOnboardLED FirstvisitCircuitPlaygroundExpressDownload(circuitpython.org)andupda
再造巴别 DigiKey Technology Zone
What is the principle of power management chip LDO?
WhatisthecircuitprincipleoftheLDOpowerchipwithadjustableoutputvoltagethatiswidelyusedincircuits?ThemainthingIdon'tunderstandistheADJterminal.Somepowerchipshavethisterminalgrounded,whileothersareconnectedtoAD
乱世煮酒论天下 Switching Power Supply Study Group
51 MCU (STC8051U34K64)_RA8889_SPI4 reference code (v1.3)
Hardware:STC8051U34K64+RA8889developmentboard(hardwarejumperchangedtoSPI-4mode,PS=101,R143,R141shorted,R142notconnected) STC8051U34K64isthelatestmicrocontrollerlaunchedbySTC,mainlyusedtoreplacethetraditional80
harchy 51mcu
Laser communication technology needs detailed explanation
Iamnewtotheopticalcommunicationindustry.AlthoughIamcurrentlyworkingonopticalisolatorsforpassivedevices,therearetoofewonlineresources.Icanonlystartfromthegeneraldirection.WhenIunderstandDWDMandEDFAinlasercommu
一二三四一 Integrated technical exchanges
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号