[SOLVED] Build link broken and kernel missing

General support questions including new installations
onewaydave
Posts: 19
Joined: 2010/06/05 18:10:02

[SOLVED] Build link broken and kernel missing

Post by onewaydave » 2010/06/05 18:45:13

I'm trying to install a BCM 4312 wireless driver following the Centos howto.

Howtos>Laptops>Witeless>Broadcom

On step 3, compiling ... module.
I get
No rule to make target `build' Stop.

When I go to the /lib/modules/2.6.18.194.3.1.el5 directory, the Build file link is broken.

If i go to the link source /usr/src/kernels/2.6 ...x86_64 does not exist. The /kernels folder is empty.

Could someone tell me how to fix this? I think I need to reinstall the identified kernel in that directory and reestablish a link to it. but am not savy enough to do that on my own.

Thanks for any help.

Dave.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

[SOLVED] Build link broken and kernel missing

Post by toracat » 2010/06/05 19:33:13

You would need kernel-devel. If unsure, please post the output from:

uname -mr

and

rpm -qa kernel\* | sort

onewaydave
Posts: 19
Joined: 2010/06/05 18:10:02

Re: Build link broken and kernel missing

Post by onewaydave » 2010/06/06 01:20:21

Thanks for the assist.

uname -mr
2.6.18-194.3.1.el5.x86_64

rpm...
kernel-2.6.18-194.3.1.el5
kernel-2.6.18-194.el5
kernel-headers-2.6.18-194.3.1.el5

I did step one, yum install kernel-headers kernel-devel gcc and did not get any errors.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Build link broken and kernel missing

Post by toracat » 2010/06/06 02:17:22

According to what you showed, you do not have kernel-devel installed. So, try:

yum install kernel-devel

And do the rpm command again. You will then see kernel-devel-2.6.18-194.3.1.el5 .

onewaydave
Posts: 19
Joined: 2010/06/05 18:10:02

Re: Build link broken and kernel missing

Post by onewaydave » 2010/06/06 08:57:11

Thanks for the input. I re-installed the kernel-headers, kernel-devel, and gcc

it seemed to go ok and they show up

[dgw@dgwhost ~]$ rpm -qa kernel\*|sort
kernel-2.6.18-194.3.1.el5
kernel-2.6.18-194.el5
kernel-devel-2.6.18-194.3.1.el5
kernel-headers-2.6.18-194.3.1.el5
[dgw@dgwhost ~]$

So I proceed thru the tutorial
mkdir...
cd ....
tar ...
chown....
and all this goes without a problem.

Now i have gotten to this stump trying to compile the driver module.

[dgw@dgwhost ~]$ make -C /lib/modules/`uname -r`/build/ M=`pwd`
make: Entering directory `/usr/src/kernels/2.6.18-194.3.1.el5-x86_64'
scripts/Makefile.build:17: /home/dgw/Makefile: No such file or directory
make[1]: *** No rule to make target `/home/dgw/Makefile'. Stop.
make: *** [_module_/home/dgw] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-194.3.1.el5-x86_64'
[dgw@dgwhost ~]$

Dave.

onewaydave
Posts: 19
Joined: 2010/06/05 18:10:02

Re: Build link broken and kernel missing

Post by onewaydave » 2010/06/06 14:24:36

I have found that ndrake had the same problem in General Centos 5 section. following suggestions there seemed to help.

I compiled, stripped, debuged, and did all the other stuff in the tutorial. But the wireless still doesn't work.

Sys>Admin>Network Config

Both eth0 and eth1 are inactive

When I try to activate eth1

Error for wireless request "Set Encode" (8B2A) :
SET failed on device eth1 ; Invalid argument.
Error for wireless request "Set Encode" (8B2A) :
SET failed on device eth1 ; Invalid argument.

Determining IP information for eth1...PING 192.168.1.1 (192.168.1.1) from 192.168.1.5 eth1: 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
, pipe 3
failed.


Any suggestions are appreciated.

Dave.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Build link broken and kernel missing

Post by AlanBartlett » 2010/06/06 15:14:58

[b]Dave[/b] -- As this is the tail-end of the weekend, I'll suggest that you wait ( about 24 hours ) for [b]Milos[/b] to arrive. I'm sure he will be able to help you.

milosb
Posts: 661
Joined: 2009/01/18 00:39:15
Location: 44 49′14″N 20 27′44″E

Re: Build link broken and kernel missing

Post by milosb » 2010/06/06 17:23:58

[quote]
onewaydave wrote:
I have found that ndrake had the same problem in General Centos 5 section. following suggestions there seemed to help.

I compiled, stripped, debuged, and did all the other stuff in the tutorial. But the wireless still doesn't work.
[/quote]
Whatever advice/suggestions given in that thread you're referring to, it's still nothing new in regard to the manual you're using... :roll:
The manual was supposed to address all possible difficulties user may encounter during the compilation and usage of the driver on a genuine CentOS system.
However, in case of a thread [b]ndrake[/b] started, no deficiencies in the manual surfaced, and yet the culprit preventing [b]ndrake[/b] to
compile the driver remained unknown (to me at least - perhaps I missed something). Personally, after each kernel update, I keep recompiling the driver over
and over again, with no problems whatsoever. So, from my point of view, the problems you guys are having aren't related to the manual, or the kernel version.
[b]Note that I'm only saying all this to make people using the manual send me feedback to possibly improve the manual in the future.[/b]

[quote]
Sys>Admin>Network Config

Both eth0 and eth1 are inactive

When I try to activate eth1

Error for wireless request "Set Encode" (8B2A) :
SET failed on device eth1 ; Invalid argument.
Error for wireless request "Set Encode" (8B2A) :
SET failed on device eth1 ; Invalid argument.

Determining IP information for eth1...PING 192.168.1.1 (192.168.1.1) from 192.168.1.5 eth1: 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
, pipe 3
failed.
[/quote]
Have you tried NetworkManager? Since this is most probably a laptop you're working on,
I suggest you make your life easier and use NetworkManager service to manage your network connections, at least wireless ones:
[code]
[root@localhost ~]# service network stop
[root@localhost ~]# service NetworkManager start
[/code]
If the wireless indication LED is lit after you switch it on, then the driver is loaded and working (from my experience).

Also, if you want to have NM manage your network connections constantly, make sure you:
[code]
[root@localhost ~]# chkconfig network off
[root@localhost ~]# chkconfig NetworkManager on
[/code]
Shortly after you start the NM service you'll be asked to enter keyring passphrase, and subsequently authenticate to the
access point by entering WPA-PSK key, or whatever security authentication method the AP is configured to use.

onewaydave
Posts: 19
Joined: 2010/06/05 18:10:02

Re: Build link broken and kernel missing

Post by onewaydave » 2010/06/07 11:18:21

Milosb, thanks for the reply, I will try your suggestions.

I understood ndrake's problem to be not using the make command in the correct directory because that was what I was doing and when I corrected that the compile worked.

And, thanks for the tutorial, we new guys learn a little bit more every time we follow a tutorial and even more so when we create problems that have to be solved. I do realise that the problems we create are sometimes a burden to others.

Dave.

onewaydave
Posts: 19
Joined: 2010/06/05 18:10:02

Re: [SOLVED] Build link broken and kernel missing.

Post by onewaydave » 2010/06/10 02:34:35

Milosb, thanks for the help. You were right on target. Thanks.

Dave

Post Reply