LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-11-2009, 06:09 PM   #1
Unr3a164
Member
 
Registered: Apr 2007
Distribution: Windows 8.1. Attempting to get Slack 14.1 working.
Posts: 147

Rep: Reputation: 16
Broadcom drivers.


Apparently, Broadcom now offers what they call "hybrid" broadcom drivers for Linux. I am trying to install them, but I am getting an error. I am following the instructions from this txt file:

http://www.broadcom.com/docs/linux_sta/README.txt

and when I go to step 5 to make a Linux loadable kernel module (LKM) this is what happens:

Code:
root@l3n0v0:~/hybrid_wl# make -C /lib/modules/2.6.29.6-smp/build M='pwd'
make: Entering directory `/usr/src/linux-2.6.29.6'
scripts/Makefile.build:41: /usr/src/linux-2.6.29.6/pwd/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.29.6/pwd/Makefile'.  Stop.
make: *** [_module_pwd] Error 2
make: Leaving directory `/usr/src/linux-2.6.29.6'
root@l3n0v0:~/hybrid_wl#
What am I doing wrong? I am following the instructions to the T, but it's not working. Doe anyone have any ideas? Or should I just use ndiswrapper?
 
Old 09-11-2009, 06:13 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
M='pwd' <-- note the quotes;

Is that a typo or something, or are you actually using '''' <-- those single quotes, instead of ```` <-- backticks?

Sasha
 
Old 09-11-2009, 06:16 PM   #3
Unr3a164
Member
 
Registered: Apr 2007
Distribution: Windows 8.1. Attempting to get Slack 14.1 working.
Posts: 147

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by GrapefruiTgirl View Post
M='pwd' <-- note the quotes;

Is that a typo or something, or are you actually using '''' <-- those single quotes, instead of ```` <-- backticks?

Sasha
DOH!! I was using quotes instead of the backticks... I gotta get my friggin eyes checked. Let me try the command with the backticks and I will post here what happened. Thanks for the catch... I feel so stupid...
 
Old 09-11-2009, 06:18 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
No reason to feel stupid -- sillier things have stumped lots of people, lots of times

Let us know..
 
Old 09-11-2009, 06:28 PM   #5
Unr3a164
Member
 
Registered: Apr 2007
Distribution: Windows 8.1. Attempting to get Slack 14.1 working.
Posts: 147

Original Poster
Rep: Reputation: 16
Ok, I fixed the command, but now this is what I get:

