LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2024, 07:09 PM   #1
hdnewb
LQ Newbie
 
Registered: Jan 2024
Posts: 1

Rep: Reputation: 0
Kali Linux | No Wifi | BCM 4360


Hello,

I have recently installed Kali Linux on a Macbook Air 2017. Everything on Kali works except for the wifi. I have been trying for a couple of days now but i have had no luck following others solutions as I am getting different errors.

Below I will post the results i get from commands to better help you understand my problem. For the iwconfig command, the wlan0 shows up because i have plugged in an external wifi usb stick. All help is appreciated.

└─# lspci -nnk | grep -i net -A2
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4360 802.11ac Dual Band Wireless Network Adapter [14e4:43a0] (rev 03)
Subsystem: Apple Inc. BCM4360 802.11ac Dual Band Wireless Network Adapter [106b:0117]
Kernel driver in use: bcma-pci-bridge
Kernel modules: bcma

└─# iwconfig
lo no wireless extensions.

wlan0 IEEE 802.11 ESSID:"TELUS0404-2.4G"
Mode:Managed Frequency:2.437 GHz Access Point: FC:2B:B2:AD:4B:32
Bit Rate=52 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementn
Link Quality=69/70 Signal level=-41 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:10 Invalid misc:0 Missed beacon:0

└─# rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy3: Wireless LAN
Soft blocked: no
Hard blocked: no

my /etc/apt/sources.list
i added the debian buster because i could not find the broadcom-sta-dkms package any other way

deb http::/http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
deb http::/httpredir.debian.org/debian buster main-contrib non-free

└─# apt-get update
Hit:1 http://kali.download/kali kali-rolling InRelease
Get:2 http://httpredir.debian.org/debian buster InRelease [122 kB]
Get:3 http://httpredir.debian.org/debian buster/main amd64 Packages [7909 kB]
Get:4 http://httpredir.debian.org/debian buster/main Translation-en [5969 kB]
Get:5 http://httpredir.debian.org/debian buster/main amd64 Contents (deb) [37.8 MB]
Get:6 http://httpredir.debian.org/debian buster/contrib amd64 Packages [50.1 kB]
Get:7 http://httpredir.debian.org/debian buster/contrib Translation-en [44.2 kB]
Get:8 http://httpredir.debian.org/debian buster/contrib amd64 Contents (deb) [103 kB]
Get:9 http://httpredir.debian.org/debian buster/non-free amd64 Packages [87.8 kB]
Get:10 http://httpredir.debian.org/debian buster/non-free Translation-en [88.9 kB]
Get:11 http://httpredir.debian.org/debian buster/non-free amd64 Contents (deb) [861 kB]
Fetched 53.0 MB in 17s (3059 kB/s)
Reading package lists... Done

└─# apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-image-amd64 is already the newest version (6.5.6-1kali1).
linux-headers-amd64 is already the newest version (6.5.6-1kali1).
broadcom-sta-dkms is already the newest version (6.30.223.271-10).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up broadcom-sta-dkms (6.30.223.271-10) ...
Removing old broadcom-sta-6.30.223.271 DKMS files...
Deleting module broadcom-sta-6.30.223.271 completely from the DKMS tree.
Loading new broadcom-sta-6.30.223.271 DKMS files...
Deprecated feature: REMAKE_INITRD (/usr/src/broadcom-sta-6.30.223.271/dkms.conf)
Building for 6.5.0-kali3-amd64
Building initial module for 6.5.0-kali3-amd64
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/broadcom-sta/6.30.223.271/source/dkms.conf)
Error! Bad return status for module build on kernel: 6.5.0-kali3-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
dpkg: error processing package broadcom-sta-dkms (--configure):
installed broadcom-sta-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
broadcom-sta-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

