[CentOS] trying to build driver

Ulrik S. Kofod usk at cybersite.dk
Thu Oct 20 18:48:55 UTC 2005

Karanbir Singh sagde:
> kernel-devel will give you the headers etc needed to build modules , if you still
> need the entire source tree - you need to manually install the .src.rpm from
> http://mirror.centos.org/centos/4/os/SRPMS/

I already have kernel-devel installed, what I don't understand is that in the forum
(see below) it says that "yum install kernel-sourcecode" should do the trick in
centOS 4.0. Shouldn't it also work in 4.2 or have that changed?

------------------------------- from the forum -------------------------------
To all:

Yes, this should work for CentOS 4.0.
First, install kernel sources.

$ yum install kernel-sourcecode    <----- this doesn't work for me in 4.2

This will also create the path /usr/src/linux-2.6.9-5.0.3.EL which is needed.

Next you will have to properly setup the kernel headers.

$ cd /usr/src/linux-2.6.9-5.0.3.EL
$ make mrproper
$ cp /boot/config-2.6.9-5.0.3.EL .config
$ make bzImage

The last step will setup all the linking and headers correctly so that the hptxxx
code will make properly.

$ cd /to/your/highpoint/source/path
$ make KERNELDIR=/usr/src/linux-2.6.9-5.0.3.EL RR154X=0

and it should make properly with a few warnings. Follow the highpoint readme
instructions after that.
I have not tested the driver, but it does make.

Good luck

More information about the CentOS mailing list