Debian default kernel upgrade to kernel2.6

xiaoxiao2021-03-06  22

Debian default kernel upgrade to kernel2.6

How to install kernel 2.6 in Debian

$ APT-GET Install Kernel-Package

$ APT-GET Install Kernel-Source-XXXX

$ CD / USR / SRC

$ TAR ZXVF KERNEL-SOURCE-XXXX.TAR.GZ (you can also download directly)

$ CD / USR / SRC / KERNEL-SOURCE-XXXX

$ Make Menuconfig

$ Make

$ make-kpkg -rev custom.1 --initrd kernel_image

(CUSTOM.1 is defined, in principle, please name, if you can call DOG, but the version number (.1) is required)

Other tools may also be needed, you can use the APT-GET Install XXXX to install, you can see the compile time.

$ CD / USR / SRC

$ DPKG -I kernel-image-xxxx_custom.1_i386.deb (this package can be used)

After installation, some of Lilo will be modified.

The following is some of the contents of /etc/lilo.conf

# Boot Up Linux by Default.

#

Default = linux

Image = / boot / vmlinuz-2.6.10

Label = Linux

Initrd = / boot / initrd.img-2.6.10

Read-only

# rstricted

# alias = 1

Image = / vmlinuz.old

Label = linuxold

Read-only

Optional

# rstricted

# alias = 2

Check the /etc/lilo.conf file to see Boot = / etc / hdc is correct, this is the location of MBR information,

Note that this is the hard disk information, not partition information, so it will not be boot = / etc / hdc1.

In addition, you should check that root = / dev / hdc9 is the path of the root partition.

Execute LILO, save the startup information:

$ LILO -M / ETC / HDC (where MBR is located, write LILO)

$ LILO -V (check if the LILO information is correct)

$ LILO (Execute Lilo)

$ reboot

Abnormal processing

Tips when starting:

Kernel PANIC - NOT SYNCING: VFS: UNABLE TO MOT ROOT FS ON UNKOWN-Block (3,4)

Reason: The system cannot find the root partition

Solution:

1) Determine the compiled kernel to support the partition you use is usually ext2

2) Determine Select File Systems -> Miscellaneous FileSystems -> <*> Compressed Rom File System Support (CRAMFS)

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

New Post(0)