> Hi list,
>
> I am trying to build the linux kernel myself... it's one of the
> things I always wanted to do ;-) plus I submitted some bugerports
> against the kernel and would like to test the patches there were
> written to fix them.
at the risk of a bit of self-promotion, i wrote an online course for
beginners to kernel programming, the first part of which is free and
walks you through how to configure, build and reboot a new kernel:
i avoid all the nonsense involving packages and packaging, and just go
with cloning the git tree and manually installing the end result.
this works for me just fine on ubuntu, so i assume it should be just
as easy under debian.
rday
--
================================================== ======================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: alpine.DEB.2.02.1108261128110.29125@localhost6.loc aldomain6">http://lists.debian.org/alpine.DEB.2.02.1108261128110.29125@localhost6.loc aldomain6
08-26-2011, 03:43 PM
Ralf Jung
Building the kernel myself
Hi,
> at the risk of a bit of self-promotion, i wrote an online course for
> beginners to kernel programming, the first part of which is free and
> walks you through how to configure, build and reboot a new kernel:
>
> http://crashcourse.ca/introduction-linux-kernel-programming/introduction-li
> nux-kernel-programming
>
> i avoid all the nonsense involving packages and packaging, and just go
> with cloning the git tree and manually installing the end result.
> this works for me just fine on ubuntu, so i assume it should be just
> as easy under debian.
Thanks for the link. I am using a git clone, too (want to get the actual
"vanilla" kernel), however I'd prefer the end-result to be in package form for
easier uninstallation. And, most importantly, I rely on dkms for two kernel
modules (namely the VirtualBox and fglrx modules), so this has to be triggered
somewhere.
Kind regards,
Ralf
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201108261743.07008.ralfjung-e@gmx.de">http://lists.debian.org/201108261743.07008.ralfjung-e@gmx.de
08-26-2011, 03:49 PM
"Robert P. J. Day"
Building the kernel myself
On Fri, 26 Aug 2011, Ralf Jung wrote:
> Hi,
>
> > at the risk of a bit of self-promotion, i wrote an online course for
> > beginners to kernel programming, the first part of which is free and
> > walks you through how to configure, build and reboot a new kernel:
> >
> > http://crashcourse.ca/introduction-linux-kernel-programming/introduction-li
> > nux-kernel-programming
> >
> > i avoid all the nonsense involving packages and packaging, and just go
> > with cloning the git tree and manually installing the end result.
> > this works for me just fine on ubuntu, so i assume it should be just
> > as easy under debian.
> Thanks for the link. I am using a git clone, too (want to get the
> actual "vanilla" kernel), however I'd prefer the end-result to be in
> package form for easier uninstallation. And, most importantly, I
> rely on dkms for two kernel modules (namely the VirtualBox and fglrx
> modules), so this has to be triggered somewhere.
with respect to DKMS, i run a manually hand-rolled kernel all the
time and i am constantly updating virtualbox, and the rebuild is done
automatically since i have the "dkms" package installed. so that by
itself shouldn't be an issue, but i appreciate that some folks prefer
to work with packages.
rday
--
================================================== ======================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: alpine.DEB.2.02.1108261147370.29307@localhost6.loc aldomain6">http://lists.debian.org/alpine.DEB.2.02.1108261147370.29307@localhost6.loc aldomain6
08-26-2011, 09:18 PM
Ralf Mardorf
Building the kernel myself
>
> > -------- Forwarded Message --------
> > From: Ralf Jung <ralfjung-e@gmx.de>
> > To: debian-user <debian-user@lists.debian.org>
> > Subject: Building the kernel myself
> > Date: Fri, 26 Aug 2011 17:18:10 +0200
> > [snip]
> > I found tons of documentation on the net, but most of it is horribly outdated.
> > Essentially there seem to be two methods:
> >
> > a) installing kernel-package and then calling
> > make-kpkg --initrd kernel-image kernel-headers
> > in the source directory (I first forgot the --initrd, gave me quite a
> > headache^^). That seems to work fine, however it's doing a lot of black magic.
> > Also, each time I do this, it's touching the .config file resulting in a
> > complete re-build even if just some files changed.
> > [snip]
--
Does anybody know where to get Quick Calculus by
Daniel Kleppner and Norman Ramsey translated to German?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1314393534.2261.15.camel@debian">http://lists.debian.org/1314393534.2261.15.camel@debian
08-26-2011, 10:19 PM
Ralf Jung
Building the kernel myself
Hi,
> You need to run
>
> make-kpkg --rootcmd fakeroot --initrd kernel-image kernel-headers
I put the fakeroot into the kernel-pkg.conf file, should have mentioned that,
sorry.
> It's not doing any black magic and it never touches the configuration.
> Perhaps there's an issue with preparing Debian for the very first time.
Well, as far as I can tell it runs "make oldconfig" each time. At least
whenever I ran make-kpkg, it took almost an hour, the full compilation time, I
don't know why - I thought it was due to the configuration. Besides that,
kernel-package is working great and the resulting kernel boots fine.
By "black magic" I mean it does a whole lot of stuff that I don't understand
;-)
Anyway, I found out why make deb-pkg creates so large files: the kernel was
build with debug information, and kernel-package obviously strips it away
somehow. So after disabling DEBUG_INFO, everything works as expected and the
initrd is even much smaller than the one shipped with Debian (I disabled a lot
of stuff I don't need).
Thank you all for your replies!
Kind regards,
Ralf
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201108270019.42470.ralfjung-e@gmx.de">http://lists.debian.org/201108270019.42470.ralfjung-e@gmx.de
08-26-2011, 10:30 PM
Ralf Mardorf
Building the kernel myself
On Sat, 2011-08-27 at 00:19 +0200, Ralf Jung wrote:
> Well, as far as I can tell it runs "make oldconfig" each time.
No, since I compile by self written scripts and I have to run make
oldconfig by the scripts, because I wish to do this, it isn't done
automagically. It's essential to do this or something similar, when
switching to another kernel version. If you stay at the same version
nothing will happen, if you run make oldconfig a second time.
--
Does anybody know where to get Quick Calculus by
Daniel Kleppner and Norman Ramsey translated to German?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1314397801.2261.83.camel@debian">http://lists.debian.org/1314397801.2261.83.camel@debian
08-26-2011, 10:34 PM
Ralf Mardorf
Building the kernel myself
PS
I believe that you say the truth, but something seems to be broken for
your Debian.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1314398071.2261.86.camel@debian">http://lists.debian.org/1314398071.2261.86.camel@debian
08-26-2011, 10:35 PM
Ralf Jung
Building the kernel myself
Hi,
> No, since I compile by self written scripts and I have to run make
> oldconfig by the scripts, because I wish to do this, it isn't done
> automagically. It's essential to do this or something similar, when
> switching to another kernel version. If you stay at the same version
> nothing will happen, if you run make oldconfig a second time.
Okay, then i probably miss-read the configuration output. And the reason for
the (almost) complete re-build on each run is another one.
Kind regards,
Ralf
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201108270035.26424.ralfjung-e@gmx.de">http://lists.debian.org/201108270035.26424.ralfjung-e@gmx.de
08-27-2011, 03:57 PM
Stephen Powell
Building the kernel myself
On Fri, 26 Aug 2011 11:18:10 -0400 (EDT), Ralf Jung wrote:
>
> I am trying to build the linux kernel myself... it's one of the things I
> always wanted to do ;-) plus I submitted some bugerports against the kernel
> and would like to test the patches there were written to fix them.
I am in a hurry to get to a wedding; so I don't have time for a more
thorough reply right now; but you might want to take a look at
http://users.wowway.com/~zlinuxman/Kernel.htm
--
.'`. Stephen Powell
: :' :
`. `'`
`-
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 821049609.1520283.1314460620817.JavaMail.root@md01 .wow.synacor.com">http://lists.debian.org/821049609.1520283.1314460620817.JavaMail.root@md01 .wow.synacor.com
08-31-2011, 09:04 AM
Ralf Jung
Building the kernel myself
Hi,
thanks for that very informative link.
I can confirm however that with current Debian testing, "make deb-pkg" works
like a charm. It is a good idea to disable debug symbols though
(CONFIG_DEBUG_INFO) to keep the size of the modules reasonably.
Kind regards,
Ralf
On Saturday 27 August 2011 17:57:00 Stephen Powell wrote:
> On Fri, 26 Aug 2011 11:18:10 -0400 (EDT), Ralf Jung wrote:
> > I am trying to build the linux kernel myself... it's one of the things I
> > always wanted to do ;-) plus I submitted some bugerports against the
> > kernel and would like to test the patches there were written to fix
> > them.
>
> I am in a hurry to get to a wedding; so I don't have time for a more
> thorough reply right now; but you might want to take a look at
>
> http://users.wowway.com/~zlinuxman/Kernel.htm
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201108311104.00638.ralfjung-e@gmx.de">http://lists.debian.org/201108311104.00638.ralfjung-e@gmx.de