Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The Operation process of compiling and replacing version 3.4 Kernel by Linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

The operation process of Linux compiling and replacing version 3.4 kernel. In order to solve this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

[compile 3.4]

[on PC, my system is Ubuntu 12.04 Desktop 32bit]

Sudo su

Wget https://github.com/linux-sunxi/linux-sunxi/archive/sunxi-3.4.zip

Unzip sunxi-3.4

Cd linux*sunxi*3.4

Make sun4i_defconfig ARCH=arm

Unzip

Make config

After completion

Apt-get install build-essential u-boot-tools uboot-mkimage gcc-arm-linux-gnueabihf-y

Install the necessary things

Then get the menu and choose what you want (drive or something)

Make menuconfig ARCH=arm

Look carefully, it says Linux/arm 3.4.29, if you are Linux/arm 3.0.xx, then you downloaded it wrong, if you are Linux/i386 or Linux/x86_64, it is even more unreliable, either you download the package to i386 or your ARCH does not write arm.

Choose your own time, the following Device Driver is the driver, Network Support is the network. Pull it down. there's actually something down there.

The first one (Ge...Setup) contains a Default Hostname, the default hostname, which can be modified by yourself.

To choose something, use a button:

Y is set to built-in (can't be deleted)

N is set to no (it is not in the kernel and can be added through modules)

M is set to module (can be added or subtracted by module)

Let me show you.

This is the network, in which there is a wireless is wireless, the network supports the following is the hardware driver

This is a wireless option for your reference.

There is a boot icon in Devices Driver- > Graphics Support- > Bootup LOGO. You can choose, .

This is Linux's penguin icon.

Have you chosen?

Ok, press the left and right keys to select exit

Choose yes, save it, all right.

Make uImage CROSS_COMPILE=arm-linux-gnueabihf--j2 ARCH=arm # compiles the uImage file

Make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf--j2 INSTALL_MOD_PATH=output modules # compiles files in the lib folder

Make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf--j2 INSTALL_MOD_PATH=output modules_install # compiles files in the lib folder

Mv arch/arm/boot/uImage output # Mobile

Above j2 means double thread, which can be changed.

Compiling

OK

UImage and lib can be compiled at the same time and two terminals can be opened.

Compiled and copied directly to the SD card.

Both files are in the output folder

UImage copied to the FAT partition of the SD card

Lib copied to the linux partition of the SD card

Then just plug the SD card in.

Remember to back up the original first, or you'll break it.

This is the answer to the question about the operation process of Linux compilation and replacement of version 3.4 kernel. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report