How to install driver for broadcom 43142

android@clr-50a01fd7a99d4be5943228b14a687e41~ $ lspci -nn |grep Broadcom
06:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
android@clr-50a01fd7a99d4be5943228b14a687e41~/broadcom-wl $ make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/usr/lib/modules/5.2.11-829.native/build'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /home/android/broadcom-wl/src/shared/linux_osl.o
  CC [M]  /home/android/broadcom-wl/src/wl/sys/wl_linux.o
In file included from ./include/linux/bitmap.h:9,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:21,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:10,
                 from /home/android/broadcom-wl/src/include/linuxver.h:40,
                 from /home/android/broadcom-wl/src/wl/sys/wl_linux.c:27:
In function ‘strncpy’,
    inlined from ‘_wl_add_monitor_if’ at /home/android/broadcom-wl/src/wl/sys/wl_linux.c:2990:2:
./include/linux/string.h:260:9: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  260 |  return __builtin_strncpy(p, q, size);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/android/broadcom-wl/src/wl/sys/wl_linux.c: In function ‘_wl_add_monitor_if’:
./include/linux/string.h:281:10: note: length computed here
  281 |   return __builtin_strlen(p);
      |          ^~~~~~~~~~~~~~~~~~~
  CC [M]  /home/android/broadcom-wl/src/wl/sys/wl_iw.o
  CC [M]  /home/android/broadcom-wl/src/wl/sys/wl_cfg80211_hybrid.o
  LD [M]  /home/android/broadcom-wl/wl.o
  Building modules, stage 2.
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  MODPOST 1 modules
  CC      /home/android/broadcom-wl/wl.mod.o
  LD [M]  /home/android/broadcom-wl/wl.ko
make[1]: Leaving directory '/usr/lib/modules/5.2.11-829.native/build'
android@clr-50a01fd7a99d4be5943228b14a687e41~/broadcom-wl $ sudo make install
Password: 
install -D -m 755 wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
android@clr-50a01fd7a99d4be5943228b14a687e41~/broadcom-wl $ modprobe wl
modprobe: ERROR: could not insert 'wl': Operation not permitted
android@clr-50a01fd7a99d4be5943228b14a687e41~/broadcom-wl $ sudo modprobe wl
modprobe: ERROR: could not insert 'wl': Required key not available
android@clr-50a01fd7a99d4be5943228b14a687e41~/broadcom-wl $ modprobe -r bcma
modprobe: ERROR: could not remove 'bcma': Operation not permitted
android@clr-50a01fd7a99d4be5943228b14a687e41~/broadcom-wl $ sudo modprobe -r bcma
android@clr-50a01fd7a99d4be5943228b14a687e41~/broadcom-wl $ sudo -s
root@clr-50a01fd7a99d4be5943228b14a687e41/home/android/broadcom-wl # echo "blacklist bcma" > /etc/modprobe.d/broadcom.conf
bash: /etc/modprobe.d/broadcom.conf: No such file or directory
root@clr-50a01fd7a99d4be5943228b14a687e41/home/android/broadcom-wl # echo "wl" > /etc/modules-load.d/wl.conf
bash: /etc/modules-load.d/wl.conf: No such file or directory
root@clr-50a01fd7a99d4be5943228b14a687e41/home/android/broadcom-wl # depmod -a
root@clr-50a01fd7a99d4be5943228b14a687e41/home/android/broadcom-wl # modprobe wl
modprobe: ERROR: could not insert 'wl': Required key not available
root@clr-50a01fd7a99d4be5943228b14a687e41/home/android/broadcom-wl # 

now what next?

frustrated


no help here

# echo "blacklist bcma" > /etc/modprobe.d/broadcom.conf
bash: /etc/modprobe.d/broadcom.conf: No such file or directory

# echo "wl" > /etc/modules-load.d/wl.conf
bash: /etc/modules-load.d/wl.conf: No such file or directory

You need to create the directory with mkdir -p /etc/modprobe.d /etc/modules-load.d before running these commands.

# modprobe wl
modprobe: ERROR: could not insert 'wl': Required key not available

For out-of-tree modules you will need to disable module signature enforcement as described here:
https://docs.01.org/clearlinux/latest/guides/kernel/kernel-modules.html#load-kernel-module

That should get the module to load but you’ll also need the right firmware as described in the links you posted.

@puneetse ok i am better off my wifi card for now then. until clear linux user repository will come someday.

android@clr~ $ sudo modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/5.2.13-832.native

complete noob here :sweat_smile:

I got those folders created.

android@clr~ $ sudo mkdir -p /etc/kernel/cmdline.d
Password: 
android@clr~ $ echo "module.sig_unenforce" | sudo tee /etc/kernel/cmdline.d/allow-unsigned-modules.conf
module.sig_unenforce
android@clr~ $ sudo clr-boot-manager update
android@clr~ $ sudo reboot
android@clr~ $ locate wl.ko
/etc/firmware/wl.ko
/home/android/broadcom-wl/.wl.ko.cmd
/home/android/broadcom-wl/wl.ko
/usr/lib/modules/5.2.13-832.native/wl.ko


