-   Slackware (
-   -   compiling kernel 2.5.70 (experimental-unstable) (

kazuni 05-30-2003 09:39 PM

compiling kernel 2.5.70 (experimental-unstable)
Thanks to the kernel compile thread here, i am able to start compiling my kernel ^_^ even tho i am a n00b on linux and installing slackware is kinda hard to learn at the beginning, it really taught me a lot about the linux operating system :) right now as i am posting this i am running all the makes for the compile, and wonders if they are right.

I have grub installed, and my line for grub to boot up slackware is:


kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 devfs=mount hdc=ide-scsi hdd=ide-scsi
as for the Makefile, i read the comment about line 74 to uncomment the line that it exports the vmlinuz into /boot. do i have to adjust my make lines to put the vmlinuz into the grub loader, or just leave it as the lilo method?

what i have is this:

make xconfig
then after selecting the right modules,


make dep && make clean bzImage modules modules_install
is that correct? if you can please gimme a hint :)

modr12 05-31-2003 04:12 PM

first you need new modules-init-tool or you can't load the module
as for the Makefile, i read the comment about line 74 to uncomment the line that it exports the vmlinuz into /boot. do i have to adjust my make lines to put the vmlinuz into the grub loader, or just leave it as the lilo method?
do you want really erase your old kernel ?
if you have somme problem with the new ?
make make bzImage
make modules_install
copy and arch/i386/boot/bzImage to /boot
add an entry to grub

modr12 05-31-2003 04:14 PM

i ve forget
for the new modules-init-tool
./configure --prefix=/usr
make move old <= for keeping the old lsmod ....

kazuni 05-31-2003 10:22 PM

thanks a lot.
you're right, i cannot load the modules correctly. they got :

usb-ohci.o: unreferenced local variable  _mem_copy
or soemthing like that. frustrating.

anyways, yeah i did make a backup copy of my own vmlinuz to vmlinuz.backup and i know how to do the grub-alternative boot so that i can always get back to the original distro.

as for the modules-init-tool what is that? and what is it for?

i did

