-
Senior Member
registered user
Halfway
OK, I was curious about trying out a 2.6 kernel...
I apt-get'd the kernel-source and kernel-image-2.6-k7
(figuring I could miss out on the config and compile)
I said no to all the mods to lilo and edited it by hand.
The kernel-image includes an initrd image which it puts in /boot although its not compressed to a .gz.
I set this in lilo as the initrd... etc. ran lilo and no errors
Is this just to simplistic, do I need to compile my own kernel or should this work ??? does the initrd image need to be gz'd with makeinitrd OR can I just use the uncompressed one.
Ive yet to try it since I was locked into a bittorrent for the Knoppix34 all last night.
-
Junior Member
registered user
This may help with compiling a kernel for you system.
Use lspci to identify your hardware.
For the fbconsole problems use vga=773
http://www.desktop-linux.net/debkernel.htm
Walt
-
Senior Member
registered user
I tried upgrade to the 2.6.3 kernel, but failed. I followed the the steps shadowhand posted, including selecting vga16 and vesa. However, when I tried booting, I was left with a blank screen after the bios check and the message about uncompressing the kernel.
I downloaded kernel-image-2.6.2-1-686.deb from debian unstable and used its config file as a starting point. I unpacked the 2.6.3 source in /usr/src and created a symlink to linux. I did the following steps:
Code:
dpkg -x kernel-image-2.6.2-1-686.deb /tmp
cp /tmp/boot/config-2.6.2-1-686 /usr/src/linux/.config
make oldconfig
I selected defaults for every question, then:
I selected ext3 to be compiled into the kernel so I wouldn't need initrd. I selected my processor (pentium III). I selected vesa and vga16 as suggested here. I disabled isdn subsystem because it gave me compile errors for some drivers. Then I did:
Code:
make-kpkg clean
make-kpkg kernel_image
cd ..
dpkg -i kernel-image-2.6.3*.deb
Any idea what could be missing?
-
Senior Member
registered user
You do not want the vga16 only the vesa if you want to take a look at my config for 2.6.2 you can see it here it may give you a few more ideas of what you need. Oh and the commands should be fakeroot make-kpkg clean and the same for building the kernel image you should not build kernels as root only with the fakeroot package as normal user. BTW setting vga=normal in the /etc/lilo.conf should still allow you to see the messages when you boot or if you at the lilo boot screen type Linux vga=normal and enter you should have the same effect or does the system not boot the 2.6 at all.
http://newbiedoc.sourceforge.net/system/kernel-pkg.html
-
Senior Member
registered user
Thanks,
I saved your config file. I'll have to try recompiling later. It is a pretty long process on my 900 mHz. I did try switching to vga=normal in lilo.conf, but it still wouldn't boot. My 2.4.25 kernel was upgraded and installed the same way and it works fine.
-
Senior Member
registered user
erm anyone
Is there any absolute need to use the source kernel....
Does the initrd image need to be gz'd or not???
-
Senior Member
registered user
Re: erm anyone

