LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-31-2005, 10:19 AM   #1
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Rep: Reputation: 30
kernel compile blues


I've tried once again to compile a kernel, this time using the instructions in the stickie "kernel compile for newbies." I failed the first time and needed to reinstall Slack from disk. I've failed again and am trying not to reinstall as before.

The problem: First is a kernel panic error I get when loading the new kernel. I'll have to tackle that one after I fix the second, which is when I try to boot using the old kernel (2.4.26) the new kernel boots instead. I followed the directions:
image = /boot/vmlinuz.old

root = /dev/hda1

label = slack.old

read-only

Note: Replace /dev/hda1 with the correct location of your root partition



I am now using Knoppix to access my root directory. Here is my lilo.conf:

image = /boot/vmlinuz
root = /dev/hdf1
label = SLACK
append="hdb=ide-scsi"
# above line added for scsi emulation for cdrw
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
image = /boot/vmlinuz.old
root = /dev/hdf1
label = SLACK.old
append="hdb=ide-scsi"
# above line added for scsi emulation for cdrw
read-only # Non-UMSDOS filesystems should be mounted read-only for checking


I have viewed both /boot/vmlinuz and /boot/vmlinuz.old and both are jibberish to me. there is also a /boot/vmlinuz-ide-2.4.26. Can I use this in lilo's "old" image?

tim
 
Old 01-31-2005, 10:48 AM   #2
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Rep: Reputation: 12
Right !

Your /boot directory should contain :

vmlinuz # you copied this here after you compiled it ?
System.map # you copied this here after you compiled it ?

vmlinuz-ide-2.4.26 # the default slackware ide kernel
System.map-2.4.26 # the system.map that goes with it

Your lilo config should reflect this as like :

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdf1
label = SLACK # I use kernel versions ! but whatever
append="hdb=ide-scsi" # line added for scsi emulation for cdrw
read-only # mount / read-only for checking
# Linux bootable partition config ends
# OLD bootable partition begins
image = /boot/vmlinuz-ide-2.4.26
root = /dev/hdf1
label = 2.4.26 # I name these for the kernel version !
append="hdb=ide-scsi" # line added for scsi emulation for cdrw
read-only # mount / read-only for checking

The above lilo config is a modification of your post, you also need to check if it is prompting for you to select the boot image you want in the global settings at the top ie it says "prompt".

The reason that the vmlinuz files look like garbage to you is that you dont speak machine code ! They are binary files for computers !

Dave
 
Old 01-31-2005, 11:04 AM   #3
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
Thanks for the help, Dave. Knoppix will not allow me to write the change the lilo.conf file. I'm SU when trying. Is there another way to change lilo.conf? I've tried to boot from the slack10 disk1, but all I see are setup options; no SAFE mode options.
 
Old 01-31-2005, 11:08 AM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
This will allow you to login to your existing install via Knoppix.
Code:
mkdir /mnt/temp
mount /dev/hda1 /mnt/temp
chroot /mnt/temp
This will change the root directory from Knoppix to your existing install, so you can now edit all that you wish on your existing install
 
Old 01-31-2005, 11:11 AM   #5
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 62

Rep: Reputation: 12
Yeah

Boot from the slack install cd and on the first screen read the bit about "booting your system in a pinch", near the bottom of the page.

for your system it sounds like you will need to type something like :

bare.i root=/dev/hdf1 noinitrd ro

as the command to boot using the kernel from the cd but running your installed system as the root filesystem, this will allow you to modify or recover your system but keep in mind that it is the kernel from the CD so it may not contain all of the features that you have compiled in.

Dave
 
Old 01-31-2005, 12:50 PM   #6
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
Thanks, mdarby, I was able to make the lilo.conf changes using your suggestions. So now I've got the old kernel working again. Onto the first problem, which is getting past the kernel panic. the error message is something like:

VFS: cannot open root device or unknown-block
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block

