Portable wifi firmware compilation tutorial

        This article describes the pits I stepped on in the process of compiling tutorials using other people's firmware.

        The portable wifi in my hand is a portable wifi bought from Taobao. It uses a Qualcomm 410 chip. I won’t say much about the configuration. The model is 001C.

Why compile the kernel? Under what circumstances do you need to compile the kernel?

Although the firmware compiled by the big guys can meet the needs of most people, in many cases you can download and burn your own firmware according to your own needs, but everyone's needs are different, and some people want to use portable wifi Support a certain driver (such as a usb network card driver, usb device), support a certain file system (such as cifs, smb), and the firmware compiled by the big guys does not exactly meet your needs. In this case, you need to compile the firmware yourself up.

Firmware compilation tutorial:

       First of all, let me explain that the two files rootfs.img (root file image) and boot.img are compiled and compiled by the firmware, which is downloaded from other big guys (here is the link of Su Su Xiaoliang here: Debian Portable WIFI These two files in the firmware folder of the main control 4G remote control car tutorial Kancloud (kancloud.cn) .

       All we have to do is to compile these two .img files, and then replace the two files in the original package.

       Ning Ning already has a tutorial on compiling these two .img files with portable wifi on his blog. I just follow the tutorial below. The link is here: ->-> Compile Debian firmware for UFI devices | Ning Ning's Blog . <-<-

       It's really a very good post. I would like to thank Mr. Ning Ning for sharing. I followed the tutorial and copied and pasted the commands all the way to complete the compilation. It really lowered the threshold for Linux kernel compilation. (One thing to say, handsomehack has also released a compilation tutorial, but some steps jump a bit too much, and Xiaobai has a lot of dependent packages that are not installed, or some steps jump too fast, so he looks confused.)

       But there are still some pitfalls in the operation process:

  1. For environment and dependency issues, in order to avoid all kinds of strange problems, please be sure to use the same system version, and the kernel version should also be upgraded to 5.15 or above (ubuntu will not upgrade the kernel version itself Baidu...). Then there are various dependent packages, first download and install them with apt-get. In short, it should not be a big problem to follow the above operation verbatim from beginning to end.
  2. Make menuconfig is the option menu for compilation. This determines whether some functions are compiled into the kernel, such as the cifi file system. As for how to configure the functions you want, go to the Baidu Linux kernel compilation Chinese guide.
  3. There is another step below unpacking and mounting that is easily overlooked

The deb file here refers to the two .deb files generated in the same directory as Linux, as mentioned earlier.

  1. The dpkg -l | grep -E "linux-headers|linux-image" |awk '{print $2}'| xargsdpkg -P command in it is wrong, it should be dpkg -l | grep -E "linux-headers| linux-image" |awk '{print $2}'|xargs dpkg -P is actually xargs dpkg stuck together.

The final result is these two files, just change the name and copy them to the UF001C directory.

Then how to burn the firmware to the board through this folder: the tutorial is as follows:

Flashing method:
First, use adb reboot bootloader ( or other methods ) to let the device enter BootLoader mode, then open the downloaded Debian system firmware of the corresponding device , double-click flash.bat on Win system , execute flash.sh on Mac or Linux system to start flashing, Key-type flashing, after the script is executed, it will be flashed, and it will automatically restart. (Note: It is best to swipe the full Netcom base QCN first , and you need to swipe into the system without inserting the card, otherwise the modem may not work properly!!!

This tutorial is from Su Su Xiaoliangliang's blog. There are many burning tutorials, please Baidu. Su Su Xiaoliangliang's blog address ( detailed steps · 4G remote control car tutorial with portable WIFI as the main control · Kanyun )

Guess you like

Origin blog.csdn.net/m0_46449041/article/details/126970222
Recommended