broadcom-sta compile reports broken system link?

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

broadcom-sta compile reports broken system link?

Post by globetrotterdk »

I am trying to build the broadcom-sta package for my wifi card on my Acer Aspire One 725. I have tried both with Sourcery and slapt-src, but in both cases, I get the following error:

Code: Select all

patching file src/wl/sys/wl_linux.c
make: *** /lib/modules/3.2.45/build: No such file or directory.  Stop.
fakeroot -- sh bpatching file src/wl/sys/wl_linux.c
make: *** /lib/modules/3.2.45/build: No such file or directory.  Stop.
fakeroot -- sh broadcom-sta.SlackBuild Failedroadcom-sta.SlackBuild Failed
The "build" link exists, but when I get "properties" by right clicking the link in Thunar, the system reports that the link is broken.

Is this a bug in Salix64 Xfce 14.0.1?
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: broadcom-sta compile reports broken system link?

Post by laprjns »

globetrotterdk wrote:Is this a bug in Salix64 Xfce 14.0.1?
No, you don't have kernel-source installed.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: broadcom-sta compile reports broken system link?

Post by globetrotterdk »

Since my last post, I performed a new install of Salix OS, confirmed that the kernel sources are installed (visual confirmation via Gslapt). I have just tried to perform building broadcom-sta again, and continue to recieve the same error message.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: broadcom-sta compile reports broken system link?

Post by laprjns »

globetrotterdk wrote:Since my last post, I performed a new install of Salix OS, confirmed that the kernel sources are installed (visual confirmation via Gslapt).
Did you install the kernel-source package after the new install of Salix, or just confirmed that it was installed. The kernel-source package is not included on the installation iso. You need to install it using gslapt or slapt-get.

Please post the output of "lls -l /lib/modules/3.2.45/build" This is what I get:

Code: Select all

root[rich]# ls -l /lib/modules/3.2.45/build
lrwxrwxrwx 1 root root 21 Jul 21 07:06 /lib/modules/3.2.45/build -> /usr/src/linux-3.2.45
Also "ls -l /usr/src/linux"

Code: Select all

root[rich]# ls -l /usr/src/linux
lrwxrwxrwx 1 root root 12 Aug  1 19:00 /usr/src/linux -> linux-3.2.45
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: broadcom-sta compile reports broken system link?

Post by globetrotterdk »

Here is the output:

Code: Select all

# ls -l /lib/modules/3.2.45/build
lrwxrwxrwx 1 root root 21 Aug  5 10:27 /lib/modules/3.2.45/build -> /usr/src/linux-3.2.45

Code: Select all

# ls -l /usr/src/linux
ls: cannot access /usr/src/linux: No such file or directory
OK, so according to this output, the kernel source wasn't included in the "full" install as you stated. Not sure why it shows up in Gslapt, but any who... I guess I can get the package by running:

Code: Select all

# slapt-get -i kernel-source
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: broadcom-sta compile reports broken system link?

Post by globetrotterdk »

OK, the broadcom-sta package compiled without errors as far as I could see, but I still don't have wireless working Here is some output:

Code: Select all

# uname -rv
3.2.45 #2 SMP Fri May 31 20:14:55 CDT 2013

Code: Select all

# lspci -knn | grep -EiA2 net
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
	Subsystem: Acer Incorporated [ALI] Device [1025:0740]
	Kernel driver in use: r8169
02:00.0 Network controller [0280]: Broadcom Corporation BCM43228 802.11a/b/g/n [14e4:4359]
	Subsystem: Foxconn International, Inc. Device [105b:e04b]
	Kernel driver in use: wl

Code: Select all

# dmesg|grep -Ei 'wlan|firmw|dhc'
[    0.326997] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
[    9.430634] psmouse serio2: elantech: assuming hardware version 3 (with firmware version 0x550f00)

Code: Select all

# sudo cat /var/log/syslog | grep -Ei 'net|wpa|dhc'
Aug  6 08:34:37 darkstar dhcpcd[2153]: dhcpcd not running
Aug  6 08:34:37 darkstar dhcpcd[2161]: dhcpcd not running
Aug  6 08:34:40 darkstar dhcpcd[2166]: eth0: sendmsg: Cannot assign requested address
Aug  6 13:26:06 stealth dhcpcd[2040]: dhcpcd not running
Aug  6 13:26:07 stealth dhcpcd[2048]: dhcpcd not running
Aug  6 13:26:09 stealth dhcpcd[2053]: eth0: sendmsg: Cannot assign requested address
Aug  6 13:52:05 stealth dhcpcd[2077]: dhcpcd not running
Aug  6 13:52:05 stealth dhcpcd[2085]: dhcpcd not running
Aug  6 13:52:08 stealth dhcpcd[2090]: eth0: sendmsg: Cannot assign requested address

Code: Select all

# rfkill list
0: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: acer-bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no
2: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6244
Joined: 6. Jun 2009, 17:40

Re: broadcom-sta compile reports broken system link?

Post by gapan »

Did you actually load the module that you built? And blacklisted the ones you don't need?
Image
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: broadcom-sta compile reports broken system link?

Post by globetrotterdk »

gapan wrote:Did you actually load the module that you built? And blacklisted the ones you don't need?
Hi gapan,

I assume you are asking if I ran "modprobe -v broadcom-sta"? I thought the module would load automatically on a reboot. Not sure if there are any modules I need to blacklist. To blacklist a module, I would need to run "echo "blacklist module" >> /etc/modprobe.d/blacklist.conf" correct?

--Edit--
Hmm. broadcom-sta is listed in Gslapt, but when I ran modprobe, I got the following:

Code: Select all

# modprobe -v broadcom-sta
FATAL: Module broadcom-sta not found.
--Edit--
I found some documentation on Ubuntu's site that listed the module for the BCM43228 chipset to be "wl", so I ran:

Code: Select all

# modprobe -v wl
There were no errors. Still no list of wireless nodes in Wicd. I guess I still need to blacklist something.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: broadcom-sta compile reports broken system link?

Post by laprjns »

How about this; http://www.broadcom.com/docs/linux_sta/README.txt
Scroll down to "Fresh installation"
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: broadcom-sta compile reports broken system link?

Post by globetrotterdk »

laprjns wrote:How about this; http://www.broadcom.com/docs/linux_sta/README.txt
Scroll down to "Fresh installation"
Thanks for the heads-up. My output is as follows:

Code: Select all

# lsmod  | grep "b43\|ssb\|bcma\|wl"
wl                   2535133  0 
lib80211                3877  2 wl,lib80211_crypt_tkip
I am not sure if I am reading this correctly, but it looks to me as if everything is as it is supposed to be.
Military justice is to justice what military music is to music. - Groucho Marx
Post Reply