Originally Posted by
gowator
Is there any absolute need to use the source kernel....
Does the initrd image need to be gz'd or not???
If the binary kernel you are booting doesn't have the modules you want, yes.
gzip the initrd image is always a good idea as it saves a lot of space especially for booting media which may subject to the 1.44M or 2.88M limit.
-
Hi:
but I think, i downloaded the kernel image, so it is compilled, not the source code, so if this kernel is compilled and installed,
how can i make it run?
I don't have to do this makes, haven't I? only configure something to run it?
-
my guide to compling the kernel
- download the latest FULL source from www.kernel.org (I don't mess with the debs personally, I want the latest that kernel.org has to offer). save the source .tar.bz2 (or tar.gz) to /usr/src.
- decompress and untar the image in /usr/src. For example if you downloaded linux-2.6.3.tar.bz2 when uncompressed you should have a folder for /usr/src/linux/linux-2.6.3
- there's a few packages we'll need to install before compiling the kernelt:
Code:
apt-get install kernel-package libncurses5-dev
(and if building a 2.6.x kernel for the first time you'll want to add module-init-tools to this list as well)
- in /usr/src/linux-2.6.3/ run the following commands
Code:
make mrproper
make menuconfig
mrproper will insure a clean build and import some settings from your current working kernel. make menuconfig is an ncurses menu where you can go through and unselect/select support for various hardware and such relating to your computer. Once inside menuconfig the commands for adding/removing support are as follows: Y=yes (built-in support) N=no (no support) M=compiles support as a module. When you exit menuconfig say "yes" to saving the changes.
{*] now that you've trimmed the fat from the kernel we're ready to build it as a package. in /usr/src/linux-2.6.3 run the following commands (as root):
Code:
su
Password:
make-kpkg clean
make-kpkg kernel_image
- go make lunch, have a cup of coffee, pop in a movie, whatever, the compiling of the kernel into an installable .deb ipackage will take a while. Assuming the .deb was created with no fatal errors you'll now have a kernel package in /usr/src . now we need to install it, in /usr/src/ run the follwing command (still as root)
Code:
dpkg -i kernel-image-2.6.3_10.00.Custom_i386.deb
- for some reason /etc/lilo.conf is never updated correctly to add an entry for the new kernel, so we must edit it manually (still as root). Add the following entry to the very bottom of /etc/lilo.conf:
Code:
image=/boot/vmlinuz-2.6.3
label=2.6.3
initrd=/boot/linux-2.6.1.gz
read-only
# restricted
basically you want to clone the existing entry in lilo.conf for your working kernel, and replace the image= line with the vmlinuz image created in /boot when you installed the kernel_image.deb. your initrd image you want to keep the same as your working kernel (or comment it out if you disabled intial ramdisk support in the kernel you compiled). label= iyou can set to say whatever you want to indicate on the lilo boot menu what kernel you'll be booting into (you will want to make sure the prompt line in /etc/lilo conf is not commented out)
- all we need to do now is update lilo.
- reboot your computer, and in your lilo menu you should now have an entry at the bottom for this new kernel, select it, and if all went well you'll be up and running with your new custom kernel, nto bogged down by all the modules loaded by defualt in a typical knoppix install.
- As a footnote if you're compiling ALSA into your kernel for the first time you'll also want to install the following packages:
Code:
apt-get install alsa-base alsa-utils gnome-alsamixer
upon installation fo these you'll be asked which soundcard(s) you want to install sound support for.. gnome-alsamixer is a nice gui tool for the inital umuting you need to do once ALSA is installed.
-
Senior Member
registered user
Re: my guide to compling the kernel

Originally Posted by
Hayabusa
decompress and untar the image in /usr/src. For example if you downloaded linux-2.6.3.tar.bz2 when uncompressed you should have a folder for /usr/src/linux/linux-2.6.3
The directory would be /usr/src/linux-2.6.3 after the extraction (tar -xjvf linux-2.6.3.tar.bz) and once done while still in the /usr/src directory.
Code:
ln -s /usr/src/linux-2.6.3 linux
Code:
apt-get install kernel-package libncurses5-dev
(and if building a 2.6.x kernel for the first time you'll want to add module-init-tools to this list as well)
Add to the list the package fakeroot.
[*] in /usr/src/linux-2.6.3/ run the following commands
Code:
make mrproper
make menuconfig
mrproper will insure a clean build and import some settings from your current working kernel. make menuconfig is an ncurses menu where you can go through and unselect/select support for various hardware and such relating to your computer. Once inside menuconfig the commands for adding/removing support are as follows: Y=yes (built-in support) N=no (no support) M=compiles support as a module. When you exit menuconfig say "yes" to saving the changes.
The mrproper is not necessary and you should.
Code:
cd /usr/src/linux
make menuconfig
{*] now that you've trimmed the fat from the kernel we're ready to build it as a package. in /usr/src/linux-2.6.3 run the following commands (as root):
Code:
su
Password:
make-kpkg clean
make-kpkg kernel_image
Never compile a kernel as root that is why the fakeroot package exists and should always be used for that purpose the commands would be in the /usr/src/linux directory.
Code:
fakeroot make-kpkg clean
fakeroot make-kpkg kernel_image
cd ..
su
Password:
dpkg -i kernel-image-2.6.3_10.00.Custom_i386.deb
[*] for some reason /etc/lilo.conf is never updated correctly to add an entry for the new kernel, so we must edit it manually (still as root). Add the following entry to the very bottom of /etc/lilo.conf:
Never happened to me before but I had a strange one last week on my firewall box where depmod would not run on the new kernel and caused an error during the installation I had to run it after booting into the new kernel.
[*]As a footnote if you're compiling ALSA into your kernel for the first time you'll also want to install the following packages:
Code:
apt-get install alsa-base alsa-utils gnome-alsamixer
upon installation fo these you'll be asked which soundcard(s) you want to install sound support for.. gnome-alsamixer is a nice gui tool for the inital umuting you need to do once ALSA is installed.[/list]
Also do not forget to remove the knx-alsa package to get it out of the way and prevent problems in the future.
Similar Threads
-
By echo6 in forum Customising & Remastering
Replies: 0
Last Post: 05-08-2005, 11:42 AM
-
By cfish in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-25-2005, 07:31 AM
-
By gitarzysta in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 06-03-2004, 08:36 PM
-
By Nils_ in forum Hardware & Booting
Replies: 0
Last Post: 03-08-2004, 10:50 AM
-
By tji in forum Customising & Remastering
Replies: 4
Last Post: 06-12-2003, 06:40 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

AMD Ryzen 5 5500 Processor ( read Description)
$59.00

Intel Core i7-4770 3.40GHz Quad Core SR149 LGA 1150 CPU Processor tested
$35.00

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH
$179.99

Lenovo ThinkCentre M920s SFF Barebones PC Motherboard PSU DVD No CPU RAM SSD
$27.99

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99

Intel Core i7-3770K 3.5 GHz Processor
$39.00

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor
$114.99

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor
$67.99

INTEL CORE I9-10980XE PROCESSOR | 3.00GHZ | SRGSG
$299.99

Intel Core i7-10700 8-Core 16-Thread 2.9GHz Desktop CPU LGA1200 SRH6Y Z490 Z590
$129.00