[Linux-disciples] where to compile from

Adam Rosi-Kessel adam at rosi-kessel.org
Thu Apr 28 14:15:13 EDT 2005


Hmm--I'm not sure why the source to your running kernel isn't in your
apt sources... It should be.  Maybe you need to expand your
sources.list?  I haven't done this with Ubuntu so I'm not sure, maybe
Steve can chime in?

You don't really need to use the distribution-specific kernel source,
however.  You could go get a "vanilla" kernel from kernel.org and still
use the Debian/Ubuntu package building tools.  It will probably work fine.

I.e.:

cd /usr/src
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.7.tar.bz2
tar xfj linux-2.6.11.7.tar.bz2
cd linux-2.6.11.7
cp /boot/config-2.6.10-5-386 .config
vim .config
	[make the necessary changes]
fakeroot make-kpkg --append-to-version=-karl --revision=1 kernel_image
cd ..
sudo dpkg -i kernel-image-2.6.11.7-karl-1.deb

I think that would do it.

Karl Sokol wrote:
> Am I correct in assuming that my kernel-source needs to match the
> installed kernel?  If so, where should I find the source.  I am still a
> little confused as to where general linux code ends and where
> distribution specific packages begin.
> 
> karl at ubuntu:/usr/src$ ls
> alsa-driver.tar.bz2  kernel-source-2.4.27.tar.bz2  rpm
> 
> karl at ubuntu:/usr/src$ uname -a
> Linux ubuntu 2.6.10-5-386 #1 Tue Apr 5 12:12:40 UTC 2005 i686 GNU/Linux
> 
> karl at ubuntu:/usr/src$ apt-cache search kernel-source
> avm-fritz-kernel-source - AVM Fritz! binary kernel module source
> fglrx-kernel-source - ATI binary kernel module source
> cpad-kernel-source - Source for the Synaptics cPad driver
> freeswan - IPSEC utilities for FreeSWan
> kernel-patch-2.4-lids - LIDS Kernel Patch
> kernel-patch-debian-2.4.27 - Debian patches to Linux 2.4.27
> kernel-source-2.4.27 - Linux kernel source for version 2.4.27 with
> Debian patches
> kernel-tree-2.4.27 - Linux kernel source tree for building Debian kernel
> images
> lidstools-2.4 - LIDS Admintool
> nvidia-kernel-source - NVIDIA binary kernel module source
> oprofile - system-wide profiler for Linux systems
> wacom-kernel-source - Source for the wacom binary modules
> wacom-tools - Utilities for wacom tablets and other hid devices
> 
> On 4/28/05, *Adam Rosi-Kessel* <adam at rosi-kessel.org
> <mailto:adam at rosi-kessel.org>> wrote:
> 
>     Does Ubuntu include the packages kernel-package and
>     kernel-source-2.6.10-386?  Normally you would just apt-get these
>     packages, go into the /usr/src/linux-2.6.10-386 or whatever directory,
>     and then edit .config as appropriate, and make the new kernel package.
> 
>     (see also
>     http://lists.bostoncoop.net/pipermail/linux-disciples/2003-September/000079.html).
> 
>     Karl Sokol wrote:
>     > I am trying to get smooth playback on my DVD.  It appears that I
>     need to
>     > recompile my kernel.  Unfortunately, I do not know where to begin on
>     > Ubuntu.  In my old settup, I simply "cd linux" and then "make
>     > menuconfig".   But there is no directory "linux".
>     >
>     > $ hdparm /dev/cdrom1
>     >
>     > /dev/cdrom1:
>     >  IO_support   =  0 (default 16-bit)
>     >  unmaskirq    =  0 (off)
>     >  using_dma    =  0 (off)
>     >  keepsettings =  0 (off)
>     >  readonly     =  0 (off)
>     >  readahead    = 256 (on)
>     >  HDIO_GETGEO failed: Invalid argument
>     >
>     >
>     > In my /boot/config-2.6.10-386 the following is included...
>     >
>     > # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
>     > CONFIG_IDEDMA_PCI_AUTO=y
>     > CONFIG_IDEDMA_ONLYDISK=y
>     >
>     > # CONFIG_IDE_CHIPSETS is not set
>     > CONFIG_BLK_DEV_IDEDMA=y
>     > # CONFIG_IDEDMA_IVB is not set
>     > CONFIG_IDEDMA_AUTO=y
>     >
>     > --
>     > Grace and Peace,
>     > Karl Sokol
>     >
>     > "Do all the good you can, by all the means you can,
>     > in all the ways you can, in all the places you can,
>     > at all the times you can, to all the people you can,
>     > as long as ever you can."             ---John Wesley
>     >
>     >
>     >
>     ------------------------------------------------------------------------
> 
>     >
>     > _______________________________________________
>     > Linux-disciples mailing list
>     > Linux-disciples at lists.bostoncoop.net
>     <mailto:Linux-disciples at lists.bostoncoop.net>
>     > http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
> 
> 
>     _______________________________________________
>     Linux-disciples mailing list
>     Linux-disciples at lists.bostoncoop.net
>     <mailto:Linux-disciples at lists.bostoncoop.net>
>     http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
> 
> 
> 
> 
> 
> 
> -- 
> Grace and Peace,
> Karl Sokol
> 
> "Do all the good you can, by all the means you can,
> in all the ways you can, in all the places you can,
> at all the times you can, to all the people you can,
> as long as ever you can."             ---John Wesley
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050428/5c29a695/signature.pgp


More information about the Linux-disciples mailing list