LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 08-09-2007, 02:47 AM   #1
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
Kernel recompile, LILO warning and Kernel-panic


I'm having trouble with compiling my own kernel(2.6.22.1 to be exact). I download the source, extract it to /usr/src, fix /usr/src/linux symlink to point to the new kernel tree, copy .config from old (Slack12 original)kernel to my new kernel, run make menuconfig to add some ACPI stuff to it and compile, make returns no errors, so doesn't make modules_install, but then I run make install witch installs the kernel corectly only LILO returns an warning:
Code:
root@xendria:~# lilo
Warning: LBA32 addressing assumed
Added Linux *
One warning was issued.
And this is my /etc/lilo.conf :
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda2
#compact        # faster, but won't work on all systems.
prompt
#timeout = 300
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda2
  label = Linux
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
Well then when I reboot I get an error that it cant mount /dev/hda2 and has tried with XFS(although hda2 is Ext3) and complains something about a block at (3,2) and then Kernel-panic.

LILO is located/installed on hda2 not on MBR.
And I really don't have any idea what's going on.
 
Old 08-09-2007, 10:18 AM   #2
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
Did you make sure that the ext3 filesystem was compiled into the kernel and not as a module?
You will need an initrd if ext3 was compiled as a module.

Also, are you saying you did or didn't do make modules_install?
 
Old 08-09-2007, 10:32 AM   #3
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
i like this way:
Code:
$make menuconfig # change options, especially compile in fs support
$make bzImage && make modules
#su
Password:
#make modules_install
#cp arch/i386/boot/bzImage /boot/bzImage-2.6.22.1
#cp System.map /boot/System.map-2.6.22.1
#rm /boot/System.map && ln -s /boot/System.map-2.6.22.1 /boot/System.map
#vi /etc/lilo.conf   # add my new entry
#/sbin/lilo
If you don't get any errors from that, but it still won't boot, you haven't compiled in your fs support or '/' device drivers.
You can recompile with these things built in, or make an initrd for fs support.
Code:
#mkinitrd -c -k 2.6.22.1 -m jbd:ext3 -o /boot/initrd-2.6.22.1.gz
#ln -s /boot/initrd-2.6.22.1.gz /boot/initrd.gz
then edit lilo.conf and add this line:
Code:
initrd=/boot/initrd.gz
IMO I would also not rely on a single lilo.conf entry. Its very helpful to leave at least your last known good kernel around as the vmlinuz and just add new entries, that way you can (theoretically) always boot.

hth
 
Old 08-09-2007, 02:08 PM   #4
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by mattydee
Did you make sure that the ext3 filesystem was compiled into the kernel and not as a module?
You will need an initrd if ext3 was compiled as a module.

Also, are you saying you did or didn't do make modules_install?
So that was the problem?
I've checked the File Systems part in te menu again and ext3 was compiled as module yes, and no I didn't have a initrd, but I did make modules_install
I've compiled ext3 fs support not as a module, I'll reboot and report. Thank you.
 
Old 08-09-2007, 02:48 PM   #5
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 464

Rep: Reputation: 52

Sometimes it doesn't hurt to do
Code:
make mrproper
inside the /usr/src/linux (this will also delete any .config* or changes you may have) Then after the make mrproper, cp .config (a working one) to /usr/src/linux and make menuconfig or make oldconfig (if using an older kernel version).
LFS recomends make mrproper:
Quote:
This ensures that the kernel tree is absolutely clean. The kernel team recommends that this command be issued prior to each kernel compilation. Do not rely on the source tree being clean after un-tarring.
http://www.linuxfromscratch.org/lfs/...08/kernel.html
again, my
Btw i have a similar lilo warning, still not sure how to fix it:
Code:
  /sbin/lilo
Warning: LBA32 addressing assumed
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
 
Old 08-09-2007, 03:16 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Quote:
Originally Posted by mannyslack

Sometimes it doesn't hurt to do
Code:
make mrproper
inside the /usr/src/linux (this will also delete any .config* or changes you may have) Then after the make mrproper, cp .config (a working one) to /usr/src/linux and make menuconfig or make oldconfig (if using an older kernel version).
LFS recomends make mrproper:
http://www.linuxfromscratch.org/lfs/...08/kernel.html
again, my
Btw i have a similar lilo warning, still not sure how to fix it:
Code:
  /sbin/lilo
Warning: LBA32 addressing assumed
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Hi,

Quote:
excerpt from one of my '/etc/lilo.conf';

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 50
lba32
compact

#default boot
default = Linux

menu-title=" Willi's Computer "
Notice the lba32 in the global section of the '/etc/lilo.conf' file.

Quote:
excerpt from 'man lilo.conf'