make dep && make clean bzImage modules modules_install
and it compiled fine... except that when i boot with the new image and the new system map, all the modules screwed up (can't load due to some errors like that i indicated at the beginning) was that caused by that?

to keep the old lsmod as in my list of old modules?

modr12 06-01-2003 10:39 AM

error like QM_MODULES: Function not implemented ?

if yes you need to install modules-init-tools

kazuni 06-01-2003 12:53 PM

hm. never seen that message.

but the funny thing is that i get kernel panic all the time now, lol.
lucky that i backed up all the system map vmlinuz and learned grub before hand or else i'll be in a lot of sh*t. hehe.

anyways, now here's one really simple question,

does every distribution's kernel-source package (either in RPM or in tgz or bz2, whichever) do they include a sample .config or a .config that is exactly the same as their build of the kernel or not? or just one that was generated by menuconfig or xconfig? because i get inconsistency problems for compiling. i've compiled for almost 2 days now and still didn't get the right modules, heh. i am now experimenting using the original .config that was unpacked with the kernel source, and *ONLY* changed the opcode from i386 to K7 (i have an Athlon XP 1800 and an ECS K7S5A motherboard)

oh, and is it safe for me to take off the modules for ISA/Firewire? as i don't really need those but during compile it gives warning saying that those variables are redefined...

modr12 06-01-2003 04:20 PM

yes /boot/config or a thing like that
the new modules must have been install in /lib/modules/2.5.70
when installing the new modules-init-tools
i remember that to you have to generate a conf file
i don't remember the command he is in the install file
first the modules don't have been install aka no /lib/modules/2.5.70 ( go in usr/src/2.5.70 an make modules_install)
or the conf files dont have been make ( see the install file for the command)

kazuni 06-01-2003 06:07 PM

haha i finally run to the problem you described. right now, i got all the things compiled properly, only that it doesn't load the modules correctly (lucky that i rememberd all the names for my usb devices (i.e. mouse)
by default it loaded:


Module                  Size  Used by    Not tainted
input                  3264  0  (autoclean)
pcmcia_core            40032  0
ide-scsi                8784  1

i manually loaded them myself:


Module                  Size  Used by    Not tainted
usb-storage            63540  0  (unused)
soundcore              3652  0  (autoclean)
usb-uhci              23180  0  (unused)
keybdev                2080  0  (unused)
hid                    19204  0  (unused)
usbmouse                2296  0  (unused)
usb-ohci              18984  0  (unused)
mousedev                4244  0
usbcore                61696  0  [usb-storage usb-uhci hid usbmouse usb-ohci]
input                  3264  0  (autoclean) [keybdev hid usbmouse mousedev]
ide-scsi                8784  1

all seems fine (just that i have to make an auto script to mount and unmount usb drives, install usb mouse, etc... but that's the purpose of fstab, heck :P)

but there's one problem,
when i do


insmod emu10k1
it gave me a load of errors:


/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol sound_unload_mididev
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_hw_control
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_panning
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol ac97_probe_codec
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol sound_alloc_mididev
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_ioctl
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_start_note
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_kill_note
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol sequencer_init
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_devs
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_reset
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_aftertouch
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_close
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_set_instr
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_send_sysex
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_controller
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_bender
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol ac97_read_proc
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_open
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_setup_voice
/lib/modules/2.4.20slk.kzn.custom/kernel/drivers/sound/emu10k1/emu10k1.o: unresolved symbol midi_synth_load_patch

errr... i donno what they mean, but heck, the only thing now not working is the stupid sound card (SBLive! value) :P

i am now looking for that modules-init-tool, so here i go hunting :D

oh and thanks a lot for explaining all those settings, much appreciated dude :)

oh and just out of curiosity, i posted my dmesg:


Linux version 2.4.20slk.kzn.custom (root@darkstar) (gcc version 3.2.3) #1 Sun Jun 1 18:11:13 EDT 2003
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000ee000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff8000 (ACPI data)
 BIOS-e820: 000000001fff8000 - 0000000020000000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffee0000 - 00000000fff00000 (reserved)
 BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda2 quiet devfs=mount hdc=ide-scsi hdd=ide-scsi vga=0x030C
ide_setup: hdc=ide-scsi
ide_setup: hdd=ide-scsi
Initializing CPU#0
Detected 1539.882 MHz processor.
Console: colour VGA+ 132x60
Calibrating delay loop... 3073.63 BogoMIPS
Memory: 515388k/524224k available (1816k kernel code, 8448k reserved, 568k data, 120k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU:    After generic, caps: 0383f9ff c1c3f9ff 00000000 00000000
CPU:            Common caps: 0383f9ff c1c3f9ff 00000000 00000000
CPU: AMD Athlon(tm) XP 1800+ stepping 02
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfdb01, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router SIS [1039/0008] at 00:02.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
Journalled Block Device driver loaded
Detected PS/2 Mouse Port.
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller on PCI bus 00 dev 15
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
hda: WDC WD800JB-00ETA0, ATA DISK drive
hdb: WDC WD400BB-00CLB0, ATA DISK drive
hdc: LG CD-RW CED-8080B, ATAPI CD/DVD-ROM drive
hdd: HL-DT-ST GCE-8520B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c03a0c04, I/O limit 4095Mb (mask 0xffffffff)
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=9729/255/63, UDMA(100)
blk: queue c03a0d40, I/O limit 4095Mb (mask 0xffffffff)
hdb: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(100)
ide-floppy driver 0.99.newide
Partition check:
 hda: hda1 hda2
 hdb: hdb1 hdb3 < hdb5 hdb6 >
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
loop: loaded (max 8 devices)
ide-floppy driver 0.99.newide
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
  8regs    :  2353.600 MB/sec
  32regs    :  1667.600 MB/sec
  pIII_sse  :  1589.600 MB/sec
  pII_mmx  :  3609.600 MB/sec
  p5_mmx    :  4630.800 MB/sec
raid5: using function: pIII_sse (1589.600 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.5+(22/07/2002)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 120k freed
Adding Swap: 1429744k swap-space (priority -1)
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: LG        Model: CD-RW CED-8080B  Rev: 1.08
  Type:  CD-ROM                            ANSI SCSI revision: 02
  Vendor: HL-DT-ST  Model: CD-RW GCE-8520B  Rev: 1.04
  Type:  CD-ROM                            ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Linux Kernel Card Services 3.1.22
  options:  [pci] [cardbus] [pm]
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Intel PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
ds: no socket drivers loaded!
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,65), internal journal
EXT3-fs: mounted filesystem with ordered data mode.

kazuni 06-01-2003 06:09 PM

oh, and i am now messing with kernel 2.4.20 not 2.5.70 :P (too much of a mess in 2.5.70, many c codes for devices are not implemented correctly i.e. unresolved links/symbols... i'll wait for the stable version that comes out later :))

kazuni 06-01-2003 07:41 PM

ah. i found out the error given by the insmod emu10k1

it was because i didn't insmod ac97 sound soundcore and stuff like that...

so now, i got a bashrc script to run the insmod :P but it was kinda annoying as it defeats the fstab purpose (can't mount cd using supermount -_-)

oh yeah, the modules-install-tools was really helpful, i compiled it and installed it and it runs perfeclty fine :)

neo_nirvane 06-02-2003 11:07 AM

ah ha, u are far more lucky. i was facing problems loading the emu10k1 after recompiling my first kernel.... hell, when i typed modprobe emu10k1 it even said can't locate the modules..... i've tried both install it as modules or straight into the kernel...

kazuni 06-02-2003 01:24 PM

lol neo, u sure u turned the option of compiling emu10k1 is there? make sure u also compiled ac97, and ac97_codec, soundcore and sound :)

mbchandar 07-11-2003 07:27 AM

kernel 2.5.70 after compiling doesnt works - help to make it work
Hey ,

I compiled the kernel 2.5.70 and i got the bzImage. Now when

i try to boot it , it is not booting.

it says

Uncompression Linux kernel...OK.Linux kernel is booting..

and then that's all

cursor blink

nothing goes more than that

can anyone help me

All times are GMT -5. The time now is 05:24 PM.