└─# cat /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
DKMS make.log for broadcom-sta-6.30.223.271 for kernel 6.5.0-kali3-amd64 (x86_64)
Sat Jan 13 17:04:17 PST 2024
/bin/sh: 1: [: Illegal number:
/bin/sh: 1: [: Illegal number:
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
KBUILD_NOPEDANTIC=1 make -C /lib/modules/6.5.0-kali3-amd64/build M=`pwd`
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-kali3-amd64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
CC [M] /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_dma_alloc_consistent’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:603:14: error: implicit declaration of function ‘pci_alloc_consistent’; did you mean ‘osl_dma_alloc_consistent’? [-Werror=implicit-function-declaration]
603 | va = pci_alloc_consistent(osh->pdev, size, (dma_addr_t*)pap);
| ^~~~~~~~~~~~~~~~~~~~
| osl_dma_alloc_consistent
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:603:12: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
603 | va = pci_alloc_consistent(osh->pdev, size, (dma_addr_t*)pap);
| ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_dma_free_consistent’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:616:9: error: implicit declaration of function ‘pci_free_consistent’; did you mean ‘osl_dma_free_consistent’? [-Werror=implicit-function-declaration]
616 | pci_free_consistent(osh->pdev, size, va, (dma_addr_t)pa);
| ^~~~~~~~~~~~~~~~~~~
| osl_dma_free_consistent
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_dma_map’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:626:38: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function); did you mean ‘DMA_TO_DEVICE’?
626 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE;
| ^~~~~~~~~~~~~~~~
| DMA_TO_DEVICE
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:626:38: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:626:56: error: ‘PCI_DMA_FROMDEVICE’ undeclared (first use in this function); did you mean ‘DMA_FROM_DEVICE’?
626 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE;
| ^~~~~~~~~~~~~~~~~~
| DMA_FROM_DEVICE
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:659:17: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration]
659 | return (pci_map_single(osh->pdev, va, size, dir));
| ^~~~~~~~~~~~~~
| dma_map_single
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_dma_unmap’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:668:38: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function); did you mean ‘DMA_TO_DEVICE’?
668 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE;
| ^~~~~~~~~~~~~~~~
| DMA_TO_DEVICE
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:668:56: error: ‘PCI_DMA_FROMDEVICE’ undeclared (first use in this function); did you mean ‘DMA_FROM_DEVICE’?
668 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE;
| ^~~~~~~~~~~~~~~~~~
| DMA_FROM_DEVICE
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:669:9: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
669 | pci_unmap_single(osh->pdev, (uint32)pa, size, dir);
| ^~~~~~~~~~~~~~~~
| dma_unmap_single
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_reg_map’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:949:17: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
949 | return (ioremap_nocache((unsigned long)pa, (unsigned long)size));
| ^~~~~~~~~~~~~~~
| ioremap_cache
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:949:17: warning: returning ‘int’ from a function with return type ‘void *’ makes pointer from integer without a cast [-Wint-conversion]
949 | return (ioremap_nocache((unsigned long)pa, (unsigned long)size));
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-6.5.0-kali3-common/scripts/Makefile.build:248: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-kali3-common/Makefile:2059: /var/lib/dkms/broadcom-sta/6.30.223.271/build] Error 2
make[1]: *** [/usr/src/linux-headers-6.5.0-kali3-common/Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-kali3-amd64'
make: *** [Makefile:177: all] Error 2

└─# dpkg --configure -a
Setting up broadcom-sta-dkms (6.30.223.271-10) ...
Removing old broadcom-sta-6.30.223.271 DKMS files...
Deleting module broadcom-sta-6.30.223.271 completely from the DKMS tree.
Loading new broadcom-sta-6.30.223.271 DKMS files...
Deprecated feature: REMAKE_INITRD (/usr/src/broadcom-sta-6.30.223.271/dkms.conf)
Building for 6.5.0-kali3-amd64
Building initial module for 6.5.0-kali3-amd64
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/broadcom-sta/6.30.223.271/source/dkms.conf)
Error! Bad return status for module build on kernel: 6.5.0-kali3-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
dpkg: error processing package broadcom-sta-dkms (--configure):
installed broadcom-sta-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
broadcom-sta-dkms
 
Old 01-14-2024, 05:19 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,612

Rep: Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515
The most frequent problem seen with newer users of Kali is the failure to read the documentation to know that networking is disabled by default. You indicate everything works except wifi so that means your ethernet works. You may need to wait for a response as you are using Apple hardware and Broadcom network card which has always been problematic with Linux.

https://www.kali.org/docs/policy/kal...ervice-policy/
 
Old 01-14-2024, 06:01 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,132

Rep: Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374
additionally: https://www.linuxquestions.org/quest...ad-4175614092/
 
  


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
Making Broadcom 4360 work under OpenSUSE Tumbleweed PasBern Linux - Networking 14 05-29-2023 12:08 PM
fcitx-mozc (2.26.4360.102.1) J_W Slackware 0 08-05-2021 02:48 PM
[SOLVED] Kali Linux | No Wifi | Macbook | BCM 4360 agrestical Linux - Newbie 14 02-29-2016 04:30 PM
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 05:10 AM
aspire 3003Wlci w/ bcm 4318 wifi jdpeek0 Linux - Wireless Networking 4 02-19-2006 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:21 PM.

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