LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-03-2004, 03:35 PM   #1
scotoma
Member
 
Registered: Oct 2004
Posts: 41

Rep: Reputation: Disabled
d'oh! kernel update make modules


I have been trying to update my kernel without success. I have been following the step laid out in "http : / / w w w. linuxquestions.org/questions/answers/150". I have used my old config files. I have used the one provided in step 6 of the tutorial. I have tried make menuconfig. I can make the bzImage but not the modules. I have no scsi devices. I am trying for kernel 2.6.8.1.

Error:

In file included from drivers/message/fusion/mptscsih.c:68:
drivers/message/fusion/linux_compat.h:11: redefinition of `scsi_device_online'
include/scsi/scsi_device.h:192: `scsi_device_online' previously defined here
drivers/message/fusion/linux_compat.h: In function `scsi_device_online':
drivers/message/fusion/linux_compat.h:12: structure has no member named `online'make[3]: *** [drivers/message/fusion/mptscsih.o] Error 1
make[2]: *** [drivers/message/fusion] Error 2
make[1]: *** [drivers/message] Error 2
make: *** [drivers] Error 2

Also, possibly related, I can't apply the patch I get an error:

[root@localhost linux-2.6.8.1]# bzip2 -dc patch-2.6.8.1.bz2|patch -p1
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file fs/nfs/file.c
Reversed (or previously applied) patch detected! Assume -R? [n] r
Apply anyway? [n] y
Hunk #1 FAILED at 72.
Hunk #2 FAILED at 89.
2 out of 2 hunks FAILED -- saving rejects to file fs/nfs/file.c.rej

Any help would be apprreciated.

PS when creating a new thread, in the box of smilies, what is the bottom left one doing? ( )
 
Old 10-03-2004, 05:50 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
What version of the kernel source are you applying patch 2.6.8.1 to? It should be applied to a 2.6.8 kernel. That patch was to fix a problem with nfs. If you don't use nfs you may as well leave it at 2.6.8. If you get any .rej files you shouldn't (in my opinion) go ahead and build. The kernel is quite important. If it doesn't work properly your whole system could...
 
Old 10-03-2004, 09:05 PM   #3
scotoma
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: Disabled
ahh. I was trying to apply the 2.6.8.1 patch to the 2.6.8.1 kernel. So the 2.6.8.1 patch should go with the 2.6.8 kernel?
 
Old 10-03-2004, 09:11 PM   #4
scotoma
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: Disabled
OK I am making some progress. I have reached the make install step. Then:

[root@localhost linux-2.6.8.1]# make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /home/src/kernel/linux-2.6.8.1/arch/i386/boot/install.sh 2.6.8.1 arch/i386/boot/bzImage System.map ""
No module mptbase found for kernel 2.6.8.1
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2


Ideas? Solutions?

Thanks
 
Old 10-03-2004, 11:08 PM   #5
fphillips
Member
 
Registered: Sep 2004
Location: KS
Distribution: Slack 10-current
Posts: 87

Rep: Reputation: 15
presumably the mptbase error you got at make install was from the earlier fusion error
Quote:
I have no scsi devices
Then you won't need the one that's causing problems!
make menuconfig
Device Drivers > turn off Fusion MPT
save it, make, etc should work now

Note that 'make install' runs the script arch/i386/boot/install.sh, which doesn't add a new entry in /etc/lilo.conf. You should add the entry before you run make install.
 
Old 11-02-2004, 11:06 AM   #6
scotoma
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: Disabled
I had to edit modules.conf and modprobe.conf removing any mention of mptxxx before running make install.

Thanks all,
 
  


Reply


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
what do i do with old modules and stuff when i make a new kernel? slinky2004 Linux - Software 3 09-06-2005 09:33 AM
modules problems when update kernel amimusa Linux - General 3 04-09-2005 02:55 PM
make new modules for the same kernel? linuxhippy Slackware 1 03-26-2005 12:36 PM
Kernel Update & Modules JJX Linux - Newbie 7 04-26-2004 12:43 AM
modules prob after kernel update CycloneInDC Linux - Hardware 6 11-14-2003 05:35 PM


All times are GMT -5. The time now is 04:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration