fedora30のソフトウェアアップデートをしたらwifiに繋がらなくなった

ドライバを認識しているか確認

broadcom-wlをインストールし直してみて様子を見てみました。
[root@localhost ~]#dnf remove broadcom-wl
[root@localhost ~]#dnf install broadcom-wl
[root@localhost ~]# lshw -class network
  *-network UNCLAIMED
       description: Network controller
       product: BCM4360 802.11ac Wireless Network Adapter
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 03
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:b0600000-b0607fff memory:b0400000-b05fffff
  *-network
       description: Ethernet interface
       physical id: 1
       bus info: usb@1:2
       logical name: enp0s20u2
       serial: xxxxxx
       capabilities: ethernet physical
       configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.227 link=yes multicast=yes

ドライバを認識しません。

基本に戻って、archlinux Broadcom ワイヤレスの wl カーネルモジュールのロードの手順に従ってみる。

[root@localhost ~]# modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/5.6.8-100.fc30.x86_64

wlカーネルモジュールが見つからないらしい。

どうしてwlカーネルモジュールが見つからないのか

Fedora 32 a trimé pour sortir !を参考に、akmodsコマンドでakmodパッケージを確認してリビルドしてみた。wl-kmodのビルドがうまくいってないみたい…。
[root@localhost ~]# akmods
Checking kmods exist for 5.6.8-100.fc30.x86_64             [  OK  ]
Building and installing wl-kmod                            [失敗]
Building rpms failed; see /var/cache/akmods/wl/6.30.223.271-23-for-5.6.8-100.fc30.x86_64.failed.log for details

Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.

[root@localhost ~]# less /var/cache/akmods/wl/6.30.223.271-23-for-5.6.8-100.fc30.x86_64.failed.log

akmodとはkmodとは?

kmodはカーネルドライバモジュール。カーネルを更新して再起動すると機能が失われる。
akmodはdkmsに類似したもの。コンピュータを起動すると、kmodに不足がないかチェックする。不足があればローカルでビルドするため、開発ツールがセットで必要になる。

wl-kmodをリビルドして入れてみる(解決せず)

手動でビルドしてみました。
[root@localhost ~]# rpmbuild --rebuild /usr/src/akmods/wl-kmod-6.30.223.271-23.fc30.src.rpm
/usr/src/akmods/wl-kmod-6.30.223.271-23.fc30.src.rpm をインストール中です。
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
エラー: ビルド依存性の失敗:
    buildsys-build-rpmfusion-kerneldevpkgs-akmod-x86_64 は wl-kmod-6.30.223.271-23.fc30.x86_64 に必要とされています


依存関係を解決するためにbuildsys-build-rpmfusionをインストールしました。

[root@localhost ~]# dnf install buildsys-build-rpmfusion
メタデータの期限切れの最終確認: 0:57:57 時間前の 2020年05月08日 16時19分40秒 に実施しました。
依存関係が解決しました。
================================================================================
 Package                      Arch       Version       Repository          Size
================================================================================
インストール:
 buildsys-build-rpmfusion     x86_64     10:30-2       rpmfusion-free      12 k

トランザクションの概要
================================================================================
インストール  1 パッケージ

ダウンロードサイズの合計: 12 k
インストール済みのサイズ: 7.8 k
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
buildsys-build-rpmfusion-30-2.x86_64.rpm         39 kB/s |  12 kB     00:00
--------------------------------------------------------------------------------
合計                                            5.3 kB/s |  12 kB     00:02
警告: /var/cache/dnf/rpmfusion-free-529fb32abebfafff/packages/buildsys-build-rpmfusion-30-2.x86_64.rpm: ヘッダー V3 RSA/SHA1 Signature、鍵 ID c0aeda6e: NOKEY
RPM Fusion for Fedora 30 - Free                 1.6 MB/s | 1.7 kB     00:00
GPG 鍵 0xC0AEDA6E をインポート中:
 Userid     : "RPM Fusion free repository for Fedora (30) "
 Fingerprint: 80C3 B2C6 E727 F3E0 92B4 73E0 3DF2 CE43 C0AE DA6E
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-30
これでよろしいですか? [y/N]: y
鍵のインポートに成功しました
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
  準備             :                                                        1/1
  インストール中   : buildsys-build-rpmfusion-10:30-2.x86_64                1/1
  検証             : buildsys-build-rpmfusion-10:30-2.x86_64                1/1

インストール済み:
  buildsys-build-rpmfusion-10:30-2.x86_64

完了しました!

もう一度ビルドしてみる。

