Mike (all),

Getting ready to try this out and I need some elaboration as I think
I may have a problem.

I'm currently running kernel 2.4.18-14 and have that kernel-source
already installed.  I need to compile the driver from the newest kernel-
source...can this be installed onto a system with an older kernel?

If so, when using up2date to install a newer kernel, does the update
take effect immediately or after a boot (perhaps a dumb question, but
I'm from Windows-land where EVERYTHING takes a reboot).  I'm guessing
a reboot is required.

If so, then I need to have the newer driver installed/loaded BEFORE
the system, with the new kernel installed, is rebooted.  Are drivers
typically backwards compatible, or are the kernel specific based on
their compilation?

Normally I'd just throw caution to the wind and try it, but I'd like to
avoid having to rebuild this box from the beginning if possible.

Thanks again, GREAT directions!

Stuart
 

> -----Original Message-----
> From: Michael Fratoni [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 6:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: how difficult is compiling a driver?
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thursday 27 March 2003 03:18 pm, Douglas, Stuart wrote:
> > My situation is this, I'm using some HighPoint Rocket133 
> IDE controller
> > cards to support larger HDDs on some systems but the only 
> RH8 driver is
> > compiled for the initial kernel release.  The vendor can't 
> give me any
> > useful information as to when I might expect a driver that 
> is compiled
> > for the latest kernel so I thought I'd look into doing it myself. 
> > Being a total Linux noob, am I asking the equivalent of how 
> to perform
> > brain surgery, or is it actually not too difficult?
> 
> 
> If the driver source code is availble, it shouldn't be very hard.
> It appears the source is available for the Rocket133 at:
> http://www.highpoint-tech.com/hpt302-opensource-v10.tgz
> You'll have to verify that this is the correct file. The 
> drivers I found 
> are listed here:
> http://www.highpoint-tech.com/drivers.htm
> 
> Once you have the correct file downloaded...
> 
> make a temporary directory, I used 'highpoint'.
> $ mkdir highpoint
> Move the driver archive to the new directory.
> $ mv hpt302-opensource-v10.tgz highpoint
> cd to the directory
> $ cd highpoint
> Extract the archive
> $ tar -xvzf hpt302-opensource-v10.tgz
> 
> Edit the Makefile, and fix the define for KERNELDIR. Currently, it is 
> probably defined as KERNELDIR=/usr/src/linux (Which is wrong)
> It should be defined as:
> KERNELDIR=/lib/modules/`uname -r`/build 
> (KERNELDIR=/usr/src/linux-2.4 would work as well, but the 
> above is more 
> correct)
> 
> You need to have the kernel-source rpm package installed that 
> matches your 
> running kernel. For example, I have:
> $ rpm -q kernel kernel-source
> kernel-2.4.18-27.8.0
> kernel-source-2.4.18-27.8.0
> 
> Once you have done all that, you can build the driver with
> $ make
> 
> Once it has finished compiling, the .o file(s) need to be 
> copied someplace 
> suitable in /lib/modules/{version}/kernel/drivers/(ide perhaps?)
> 
> There are instructions in the readme.txt file for loading the drivers.
> 
> Hope that helps,
> - -- 
> - -Michael
> 
> pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
> Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
> - --
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> 
> iD8DBQE+g4NKn/07WoAb/SsRAhjqAJwJN6FjRjjpIxrHWk3OvgDWj8MS7gCeIgoo
> M9KH7lkAzV0w7sAzc2NmCZg=
> =Ufkn
> -----END PGP SIGNATURE-----
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to