Forum Home
Press F1
 
Thread ID: 50737 2004-10-30 09:19:00 mandrake 10 & ide card install phil.b (4456) Press F1
Post ID Timestamp Content User
286314 2004-10-30 09:19:00 I´ve installed an ite it8212f ide/raid card. The driver from the vendor website supplies a driver for mandrake 9.2 with an older kernel. Can i edit the makefile to look for the newer kernel without causing a major ? If i try make the process stops because it can´t find kernel 2.6.1, I´ve got 2.6.3-7

Phil
phil.b (4456)
286315 2004-10-30 09:35:00 Try making a symlink in /lib/modules then.....

ln -s /lib/modules/linux-2.6.3-7 /lib/modules/linux-2.6.1


Chill.
Chilling_Silence (9)
286316 2004-10-30 10:20:00 I created the symlink & it made no difference, should it be in usr/src? This is what i get.

make -C /usr/src/linux-2.6.1 SUBDIRS=/home/phil/programs/ITE_IT8212 Driver/LinuxDriverSrc_it8212_092005-09/src/2.6.x modules
make: *** /usr/src/linux-2.6.1: No such file or directory. Stop.
make: *** [modules] Error 2
[phil@mandrake 2.6.x]$

Phil
phil.b (4456)
286317 2004-10-30 10:36:00 Ah, if its trying to put it in the kernel source dir...

You may need to manually hack the Makefiles, but try:
ln -s /usr/src/linux /usr/src/linux-2.6.1

You do have your kernel sources installed, right?!?
Chilling_Silence (9)
286318 2004-10-30 10:46:00 Got this this time

make -C /usr/src/linux-2.6.1 SUBDIRS=/home/phil/programs/ITE_IT8212 Driver/LinuxDriverSrc_it8212_092005-09/src/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.3-7mdk'
make[1]: *** No rule to make target `Driver/LinuxDriverSrc_it8212_092005-09/src/2.6.x'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.3-7mdk'
make: *** [modules] Error 2
[phil@mandrake 2.6.x]$
phil.b (4456)
286319 2004-10-31 01:43:00 Have you ever done a kernel compile?If not, it would probably be a good idea to (in /usr/src/linux/ ) make oldconfig. This makes a definition file linux.h which is quite important.

It's usually a bad idea to try to make a kernel source look like an older one, though you might be getting away with it.

Playing games with Makefiles can be interesting. The make system is very complicated (because building a kernel is complicated). Unfortunately if you don't know how make works you get very clever errors.:D Some drivers come with Makefiles which work with one known release of the kernel. If they were properly written, they would work with whatever you've got.:-( You can usually pick a working one if it refers to "/lib/modules/build".

That "no rule to make..." means what it says. The Makefile contains a chained system of definitions of operations: "rules". You'll see there are labels (e.g."all:","clean:", "install", etc ) which are calls to predefined rules.

TARGETS is a name which is accessed with $TARGETS. Somewhere in that there is a rule which will define what is needed to build a file called (?) it8212.o

It's all very messy ...
Graham L (2)
286320 2004-10-31 03:50:00 Hello Graham, I have tried to compile the kernel before. I have only succeeded once & I´m not sure how I did that. Usually I end up re-installing the os as it´s beyond my attempts to repair it.
Do you know of a reliable walk through of how to compile a kernel? I have tried a few, they all seem to be different.
Thanks for the advice re: makefile

Phil
phil.b (4456)
1