Operating System - Linux
1823084 Members
3308 Online
109646 Solutions
New Discussion юеВ

Building the src RPM for BCM5700 on Centos

 
SOLVED
Go to solution
j0n
New Member

Building the src RPM for BCM5700 on Centos

I'm trying to build the BCM5700-8.3.14a-1 driver on Centos 4.1. The build fails with: -

make -C /usr/src/linux SUBDIRS=/usr/src/redhat/BUILD/bcm5700-8.3.14a modules
make[1]: Entering directory `/usr/src/linux-2.6.9-11.EL'
CC [M] /usr/src/redhat/BUILD/bcm5700-8.3.14a/b57um.o
In file included from /usr/src/redhat/BUILD/bcm5700-8.3.14a/b57um.c:19:
/usr/src/redhat/BUILD/bcm5700-8.3.14a/mm.h:31:27: linux/version.h: No such file or directory
/usr/src/redhat/BUILD/bcm5700-8.3.14a/mm.h:37:31: linux/modversions.h: No such file or directory

I guess it's to do with how we've setup the kernel source. Has anyone seen this problem before ? Any ideas how to setup the src correctly ?
Thanks

6 REPLIES 6
Vipulinux
Respected Contributor

Re: Building the src RPM for BCM5700 on Centos

Hi
Use the following series of commands:

I install the source RPM package:
rpm -ivh bcm5700-x.x.x.x.src.rpm
2. CD to the RPM path and build the binary driver for my kernel:
cd /usr/src/centos
rpmbuild -bb SPECS/bcm5700.spec
( rpm-build package should be present)

Cheers
Vipulinux
Respected Contributor

Re: Building the src RPM for BCM5700 on Centos

Hi
Use the following series of commands:

I install the source RPM package:
rpm -ivh bcm5700-x.x.x.x.src.rpm
2. CD to the RPM path and build the binary driver for my kernel:
cd /usr/src/centos
rpmbuild -bb SPECS/bcm5700.spec
( rpm-build package should be present)
3.rpm -ivh --force RPMS/i386/bcm5700-x.x.x.x.i386.rpm

Cheers
j0n
New Member

Re: Building the src RPM for BCM5700 on Centos

Thanks but I'm not sure that this solves the problem. I did the following as per the instructions included with the driver.

> # cd /usr/src/linux-
> # make mrproper
> # make -e KERNELRELEASE=`uname -r` oldconfig

That worked

> # make -e KERNELRELEASE=`uname -r` dep

This returned "make dep" is not necessary anymore.

rpmbuild -bb SPECS/bcm5700.spec failed immediately.

We then did a: -

ln -s /usr/src/linux- /usr/src/linux

rpmbuild -bb SPECS/bcm5700.spec

which resulted in the error log. I've attached the full log.
Vitaly Karasik_1
Honored Contributor
Solution

Re: Building the src RPM for BCM5700 on Centos

do you have kernel-devel package installed?

Rgds,
Vitaly
j0n
New Member

Re: Building the src RPM for BCM5700 on Centos

Thanks guys - that did it. I needed to install the kernel-devel package.
Vipulinux
Respected Contributor

Re: Building the src RPM for BCM5700 on Centos

Hi

You will always need kernel-devel package is you are building from a source.

Cheers