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

Re: building a custom kernel-WAS: Re: USB disk shows up late at boot



Paul Cartwright put forth on 12/24/2009 12:04 PM:
> On Tue December 22 2009, Celejar wrote:
>> Exactly.  And you can turn off all the sound card and video drivers
>> except the one(s) you actually need, and the same for networking hw,
>> etc.
> 
> so I was reading this:
> http://www.wowway.com/~zlinuxman/Kernel.htm
> 
> which is about the same..
> I ran these commands:
> 
> # make menuconfig
> # make-kpkg clean
> # make-kpkg --initrd kernel_image
> 
> (snipping all the long lines...)
> and ended up with this:
> 
> /usr/bin/make    ARCH=i386 \
> 			     -C Documentation/lguest
> make[1]: Entering directory 
> `/home/pbc/Documents/software/linux-2.6.31.9/linux-2.6.31.9/Documentation/lguest'
> cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE    
> lguest.c   -o lguest
> lguest.c:21:25: error: sys/eventfd.h: No such file or directory
> lguest.c: In function ‘create_thread’:
> lguest.c:1021: warning: implicit declaration of function ‘eventfd’
> make[1]: *** [lguest] Error 1
> make[1]: Leaving directory 
> `/home/pbc/Documents/software/linux-2.6.31.9/linux-2.6.31.9/Documentation/lguest'
> make: *** [debian/stamp/build/kernel] Error 2

http://cakebox.homeunix.net/wordpress/?p=100
http://groups.google.com/group/linux.debian.user/browse_thread/thread/110a993ec9f4da01

If you don't actually plan on running this kernel/machine as a hypervisor/host
for guest operating systems, then in make menuconfig unselect any kernel options
relating to doing so.  When compiling one's first custom kernel one should start
with _ONLY_ the functionality one needs.  Then build things up from there as you
need more abilities from you kernel. ;)

--
Stan


Reply to: