[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel Compilation



Hello Roman,

Just been through the exercise of building my first Debian kernel
myself. If you have never built a Debian kernel before, the
'Debian way' of doing it seems quite different to that on most other
Linux's.

The method I used to reproduce my stock stable kernel-source-2.6.8
after a new install was as follows:

 apt-get install kernel-tree-2.6.8
 cd /usr/src
 tar jxf kernel-source-2.6.8.tar.bz2
 cd kernel-source-2.6.8
 cp /boot/config-2.6.8-2-386 .config
 make-kpkg clean
 make-kpkg --revision=libretto.1.0 --initrd  kernel_image
 dpkg -i ../kernel-image-2.6.8_libretto.1.0_i386.deb

It is presumably possible to do build a kernel the 'traditional'
way, but you may want to try doing it the 'Debian way' first
before trying anything more maverick.

Your error message suggests to me that your initrd is not loading
the correct driver modules. 

On Sun, Feb 05, 2006 at 11:49:54AM +0000, Roman Kouzmenko wrote:
> Hello,
> 
> After being stuck for 3 days trying to recompile my kernel, I'm seeking 
> help. Guess the answer should be quite simple.
> 
> I've managed after some work to install debian on my new Dell machine 
> (ICH7 controller + SATA): I debootstrapped the system from Knoppix and 
> then installed the latest kernel 2.6.15-1-686-smp from the backports 
> with initramfs-tools. I need to recompile it to add support for some 
> hardware (not relevant here).
> 
> Unfortunately, it seems that I can't even recompile the 2.6.15-1-686 
> kernel with the same configuration my machine uses. The step I'm making:
> 
> apt-get install linux-source-2.6.15
> 
> unpack the sources, go to kernel sources directory
> copy /boot/config-2.6.15-1-686 to .config
> make bzImage
> make modules
> make modules_install
> 
> I copy the bzImage and System.map to boot, generate an initrd.img file using
> initramfs -o /boot/initrd.img
> 
> and then reboot the machine with the new initrd image and bzImage.
> The system reports it can't find my root device /dev/sda1 (which is SATA 
> on ICH7)
> 
> But it works with the debian kernel presumably built with the same 
> config file!!!
> 
> I've tried many things including compiling SATA support directly into 
> the kernel, using the latest build from kernel.org, but the problem 
> remains the same Sad(
> 
> Can someone tell me what I am doing wrong? I haven't compiled a kernel 
> in a couple of years, maybe that's the reason...
> 
> Thanks
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact 
> listmaster@lists.debian.org

-- 
Digby R. S. Tarvin                                          digbyt(at)digbyt.com
http://www.digbyt.com



Reply to: