LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-30-2004, 03:14 AM   #1
david.skinner
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Mandriva 2006 64
Posts: 45

Rep: Reputation: 15
10.1 2.6.8.1-12mdk Kernel Compile Errors


I've just upgrade from Mandrake 10.0 to 10.1 and I'm having trouble compiling a custom kernel.
I require a couple of device drivers ITE8212 and SATA_SIL to be compiled into the kernel as well as RAID 1 support so that I can can run the system from a set of raid disks. the boot partition is off course a non raid disk.

However I get strange dependency messages on the "Make Install" command that its looking for modules that are now meant to be part of the kernel. If I remove the modules completely (just for testing the compilation) I get the same complaint. It would seem that my process for compiling is not clean.
I'm using

make mrproper
make menuconfig
make bzImage
make modules
make modules_install
make install

The error messages from the make install are:
looking for deps of module iteraid
scsi_mod
looking for deps of module scsi_mod
looking for deps of module sata_sil
no module sata_sil found for kernel 2.6.8.1-12mdkbase, aborting..

Why is it looking for this module if its actually compiled into the kernel?

Any help much appreciated.Clearly I'm doing something wrong.
David
 
Old 12-30-2004, 06:58 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi rhere

instead of "make install" do the folowing

copy the kernel image
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.10gm87

copy the System.map file
cp System.map /boot/System.map-2.6.10gm87

make an initrd image
mkinitrd /boot/initrd-2.6.10gm87.img 2.6.10gm87


no this name(2.6.10gm87) that i have chosen here is for my custom kernel
ur Makefile in the kernel source should also represent the same

this from my Makefile(edit this before going for make bzImage)

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 10
EXTRAVERSION = gm87


and after these make the required enteries in grub.conf or lilo.conf

regards
 
Old 12-30-2004, 01:23 PM   #3
david.skinner
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Mandriva 2006 64
Posts: 45

Original Poster
Rep: Reputation: 15
The problem appears to be in the make initrd script and I have the same problem manually - here is the error:
Looking for deps of module iteraid
scsi_mod
Looking for deps of module scsi_mod
Looking for deps of module sata_sil
No module sata_sil found for kernel 2.6.8.1-12mdkbase, aborting.
mkinitrd failed:
(mkinitrd -v -f /boot/initrd-2.6.8.1-12mdkbase.img --ifneeded 2.6.8.1-12mdkbase)) at /usr/lib/libDrakX/bootloader.pm line 121.
make[1]: *** [install] Error 2
make: *** [install] Error 2
 
Old 12-30-2004, 01:33 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there
i forgot to mention above that
after
make modules_install

try this

mkinitrd /boot/initrd-2.6.10gm91.img 2.6.10gm91

u need to use the name that u have in ur Makefile in place of 2.6.10gm91

regards
 
Old 12-31-2004, 10:42 PM   #5
david.skinner
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Mandriva 2006 64
Posts: 45

Original Poster
Rep: Reputation: 15
Solved: I wasn't aware that mkinitrd allowed you to put modules into the boot image. What was a bit tricky was the dual requirement to have raid1 in /etc/modules.conf as well as a /dev/md? as root mounting in /etc/fstab.
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 compile errors slinky2004 Linux - General 1 10-22-2005 05:16 PM
Problem with joystick/gameport (kernel 2.6.8.1-12mdk) ripat Linux - Hardware 3 12-07-2004 02:59 AM
kernel compile errors... ash4stuff Linux - Software 15 01-01-2004 04:48 PM
Kernel compile errors! kierse Slackware 4 12-04-2003 12:25 AM
kernel compile errors justwantin Slackware 2 08-23-2003 05:47 PM

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

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