LinuxQuestions.org
Help answer threads with 0 replies.
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 09-18-2005, 07:07 AM   #1
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
kernel compilation : Error in upgrading 2.4.x to 2.6.x


hello there,
summary of what i was trying.......

in /usr/src/linux/

make clean
make mrproper
make xconfig ............ here i loaded the "config" file found in second cd of slackware
vi Makefile
make bzImage
make modules
make modules_install.

now here in last step "make modules_install" i was getting the following error

Code:
root@bond:/usr/src/linux# make modules_install
ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1
...............
while searching for it on net......i got this this

i too found a "space" on that line........so removed that

tried again the whole procedure of compilation.....

this time everything worked fine.

#cp /usr/src/linux/arch/i386/boot/bzImage /boot/slack/vmlinuz-2.6.9slack
#cp /usr/src/linux/System.map /boot/slack/System.map-2.6.9slack

#ln -s /boot/slack/vmlinuz-2.6.9slack /boot/slack/vmlinuz
#ln -s /boot/slack/System.map-2.6.9slack /boot/slack/System.map

#vi /etc/lilo.conf

partial entries of my lilo.conf
Code:
# End LILO global section
# Linux bootable partition config begins

image = /boot/slack/vmlinuz
  root = /dev/hda8
  label = slack
  read-only


image = /boot/vmlinuz
  root = /dev/hda8
  label = Slackware
  read-only
#/sbin/lilo
#reboot

but for my gr8 disappointment.......i get the following error

Code:
kernel panic-no syncing: VFS: Unable to mount root fs on unknown-block(3,8)
what should i do now.????

regards

Edit: i posted it in "newbie" section..........but later on thought of posting it on slackware forum
 
Old 09-18-2005, 09:38 AM   #2
lwfinger
LQ Newbie
 
Registered: Sep 2003
Distribution: SuSE 9.1, 9.2, 9.3
Posts: 26

Rep: Reputation: 15
Is the driver for your root file system built-in or is it a module? Most distros build everything as a module and start from an initrd ram disk. That way they can handle everyone's taste. For home-built kernels, use Y, not M, as the option for your root file system driver.
 
Old 09-18-2005, 10:06 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
root@bond:/usr/src/linux# make modules_install
ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1
...............

this indiacates that there is something wronf with ur Makefile

post the starting 6-7 lines of ur Makefile here

regards
 
Old 09-18-2005, 11:10 AM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by masand
root@bond:/usr/src/linux# make modules_install
ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1
...............

this indiacates that there is something wronf with ur Makefile

post the starting 6-7 lines of ur Makefile here

regards
ya, there was problem with the "Makefile".........but as i have mentioned in the previous post that i've solved that problem.

now the problem lies somewhere else.....

"lwfinger", i'm not sure about that. Is there any way of checking that ?
and moreover i haven't made any entries for "initrd".
should i start from scratch again ?

regards
 
Old 09-18-2005, 11:14 AM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
starting lines of Makefile......

Code:
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 9
EXTRAVERSION = 2
NAME=Zonked Quokka

# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
# More info can be located in ./README
# Comments in this file are targeted only to the developer, do not
# expect to learn how to build the kernel reading this file.

# Do not print "Entering directory ..."
MAKEFLAGS += --no-print-directory
regards
 
Old 09-18-2005, 11:38 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 9
EXTRAVERSION = 2

just check in the above that u do not have any space at the end of any line

also what FS are u using in slackware?? reiserfs???
did u make ur initrd image

mkinitrd -k <version as thename from Makefile> -o /boot/slack/initrd-2.6.12..img

-o is for the path where this file will be

regards
 
  


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
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
kernel compilation error bond_7942 Linux - General 1 02-02-2005 04:35 AM
kernel compilation error htamayo Linux - Software 3 01-07-2005 04:15 PM
kernel compilation error in 2.4.20-8 cranium2004 Linux - Software 1 11-24-2004 06:04 AM
kernel compilation error bunty Linspire/Freespire 0 09-08-2004 09:22 AM

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

All times are GMT -5. The time now is 06:39 AM.

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