Code:
root@l3n0v0:~/hybrid_wl# make -C /lib/modules/2.6.29.6/build M=`pwd`      
make: Entering directory `/usr/src/linux-2.6.29.6'                        
  LD      /root/hybrid_wl/built-in.o                                      
  CC [M]  /root/hybrid_wl/src/wl/sys/wl_linux.o                           
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_attach':           
/root/hybrid_wl/src/wl/sys/wl_linux.c:362: error: implicit declaration of function 'ieee80211_get_crypto_ops'                                         
/root/hybrid_wl/src/wl/sys/wl_linux.c:362: warning: assignment makes pointer from integer without a cast                                              
/root/hybrid_wl/src/wl/sys/wl_linux.c:365: warning: assignment makes pointer from integer without a cast                                              
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_free':              
/root/hybrid_wl/src/wl/sys/wl_linux.c:634: error: 'struct net_device' has no member named 'priv'                                                      
/root/hybrid_wl/src/wl/sys/wl_linux.c:669: error: 'struct net_device' has no member named 'priv'                                                      
/root/hybrid_wl/src/wl/sys/wl_linux.c:685: error: dereferencing pointer to incomplete type                                                            
/root/hybrid_wl/src/wl/sys/wl_linux.c:689: error: dereferencing pointer to incomplete type                                                            
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_open':              
/root/hybrid_wl/src/wl/sys/wl_linux.c:714: error: 'struct net_device' has no member named 'priv'                                                      
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_close':             
/root/hybrid_wl/src/wl/sys/wl_linux.c:742: error: 'struct net_device' has no member named 'priv'                                                      
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_start':             
/root/hybrid_wl/src/wl/sys/wl_linux.c:765: error: 'struct net_device' has no member named 'priv'                                                      
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_alloc_if':          
/root/hybrid_wl/src/wl/sys/wl_linux.c:850: error: 'struct net_device' has no member named 'priv'                                                      
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_get_driver_info':   
/root/hybrid_wl/src/wl/sys/wl_linux.c:1030: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_ioctl':             
/root/hybrid_wl/src/wl/sys/wl_linux.c:1118: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c:1119: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_get_stats':         
/root/hybrid_wl/src/wl/sys/wl_linux.c:1204: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_get_wireless_stats':
/root/hybrid_wl/src/wl/sys/wl_linux.c:1236: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c:1237: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_set_mac_address':   
/root/hybrid_wl/src/wl/sys/wl_linux.c:1304: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c:1312: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function '_wl_set_multicast_list':                                                                          
/root/hybrid_wl/src/wl/sys/wl_linux.c:1335: error: 'struct net_device' has no member named 'priv'                                                     
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_miccheck':     
/root/hybrid_wl/src/wl/sys/wl_linux.c:1726: error: dereferencing pointer to incomplete type                                                           
/root/hybrid_wl/src/wl/sys/wl_linux.c:1729: error: dereferencing pointer to incomplete type                                                           
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_micadd':       
/root/hybrid_wl/src/wl/sys/wl_linux.c:1748: error: dereferencing pointer to incomplete type                                                           
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_encrypt':      
/root/hybrid_wl/src/wl/sys/wl_linux.c:1768: error: dereferencing pointer to incomplete type                                                           
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_decrypt':      
/root/hybrid_wl/src/wl/sys/wl_linux.c:1790: error: dereferencing pointer to incomplete type                                                           
/root/hybrid_wl/src/wl/sys/wl_linux.c:1792: error: dereferencing pointer to incomplete type
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_keyset':
/root/hybrid_wl/src/wl/sys/wl_linux.c:1834: error: dereferencing pointer to incomplete type
/root/hybrid_wl/src/wl/sys/wl_linux.c:1844: error: dereferencing pointer to incomplete type
/root/hybrid_wl/src/wl/sys/wl_linux.c:1851: error: dereferencing pointer to incomplete type
/root/hybrid_wl/src/wl/sys/wl_linux.c:1861: error: dereferencing pointer to incomplete type
/root/hybrid_wl/src/wl/sys/wl_linux.c:1871: error: dereferencing pointer to incomplete type
/root/hybrid_wl/src/wl/sys/wl_linux.c:1878: error: dereferencing pointer to incomplete type
/root/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_printstats':
/root/hybrid_wl/src/wl/sys/wl_linux.c:1897: error: dereferencing pointer to incomplete type
/root/hybrid_wl/src/wl/sys/wl_linux.c:1899: error: dereferencing pointer to incomplete type
make[1]: *** [/root/hybrid_wl/src/wl/sys/wl_linux.o] Error 1
make: *** [_module_/root/hybrid_wl] Error 2
make: Leaving directory `/usr/src/linux-2.6.29.6'
root@l3n0v0:~/hybrid_wl#
Any ideas on this?
 
Old 09-11-2009, 06:51 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Generally speaking, the above happens when either:

1-- the build process can't find the header files it's looking for, or
2-- something else really weird, like the driver and kernel version are incompatible.
Possible other causes too, perhaps..

You DO have the kernel headers package installed, right?

One thing I will suggest though, which may or may not help THIS problem, but may make things work more cleanly in general, would be:

Where you use this command:

make -C /lib/modules/2.6.29.6/build M=`pwd`

I would replace the 2.6.29.6 with `uname -r` instead (don't omit the backticks).

At least that way, you know the build is looking in the right place for your kernel's build directory (the symlink).

NOTE THOUGH: I don't know how the word "linux-" is getting prepended (on the next line: make: Entering directory `/usr/src/linux-2.6.29.6') onto the kernel version you are supplying, so if `uname -r` gives you more trouble, such as it starts looking for "linux-linux-2.6.29.6") you'll need to switch back.

Not sure at this moment what else to suggest, but more suggestions will come so not to worry.

At this point (regarding your earlier comment) I would definitely not switch to ndiswrapper; it looks so far like this is a little buggy, but all in all, it should work for you eventually.

Good luck!
Sasha

Last edited by GrapefruiTgirl; 09-11-2009 at 06:56 PM.
 
Old 09-11-2009, 07:06 PM   #7
Unr3a164
Member
 
Registered: Apr 2007
Distribution: Windows 8.1. Attempting to get Slack 14.1 working.
Posts: 147

Original Poster
Rep: Reputation: 16
I will try what you are suggesting, and I have no clue whether the kernel headers package is installed. I have not installed anything since the initial setup of slackware. So if the kernel headers package is not part of the "full" install option in the initial setup, then no, its not installed. If it is part of it, then yes, it is.
 