lba32 Generate 32-bit Logical Block Addresses instead of cylin-
der/head/sector addresses. If the BIOS supports packet address-
ing, then packet calls will be used to access the disk. This
allows booting from any partition on disks with more than 1024
cylinders. If the BIOS does not support packet addressing, then
'lba32' addresses are translated to cylinder/head/sector ('geo-
metric'), just as for 'linear'. All floppy disk references are
retained in C:H:S form. Use of 'lba32' is recommended on all
post-1998 systems. Beginning with LILO version 22, 'lba32' is
the default disk addressing scheme.
The 'man lilo.conf' explains it very well.
 
Old 08-09-2007, 03:39 PM   #7
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 464

Rep: Reputation: 52
Thanks onebuck, i don't wanna hijack this thread; i added lba32 compact, but still the same. Maybe something wrong w/kernel .config. Will keep and eye in here and here
Anyway i still left lba32 & compact in lilo.conf, Thanks again
 
Old 08-09-2007, 03:48 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Quote:
Originally Posted by mannyslack
Thanks onebuck, i don't wanna hijack this thread; i added lba32 compact, but still the same. Maybe something wrong w/kernel .config. Will keep and eye in here and here
Anyway i still left lba32 & compact in lilo.conf, Thanks again
Hi,

What about your BIOS? It sounds like a geometric problem. Is your BIOS current?
 
Old 08-09-2007, 05:45 PM   #9
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
When you put the .config from 2.6.21.5 into the 2.6.22.1 directory,
did you run "make oldconfig" first thing?

Also, have a look at /boot/README.initrd
I had to make an initrd.gz to get my 2.6.21.7 slimmed-down kernel to boot.

Good info on lba32, I was wondering about that myself.
 
Old 08-10-2007, 04:59 AM   #10
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Original Poster
Rep: Reputation: 37
The kernel works, but I'm stuck with 2.6.21.5 still because I have trouble finding a working rt2500 driver. When I compile it I always get that "mac" is not a member of some struct, forgot the name, but when if I comment out the line where it calls for mac from that struct the driver just doesn't work later. Oh well. Will try to download newer version and play with it a bit more, but problem in this thread was solved. Thank you everyone.

*************
Edit:
Fix that problem as well.

Last edited by Tux-Slack; 08-10-2007 at 05:11 AM.
 
Old 08-10-2007, 05:54 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

Quote:
Originally Posted by Tux-Slack
Oh well. Will try to download newer version and play with it a bit more, but problem in this thread was solved. Thank you everyone.

*************
Edit:
Fix that problem as well.
Could you tell us which problem was solved and how? So the post can be brought to a close. An possibly help someone else with the information from you for the solution.
 
Old 08-10-2007, 05:57 AM   #12
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Original Poster
Rep: Reputation: 37
The problem with the kernel-panic. Because I didn't compile ext3 support into the kernel, but I've compiled it as a module and didn't create a initrd.
But when I've fixed that my rt2500 Wireless driver wouldn't build, so I downloaded the newest daily-CVS package from http://rt2x00.serialmonkey.com and compiled it, installed it and now I'm loving it.
 
Old 08-10-2007, 06:29 PM   #13
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 464

Rep: Reputation: 52
Well, since it seems op Tux-Slack solved his problem...

@onebuck:
Quote:
Originally Posted by onebuck
Hi, What about your BIOS? It sounds like a geometric problem. Is your BIOS current?
It was some years old! as a matter of fact, it had never been updated! I read some howtos in a hurry but all needed a floppy disk, which i don't have atm, so i had to use a cd that came with the mobo from (yuck) xp... The problem persisted after bios upgrade, but i'm glad i did it.
No more lba32 issues, but still the:
Code:
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
It ended up being that i had compiled it as a module instead of being built in the kernel, so for anybody with the same issue:
Code:
Device Drivers -> Multi-device support (RAID and LVM) -> Device mapper support
Thank you
 
Old 08-11-2007, 07:49 AM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Quote:
Originally Posted by mannyslack
Well, since it seems op Tux-Slack solved his problem...

@onebuck:

It was some years old! as a matter of fact, it had never been updated! I read some howtos in a hurry but all needed a floppy disk, which i don't have atm, so i had to use a cd that came with the mobo from (yuck) xp... The problem persisted after bios upgrade, but i'm glad i did it.
No more lba32 issues, but still the:
Code:
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
It ended up being that i had compiled it as a module instead of being built in the kernel, so for anybody with the same issue:
Code:
Device Drivers -> Multi-device support (RAID and LVM) ->
Code:
 Device mapper support
Thank you
Hi,

Glad too see you got it up and flying. I like to document everything that I do for any system that I work on. That way I have a trail to backtrack when needed. Unlike a computer that has a memory failure mine doesn't get replaced easily.
 
Old 08-15-2007, 06:06 PM   #15
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Rep: Reputation: 15
more thread hijaaking

Slackware 12: I'm compiling a kernel with no support at all (intentionally) for RAID or LVM. I get this when I run lilo:
Code:
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
but I don't get your "Failure to communicate with kernel device-mapper driver." error.

Should I do anything to remove this spurious warning?
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic after recompile the kernel mehdiizadeh Linux - Kernel 6 06-20-2007 12:56 AM
Kernel Panic after recompile the kernel?????? mehdiizadeh Linux - Kernel 1 06-17-2007 04:56 AM
Recompile Kernel 2.4 -> 2.6 [kernel panic] kailun Slackware 3 09-07-2006 08:55 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration