LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   building a custom kernel...aic7xxx problem (https://www.linuxquestions.org/questions/linux-newbie-8/building-a-custom-kernel-aic7xxx-problem-3965/)

landonmkelsey 07-04-2001 10:06 PM

building a custom kernel...aic7xxx problem
 
my first kernel build...Facts:

Redhat (RH) 7.1 installed and running great on its own Seagate 36 gig drive, Dell 330 workstation, 512 meg RAM,USR 3CP5610 modem, SB 16

No problems with my Adaptec 29160N that I can detect.

Using Redhat 7.1 Customization Guide page 177

Building a modular kernel (as opposed to a monolithic kernel... I guessed).

I do not use LILO but boot Linux from a floppy for now.
I am creating a kernel named
2.4.2-2-3JULY01 to preserve my 2.4.2-2 version which still works (using it now).

When I create a boot floppy for 2.4.2-2-3JULY01, I get a message
no module aic7xxx found for kernel 2.4.2-2-3JULY01

Then the floppy fails to boot to anything.

I tried to run:
/sbin/mkinitrd /boot/initrd-2.4.2-2-3JULY01.img
2.4.2-2-3JULY01
but get the same message as above
no module aic7xxx found for kernel 2.4.2-2-3JULY01

This is a dry run after making no changes to anything. Later I will install Oracle 8.1.7 and need to rebuild kernel.

jharris 07-05-2001 04:18 AM

Did you remember to do the
Code:

make modules && make modules_install
steps?? Have a look in /lib/modules/and see if the modules are there. I don't know what the story is with having two kernels of the same version that are expecting different moduels - they'll both be looking in /lib/modules/2.4.2/ so you might have some problems due to that.

cheers

Jamie...

cinnix 07-05-2001 05:46 AM

depmod -a should be done too, in order to write the deppendencies file.

landonmkelsey 07-16-2001 08:05 AM

tried all suggestions to no avail
 
:study:

There is no scsi problem here. As stated in the original question, the original install kernel works great.

People at Redhat can't read and spend more time trying to dodge the question. A real kernel expert should be able to answer this question in 30 seconds MAX.

I was hoping to have Oracle installed by now.

Time to go where I never fail and that is my own internal research department.

See Linux stuff in the movie "Score" great movie!

landonmkelsey 07-23-2001 11:02 PM

kernel build problem solved
 
:study:


Solved the problem myself!!! Redhat could not help and you will see why.

On page 180 of the "Customization Guide" that comes with Redhat 7.1, see item 11.

Kernel modules are installed in the name of the original install kernel which for 7.1 is 2.4.2-2.
/lib/modules/2.4.2-2/kernel/drivers/...
OK for the old kernel!!!! but...

I changed the Makefile as indicated in item 8 to
EXTRAVERSION=2.4.2-2-3JULY01.

Modules should have been installed into

/lib/modules/2.4.2-2-3JULY01/kernel/drivers/...

The book is either missing something or
make modules_install is not working.

I created a correct
/lib/modules/2.4.2-2-3JULY01/kernel/drivers/...

and now I am off to the next problem

isajera 07-24-2001 12:43 AM

hmmm... weird. all these strange red hat peculiarities worry me. i'm moving to debian next :)

it didn't work the first time when you tried a 'make modules'?


All times are GMT -5. The time now is 03:31 AM.