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

Re: How to rebuild Woody kernel (Newbie)



On Wed, 22 May 2002, DSC Siltec wrote:


Hi,
first be sure to install the kernel sources from the kernel you want to
compile (dselect and search for kernel-source). Go to the directory: cd
/usr/src/ ... here you will find the source called
'kernel-source-2.2.18pre21.tar.bz2' (the version is in your system the
version from your chosen kernel-source) ... now unzip/untar the package with
'tar -zvIf kernel-source-2.2.18pre21.tar.bz2' ... you will find a new
directory called 'kernel-source-2.2.18pre21' ... link this one to linux
with 'ln -s /usr/src/kernel-source-2.2.18.pre21 /usr/src/linux' ... o.k.
... now change to the directory with 'cd /usr/src/linux' ... if you want
to use your actuall kernel-configuration copy it to this folder 'cp
/boot/config-2.2.18pre21 /usr/src/actuall' ... run 'make menuconfig' and
the screen for configuration of your kernel will open ... first of all
load the actuall configuration ... to do so go to the entry 'Load an
Alternative Configuration' and hit enter ... delete everything here and
type in 'actuall' (remember that was the name of your copied
kernel-configuration) ... next change to the entry 'sound' and do what
you have to do ... read the Alsa Configuration:

> (a) ALSA for my sound (alternately ymfpci.o) or 

Quick install
=============

1) You must have full configured source for the Linux kernel which you
   want to use for the ALSA drivers. Note that ALSA drivers are part
   of the kernel, so there is necessary to resolve all symbol dependencies
   between the used kernel and ALSA driver code. Partly installed kernels
   (for example from distributor makers) can be unuseable for this action.
2) You must turn on sound support (soundcore module).
3) Run './configure' script.
   If you have ISA Plug & Play soundcard, use --with-isapnp=yes switch.
   If you want sequencer support, use --with-sequencer=yes switch.
   If you do not want OSS/Free emulation, use --with-oss=no switch.
   If you want turn on debug mode use --with-debug=full switch.
   If you want debug soundcard detection try --with-debug=detect switch.
   If you have kernel source code in another directory than /usr/src/linux,
   use --with-kernel=<kernel_directory>.
   Example: ./configure --with-isapnp=yes --with-debug=full
4) Run 'make install'.
5) Run the './snddevices' script to create new sound devices in /dev directory.
   Skip this step, if you have a kernel with the DEVFS support.
6) Edit your /etc/modules.conf (see the kmod support section below).
7) Run 'modprobe snd-xxxx' where xxxx is the name of your card.
   Note: If you have a ISA PnP soundcard you need to first run the isapnp
         program from isapnptools package to initialize your
         soundcard. You can also use the native ISA PnP support by
         using the --with-isapnp=yes configuration switch, in which
	 case you do not need the isapnptools package.

You can also look at the utils/alsasound file. This script is designed for
the RedHat distribution, but it can be used with other distributions which
use System V style rc init scripts.

Note: All mixer channels are muted by default. You must use a native
      or OSS mixer program to unmute appropriate channels (for example a
      mixer from the alsa-utils package).

Note: This document notices the /etc/modules.conf file. Many current
      distributions uses the old /etc/conf.modules file. Both names are
      valid.


dd> (b) support for my USB 

change to the entry USB support and do what you have to do
... here again ... read the USB documents 

O.K. ... after you finished configuration start to compile your kernel
with:

fakeroot make-dpkg kernel_image --revision=own.1

be sure you have installed your fakeroot-package ... take a break or
drink a coffee (this will last a while) ... after compiling is finished
change to /usr/src and here you will find your kernel-image ... install
it with dpkg --install kernel-image-2.2.18pre21_own.1_i386.deb (only if you
do not have to compile any modules otherwise see below)  ... is
it the same version as your actuall kernel do 'mv
/lib/modules/2.2.18pre21 /lib/modules/2.2.18pre21.old ... o.k. but you
need one thing more ... you have to install the alsa source package and
the usb packages ... so before installing your new kernel you have to
compile your alsa-sources ... so go to /usr/src/modules and run
'make-kpkg modules_image' ... and now install the kernel package as
shown before ...

Oliver
-- 
... don't touch the bang-bang fruit ...


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: