You are not logged in.

#1 2009-08-22 12:43:28

danotto9797
Member
Registered: 2008-11-28
Posts: 12

issue building bcm4312 kernal part [Solved]

hey guys. i recently purchased a new dell inspiron 1525 with bcm4312 802.11b/g internal wireless card. currently im having an issue with one of the steps of the readme of this site: http://www.broadcom.com/support/802.11/linux_sta.php readme: http://www.broadcom.com/docs/linux_sta/README.txt. on the step where it says to issue this command:
make -C /lib/modules/<2.6.30-ARCH>/build M=`pwd`
it gives me the follow errors:

bash-4.0# make -C /lib/modules/2.6.30-ARCH/build M=`pwd` 
make: Entering directory `/usr/src/linux-2.6.30-ARCH'
  LD      /home/danotto/Downloads/hybrid_wl/built-in.o
  CC [M]  /home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.o
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:57:27: error: net/ieee80211.h: No such file or directory
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_attach':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:362: error: implicit declaration of function 'ieee80211_get_crypto_ops'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:362: warning: assignment makes pointer from integer without a cast
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:365: warning: assignment makes pointer from integer without a cast
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_free':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:634: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:669: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:685: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:689: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_open':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:714: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_close':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:742: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_start':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:765: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_alloc_if':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:850: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_get_driver_info':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1030: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_ioctl':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1118: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1119: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_get_stats':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1204: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_get_wireless_stats':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1236: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1237: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_set_mac_address':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1304: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1312: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function '_wl_set_multicast_list':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1335: error: 'struct net_device' has no member named 'priv'
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_miccheck':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1726: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1729: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_micadd':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1748: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_encrypt':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1768: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_decrypt':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1790: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1792: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_keyset':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1834: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1844: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1851: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1861: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1871: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1878: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_tkip_printstats':
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1897: error: dereferencing pointer to incomplete type
/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.c:1899: error: dereferencing pointer to incomplete type
make[1]: *** [/home/danotto/Downloads/hybrid_wl/src/wl/sys/wl_linux.o] Error 1
make: *** [_module_/home/danotto/Downloads/hybrid_wl] Error 2
make: Leaving directory `/usr/src/linux-2.6.30-ARCH'

'

Last edited by danotto9797 (2009-08-24 00:47:56)

Offline

#2 2009-08-22 15:49:59

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: issue building bcm4312 kernal part [Solved]

Hello danotto9797!

Did you see whether there is any patch to this C source file ?

Offline

#3 2009-08-22 17:01:51

csat
Member
From: Rio de Janeiro, Brazil
Registered: 2008-08-06
Posts: 93

Re: issue building bcm4312 kernal part [Solved]

Hi

I have also Dell notebook with the same bcm4312 and followed those links below:

http://wiki.archlinux.org/index.php/Broadcom_BCM4312

and

http://aur.archlinux.org/packages.php?ID=19514

I am using wicd having wireless running without issues.

Just a suggestion in case you haven't read about it before.


CSAT
Arch User

Offline

#4 2009-08-22 20:56:19

danotto9797
Member
Registered: 2008-11-28
Posts: 12

Re: issue building bcm4312 kernal part [Solved]

i followed all the instructions of the wiki entry you gave me, and it still wont work. my ethernet works but its not broadcom. whats odd is that i dont have iwconfig. it says command not found. but patch auto patches when u build the file with makepkg --asroot, right? and when i ifconfig, only eth0 (my ethernet) and lo come up. no eth1.

Last edited by danotto9797 (2009-08-22 21:00:16)

Offline

#5 2009-08-22 21:20:33

leprosys
Member
From: El Salvador
Registered: 2009-02-23
Posts: 75
Website

Re: issue building bcm4312 kernal part [Solved]

I have the same card. And this Works for me:

Compile the package as normal user:
$ wget http://aur.archlinux.org/packages/broad … -wl.tar.gz
$ tar -xf broadcom-wl.tar.gz
$ cd broadcom-wl
$ makepkg -s

# pacman -U broadcom-wl*
# pacman -S wireless_tools

in /etc/rc.conf add:

eth0="dhcp"
eth1="dhcp"
lo="lo 127.0.0.1"
INTERFACES=(eth0 eth1 lo)