There is no shortage of posts on this and I've looked at quite a few of them. Most seem to end up recommending that the appropriate file systems are enabled. I've had menuconfig install ext2/3 and reiserfs NOT as modules, so I should be supported (my file system is reiserfs). I found one post mentioning the solution to his panic was to perform "mkinitrd". I looked at the README file in /boot and it looked like that might be my problem, so I tried that, only to get the following:

bash-2.05b# mkinitrd -c -k 2.6.10 -m reiserfs
WARNING: Could not find module for "reiserfs"

I sure hope I can get this working. Many of these kernel panic threads just never seemed to be resolved....

thanks

t
 
Old 01-31-2005, 01:01 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
VFS: cannot open root device or unknown-block
Seems that the drivers for your IDE HD are not compiled as built-in
 
Old 01-31-2005, 01:15 PM   #8
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
keefaz, I don't see an option on menuconfig referring to drivers for my IDE HD
 
Old 01-31-2005, 01:29 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
To know the IDE controler name :
/sbin/lspci | grep IDE

Then on make menuconfig:
Device Drivers ---> ATA/ATAPI/MFM/RLL support
 
Old 01-31-2005, 02:14 PM   #10
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
Okay, I recompiled the kernel with built-in support for the VIA controller found with:

bash-2.05b# /sbin/lspci | grep IDE
00:04.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C/VT8235 PIPC Bus Master IDE (rev 10)

and configured it to support:

Device Drivers ---> ATA/ATAPI/MFM/RLL support -----> VIA82CXXX chipset support

unfortunately, I still get the same kernel panic message...
 
Old 01-31-2005, 02:29 PM   #11
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
"Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block"

This sounds like a partition problem... can you boot into knoppix again and run:
Code:
reiserfsck /dev/hda1
 
Old 01-31-2005, 02:52 PM   #12
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
Here 'tis:

Replaying journal..
Reiserfs journal '/dev/hdf1' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 50238
Internal nodes 333
Directories 17039
Other files 214667
Data block pointers 771735 (82 of them are zero)
Safe links 0
###########
reiserfsck finished at Mon Jan 31 14:51:29 2005
###########


t

p.s. I made no formatting changes to my disks when going from 2.4.26, where everything worked fine

Last edited by timsch75; 01-31-2005 at 02:54 PM.
 
Old 01-31-2005, 02:58 PM   #13
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
To make sure, could you post the output with (from the kernel dir) :

cat .config | grep IDE | grep y
cat .config | grep FS | grep y
 
Old 01-31-2005, 03:09 PM   #14
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
here 'tis, pt. 2

bash-2.05b# cat .config | grep IDE | grep y
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPNP=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
bash-2.05b# cat .config | grep FS | grep y
CONFIG_SCSI_PROC_FS=y
CONFIG_USB_DEVICEFS=y
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y
CONFIG_REISERFS_FS=y
CONFIG_AUTOFS4_FS=y
CONFIG_ISO9660_FS=y
CONFIG_UDF_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_NTFS_FS=y
CONFIG_NTFS_RW=y
CONFIG_PROC_FS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_NFS_FS=y
CONFIG_NFSD=y
CONFIG_NFSD_TCP=y
CONFIG_EXPORTFS=y



p.s. I'll be away from my computer for a few hours. I'll pick it back up later tonight or tomorrow. Thanks, all.

t

Last edited by timsch75; 01-31-2005 at 03:19 PM.
 
Old 01-31-2005, 05:01 PM   #15
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
[edit]
via ide driver doen not show here because it has not 'IDE' in feature name

Try to look in config if you have
CONFIG_BLK_DEV_VIA82CXXX=y

Also if by any chance, you did partition your disk with windows, you will need :
CONFIG_PARTITION_ADVANCED=y
CONFIG_MSDOS_PARTITION=y

in File systems ---> Partition Types

Last edited by keefaz; 01-31-2005 at 05:15 PM.
 
  


Reply



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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
USB blues with new 2.6.8.1 kernel hkxx9 Slackware 8 10-04-2004 06:03 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM
post 2.4.19 kernel compile blues hopinator Linux - Software 5 09-20-2002 04:42 AM

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

All times are GMT -5. The time now is 03:53 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