Mailinglist Archive: opensuse (3644 mails)

< Previous Next >
Re: [SLE] cd /usr/src/linux (compiling kernel)
  • From: John Lamb <J.D.Lamb@xxxxxxxxxxxxxx>
  • Date: Sat, 16 Mar 2002 17:44:10 +0000
  • Message-id: <3C93846A.BEBBE12D@xxxxxxxxxxxxxx>
Brian Durant wrote:
Thanks for the tip. Do I need to do a #make modules" for the ACPI or do I
just end with "make bzlilo"?



This is how I installed the 2.4.18 kernel on SuSE 7.3. I hope it helps.

Downloaded and installed kernel 2.4.18.SuSE-0 from mirror
of SuSE. You can get it from under
Saved it in directory and copied (actually linked) it to
# cd /usr/src
# tar Ixvf linux-2.4.18.SuSE-0.tar.bz2 [creates new directory
# rm linux [removes old link]
# ln -s linux-2.4.18.SuSE linux
# cd /usr/src/linux-2.4.18.SuSE
Now copy file test-25.12.01 from 2.4.16 kernel directory to
/usr/src/linux-2.4.18.SuSE and rename it to test-4.3.02 ...
(Instead I could have used hidden file .config in original kernel
but this will require less work in configuring. This trick makes sure
in the few cases where I'm not sure what makes sense, I should get the
default settings.)
# make mrproper
# make xconfig [needs to be done with root (# sux ) access]
Load configurations from test-4.3.02.
Sound stuff looks like (I want alsa for emu10k1):
y Sound card support
m BT878 audio dma
m C-media PCI
y Enable legacy FM
y Enable legacy MPU-401
y Enable joystick
y Support CMI8738...
n Inverse S/PDIF in for CMI8738
y Enable S/PDIF loop for CMI8738
m Creative SBLive! (EMU10K1)
y Creative SBLive! MIDI
Everything else m for sound card and default y/n values for anything
Probably could say no to everything else and save some compilation
Check (takes a while - lots of settings), save and exit
# make dep [ takes about 2 minutes (500MHz Celeron) ]
# make clean
# make bzImage [takes about 12 minutes]
# make modules [takes about 30 minutes ]
# make modules_install [won't overwrite anything]
copy bzImage from /usr/src/linux-2.4.18.SuSE/arch/i386/boot to /boot and
rename vmlinuz-2.4.18-4GB
copy from /usr/src/linux-2.4.18.SuSE to /boot and rename
# mk_initrd -k "vmlinuz-2.4.18-4GB" -i "initrd-2.4.18-4GB" -s auto
edit /etc/lilo.conf and change kernel to 2.4.16 (doesn't remove old
kernel or modules)
# lilo -b /dev/fd0 [installs lilo on a floppy. If it doesn't work, I
still haven't lost anything]
reboot (from floppy)
This all worked without problems, except sound was lost (as expected).
As root...
# lilo [This time installs on hard disk]
Acttually I used lilo -b /dev/hda because lilo doesn't work unless I use
# lilo
reboot and install alsa as follows...
used alsa-driver-0.5.12a (needed for 2.4.14+ kernels)
in /usr/src/packages/SOURCES/alsa-driver-0.5.12a
//# cd /usr/src/packages/SOURCES
//# tar zxvf alsa-driver-0.5.12a.tar.gz
//# cd alsa-driver-0.5.12a
and compiled...
# modprobe soundcore (probably not needed) [root]
Hmmm. modprobe: Can't locate module soundcore
# CFLAGS="-O2 -march=i686" ./configure [Don't use the -march=i686 flag
if you have an Athlon!]
# make install [root]
# ./snddevices [root] (probably not needed)
All successful.

< Previous Next >
Follow Ups