Re: How can I make a kernel package that is _identical_ to those available for download?

From: Paul E Condon (pecondon_at_mesanetworks.net)
Date: 12/30/04

  • Next message: Ivan Wills: "Re: apache & apache-ssl"
    Date: Wed, 29 Dec 2004 20:03:32 -0700
    To: debian-user@lists.debian.org
    
    

    On Thu, Dec 30, 2004 at 12:17:44PM +1000, R G Cottrell wrote:
    > Hi folks,
    >
    > I asked this on debian-kernel about 8 hours ago but didn't
    > get any replies.
    >
    > I've tried about half a dozen times over the last year to compile
    > a working kernel for my old 233MHz machine. I thought I might
    > have had a defective processor (a K6) but I've changed it to a
    > genuine Intel Pentium and still had no success. I can
    > successfully install one of the precompiled kernel images,
    > but compiling one on my box has failed so far. At one point I
    > filed a bug report but Herbert Xu was unable/unwilling to help.
    >
    > I am currently running RC1 of sarge with a 2.4.27 kernel that I
    > downloaded as a kernel image, but I've previously tried with
    > 3.0r1 with 2.4.18 and other 2.4.x kernels, as well as an early
    > 2.6.x kernel source.
    >
    > I now have:
    >
    > kernel-source-2.4.27_2.4.27-6_all.deb (30M)
    >
    > I thought I knew what to do with this, but my past failures in
    > compiling kernels on this box make me wary.
    >
    > I also have
    >
    > kernel-image-2.4.27_2.4.27-6.tar.gz (95K)
    >
    > but I can't understand what I'm supposed to do with it.
    > I've unpacked it but it seems to be for those who already
    > know how it works - there's no readme or help I can see.
    >
    > I also have:
    >
    > kernel-build-2.4.27_2.4.27-6_i386.deb (8K)
    >
    > but I don't really know what to do with it either.
    >
    > I do have kernel-package installed.
    >
    > As far as I can tell, the latest testing kernel image for Pentium is:
    >
    > kernel-image-2.4.27-1-586tsc_2.4.27-6_i386.deb (11.5M)
    >
    > What commands do I need to issue in order to generate a .deb that is
    > _identical_ to that? I assume I have to use make-kpkg, and it probably
    > depends on the precise version of the compiler.
    >

    The Debian way really does work. I suggest that you stick with it.

    You use make-kpkg as your main tool. Making a kernel package that is
    _identical_ to the precompiled package that you have already
    downloaded is unwise. You need, at least, to change the
    version/rev.number or something so that your computer can distinguish
    between the two (and so that you can distinguish between the two in
    order to tell whether or not you have succeeded) The instructions for
    setting up this change are in man page (I think). Choose an ID string
    that includes something personal, such as you initials.

    Then copy the config file of the prepackaged kernel from /boot into
    the source tree under /usr, and follow the steps in the man page.

    Making a near identical copy of a Debian kernel package is a good
    training exercise, and good first step. If it fails, you know that
    your new kernel is not failing because of a poor choise of kernel
    config options, you are using the ones that you know work for your
    hardware. After you have succeeded at this exercise, you can start
    tweeking the config parms and recompiling.

    HTH

    -- 
    Paul E Condon           
    pecondon@mesanetworks.net
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Ivan Wills: "Re: apache & apache-ssl"

    Relevant Pages

    • Crash with new bind/host cmds on -CURRENT (poss. runq_remove?)
      ... although I'm still compiling it for pentium by ... but the kernel I compiled on 21st ... I haven't included the config file ... but it's a fairly standard SMP ...
      (freebsd-current)
    • Re: Compiling a kernel
      ... (unless you're creating Debian packages). ... 2.4.* kernel to a 2.6.18 kernel. ... Before, I tried to have no modules, compiling needed modules into the ... I presume you have an Nvidia card with 3D acceleration. ...
      (Debian-User)
    • Re: problem with pre-installed packages when using re-compiled kernel (solved)
      ... Changing the config parameters (specifically ... > Welcome to the wonderful world of Debian! ... > Did you get the alsa source via the alsa website? ... > This sounds like you missed an option in your kernel ...
      (Debian-User)
    • unsubscribe
      ... > Subject: debian newbie... ... If I need to recompile the kernel, ... Also, what other additional packages, ... >> The package you're trying to install presumably ...
      (Debian-User)
    • unsubscribe
      ... delete your Windows partition TODAY! ... >> If you want to build kernel modules, you need to use the kernel headers ... >> I would like to know if anyone had a chance to installed Debian or other ... > I find the evince with Debian has very poor performance when I open ...
      (Debian-User)