Install 2.6 kernel in Debian Woody (Stable)!

xiaoxiao2021-03-06  22

Install 2.6 kernel under Debian Woody (Stable)

1, premise

1) Tools that install compilation need

Apt-get install gcc debhelper kernel-package

2) Install some tools for compiling kernels

- kernel 2.6 must require Module-IT-Tools to manage modules. So you must install Module-Init-Tools and ModuTils.

These need to be generated from the source code from Debian's unsteable or testing.

- Use some of the features of Kernel, require some programs, such as E2FSPROGS, JFSUTILS, Reiserfsprogs, Xfsprogs, etc.

See Documentation / Changes under Kernel Source. Not discussed here

2, installation steps

Edit /etc/apt/sources.list, join:

DEB-SRC

http://debian.cn99.com/debian unsteable main control Non-free

APT-GET UPDATE

Apt-Get Source ModuTils Module-Init-Tools

Compile MODUTILS:

CD MODUTILS-2.4.26

DPKG-BuildPackage

Compile Module-Init-Tools, you need to make the following Patch:

*** / TMP / Rules Sat Jan 3 22:40:14 2004

--- Debian / Rules Sat Jan 3 22:40:42 2004

****************

*** 57, 63 ****

DH_INSTALLEXAMPLES generate-modprobe.conf extra / versioned

DH_INSTALLMAN EXTRA / MODULES * .5 extra / update-modules * .8 * .8 * .5

SH-E Extra / FixManpages $ D

! DH_INSTALLINIT --NO-Start --Update-rcd-params = "Start 20 s."

DH_STRIP

DH_LINK BIN / LSMOD SBIN / LSMOD

DH_compress

--- 57,64 ----

DH_INSTALLEXAMPLES generate-modprobe.conf extra / versioned

DH_INSTALLMAN EXTRA / MODULES * .5 extra / update-modules * .8 * .8 * .5

SH-E Extra / FixManpages $ D

! DH_INSTALLINIT --UPDATE-RCD-params = "Start 20 s."

!

DH_STRIP

DH_LINK BIN / LSMOD SBIN / LSMOD

DH_compress

CD Module-Init-Tools-3.0-pre2 /

DPKG-BuildPackage -D

Install MODUTILS and MODULE-INIT-TOOLS package:

DPKG -I MODUTILS_2.4.26-1_I386.DEB

DPKG -I Module-Init-Tools_3.0-pre2-1_i386.deb

Remove kernel-source:

From

Http://mirrors.cn99.com/kernel/v2.6/ Download kernel-2.6 source code, then unopened

Use make config or make menuconfig to configure, select the desired option

Then run the following command to generate a kernel-image package:

Make-KPKG Kernel-Image installation compiled kernel package:

DPKG -I kernel-image-2.6.0_10.00.custom_i386.deb

3, pay attention:

Compiled MODUTILS and MODULE-INIT-Tools package can be downloaded directly to the address:

http://debian.cn99.com/kernel-2.6/

转载请注明原文地址:https://www.9cbs.com/read-65544.html

New Post(0)