Re: Best kernel-building procedure

From: David (dbree_at_duo-county.com)
Date: 08/11/03

  • Next message: j2: "Re: Wierd apt-get error?"
    Date: Mon, 11 Aug 2003 14:20:32 -0500
    To: debian-user@lists.debian.org
    
    

    On Sun, Aug 10, 2003 at 05:56:03PM -0400, David Z Maze wrote:
    > David <dbree@duo-county.com> writes:
    >
    > > I've been building kernel-images for a while.. since I'm on dialup, and
    > > it takes so long to download the complete source every time, I keep the
    > > kernel-source..orig file.. currently I have 2.4.21...
    > >
    > > I then download the current "kernel-source..diff" and apply the patch to
    > > an orig. directory structure..
    >
    > If I were doing this, I'd start with your 2.4.20 .tar.gz file, unpack
    > it, apply the 2.4.21 diff, and create a 2.4.21 tarball. Given this,
    > I'd then go through the normal make-kpkg sequence.

    Are you talking about the kernel.org packages here? The diff'ing I'm
    talking about is where you get say,
    kernel-source-2.4.21-2.4.21-orig.tar.gz from Debian, and apply, say,
    kernel-source-2.4.21-2.4.21-4.diff.tar.gz, from Debian.. This diff will
    also work on a kernel.org source, too.. the only difference I see in the
    kernel.org and Debian *orig* package is that a few files have been
    removed in the Debian package.. I'd assume things that might not be in
    line with their GPL rules??

    Anyway, this diff I'm talking about patches an original kernel source to
    that particular Debian release..

    > If you really only
    > want one copy of the source, running 'make-kpkg clean' as an
    > intermediate step might help you.
    >
    > > On this, I run "debian/rules binary"
    >
    > ...and I always use make-kpkg, rather than invoking debian/rules
    > directly. I'm not sure if it actually makes a difference, though.

    With the sources I get with the above procedure, the patch inserts a
    debian/rules which doesn't work for make-kpkg.. however, a thought just
    occurred to me.. my kernel-package is stable, and, as you mentioned
    below, 2.4.21 is for testing/unstable.. these have a later version
    kernel-package.. this later version may be a bit different, and not
    compatible with stable's.. But the kernel source tree I get when I
    apply the kerenel-source-xx patch to kernel-source-orig is a package
    that will produce all the kernel-tree debs, including
    kernel-source-2.4.21-x.deb that, when installed, will work with
    make-kpkg.. However, probably if I ran make-kpkg clean first, it might
    get rid of the debian/rules and I'd have a straight kernel-source, I'm
    not sure..

    > > To simplify things, I tried installing the kernel-patch deb, unpacking a
    > > copy of the kernel-source..orig, and then doing
    > > $ "PATCH_THE_KERNEL=YES fakeroot make-kpg...kernel_image"
    > > the theory being that I _should_ come up with an identical vmlinuz..
    >
    > There's a kernel-patch-foo package?

    I'm talking about, for example, kernel-patch-debian-2.4.21-4

    > I guess current unstable does,
    > but it's the set of patches that distinguish the Debian kernel of a
    > given version from the stock kernel of the same version, while the
    > .diff files you download from kernel.org are between the stock kernel
    > of some version and the stock kernel of the previous version. "That
    > package isn't what you think it is."

    Right.. As you see above, I'm not talking about these.. I guess I
    didn't make myself clear in my original post..

    > > the one created under the sources patched with the diff.
    > > $ll /boot/vmlinuz-2.4.21-4.dlb
    > > -rw-r--r-- 1 root root 907325 Aug 6 20:48 /boot/vmlinuz-2.4.21-4.dlb
    > >
    > > the first deb created using kernel-patch
    > > $dpkg --contents kernel-image-2.4.21-4.dlb-first.deb
    > > -rw-r--r-- root/root 907234 2003-08-07 19:13:15
    > > ./boot/vmlinuz-2.4.21-4.dlb
    >
    > The other thing to note is that ELF binaries include some information
    > like the date the binary was built, and that might wind up being
    > compressed at a slightly different size depending on what exactly the
    > bytes are. (Compiling the same program twice will give you different
    > bytes in the file.)

    OK.. that would probably explain a few bytes, but would that explain the
    near 100 above?

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: j2: "Re: Wierd apt-get error?"

    Relevant Pages

    • Re: pros/cons of installing from source
      ... Debian supply both optimised kernels and to a lesser degree ... Doing a full emerge of the kernel source (inside the ... really required and what is not for a package (this requires the most ... soon as it stopped compiling and installing. ...
      (Debian-User)
    • Re: Running Debian with kernel from other distro....
      ... server to EMC so natural failover which comes with EMC can't be ... not with Debian:( ... EMC has PowerPath software but it's binary version including kernel ... though the resulting package is fairly basic, ...
      (Debian-User)
    • Re: Debian vs. other distros?
      ... One of the things that Debian does is to backport fixes to "older" ... report of a security hole in the particular version of some software ... The 'stable' package set is not so good at keeping up with the ... Mostly the same things apply to the kernel as with other software. ...
      (comp.os.linux.misc)
    • Re: display card
      ... You can only install packages as root. ... Debian has a meta package that will ... you should install the kernel source package: ...
      (comp.os.linux.hardware)
    • [SECURITY] [DSA 466-1] New Linux 2.2.10 packages fix local root exploit (powerpc/apus)
      ... Vulnerability: ... respective kernel series, though. ... with the 2.4.20 kernel-image package for powerpc/apus. ... kernel image will be removed from Debian unstable. ...
      (Bugtraq)