MODULES=(... !b43 !ssb ...

And finally reboot.

Last edited by leprosys (2009-08-22 21:30:44)

Offline

#6 2009-08-22 23:25:58

danotto9797
Member
Registered: 2008-11-28
Posts: 12

Re: issue building bcm4312 kernal part [Solved]

it did it, and when i rebooted, ifconfig gave me eth1 eth0 and lo, but both eths had interupts. when i unplugged the ethernet cable, ping fails. so ethernet still works but wireless is still down. what modules do i have to keep and which ones do i get rid of. i have wl and lib80211_crypt_tkip.

Offline

#7 2009-08-22 23:43:05

csat
Member
From: Rio de Janeiro, Brazil
Registered: 2008-08-06
Posts: 93

Re: issue building bcm4312 kernal part [Solved]

danotto9797 wrote:

what modules do i have to keep and which ones do i get rid of. i have wl and lib80211_crypt_tkip.

According to what is written to Wiki I quoted below:

To make the module load at boot just add in rc.conf

MODULES=(lib80211_crypt_tkip wl !b43 !ssb ...


NOTE:  During installation process and while using Ethernet connection I use to pacman -S base-devel.

When I download the tarball file and unpack to a folder I only type as normal user makepkg -si at the same folder where PKGBUILD  file is recorded.  The makepkg -si calls all needed routine and install the package if no errors were found.


CSAT
Arch User

Offline

#8 2009-08-23 00:24:51

danotto9797
Member
Registered: 2008-11-28
Posts: 12

Re: issue building bcm4312 kernal part [Solved]

$ iwconfig
lo        no wireless extensions.

eth0      IEEE 802.11  Nickname:""
          Access Point: Not-Associated
          Link Quality:5  Signal level:0  Noise level:0
          Rx invalid nwid:0  invalid crypt:0  invalid misc:0

eth1      no wireless extensions.

Offline

#9 2009-08-23 00:52:43

csat
Member
From: Rio de Janeiro, Brazil
Registered: 2008-08-06
Posts: 93

Re: issue building bcm4312 kernal part [Solved]

Try as root

#iwlist

and

#iwlist scan


CSAT
Arch User

Offline

#10 2009-08-24 00:45:43

danotto9797
Member
Registered: 2008-11-28
Posts: 12

Re: issue building bcm4312 kernal part [Solved]

fixed

Offline

#11 2009-08-28 13:55:34

AnthonyAldo
Member
From: New York
Registered: 2009-08-27
Posts: 5
Website

Re: issue building bcm4312 kernal part [Solved]

I ran into a little problem while trying to pacman -U broadcom-wl* this was the error.

bash-4.0# pacman -U broadcom-wl*
loading package data...
error: error while reading package broadcom-wl.install: Unrecognized archive format
error: 'broadcom-wl.install': libarchive error

Last edited by AnthonyAldo (2009-08-28 13:55:55)

Offline

#12 2009-08-28 14:10:33

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: issue building bcm4312 kernal part [Solved]

AnthonyAldo - please take the time to read the wiki page, as others in this thread have done. You're trying to take a shortcut which is never going to work.

Offline

#13 2009-08-28 14:19:35

AnthonyAldo
Member
From: New York
Registered: 2009-08-27
Posts: 5
Website

Re: issue building bcm4312 kernal part [Solved]

tomk wrote:

AnthonyAldo - please take the time to read the wiki page, as others in this thread have done. You're trying to take a shortcut which is never going to work.

Indeed I did, and I also ran into the same problem the orginal poster came upon, then as I read the thread I tried out Leprosys method and then I posted the problem I ran into hoping some one might have a solution.

Offline

#14 2009-08-28 20:40:24

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: issue building bcm4312 kernal part [Solved]

My point is that you're issuing a dumb pacman command, with apparently no idea what the effect of that command will be. If you have actually built the broadcom-wl package, install it with pacman -U full_package_name_including_pkg.tar.gz - the error you've posted above is the result of pacman trying to install the broadcom-wl.install script. yikes

Offline

#15 2009-09-02 01:51:37

Inzombie
Member
Registered: 2009-09-01
Posts: 12

Re: issue building bcm4312 kernal part [Solved]

i have a HP dv4 and, i do all steps but don't works, the led still is in red


Archlinux! | gnome | x86_64 | Hp-dv4 |

Offline

Board footer

Powered by FluxBB