android@clr~ $ sudo insmod /etc/firmware/wl.ko
insmod: ERROR: could not insert module /etc/firmware/wl.ko: Invalid module format

i copied that .ko everywhere :slight_smile:

The broadcom wireless cards pose an additional challenge because of the proprietary nature and different combinations of driver+firmware required depending on the card. So don’t feel too bad figuring this out :slight_smile:

/lib/modules/5.2.13-832.native/kernel/drivers/net/wireless/wl.ko is the right path for that. It should be already placed there if you ran make install.

You don’t want the kernel module (driver) in /etc/firmware. That’s where extra firmware files go.

After you have the module in the right path, reboot. modinfo wl should output some information at this point. If your card isn’t working, check the output of sudo dmesg.

android@clr~/broadcom-wl $ make clean
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd` clean
make[1]: Entering directory '/usr/lib/modules/5.2.14-833.native/build'
CFG80211 API is prefered for this kernel version
/home/android/broadcom-wl/Makefile:99: Neither CFG80211 nor Wireless Extension is enabled in kernel
  CLEAN   /home/android/broadcom-wl/.tmp_versions
  CLEAN   /home/android/broadcom-wl/Module.symvers
make[1]: Leaving directory '/usr/lib/modules/5.2.14-833.native/build'
android@clr~/broadcom-wl $ make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/usr/lib/modules/5.2.14-833.native/build'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /home/android/broadcom-wl/src/shared/linux_osl.o
  CC [M]  /home/android/broadcom-wl/src/wl/sys/wl_linux.o
In file included from ./include/linux/bitmap.h:9,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:21,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:10,
                 from /home/android/broadcom-wl/src/include/linuxver.h:40,
                 from /home/android/broadcom-wl/src/wl/sys/wl_linux.c:27:
In function ‘strncpy’,
    inlined from ‘_wl_add_monitor_if’ at /home/android/broadcom-wl/src/wl/sys/wl_linux.c:2990:2:
./include/linux/string.h:260:9: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  260 |  return __builtin_strncpy(p, q, size);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/android/broadcom-wl/src/wl/sys/wl_linux.c: In function ‘_wl_add_monitor_if’:
./include/linux/string.h:281:10: note: length computed here
  281 |   return __builtin_strlen(p);
      |          ^~~~~~~~~~~~~~~~~~~
  CC [M]  /home/android/broadcom-wl/src/wl/sys/wl_iw.o
  CC [M]  /home/android/broadcom-wl/src/wl/sys/wl_cfg80211_hybrid.o
  LD [M]  /home/android/broadcom-wl/wl.o
  Building modules, stage 2.
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  MODPOST 1 modules
  CC      /home/android/broadcom-wl/wl.mod.o
  LD [M]  /home/android/broadcom-wl/wl.ko
make[1]: Leaving directory '/usr/lib/modules/5.2.14-833.native/build'
android@clr~/broadcom-wl $ sudo make install
install -D -m 755 wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
android@clr~/broadcom-wl $ sudo cp wl.ko /lib/modules/5.2.13-832.native/kernel/drivers/net/wireless
android@clr~/broadcom-wl $ sudo modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/5.2.14-833.native
android@clr~/broadcom-wl $ sudo cp wl.ko /lib/modules/5.2.14-832.native/kernel/drivers/net/wireless
cp: cannot create regular file '/lib/modules/5.2.14-832.native/kernel/drivers/net/wireless': No such file or directory
android@clr~/broadcom-wl $ sudo cp wl.ko /lib/modules/5.2.14-833.native/kernel/drivers/net/wireless
android@clr~/broadcom-wl $ sudo modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/5.2.14-833.native
android@clr~/broadcom-wl $ sudo dmesg
[    0.192910] pci 0000:00:1c.5: Enabling MPC IRBNCE
[    0.192912] pci 0000:00:1c.5: Intel PCH root port ACS workaround enabled
[    0.193053] pci 0000:00:1d.0: [8086:1e26] type 00 class 0x0c0320
[    0.193078] pci 0000:00:1d.0: reg 0x10: [mem 0xf7d17000-0xf7d173ff]

[    0.640785] sd 0:0:0:0: [sda] Write Protect is off
[    0.640787] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    0.640817] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.641260] scsi 4:0:0:0: CD-ROM            HL-DT-ST DVD+-RW GU70N    A103 PQ: 0 ANSI: 5
[    0.656227] probe of 4:0:0:0 returned 0 after 5 usecs
[    0.656333] scsi 4:0:0:0: Attached scsi generic sg1 type 5
[    0.704235] usb 1-1: new high-speed USB device number 2 using ehci-pci
[    0.720235] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[    0.720258] usb 2-1: new high-speed USB device number 2 using ehci-pci
[    0.746883]  sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8
[    0.747468] sd 0:0:0:0: [sda] Attached SCSI disk
[    0.833025] usb 1-1: New USB device found, idVendor=8087, idProduct=0024, bcdDevice= 0.00
[    0.833027] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    0.833455] hub 1-1:1.0: USB hub found
[    0.833654] hub 1-1:1.0: 6 ports detected
[    0.835226] probe of 1-1:1.0 returned 1 after 1778 usecs
[    0.835256] probe of 1-1 returned 1 after 2133 usecs
[    0.848784] usb 2-1: New USB device found, idVendor=8087, idProduct=0024, bcdDevice= 0.00
[    0.848786] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    0.849130] hub 2-1:1.0: USB hub found
[    0.849372] hub 2-1:1.0: 6 ports detected

[    6.237349] probe of 0000:00:1f.3 returned 1 after 1068 usecs
[    6.237371] initcall i2c_i801_init+0x0/0x1000 [i2c_i801] returned 0 after 1079 usecs
[    6.255094] calling  acpi_thermal_init+0x0/0x1000 [thermal] @ 321
[    6.265789] calling  init_soundcore+0x0/0x1000 [soundcore] @ 317
[    6.265803] initcall init_soundcore+0x0/0x1000 [soundcore] returned 0 after 9 usecs
[    6.269486] calling  mei_me_driver_init+0x0/0x1000 [mei_me] @ 318
[    6.269532] initcall mei_me_driver_init+0x0/0x1000 [mei_me] returned 0 after 39 usecs
[    6.272669] thermal LNXTHERM:00: registered as thermal_zone1
[    6.272671] ACPI: Thermal Zone [THM] (60 C)
[    6.272694] probe of LNXTHERM:00 returned 1 after 17462 usecs
[    6.272708] initcall acpi_thermal_init+0x0/0x1000 [thermal] returned 0 after 3141 usecs
[    6.275287] probe of 0000:00:16.0 returned 1 after 5775 usecs
[    6.289292] calling  alsa_sound_init+0x0/0x93 [snd] @ 317
[    6.289307] initcall alsa_sound_init+0x0/0x93 [snd] returned 0 after 9 usecs
[    6.294206] calling  acpi_wmi_init+0x0/0x1000 [wmi] @ 329
[    6.294330] wmi_bus wmi_bus-PNP0C14:00: WQBC data block query control method not found
[    6.294454] probe of PNP0C14:00 returned 1 after 205 usecs
[    6.294473] initcall acpi_wmi_init+0x0/0x1000 [wmi] returned 0 after 256 usecs
[    6.332347] calling  alsa_timer_init+0x0/0x1000 [snd_timer] @ 317
[    6.332405] initcall alsa_timer_init+0x0/0x1000 [snd_timer] returned 0 after 51 usecs
[    6.345393] calling  cdrom_init+0x0/0x1000 [cdrom] @ 329
[    6.345404] initcall cdrom_init+0x0/0x1000 [cdrom] returned 0 after 5 usecs
[    6.351777] calling  alsa_pcm_init+0x0/0x75 [snd_pcm] @ 317
[    6.351787] initcall alsa_pcm_init+0x0/0x75 [snd_pcm] returned 0 after 3 usecs
[    6.408911] calling  alsa_hwdep_init+0x0/0x1000 [snd_hwdep] @ 317
[    6.408919] initcall alsa_hwdep_init+0x0/0x1000 [snd_hwdep] returned 0 after 4 usecs
[    6.431689] calling  init_sr+0x0/0x1000 [sr_mod] @ 329
[    6.448000] calling  hda_bus_init+0x0/0x14 [snd_hda_core] @ 317
[    6.448014] initcall hda_bus_init+0x0/0x14 [snd_hda_core] returned 0 after 8 usecs
[    6.457187] sr 4:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[    6.457190] cdrom: Uniform CD-ROM driver Revision: 3.20
[    6.457331] sr 4:0:0:0: Attached scsi CD-ROM sr0
[    6.457340] probe of 4:0:0:0 returned 1 after 25641 usecs
[    6.457354] initcall init_sr+0x0/0x1000 [sr_mod] returned 0 after 9129 usecs
[    6.459753] calling  phy_init+0x0/0x2c1 [libphy] @ 325
[    6.459786] initcall phy_init+0x0/0x2c1 [libphy] returned 0 after 26 usecs
[    6.475080] calling  phy_module_init+0x0/0x1000 [realtek] @ 325
[    6.475148] initcall phy_module_init+0x0/0x1000 [realtek] returned 0 after 62 usecs
[    6.478144] calling  azx_driver_init+0x0/0xfc6 [snd_hda_intel] @ 317
[    6.478185] snd_hda_intel 0000:00:1b.0: enabling device (0000 -> 0002)
[    6.478358] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops)
[    6.478495] probe of 0000:00:1b.0 returned 1 after 337 usecs
[    6.478514] initcall azx_driver_init+0x0/0xfc6 [snd_hda_intel] returned 0 after 356 usecs
[    6.610213] calling  ledtrig_audio_init+0x0/0x1000 [ledtrig_audio] @ 349
[    6.610219] initcall ledtrig_audio_init+0x0/0x1000 [ledtrig_audio] returned 0 after 2 usecs
[    6.630900] calling  generic_driver_init+0x0/0x1000 [snd_hda_codec_generic] @ 349
[    6.630925] initcall generic_driver_init+0x0/0x1000 [snd_hda_codec_generic] returned 0 after 18 usecs
[    6.635161] calling  i8k_init+0x0/0xd17 [dell_smm_hwmon] @ 327
[    6.647483] initcall i8k_init+0x0/0xd17 [dell_smm_hwmon] returned 0 after 12028 usecs
[    6.652317] calling  realtek_driver_init+0x0/0x1000 [snd_hda_codec_realtek] @ 349
[    6.652816] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3221: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    6.652817] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    6.652819] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    6.652820] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    6.652821] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    6.652822] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
[    6.652823] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[    6.660426] probe of hdaudioC0D0 returned 1 after 8093 usecs
[    6.660458] initcall realtek_driver_init+0x0/0x1000 [snd_hda_codec_realtek] returned 0 after 7938 usecs
[    6.725570] calling  dcdbas_init+0x0/0x1000 [dcdbas] @ 327
[    6.725653] dcdbas dcdbas: Dell Systems Management Base Driver (version 5.6.0-3.3)
[    6.725664] probe of dcdbas returned 1 after 28 usecs
[    6.725669] initcall dcdbas_init+0x0/0x1000 [dcdbas] returned 0 after 92 usecs
[    6.848349] calling  rtl8169_pci_driver_init+0x0/0x1000 [r8169] @ 325
[    6.848382] r8169 0000:09:00.0: can't disable ASPM; OS doesn't have ASPM control
[    6.850191] libphy: r8169: probed
[    6.850351] r8169 0000:09:00.0 eth0: RTL8105e, e0:db:55:a6:39:99, XID 40c, IRQ 34
[    6.850365] probe of 0000:09:00.0 returned 1 after 2001 usecs
[    6.850383] initcall rtl8169_pci_driver_init+0x0/0x1000 [r8169] returned 0 after 1979 usecs
[    6.858757] calling  hdmi_driver_init+0x0/0x1000 [snd_hda_codec_hdmi] @ 354
[    6.859622] probe of hdaudioC0D3 returned 1 after 856 usecs
[    6.859636] initcall hdmi_driver_init+0x0/0x1000 [snd_hda_codec_hdmi] returned 0 after 853 usecs
[    6.860686] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[    6.860743] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[    6.860803] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[    7.010298] calling  serio_raw_drv_init+0x0/0x1000 [serio_raw] @ 325
[    7.010315] initcall serio_raw_drv_init+0x0/0x1000 [serio_raw] returned 0 after 12 usecs
[    7.067497] calling  logi_djreceiver_driver_init+0x0/0x1000 [hid_logitech_dj] @ 320
[    7.067801] probe of 0003:046D:C52F.0001 returned 0 after 14 usecs
[    7.067949] logitech-djreceiver 0003:046D:C52F.0001: hidraw0: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-3/input0
[    7.069855] calling  rfkill_init+0x0/0x120 [rfkill] @ 327
[    7.069916] initcall rfkill_init+0x0/0x120 [rfkill] returned 0 after 55 usecs
[    7.075989] calling  atkbd_init+0x0/0xfbc [atkbd] @ 325
[    7.076009] initcall atkbd_init+0x0/0xfbc [atkbd] returned 0 after 16 usecs
[    7.092867] calling  rtsx_usb_driver_init+0x0/0x1000 [rtsx_usb] @ 321
[    7.095599] probe of 1-1.3:1.0 returned 1 after 2712 usecs
[    7.095630] usbcore: registered new interface driver rtsx_usb
[    7.095636] initcall rtsx_usb_driver_init+0x0/0x1000 [rtsx_usb] returned 0 after 2698 usecs
[    7.098911] calling  psmouse_init+0x0/0x91 [psmouse] @ 325
[    7.098963] initcall psmouse_init+0x0/0x91 [psmouse] returned 0 after 41 usecs
[    7.099560] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input12
[    7.099632] probe of serio0 returned 1 after 23616 usecs
[    7.103432] probe of serio1 returned 0 after 3794 usecs
[    7.119254] probe of 0003:046D:C52F.0001 returned 1 after 51445 usecs
[    7.119269] calling  media_devnode_init+0x0/0x1000 [media] @ 314
[    7.119270] media: Linux media interface: v0.10
[    7.119293] initcall media_devnode_init+0x0/0x1000 [media] returned 0 after 17 usecs
[    7.119667] probe of 0003:046D:C52F.0002 returned 0 after 10 usecs
[    7.119855] logitech-djreceiver 0003:046D:C52F.0002: hiddev96,hidraw1: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-3/input1
[    7.140399] calling  mei_hdcp_driver_init+0x0/0x1000 [mei_hdcp] @ 325
[    7.142912] probe of mei::b638ab7e-94e2-4ea2-a552-d1c54b627f04:01 returned 1 after 2501 usecs
[    7.142937] initcall mei_hdcp_driver_init+0x0/0x1000 [mei_hdcp] returned 0 after 2474 usecs
[    7.154308] calling  usbnet_init+0x0/0x1000 [usbnet] @ 328
[    7.154314] initcall usbnet_init+0x0/0x1000 [usbnet] returned 0 after 1 usecs
[    7.171486] probe of 0003:046D:C52F.0002 returned 1 after 51811 usecs
[    7.171505] initcall logi_djreceiver_driver_init+0x0/0x1000 [hid_logitech_dj] returned 0 after 16784 usecs
[    7.172269] logitech-djreceiver 0003:046D:C52F.0002: device of type eQUAD step 4 DJ (0x04) connected on slot 1
[    7.172753] input: Logitech Wireless Mouse PID:4057 Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.1/0003:046D:C52F.0002/0003:046D:4057.0003/input/input15
[    7.172934] input: Logitech Wireless Mouse PID:4057 Consumer Control as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.1/0003:046D:C52F.0002/0003:046D:4057.0003/input/input16
[    7.173022] hid-generic 0003:046D:4057.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech Wireless Mouse PID:4057] on usb-0000:00:14.0-3/input1:1
[    7.173035] probe of 0003:046D:4057.0003 returned 1 after 665 usecs
[    7.180412] calling  videodev_init+0x0/0x8a [videodev] @ 314
[    7.180414] videodev: Linux video capture interface: v2.00
[    7.180437] initcall videodev_init+0x0/0x8a [videodev] returned 0 after 12 usecs
[    7.181425] calling  cdc_driver_init+0x0/0x1000 [cdc_ether] @ 328
[    7.181457] usbcore: registered new interface driver cdc_ether
[    7.181460] initcall cdc_driver_init+0x0/0x1000 [cdc_ether] returned 0 after 30 usecs
[    7.186021] calling  dell_wmi_descriptor_driver_init+0x0/0x1000 [dell_wmi_descriptor] @ 325
[    7.189671] calling  rndis_driver_init+0x0/0x1000 [rndis_host] @ 328
[    7.190001] probe of 8D9DDCBC-A997-11DA-B012-B622A1EF5492 returned 1 after 3971 usecs
[    7.190025] initcall dell_wmi_descriptor_driver_init+0x0/0x1000 [dell_wmi_descriptor] returned 0 after 340 usecs
[    7.192879] rndis_host 3-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, 1e:dc:5c:5b:24:a7
[    7.192901] probe of 3-1:1.0 returned 1 after 3218 usecs
[    7.192924] usbcore: registered new interface driver rndis_host
[    7.192929] initcall rndis_driver_init+0x0/0x1000 [rndis_host] returned 0 after 3176 usecs
[    7.194924] calling  joydev_init+0x0/0x1000 [joydev] @ 324
[    7.194931] initcall joydev_init+0x0/0x1000 [joydev] returned 0 after 3 usecs
[    7.236310] calling  dell_smbios_init+0x0/0xf52 [dell_smbios] @ 327
[    7.236412] probe of dell-smbios.0 returned 1 after 18 usecs
[    7.236451] dell-smbios A80593CE-A997-11DA-B012-B622A1EF5492: WMI SMBIOS userspace interface not supported(0), try upgrading to a newer BIOS
[    7.236465] probe of A80593CE-A997-11DA-B012-B622A1EF5492 returned 1 after 31 usecs
[    7.236548] initcall dell_smbios_init+0x0/0xf52 [dell_smbios] returned 0 after 227 usecs
[    7.275957] calling  wmi_bmof_driver_init+0x0/0x1000 [wmi_bmof] @ 321
[    7.276024] probe of 05901221-D566-11D1-B2F0-00A0C9062910 returned 1 after 53 usecs
[    7.276037] initcall wmi_bmof_driver_init+0x0/0x1000 [wmi_bmof] returned 0 after 74 usecs
[    7.279966] calling  dell_init+0x0/0x903 [dell_laptop] @ 327
[    7.280061] probe of dell-laptop returned 1 after 20 usecs
[    7.285585] initcall dell_init+0x0/0x903 [dell_laptop] returned 0 after 5478 usecs
[    7.291746] Adding 249852k swap on /dev/sda2.  Priority:-2 extents:1 across:249852k FS
[    7.330771] calling  memstick_init+0x0/0x1000 [memstick] @ 321
[    7.330851] initcall memstick_init+0x0/0x1000 [memstick] returned 0 after 73 usecs
[    7.332561] calling  dell_wmi_init+0x0/0xff3 [dell_wmi] @ 320
[    7.332720] input: Dell WMI hotkeys as /devices/platform/PNP0C14:00/wmi_bus/wmi_bus-PNP0C14:00/9DBB5994-A997-11DA-B012-B622A1EF5492/input/input20
[    7.332797] probe of 9DBB5994-A997-11DA-B012-B622A1EF5492 returned 1 after 221 usecs
[    7.332815] initcall dell_wmi_init+0x0/0xff3 [dell_wmi] returned 0 after 243 usecs
[    7.341486] calling  uvc_init+0x0/0x1000 [uvcvideo] @ 314
[    7.343820] uvcvideo: Found UVC 1.00 device Laptop_Integrated_Webcam_HD (0bda:58c2)
[    7.344090] calling  rtsx_usb_ms_driver_init+0x0/0x1000 [rtsx_usb_ms] @ 321
[    7.344434] probe of rtsx_usb_ms.2.auto returned 1 after 324 usecs
[    7.344452] initcall rtsx_usb_ms_driver_init+0x0/0x1000 [rtsx_usb_ms] returned 0 after 349 usecs
[    7.354668] r8169 0000:09:00.0 enp9s0: renamed from eth0
[    7.356636] uvcvideo 1-1.6:1.0: Entity type for entity Extension 5 was not initialized!
[    7.356640] uvcvideo 1-1.6:1.0: Entity type for entity Extension 8 was not initialized!
[    7.356642] uvcvideo 1-1.6:1.0: Entity type for entity Extension 2 was not initialized!
[    7.356644] uvcvideo 1-1.6:1.0: Entity type for entity Processing 3 was not initialized!
[    7.356646] uvcvideo 1-1.6:1.0: Entity type for entity Camera 1 was not initialized!
[    7.356754] input: Laptop_Integrated_Webcam_HD: In as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/input/input21
[    7.356821] probe of 1-1.6:1.0 returned 1 after 15306 usecs
[    7.356848] usbcore: registered new interface driver uvcvideo
[    7.356849] USB Video Class driver (1.1.1)
[    7.356860] initcall uvc_init+0x0/0x1000 [uvcvideo] returned 0 after 12459 usecs
[    7.367017] rndis_host 3-1:1.0 enp0s20u1: renamed from usb0
[    7.378037] calling  hidpp_driver_init+0x0/0x1000 [hid_logitech_hidpp] @ 321
[    7.379410] probe of 0003:046D:4057.0003 returned 0 after 15 usecs
[    7.384528] input: Logitech B330/M330/M3 as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.1/0003:046D:C52F.0002/0003:046D:4057.0003/input/input22
[    7.385089] logitech-hidpp-device 0003:046D:4057.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech B330/M330/M3] on usb-0000:00:14.0-3/input1:1
[    7.385868] probe of 0003:046D:4057.0003 returned 1 after 6449 usecs
[    7.385886] initcall hidpp_driver_init+0x0/0x1000 [hid_logitech_hidpp] returned 0 after 7653 usecs
[    7.451517] psmouse serio1: synaptics: queried max coordinates: x [..5674], y [..4754]
[    7.479016] psmouse serio1: synaptics: queried min coordinates: x [1268..], y [1098..]
[    7.479023] psmouse serio1: synaptics: Your touchpad (PNP: DLL0591 SYN0600 SYN0002 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you might want to try setting psmouse.synaptics_intertouch to 1 and report this to linux-input@vger.kernel.org.
[    7.498986] calling  ecdh_init+0x0/0x20 [ecdh_generic] @ 319
[    7.500011] initcall ecdh_init+0x0/0x20 [ecdh_generic] returned 0 after 995 usecs
[    7.510747] calling  rtsx_usb_sdmmc_driver_init+0x0/0x1000 [rtsx_usb_sdmmc] @ 327
[    7.510846] probe of rtsx_usb_sdmmc.1.auto returned 1 after 79 usecs
[    7.510861] initcall rtsx_usb_sdmmc_driver_init+0x0/0x1000 [rtsx_usb_sdmmc] returned 0 after 107 usecs
[    7.533224] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.1, id: 0x1e2b1, caps: 0xd00123/0x840300/0x26c00/0x0, board id: 2382, fw id: 1238635
[    7.569324] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input14
[    7.569422] calling  bt_init+0x0/0xb2 [bluetooth] @ 319
[    7.569423] Bluetooth: Core ver 2.22
[    7.569439] NET: Registered protocol family 31
[    7.569440] Bluetooth: HCI device and connection manager initialized
[    7.569443] Bluetooth: HCI socket layer initialized
[    7.569445] Bluetooth: L2CAP socket layer initialized
[    7.569448] Bluetooth: SCO socket layer initialized
[    7.569465] initcall bt_init+0x0/0xb2 [bluetooth] returned 0 after 27 usecs
[    7.571928] probe of serio1 returned 1 after 468489 usecs
[    7.696167] calling  btusb_driver_init+0x0/0x1000 [btusb] @ 319
[    7.696370] probe of 1-1.4:1.0 returned 1 after 176 usecs
[    7.696400] usbcore: registered new interface driver btusb
[    7.696406] initcall btusb_driver_init+0x0/0x1000 [btusb] returned 0 after 222 usecs
[    7.809045] Bluetooth: hci0: BCM: chip id 70
[    7.810062] Bluetooth: hci0: BCM: features 0x06
[    7.826051] Bluetooth: hci0: BCM43142A
[    7.827053] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0000
[    7.955257] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-0a5c-21d7.hcd failed with error -2
[    7.955262] Bluetooth: hci0: BCM: Patch brcm/BCM43142A0-0a5c-21d7.hcd not found
[    9.022975] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[   10.006201] Bluetooth: hci0: command 0x1003 tx timeout
[   10.008003] Bluetooth: hci0: unexpected event for opcode 0x1003
[   11.498097] Generic PHY r8169-900:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-900:00, irq=IGNORE)
[   11.753718] r8169 0000:09:00.0 enp9s0: Link is Down
[   14.516107] SAME REV: no_force Returning NO_NEW old = 0x21 new = 0x21
[   25.282712] calling  bnep_init+0x0/0xba [bnep] @ 605
[   25.282715] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   25.282716] Bluetooth: BNEP filters: protocol multicast
[   25.282722] Bluetooth: BNEP socket layer initialized
[   25.282727] initcall bnep_init+0x0/0xba [bnep] returned 0 after 8 usecs
[   29.058252] logitech-hidpp-device 0003:046D:4057.0003: HID++ 4.5 device connected.
[   35.380888] calling  rfcomm_init+0x0/0xe4 [rfcomm] @ 853
[   35.380982] Bluetooth: RFCOMM TTY layer initialized
[   35.380988] Bluetooth: RFCOMM socket layer initialized
[   35.380997] Bluetooth: RFCOMM ver 1.11
[   35.381007] initcall rfcomm_init+0x0/0xe4 [rfcomm] returned 0 after 107 usecs
[   38.244884] rfkill: input handler disabled
[   49.878213] Bluetooth: hci0: command 0x1003 tx timeout
[   49.879631] Bluetooth: hci0: unexpected event for opcode 0x1003
[   50.044300] calling  crypto_cmac_module_init+0x0/0x1000 [cmac] @ 1162
[   50.044305] initcall crypto_cmac_module_init+0x0/0x1000 [cmac] returned 0 after 1 usecs
[   68.063966] traps: chrome[1214] trap int3 ip:55af9db2ec65 sp:7ffc0c039390 error:0 in chrome[55af9b2ab000+6f10000]
[   68.543705] traps: chrome[1280] trap int3 ip:55cfb94a1c65 sp:7ffecef7ed20 error:0 in chrome[55cfb6c1e000+6f10000]
[   68.938029] traps: chrome[1293] trap int3 ip:560334c62c65 sp:7ffe80754ac0 error:0 in chrome[5603323df000+6f10000]
android@clr~/broadcom-wl $
android@clr~ $ sudo modprobe wl
Password: 
modprobe: FATAL: Module wl not found in directory /lib/modules/5.2.14-833.native
android@clr~ $ locate wl.ko
/etc/firmware/wl.ko
/home/android/broadcom-wl/.wl.ko.cmd
/home/android/broadcom-wl/wl.ko
/usr/lib/modules/5.2.13-832.native/wl.ko
android@clr~ $ sudo updatedb
android@clr~ $ locate wl.ko
/etc/firmware/wl.ko
/home/android/broadcom-wl/.wl.ko.cmd
/home/android/broadcom-wl/wl.ko
/usr/lib/modules/5.2.13-832.native/wl.ko
/usr/lib/modules/5.2.13-832.native/kernel/drivers/net/wireless/wl.ko
/usr/lib/modules/5.2.14-833.native/kernel/drivers/net/wireless/wl.ko
android@clr~ $ uname -a
Linux clr 5.2.14-833.native #1 SMP Tue Sep 10 03:12:49 PDT 2019 x86_64 GNU/Linux
android@clr~ $ modinfo wl
modinfo: ERROR: Module wl not found.
android@clr~ $

Did you do a sudo depmod -a and/or reboot afterwards?

Your dmesg output also indicates that bluetooth won’t work without a missing proprietary firmware:

[    7.809045] Bluetooth: hci0: BCM: chip id 70
[    7.810062] Bluetooth: hci0: BCM: features 0x06
[    7.826051] Bluetooth: hci0: BCM43142A
[    7.827053] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0000
[    7.955257] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-0a5c-21d7.hcd failed with error -2
[    7.955262] Bluetooth: hci0: BCM: Patch brcm/BCM43142A0-0a5c-21d7.hcd not found

Searching around a bit it looks like those parts are made available by someone here: https://github.com/winterheart/broadcom-bt-firmware (I’m not vouching for this by any means. You should do your own research and use a source you’re comfortable with.)

Once you have the firmware file, you can place it in /etc/firmware/brcm/BCM43142A0-0a5c-21d7.hcd

this wifi card is combo (wifi+bluetooth)

bluetooth has rarely worked properly for me in any linux distro.
but wl used to work just fine for the wifi part.

i did multiple restart and checked above

I’m not sure what the problem is. May be start from scratch by deleting all your current copies of wl.ko and make sure the kernel version aren’t changing between your attempts to compile and install.

I don’t have the hardware to test with but both of these methods worked for me:

Manual install:

$ git clone https://github.com/antoineco/broadcom-wl.git
$ cd broadcom-wl/
$ make
$ sudo make install
$ depmod -A
$ sudo modprobe wl
$ modinfo wl
filename:       /lib/modules/5.2.15-834.native/kernel/drivers/net/wireless/wl.ko
license:        MIXED/Proprietary
alias:          pci:v*d*sv*sd*bc02sc80i*
depends:        cfg80211
retpoline:      Y
name:           wl
vermagic:       5.2.15-834.native SMP mod_unload
parm:           passivemode:int
parm:           wl_txq_thresh:int
parm:           oneonly:int
parm:           piomode:int
parm:           instance_base:int
parm:           nompc:int
parm:           intf_name:string

With DKMS:

$ git clone https://github.com/antoineco/broadcom-wl.git
$ sudo cp -R broadcom-wl/ /usr/src/broadcom-wl-6.30.223.271
$ sudo dkms install -m broadcom-wl -v 6.30.223.271
$ modinfo wl
filename:       /lib/modules/5.2.15-834.native/kernel/drivers/net/wireless/wl.ko
license:        MIXED/Proprietary
alias:          pci:v*d*sv*sd*bc02sc80i*
depends:        cfg80211
retpoline:      Y
name:           wl
vermagic:       5.2.15-834.native SMP mod_unload
parm:           passivemode:int
parm:           wl_txq_thresh:int
parm:           oneonly:int
parm:           piomode:int
parm:           instance_base:int
parm:           nompc:int
parm:           intf_name:string

@puneetse

android@clr~/broadcom-wl $ sudo modprobe wl
modprobe: ERROR: could not insert 'wl': Required key not available
android@clr~/broadcom-wl $ sudo lshw -C network
  *-network                 
       description: Network controller
       product: BCM43142 802.11b/g/n
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0000:06:00.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=bcma-pci-bridge latency=0
       resources: irq:18 memory:f7c00000-f7c07fff
  *-network
       description: Ethernet interface
       product: RTL810xE PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: enp9s0
       version: 05
       serial: e0:db:55:a6:39:99
       capacity: 100Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl_nic/rtl8105e-1.fw latency=0 link=no multicast=yes port=MII
       resources: irq:17 ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff
  *-network
       description: Ethernet interface
       physical id: 2
       logical name: enp0s20u1
       serial: b6:e9:ab:bb:87:a2
       capabilities: ethernet physical
       configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.250 link=yes multicast=yes
android@clr~/broadcom-wl $

@puneetse
> android@clr~/broadcom-wl $ modinfo wl

filename:       /lib/modules/5.3.2-844.native/kernel/drivers/net/wireless/wl.ko
license:        MIXED/Proprietary
alias:          pci:v*d*sv*sd*bc02sc80i*
depends:        cfg80211
retpoline:      Y
name:           wl
vermagic:       5.3.2-844.native SMP mod_unload 
parm:           passivemode:int
parm:           wl_txq_thresh:int
parm:           oneonly:int
parm:           piomode:int
parm:           instance_base:int
parm:           nompc:int
parm:           intf_name:string
android@clr~/broadcom-wl $ sudo modprobe wl
modprobe: ERROR: could not insert 'wl': Required key not available

Okay, so you have the module built, in the right spot, but not loading. Progress.

This indicates to me that kernel module signing that I mentioned in a previous reply is not disabled. I saw you ran the commands previously. Check the output of cat /proc/cmdline to make sure it contains module.sig_unenforce and that secure boot is disabled in your systems’s EFI.

android@clr~ $ cat /proc/cmdline
initrd=\EFI\org.clearlinux\freestanding-00-intel-ucode.cpio initrd=\EFI\org.clearlinux\freestanding-i915-firmware.cpio.xz root=PARTUUID=ce0d75d7-0e95-4bf6-86b1-45e16fd08850 quiet console=tty0 console=ttyS0,115200n8 cryptomgr.notests init=/usr/bin/initra-desktop initcall_debug intel_iommu=igfx_off kvm-intel.nested=1 no_timer_check noreplace-smp page_alloc.shuffle=1 rcu_nocbs=0-64 rcupdate.rcu_expedited=1 rootfstype=ext4,btrfs,xfs tsc=reliable rw