[OT?] is there no package containing the raw "vmlinux" kernel image?

Robert P. J. Day rpjday at crashcourse.ca
Thu Jul 1 14:10:48 UTC 2010


On Thu, 1 Jul 2010, Stefan Bader wrote:

> The package linux-source is one I personally find the least useful.
> It contains the raw upstream part of the kernel tree (iirc) but
> misses the configuration and I believe also any additions.
>
> The method of using apt-get has its limits as you need to have
> source packages enabled in your config and packages can get removed
> when they are superseded. The command would be "apt-get source
> linux-image-2.6.32-23-generic" for example.

  actually, i may have stumbled over one solution:

  $ apt-get source linux-image-$(uname -r)

which ends up unloading the following in my current directory:

  linux-2.6.32/
  linux_2.6.32-23.37.diff.gz
  linux_2.6.32-23.37.dsc
  linux_2.6.32.orig.tar.gz

and if i read the msgs that flashed by, as long as i'm running the
latest kernel, this gives me the original kernel tarball, a
ubuntu-supplied diff file, unloads the tarball, and then applies the
diff file to get the appropriate ubuntu kernel source tree.  does that
sound right?

> I am not sure it really is sounding simpler to you, but I find the
> method of using git simpler. You would do a one time:
>
> #> git clone git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git
> #> cd ubuntu-lucid
>
> #> uname -a
> Linux maximegalon 2.6.32-23-generic #37-Ubuntu SMP Mon Jun 28 13:06:35 UTC 2010
> i686 GNU/Linux
>
> (Note the #37)
>
> #> git checkout Ubuntu-2.6.32-23.37
>
> Now you have the exactly matching kernel source and could build a generic kernel
> with:
>
> #> fakeroot debian/rules binary-generic
>
> Even without the debug package, you got the vmlinux file you are looking for in
> debian/build/build-generic.

  i have no problem using git -- i was just trying to keep things
simple for students in the sense of giving them an alternative that
represented just downloading packages.  but i can test the above as
well.

rday

p.s.  i seriously didn't think this was going to get so involved.

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

        Top-notch, inexpensive online Linux/OSS/kernel courses
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the kernel-team mailing list