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

Re: compiling (or rather, failing to compile) a kernel

Am Samstag, 10. November 2012 schrieb Lisi Reisz:
> Thanks, Martin.  Yes, I have looked at the website you refer to, and
> tried to  use it.  And I have the book to which you refer.  The
> trouble is, that for the basic stuff they are simply above my
> head.  Stephen gives more explanation and more and clearer
> instructions.
> I shall certainly avail myself of what the book and  
> http://kernel-handbook.alioth.debian.org/ say - but shall also use
> Stephen's  site, which I find very useful.  So much of the
> documentation from which one has to work is old - but that doesn't
> make it useless.  And anyway, I think that Stephen updates his site,
> so it is not outdated.

Well, if you apply common sense to what you read, old instructions can 
still be quite usable. The Linux Documentation Project (TLDP) is a good 
example for that.

And if Stephen updates his site, even better.

I still suggest using a directory in your home directory and having a look 
at make-kpkg if you just want to compile a quick kernel now and then.

I did so today 14 times in order to find a bug.

Last call to it was:

make-kpkg -j4 --rootcmd fakeroot --initrd --append-to-version -f2fs-tp520 
--revision 1 linux_image

(I build a kernel with the new flash filesystem from Samsung for this 
ThinkPad T520:)

So you make old/menuconfig your kernel and then issue a command like above. 
Only thing you do as root is sudo dpkg -i the build package then. You can 
also build source and doc packages and so on.

I know there is the approach to build the official kernel packages, but one 
has to remove targets one does not want to build for. make-kpkg just gives 
me a nice kernel package for my system by default.

If anyone knows something like make-kpkg that produces packages in the 
official scheme including kbuild packages, speak up.

Well, maybe you can enlighten me, cause you learnt about building kernels, 

Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

Reply to: