LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel recompile, LILO warning and Kernel-panic (https://www.linuxquestions.org/questions/slackware-14/kernel-recompile-lilo-warning-and-kernel-panic-575822/)

Tux-Slack 08-09-2007 02:47 AM

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.

mattydee 08-09-2007 10:18 AM

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?

bioe007 08-09-2007 10:32 AM

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

Tux-Slack 08-09-2007 02:08 PM

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.

MannyNix 08-09-2007 02:48 PM

:twocents:
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 :twocents:
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.


onebuck 08-09-2007 03:16 PM

Quote:

Originally Posted by mannyslack
:twocents:
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 :twocents:
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.

MannyNix 08-09-2007 03:39 PM

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

onebuck 08-09-2007 03:48 PM

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?

wadsworth 08-09-2007 05:45 PM

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.

Tux-Slack 08-10-2007 04:59 AM

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.

onebuck 08-10-2007 05:54 AM

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.

Tux-Slack 08-10-2007 05:57 AM

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.

MannyNix 08-10-2007 06:29 PM

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 :)

onebuck 08-11-2007 07:49 AM

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.

petcherd 08-15-2007 06:06 PM

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?

mjgreen 02-21-2008 08:26 PM

The device-mapper error relates to the fact that your kernel isn't compiled with lvm/lvm2 support.

Now, there's 2 possibilities here -

1) you fucked up & actually have an LVM partition, in which case you need lvm - go recompile your kernel.

2) Second possibility and I suspect this is the right one, is that you didn't compile in lvm because you don't have an lvm partition and thus don't need it.

Now assuming the second possibility is correct....

I've seen various postings like this, invariably someone answers regarding the lba32 error, misunderstanding the OP's real problem.

The problem arises because the Makefile for lilo compiles in lvm support by default on 2.6 kernel. The solution is to grab the lilo sources from your local slackware mirror & patch the Makefile - at the beginning you'll see CONFIG, remove -DDEVMAPPER from that and recompile (either by combining your patch into the slackware build script, or by rebuilding manually yourself).

Note: though it shouldn't be a fatal error - the above will shut it up though.

Martin

Update: You may want to also remove -DLVM too, since this is LVM1, though I've not tested it. (I also removed DREISERFS since I don't use it).

mjgreen 02-21-2008 08:40 PM

Quote:

--- lilo-22.8/Makefile.orig 2007-02-19 17:15:10.000000000 +0000
+++ lilo-22.8/Makefile 2008-02-22 02:34:04.000000000 +0000
@@ -64,9 +64,8 @@
# requested by VMware users (new, experimental)
# XL_SECS=n Support for extra large (non-standard) floppies.

-CONFIG=-DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT \
- -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL \
- -DMDPRAID -DDEVMAPPER
+CONFIG=-DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DNOKEYBOARD -DONE_SHOT \
+ -DPASS160 -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID


# set the following if you wish LILO.COM to be installed
The required patch. You only need to add a line to the build script to apply the patch and rebuild.

Note the above is my patch for me, so also removes support for ReiserFS - IF YOU NEED REISERFS YOU'LL NEED TO CREATE YOUR OWN PATCH.

willysr 02-21-2008 11:13 PM

or you can put this line on /etc/rc.d/rc.modules
Code:

/sbin/modprobe dm-mod
this will load the device-mapper modules

mjgreen 02-23-2008 05:13 AM

Quote:

Originally Posted by willysr (Post 3065771)
or you can put this line on /etc/rc.d/rc.modules
Code:

/sbin/modprobe dm-mod
this will load the device-mapper modules

How can you load a module you haven't compiled in?

Edit: ignore me

onebuck 02-23-2008 07:56 AM

Hi,
Quote:

Originally Posted by mjgreen (Post 3067071)
Do you people not pay attention?

How can you load a module you deliberately haven't compiled in?

This pretty much matches most of the replies I've seen on this issue - people not paying much attention to the original problem & giving useless and ill-thought out advice.

Did you check the date of the post since you are into broadcasting so much detail?

The lba32 is due to the 1024 BIOS problem. I referenced the large disk howto in case you need the information.

Judge as you be judged! Pointing fingers or fault will get nowhere. People here do try to provide detail and information that will assist not tear down. WE all want to bring things to the proper solution. For some it is their own way of giving back to the community.

As to your question about module loading, it seems you have the answers. :tisk:

mjgreen 02-23-2008 01:37 PM

see the dev-mapper fatal error which is causing the problem - I've posted the solution.

Alien Bob 02-23-2008 01:51 PM

Quote:

Originally Posted by mjgreen (Post 3067443)
The OP *explicitly* stated he'd compiled without lvm/devmapper (presumably as he doesn't need it) - so why are people telling him to load the module?

The "OP" of this old thread never reported any problems with LVM/DM. The thread was hi-jacked and you thought it was necessary to revive the corpse by answering to the post that was not dealing with the original thread.
The "people" advising to load the module were exactly one person.

Eric

mjgreen 02-24-2008 06:17 AM

Quote:

Originally Posted by Alien Bob (Post 3067464)
The "OP" of this old thread never reported any problems with LVM/DM.

True, my response was in fact to MannyNix and the others who reported the dev-mapper error(s):

Quote:

Originally Posted by MannyNix (Post 2853718)
Btw i have a similar lilo warning, still not sure how to fix it:
Code:

  /sbin/lilo
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.


The OP is likely missing support for his fs from kernel, but that's not an issue with lilo :)

onebuck 02-24-2008 07:08 AM

Hi,
Quote:

Originally Posted by mjgreen (Post 3068039)
True, my response was in fact to MannyNix and the others who reported the dev-mapper error(s):

The OP is likely missing support for his fs from kernel, but that's not an issue with lilo :)

It was a non-fatal 'lilo' omission.

Quote:

Originally Posted by mjgreen;

Which would be fine if lba32 were the issue. Instead, the lba32 is a non-fatal error, but the next lines (which every response to this question seems to ignore) is the fatal error which is causing the problem - I've posted the solution.
The OP problem was indeed an omission of the lba32 in the '/etc/lilo.conf'. The hijacking seemed to cause some confusion but the original problem was a 'lilo' problem.

You did not detail your response as to addressing the dev-mapper and the hijack thread.

Quote:

Originally Posted by mjgreen
I'm just pissed off with people giving answers which don't fix the OP's (and mine - I fixed via a bit of digging and posting my solution) problem. It's not helpful
I think the problem of the OP was resolved and the hijack was not responded too properly. If you are so maddened by such then so be it. Just don't mis-inform or change the drift of the original thread to suit your argument. It's good that you did attempt to fix your problem on your own but to put the information back into a dated resolved thread helps no one by the appended confusion. If you address the hijack and with a proper solution then you would be helping others by addressing that problem directly.

If you had just composed and posted in a manner that wasn't proper then I or anyone else would not be wasting time. That's not helpful in my book.

As for your mental attitude about being pissed that no one had responded properly. Maybe you should take from your own statement and respond properly within the content of the thread.

mjgreen 02-25-2008 07:00 AM

Quote:

Originally Posted by onebuck (Post 3068072)
Hi,
It was a non-fatal 'lilo' omission.

Quote:

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.
Yup, that certainly sounds like "non-fatal" error.

Quote:

Originally Posted by onebuck (Post 3068072)
The OP problem was indeed an omission of the lba32 in the '/etc/lilo.conf'. The hijacking seemed to cause some confusion but the original problem was a 'lilo' problem.

Quote:

Originally Posted by onebuck (Post 3068072)
I think the problem of the OP was resolved and the hijack was not responded too properly. If you are so maddened by such then so be it. Just don't mis-inform or change the drift of the original thread to suit your argument. It's good that you did attempt to fix your problem on your own but to put the information back into a dated resolved thread helps no one by the appended confusion. If you address the hijack and with a proper solution then you would be helping others by addressing that problem directly.

My mistake. I mistakenly thought it was the OP not a later post that identified the dev-mapper problem. There is a number of other threads found via google, which follow the post dev mapper problem, but also the lba32 line and about 40 posts afterwards telling the OP to add lba32 to lilo.conf.

onebuck 02-25-2008 07:51 AM

Hi,
Quote:

Originally Posted by mjgreen (Post 3068993)
Yup, that certainly sounds like "non-fatal" error.

My mistake. I mistakenly thought it was the OP not a later post that identified the dev-mapper problem. There is a number of other threads found via google, which follow the post dev mapper problem, but also the lba32 line and about 40 posts afterwards telling the OP to add lba32 to lilo.conf.

Original Poster;

Quote:

Originally Posted by Tux-Slack (Post 2853037)
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.

It was a non fatal lilo omission for OP. Did you read the entire thread?

The errors were lba32 and the OP forgetting to include a initrd in the '/etc/lilo.conf'. I really think the time spent defending a old thread is over. You don't seem to read the threads for understanding nor understand that the thread was hijacked therefore confusion from that tainted the thread.

BTW, when you quote something include the reference to prevent confusion thus not adding confusion to an already convoluted thread.

XavierP 02-26-2008 05:15 AM

I think this has run it's course really. The original problem has been resolved and, since then, the sum of knowledge has been added to. If anyone has a similar problem, hopefully this thread helps and, if it doesn't, please open a new thread.

Closed.


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