Old 09-11-2009, 07:10 PM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Yep, the headers should be installed if you did the full meal deal.

Keep fiddling, and if you get really screwed up, I'd be keen on trying to build the driver myself too, for the heck of it -- provided I don't actually need a Broadcom NIC to do so

Also, there's another thread on the go around here, where username mobinskariya is building a different Broadcom driver. You may find either some tips in that thread, OR a different version of the Broadcom driver that may work for you.

Sasha
 
Old 09-11-2009, 07:25 PM   #9
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
I think you forgot to patch the driver. I have a blog entry about this... would you mind testing the instructions to see if they work for you?
 
Old 09-11-2009, 07:43 PM   #10
Unr3a164
Member
 
Registered: Apr 2007
Distribution: Windows 8.1. Attempting to get Slack 14.1 working.
Posts: 147

Original Poster
Rep: Reputation: 16
Ok, so I did what you told me to do with the `uname -r` and got the same issue.


jimx86, I did not patch it. Maybe that's my issue. I will do that next. And yes, I will follow the directions in your blog entry and let you know what happened.
 
Old 09-11-2009, 08:15 PM   #11
Unr3a164
Member
 
Registered: Apr 2007
Distribution: Windows 8.1. Attempting to get Slack 14.1 working.
Posts: 147

Original Poster
Rep: Reputation: 16
Ok, so I patched the drivers, and now it allows me to create the LKM, however, when I try to load it with modprobe, I get this:

Code:
root@l3n0v0:~/hybrid_wl# modprobe wl
FATAL: Error inserting wl (/lib/modules/2.6.29.6/kernel/drivers/net/wireless/wl.ko): Invalid module format
root@l3n0v0:~/hybrid_wl#
So, this looks like a different issue.

EDIT: Edited out a theory that I answered myself.

Last edited by Unr3a164; 09-11-2009 at 08:16 PM.
 
Old 09-11-2009, 08:28 PM   #12
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
I'm not sure... are you using a custom kernel? Is the kernel source the same version as the running kernel?
 
Old 09-11-2009, 08:33 PM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Only time(s) I have gotten into that situation, was when using a driver that was too old for the kernel version I was trying to build it for (or the kernel is too new for it, or otherwise incompatible with the kernel). And trying to work around it is a hellish ordeal.

My suggestion is either upgrade to a newer kernel, or more preferably, downgrade/upgrade to a different version of the driver (maybe not a "hybrid", if possible -- that word's not usually good )

Last edited by GrapefruiTgirl; 09-11-2009 at 08:48 PM. Reason: added clarity -- correct NEW > OLD
 
Old 09-11-2009, 08:59 PM   #14
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
I'm running Slackware64, but it works here with the stock 2.6.29.6 kernel and matching kernel headers. GrapefruiTgirl, you might be on to something... I'm pretty sure that this driver won't work yet with a 2.6.30 kernel.

edit... gentoo has a patch for newer kernels.

Last edited by jimX86; 09-11-2009 at 09:04 PM.
 
Old 09-11-2009, 09:07 PM   #15
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by jimX86 View Post
I'm running Slackware64, but it works here with the stock 2.6.29.6 kernel and matching kernel headers. GrapefruiTgirl, you might be on to something... I'm pretty sure that this driver won't work yet with a 2.6.30 kernel.

edit... gentoo has a patch for newer kernels.
But the OP is using the same kernel version as you are, right? Off the top of my head, I can't recall: which headers are included with a stock Slack64 install?

Methinks I'm missing something here


The time(s) I ran into this issue, were always when trying to build the Intel 536 modem driver on a new kernel. I always had to wait until a newer version of the modem driver came out, before I could update the kernel on that machine -- I was stuck at 2.6.24.4 for the LONGest time :|

Sasha
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
broadcom wireless drivers lumak Slackware 1 08-17-2008 05:33 AM
hp tx1410us broadcom 4328 drivers superfly4545 Linux - Hardware 1 03-24-2008 10:17 AM
Broadcom BCM4401 Drivers Veratien Linux - Hardware 8 08-12-2007 01:04 AM
Broadcom/Linksys 64-bit drivers -Olly- Linux - Wireless Networking 13 09-20-2006 04:37 PM
Broadcom WiFi drivers scompa Slackware 10 05-15-2006 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration