LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   d'oh! kernel update make modules (https://www.linuxquestions.org/questions/linux-newbie-8/doh-kernel-update-make-modules-238320/)

scotoma 10-03-2004 03:35 PM

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? (:tisk: )

Andrew Benton 10-03-2004 05:50 PM

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

scotoma 10-03-2004 09:05 PM

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?

scotoma 10-03-2004 09:11 PM

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

fphillips 10-03-2004 11:08 PM

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.

scotoma 11-02-2004 11:06 AM

I had to edit modules.conf and modprobe.conf removing any mention of mptxxx before running make install.

Thanks all,


All times are GMT -5. The time now is 03:38 PM.