Github messages for voidlinux
 help / color / mirror / Atom feed
From: SumGR <SumGR@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink)
Date: Thu, 06 Aug 2020 18:17:45 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24106@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2019 bytes --]

New issue by SumGR on void-packages repository

https://github.com/void-linux/void-packages/issues/24106

Description:
I'm using the void Linux image for the raspberry pi3. I'm trying to load an external USB Wi-Fi module. The rtl8822bu-dkms fails to build because it's looking for aarch64 kernel headers. 

```
xbps-install -S rtl8822bu-dkms-20200407_1
...
...
rtl8822bu-dkms-20200407_1: configuring ...
DKMS module '88x2bu-20200407' already added, skipping.
Building DKMS module '88x2bu-20200407' for kernel-4.19.127_2... FAILED!
DKMS module '88x2bu-20200407' failed to build, please check /var/lib/dkms
for errors in the log file.

```

The DKMS build logs show this:

```
cat /var/lib/dkms/88x2bu/20200407/build/make.log 
DKMS make.log for 88x2bu-20200407 for kernel 5.7.13_1 (aarch64)
Wed 05 Aug 2020 07:19:42 PM UTC
/bin/sh: 1: bc: not found
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.7.13_1/build M=/var/lib/dkms/88x2bu/20200407/build  modules
make[1]: Entering directory '/usr/src/kernel-headers-5.7.13_1'
Makefile:669: arch/aarch64/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/aarch64/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/kernel-headers-5.7.13_1'
make: *** [Makefile:2001: modules] Error 2
```
I tried installing the `rpi-kernel-headers` package, but it seems to place all the headers in `/usr/src/rpi-kernel-headers-4.19.127_2` under the arch of arm64 instead of aarch64

I ran the following to get the module to build:

```
cd /usr/src/rpi-kernel-headers-4.19.127_2/
ln -s arm64 aarch64
xbps-install -Sf rtl8822bu-dkms-20200407_1
```

This seems to affect other dkms modules as well. Should the rpi-kernel-headers package be patched to always have this symbolic link so dkms modules can build? or is this something that should be fixed (or is fixed) upstream in dkms?

Kernel: Linux void-live 4.19.127_2 #1 SMP PREEMPT Fri Jul 17 14:28:57 UTC 2020 aarch64 GNU/Linux
Package: rtl8822bu-dkms-20200407_1





             reply	other threads:[~2020-08-06 16:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-06 16:17 SumGR [this message]
2020-11-25 20:23 ` ericonr
2020-12-11 23:55 ` Piraty
2020-12-12  0:00 ` Piraty
2020-12-12  0:24 ` Piraty
2020-12-12  0:27 ` Piraty
2020-12-12  4:31 ` [ISSUE] [CLOSED] " q66

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24106@inbox.vuxu.org \
    --to=sumgr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).