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

How to configure the finishing touches for compiling kernels in openSUSE

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

Share

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

This article will explain in detail how to configure the final work of compiling kernel in openSUSE. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

The kernel has been compiled and installed, and a startup item has been added to the bottom of the grub start menu. Reboot can try a new kernel login. There are still some minor problems to be solved. Point / usr/src/linux to the source directory of the newly compiled kernel, # rm / usr/src/linux#ln-s / usr/src/linux- version number / usr/src/linux, then restart and check the kernel version with uname-r. Naturally, remember to reinstall the video driver.

OpenSUSE uses tutorials to clean up

If your kernel works stably and properly after a period of testing, you can do some cleaning to free up disk space.

OpenSUSE uses tutorials to clean up old files

Go back to the kernel source directory

# make clean

Delete the directory corresponding to other kernel version numbers under / lib/modules, that is, delete the files corresponding to other kernel version numbers under the old version kernel module file / boot

OpenSUSE uses tutorials to clean up the grub startup list

You may not want the invalid original kernel to remain on the boot menu, so

# mv / boot/grub/menu.lst.old / boot/grub/menu.lst#rm / boot/*.old & & rm / boot/grub*.old#rm / boot/vmlinuz & & rm / boot/initrd#ln-s vmlinuz- new version number-default vmlinuz#ln-s initrd- new version number-default initrd update kernel-headers =

After self-compiling the kernel, linux-kernel-header cannot be updated automatically and is controlled by the RPM software management system. In general, this package is maintained at the official kernel version. So we need to update it manually to facilitate the module compilation under the new kernel.

Rm-rf / usr/include/linuxcp-r / usr/src/linux-2.6... (the version number of the newly compiled kernel, please complete it according to your own situation) / include/linux / usr/include

This is the end of the article on "how to configure the compilation of the kernel in openSUSE". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

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

Servers

Wechat

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

12
Report