Trying to add Broadcom driver

Asked by tea for one on 2020-04-20

I'm using Ubuntu 19.10 as my source ISO and I have been unable to add the bcmwl-kernel-source when I'm in the process of remastering. Here is the error message:-

root@mark-nvme:~ # apt install bcmwl-kernel-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  dkms
Suggested packages:
  menu
The following NEW packages will be installed
  bcmwl-kernel-source dkms
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
Need to get 1,611 kB of archives.
After this operation, 8,361 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu eoan/main amd64 dkms all 2.7.1-4ubuntu2 [66.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu eoan/restricted amd64 bcmwl-kernel-source amd64 6.30.223.271+bdcom-0ubuntu5 [1,544 kB]
Fetched 1,611 kB in 0s (3,290 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 188615 files and directories currently installed.)
Preparing to unpack .../dkms_2.7.1-4ubuntu2_all.deb ...
Unpacking dkms (2.7.1-4ubuntu2) ...
Selecting previously unselected package bcmwl-kernel-source.
Preparing to unpack .../bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu5_amd64.deb ...
Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) ...
Setting up dkms (2.7.1-4ubuntu2) ...
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
It is likely that 5.3.0-46-generic belongs to a chroot's host
Building for 5.3.0-18-generic
Building for architecture x86_64
Building initial module for 5.3.0-18-generic
Done.

wl.ko:
Running module version sanity check.
modinfo: ERROR: missing module or filename.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-18-generic/updates/dkms/

depmod...
Running in chroot, ignoring request: restart

DKMS: install completed.
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.3.0-46
-generic/modules.dep.bin'
modprobe: FATAL: Module wl not found in directory /lib/modules/5.3.0-46-generic
update-initramfs: deferring update (trigger activated)
Processing triggers for man-db (2.8.7-3) ...
Processing triggers for initramfs-tools (0.133ubuntu10) ...
root@mark-nvme:~ #

It seems that Module wl is missing but I do not know how to proceed.

Thank you

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
2020-04-20
Last reply:
2020-04-21
Cubic PPA (cubic-wizard) said : #1

On your host machine, in a terminal, what is the output of:

    $ lsb_release --all

    $ uname -r

    $ ls -l /lib/modules

In Cubic, in the chroot terminal, what is the output of:

    $ lsb_release --all

    $ uname -r

    $ ls -l /lib/modules

tea for one (markexhome) said : #2

Info from host machine

mark@mark-nvme:~$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
mark@mark-nvme:~$ uname -r
5.3.0-46-generic
mark@mark-nvme:~$ ls -l /lib/modules
total 24
drwxr-xr-x 2 root root 4096 Feb 19 15:01 5.3.0-18-generic
drwxr-xr-x 2 root root 4096 Mar 21 11:30 5.3.0-29-generic
drwxr-xr-x 2 root root 4096 Apr 4 13:06 5.3.0-40-generic
drwxr-xr-x 2 root root 4096 Apr 10 10:23 5.3.0-42-generic
drwxr-xr-x 5 root root 4096 Apr 2 18:33 5.3.0-45-generic
drwxr-xr-x 5 root root 4096 Apr 8 10:17 5.3.0-46-generic
mark@mark-nvme:~$

Info from Cubic in chroot terminal

root@mark-nvme:~ # lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
root@mark-nvme:~ # uname -r
5.3.0-46-generic
root@mark-nvme:~ # ls -l /lib/modules
total 4
drwxr-xr-x 6 root root 4096 Apr 20 16:43 5.3.0-18-generic
root@mark-nvme:~ #

Cubic PPA (cubic-wizard) said : #3

In chroot, try...

    $ apt install linux-headers-5.3.0-46 linux-headers-5.3.0-46-generic linux-image-5.3.0-46-generic

...before you install

    bcmwl-kernel-source

Cubic PPA (cubic-wizard) said : #4

EDIT: added "--reinstall" flag, to force a reinstall, if necessary.

In chroot, try...

    $ apt install --reinstall linux-headers-5.3.0-46 linux-headers-5.3.0-46-generic linux-image-5.3.0-46-generic

...before you install

    bcmwl-kernel-source

tea for one (markexhome) said : #5

Thank you for your help.

I used the second suggestion:-
apt install --reinstall linux-headers-5.3.0-46 linux-headers-5.3.0-46-generic linux-image-5.3.0-46-generic

I added the package bcmwl-kernel-source and the ISO built successfully.

I made a USB boot device with mkusb and the new image booted on my HP netbook (2016 model).

Unfortunately, the Broadcom wifi device BCM43142 was not recognised by the remastered iso.

I double checked my new iso and both bcmwl-kernel-source and the relevant dkms packages were both installed.

Possibly I need another package but I'm not sure what that might be?

I'll continue investigating.

I'm sure the Cubic software has done exactly as anticipated.

Cubic PPA (cubic-wizard) said : #6

You installed Linux kernel 5.3.0-46.

Then you installed bcmwl-kernel-source (for this kernel, 5.3.0-46).

**Make sure on Cubic's Kernels tab, you have selected kernel 5.3.0-46 as your ISO boot kernel.**

This will ensue that when your ISO boots up it is using kernel 5.3.0-46 (which now has the bcmwl drivers).

tea for one (markexhome) said : #7

Yes, I built and booted the iso yesterday using kernel 5.3.0-46 and the wifi was not recognised.

However, I started from scratch this morning (following your earlier tips) and I added two extra packages.

linux-modules-5.3.0-46-generic
linux-modules-extra-5.3.0-46-generic

Cubic then rebuilt the iso in the usual way and I used mkusb to create a bootable device.

I then started a live session on my HP Stream Netbook and the Broadcom wifi was recognised and I successfully connected to the internet using Firefox.

Now, two questions:-

I do not know whether my first attempt was simply unlucky?
Adding two more packages was the solution?

My HP Netbook needs a lighter environment than Ubuntu so I’m going to experiment with Lubuntu or Xubuntu when the 20.04 images are released on 23 April 2020

Your Cubic sofware package is superb and I wish you all success with the project.

Thank you very much for your kind and diligent advice.

Can you help with this problem?

Provide an answer of your own, or ask tea for one for more information if necessary.

To post a message you must log in.