Score:0

backport-iwlwifi not compiling all targets on Focal 20.04.2

jp flag

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

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.