[root@localhost ~]# rpmbuild --rebuild /usr/src/akmods/wl-kmod-6.30.223.271-23.fc30.src.rpm
/usr/src/akmods/wl-kmod-6.30.223.271-23.fc30.src.rpm をインストール中です。
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
警告: user mockbuild does not exist - using root
警告: group mock does not exist - using root
実行中(%prep): /bin/sh -e /var/tmp/rpm-tmp.BcJnCD
+ umask 022
+ cd /root/rpmbuild/BUILD
+ kmodtool --target x86_64 --repo rpmfusion --kmodname wl-kmod --filterfile /root/rpmbuild/SOURCES/wl-kmod-kmodtool-excludekernel-filterfile --akmod


%global akmod_install mkdir -p $RPM_BUILD_ROOT/%{_usrsrc}/akmods/; \rpmbuild --define "_sourcedir %{_sourcedir}" \--define "_srcrpmdir $RPM_BUILD_ROOT/%{_usrsrc}/akmods/" \%{?dist:--define 'dist %{dist}}' \-bs --nodeps %{_specdir}/%{name}.spec ; \ln -s $(ls $RPM_BUILD_ROOT/%{_usrsrc}/akmods/) $RPM_BUILD_ROOT/%{_usrsrc}/akmods/wl-kmod.latest

%package       -n akmod-wl
Summary:          Akmod package for wl kernel module(s)
Requires:         kmodtool
Requires:         akmods
%{?AkmodsBuildRequires:Requires: %{AkmodsBuildRequires}}
# same requires and provides as a kmods package would have
Requires:         wl-kmod-common >= %{?epoch:%{epoch}:}%{version}
Provides:         wl-kmod = %{?epoch:%{epoch}:}%{version}-%{release}

%description   -n akmod-wl
This package provides the akmod package for the wl kernel modules.

%posttrans     -n akmod-wl
nohup /usr/sbin/akmods --from-akmod-posttrans --akmod wl &> /dev/null &

%post     -n akmod-wl
[ -x /usr/sbin/akmods-ostree-post ] && /usr/sbin/akmods-ostree-post wl %{_usrsrc}/akmods/wl-kmod-%{version}-%{release}.src.rpm

%files         -n akmod-wl
%defattr(-,root,root,-)
%{_usrsrc}/akmods/*

%package       -n kmod-wl
Summary:          Metapackage which tracks in wl kernel module for newest kernel

Provides:         wl-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
Provides:         kmod-wl-xen = %{?epoch:%{epoch}:}%{version}-%{release}
Provides:         kmod-wl-smp = %{?epoch:%{epoch}:}%{version}-%{release}
Provides:         kmod-wl-PAE = %{?epoch:%{epoch}:}%{version}-%{release}
Requires:         akmod-wl = %{?epoch:%{epoch}:}%{version}-%{release}

%description   -n kmod-wl
This is a meta-package without payload which sole purpose is to require the
wl kernel module(s) for the newest kernel,
to make sure you get it together with a new kernel.

%files         -n kmod-wl
%defattr(644,root,root,755)
+ cd /root/rpmbuild/BUILD
+ rm -rf wl-kmod-6.30.223.271
+ /usr/bin/mkdir -p wl-kmod-6.30.223.271
+ cd wl-kmod-6.30.223.271
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ mkdir wl-kmod-6.30.223.271-src
+ pushd wl-kmod-6.30.223.271-src
~/rpmbuild/BUILD/wl-kmod-6.30.223.271/wl-kmod-6.30.223.271-src ~/rpmbuild/BUILD/wl-kmod-6.30.223.271
+ tar xzf /root/rpmbuild/SOURCES/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
+ echo 'Patch #0 (wl-kmod-001_wext_workaround.patch):'
Patch #0 (wl-kmod-001_wext_workaround.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .wext_workaround.patch --fuzz=0
patching file Makefile
+ echo 'Patch #1 (wl-kmod-002_kernel_3.18_null_pointer.patch):'
Patch #1 (wl-kmod-002_kernel_3.18_null_pointer.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_3.18_null_pointer.patch --fuzz=0
patching file src/wl/sys/wl_linux.c
+ echo 'Patch #2 (wl-kmod-003_gcc_4.9_remove_TIME_DATE_macros.patch):'
Patch #2 (wl-kmod-003_gcc_4.9_remove_TIME_DATE_macros.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gcc_4.9_remove_TIME_DATE_macros --fuzz=0
patching file src/wl/sys/wl_linux.c
+ echo 'Patch #3 (wl-kmod-004_kernel_4.3_rdtscl_to_rdtsc.patch):'
Patch #3 (wl-kmod-004_kernel_4.3_rdtscl_to_rdtsc.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_4.3_rdtscl_to_rdtsc.patch --fuzz=0
patching file src/shared/linux_osl.c
+ echo 'Patch #4 (wl-kmod-005_kernel_4.7_IEEE80211_BAND_to_NL80211_BAND.patch):'
Patch #4 (wl-kmod-005_kernel_4.7_IEEE80211_BAND_to_NL80211_BAND.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_4.7_IEEE80211_BAND_to_NL80211_BAND --fuzz=0
patching file src/wl/sys/wl_cfg80211_hybrid.c
+ echo 'Patch #5 (wl-kmod-006_gcc_6_fix_indentation_warnings.patch):'
Patch #5 (wl-kmod-006_gcc_6_fix_indentation_warnings.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gcc_6_fix_indentation_warnings --fuzz=0
patching file src/wl/sys/wl_linux.c
+ echo 'Patch #6 (wl-kmod-007_kernel_4.8_add_cfg80211_scan_info_struct.patch):'
Patch #6 (wl-kmod-007_kernel_4.8_add_cfg80211_scan_info_struct.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_4.8_add_cfg80211_scan_info_struct --fuzz=0
patching file src/wl/sys/wl_cfg80211_hybrid.c
+ echo 'Patch #7 (wl-kmod-008_fix_kernel_warnings.patch):'
Patch #7 (wl-kmod-008_fix_kernel_warnings.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fix_kernel_warnings --fuzz=0
patching file src/wl/sys/wl_cfg80211_hybrid.c
+ echo 'Patch #8 (wl-kmod-009_kernel_4.11_remove_last_rx_in_net_device_struct.patch):'
Patch #8 (wl-kmod-009_kernel_4.11_remove_last_rx_in_net_device_struct.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_4.11_remove_last_rx_in_net_device_struct --fuzz=0
patching file src/wl/sys/wl_cfg80211_hybrid.c
patching file src/wl/sys/wl_linux.c
+ echo 'Patch #9 (wl-kmod-010_kernel_4.12_add_cfg80211_roam_info_struct.patch):'
Patch #9 (wl-kmod-010_kernel_4.12_add_cfg80211_roam_info_struct.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_4.12_add_cfg80211_roam_info_struct --fuzz=0
patching file src/wl/sys/wl_cfg80211_hybrid.c
+ echo 'Patch #10 (wl-kmod-011_kernel_4.14_new_kernel_read_function_prototype.patch):'
Patch #10 (wl-kmod-011_kernel_4.14_new_kernel_read_function_prototype.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_4.14_new_kernel_read_function_prototype --fuzz=0
patching file src/shared/linux_osl.c
+ echo 'Patch #11 (wl-kmod-012_kernel_4.15_new_timer.patch):'
Patch #11 (wl-kmod-012_kernel_4.15_new_timer.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_4.15_new_timer --fuzz=0
patching file src/wl/sys/wl_linux.c
+ echo 'Patch #12 (wl-kmod-013_gcc8_fix_bounds_check_warnings.patch):'
Patch #12 (wl-kmod-013_gcc8_fix_bounds_check_warnings.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gcc8_fix_bounds_check_warnings --fuzz=0
patching file src/wl/sys/wl_linux.c
+ echo 'Patch #13 (wl-kmod-014_kernel_read_pos_increment_fix.patch):'
Patch #13 (wl-kmod-014_kernel_read_pos_increment_fix.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel_read_pos_increment_fix --fuzz=0
patching file src/shared/linux_osl.c
+ popd
~/rpmbuild/BUILD/wl-kmod-6.30.223.271
+ exit 0
実行中(%build): /bin/sh -e /var/tmp/rpm-tmp.mCzcBB
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd wl-kmod-6.30.223.271
+ exit 0
実行中(%install): /bin/sh -e /var/tmp/rpm-tmp.onYmAz
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64
++ dirname /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64
+ cd wl-kmod-6.30.223.271
+ rm -rf /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64
+ chmod 0755 '/root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64%{kmodinstdir_prefix}*%{kmodinstdir_postfix}/*'
chmod: cannot access '/root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64%{kmodinstdir_prefix}*%{kmodinstdir_postfix}/*': No such file or directory
+ :
+ mkdir -p /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64//usr/src/akmods/
+ rpmbuild --define '_sourcedir /root/rpmbuild/SOURCES' --define '_srcrpmdir /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64//usr/src/akmods/' --define 'dist .fc30' -bs --nodeps /root/rpmbuild/SPECS/wl-kmod.spec
Wrote: /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64/usr/src/akmods/wl-kmod-6.30.223.271-23.fc30.src.rpm
++ ls /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64//usr/src/akmods/
+ ln -s wl-kmod-6.30.223.271-23.fc30.src.rpm /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64//usr/src/akmods/wl-kmod.latest
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
ファイルの処理中: akmod-wl-6.30.223.271-23.fc30.x86_64
Provides: akmod-wl = 6.30.223.271-23.fc30 akmod-wl(x86-64) = 6.30.223.271-23.fc30 wl-kmod = 6.30.223.271-23.fc30
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(posttrans): /bin/sh
ファイルの処理中: kmod-wl-6.30.223.271-23.fc30.x86_64
パッケージに含まれないファイルの検査中: /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64
書き込み完了: /root/rpmbuild/RPMS/x86_64/akmod-wl-6.30.223.271-23.fc30.x86_64.rpm
書き込み完了: /root/rpmbuild/RPMS/x86_64/kmod-wl-6.30.223.271-23.fc30.x86_64.rpm
実行中(%clean): /bin/sh -e /var/tmp/rpm-tmp.ilMSuD
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd wl-kmod-6.30.223.271
+ rm -rf /root/rpmbuild/BUILDROOT/wl-kmod-6.30.223.271-23.fc30.x86_64
+ exit 0
実行中(--clean): /bin/sh -e /var/tmp/rpm-tmp.tes4pH
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf wl-kmod-6.30.223.271
+ exit 0

/root/rpmbuild/RPMS/x86_64/kmod-wl-6.30.223.271-23.fc30.x86_64.rpm
にあるrpmをインストールしてみたけれど、やり方がよくないのかうまく入らず。

fedora30からfedora31にしてみた(解決せず)

ここでfedora30からfedora31にアップグレードしてみた。

カーネルのバージョンを確認する。
[root@localhost ~]# uname -r
5.6.8-200.fc31.x86_64
ロードされたカーネルと同じバージョンのkernel-develをインストールする。
今入っているkernel-develの確認
[root@localhost ~]# dnf list --installed | grep kernel-devel
kernel-devel.x86_64                                      5.5.10-100.fc30                        @updates
kernel-devel.x86_64                                      5.6.8-100.fc30                         @updates
kernel-devel.x86_64                                      5.6.8-200.fc31                         @updates        

問題なさそう。

fedora31になったところでもう一度wlモジュールを追加してみる。
[root@localhost ~]# modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/5.6.8-200.fc31.x86_64

結果は変わらず。

ioremap_nocacheのエラーに対処する(解決)

akmodsコマンドでリビルドしたときに出力されたログのエラーをきちんと調べてみることに。
冒頭で確認したときも同様のエラーがログに出ていたのですが、ちょっとよくわからなかったので無視してました…。かえって遠回りに😇


[root@localhost ~]# vim /var/cache/akmods/wl/6.30.223.271-30-for-5.6.8-200.fc31.x86_64.failed.log

…

2020/05/09 14:20:20 akmodsbuild: /tmp/akmodsbuild.youqSIa7/BUILD/wl-kmod-6.30.223.271/_kmod_build_5.6.8-200.fc31.x86_64/src/shared/linux_osl.c: In function 'osl_reg_map':
2020/05/09 14:20:20 akmodsbuild: /tmp/akmodsbuild.youqSIa7/BUILD/wl-kmod-6.30.223.271/_kmod_build_5.6.8-200.fc31.x86_64/src/shared/linux_osl.c:949:10: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
2020/05/09 14:20:20 akmodsbuild: 949 |  return (ioremap_nocache((unsigned long)pa, (unsigned long)size));
2020/05/09 14:20:20 akmodsbuild: |          ^~~~~~~~~~~~~~~
2020/05/09 14:20:20 akmodsbuild: |          ioremap_cache
2020/05/09 14:20:20 akmodsbuild: /tmp/akmodsbuild.youqSIa7/BUILD/wl-kmod-6.30.223.271/_kmod_build_5.6.8-200.fc31.x86_64/src/shared/linux_osl.c:949:10: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
2020/05/09 14:20:20 akmodsbuild: 949 |  return (ioremap_nocache((unsigned long)pa, (unsigned long)size));
2020/05/09 14:20:20 akmodsbuild: |         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020/05/09 14:20:20 akmodsbuild: cc1: some warnings being treated as errors
2020/05/09 14:20:20 akmodsbuild: make[1]: *** [scripts/Makefile.build:268: /tmp/akmodsbuild.youqSIa7/BUILD/wl-kmod-6.30.223.271/_kmod_build_5.6.8-200.fc31.x86_64/src/shared/linux_osl.o] Error 1

…

上のエラーを調べてみると、どうやらメソッドに変更があったかなんかで修正が必要みたいでした。

githubで公開されているこちらの修正を適用して解決しました。コンパイルとインストール方法はreadmeの通り。

こちらのbugzillaにはパッチがありました。