I've read all instructions on how to build the backported version, but for some reason, on my jetson NX system it only compiles compat module, skipping all the others: iwlmvm,iwlwifi,mac80211,cfg80211
To give some context, I needed to upgrade the jetpack distro from 18.04 to 20 because of other packages, but the kernel remained the same:
jetson@boson:~/backport-iwlwifi$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
jetson@boson:~/backport-iwlwifi$ uname -r
4.9.201-tegra
jetson@boson:~/backport-iwlwifi$
so on 20.04 it only compiles those and on make install it only copies compat
:
jetson@boson:~/backport-iwlwifi$ make defconfig-iwlwifi-public
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c
cc conf.o zconf.tab.o -o conf
#
# configuration written to .config
#
jetson@boson:~/backport-iwlwifi$ sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
jetson@boson:~/backport-iwlwifi$ make -j4
make[5]: 'conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
CC [M] /home/jetson/backport-iwlwifi/compat/main.o
CC [M] /home/jetson/backport-iwlwifi/compat/backport-4.10.o
CC [M] /home/jetson/backport-iwlwifi/compat/backport-4.18.o
CC [M] /home/jetson/backport-iwlwifi/compat/backport-5.2.o
CC [M] /home/jetson/backport-iwlwifi/compat/backport-genetlink.o
CC [M] /home/jetson/backport-iwlwifi/compat/lib-refcount.o
LD [M] /home/jetson/backport-iwlwifi/compat/compat.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/jetson/backport-iwlwifi/compat/compat.mod.o
LD [M] /home/jetson/backport-iwlwifi/compat/compat.ko
jetson@boson:~/backport-iwlwifi$
Tried this on a fresh 18.04 bionic and it works as expected. Any idea what might be wrong?
PS1: I even downgraded cc to version 7.5.0 and make to version 4.1, still no luck.
PS2: I also tried backport-iwlwifi-dkms
package, but it throws unsupported error:
Preparing to unpack .../backport-iwlwifi-dkms_8324-0ubuntu3~20.04.3_all.deb ...
Unpacking backport-iwlwifi-dkms (8324-0ubuntu3~20.04.3) ...
Setting up backport-iwlwifi-dkms (8324-0ubuntu3~20.04.3) ...
Loading new backport-iwlwifi-8324 DKMS files...
It is likely that 4.9.201-tegra belongs to a chroot's host
Building for 4.9.201-tegra
Building initial module for 4.9.201-tegra
ERROR (dkms apport): kernel package linux-headers-4.9.201-tegra is not supported
Error! Build of iwlwifi.ko failed for: 4.9.201-tegra (aarch64)
Consult the make.log in the build directory
/var/lib/dkms/backport-iwlwifi/8324/build/ for more information.
dpkg: error processing package backport-iwlwifi-dkms (--configure):
installed backport-iwlwifi-dkms package post-installation script subprocess returned error exit status 7
Errors were encountered while processing:
backport-iwlwifi-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thank you!
R