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.
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
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- C&D 10MSPS dual sampling 14-bit resolution A/D converter for error-free operation
- Definition of waveform overshoot on sampling resistor in constant current source application
- How to generate such waveform using Verilog?
- When the USB bus is suspended, is the current less than 280uA???
- 【TI millimeter wave radar evaluation】_2_AWR1843BOOST usage
- Capacitor detailed explanation
- How to solve the error instruction when tm4c123 drives LCD? The program is directly copied from the official routine
- The world's top 25 IC distributors
- Environmental Monitoring System
- Basic knowledge of semiconductors