Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink)
@ 2020-08-06 16:17 SumGR
  2020-11-25 20:23 ` ericonr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: SumGR @ 2020-08-06 16:17 UTC (permalink / raw)
  To: ml

[-- 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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink)
  2020-08-06 16:17 [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink) SumGR
@ 2020-11-25 20:23 ` ericonr
  2020-12-11 23:55 ` Piraty
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2020-11-25 20:23 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

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

Comment:
@pbui @Piraty 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink)
  2020-08-06 16:17 [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink) SumGR
  2020-11-25 20:23 ` ericonr
@ 2020-12-11 23:55 ` Piraty
  2020-12-12  0:00 ` Piraty
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Piraty @ 2020-12-11 23:55 UTC (permalink / raw)
  To: ml

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

New comment by Piraty on void-packages repository

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

Comment:
I recall this issue came up once before ..?
passing ARCH=aarch64 is wrong, it's named arm64 in the kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink)
  2020-08-06 16:17 [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink) SumGR
  2020-11-25 20:23 ` ericonr
  2020-12-11 23:55 ` Piraty
@ 2020-12-12  0:00 ` Piraty
  2020-12-12  0:24 ` Piraty
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Piraty @ 2020-12-12  0:00 UTC (permalink / raw)
  To: ml

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

New comment by Piraty on void-packages repository

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

Comment:
that module's makefile does incorrect arch string detection, see https://github.com/EntropicEffect/rtl8822bu/blob/66aae0e630e9886acee2386c0623ca479130c8b8/Makefile#L1036-L1037 and subsequently sets aarch64 instead of arm64

@SumGR can you provide a patch?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink)
  2020-08-06 16:17 [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink) SumGR
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: Piraty @ 2020-12-12  0:24 UTC (permalink / raw)
  To: ml

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

New comment by Piraty on void-packages repository

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

Comment:
that module's makefile does incorrect arch string detection, see https://github.com/EntropicEffect/rtl8822bu/blob/66aae0e630e9886acee2386c0623ca479130c8b8/Makefile#L1036-L1037 and subsequently sets aarch64 instead of arm64

@SumGR can you provide a patch?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink)
  2020-08-06 16:17 [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink) SumGR
                   ` (3 preceding siblings ...)
  2020-12-12  0:24 ` Piraty
@ 2020-12-12  0:27 ` Piraty
  2020-12-12  4:31 ` [ISSUE] [CLOSED] " q66
  5 siblings, 0 replies; 7+ messages in thread
From: Piraty @ 2020-12-12  0:27 UTC (permalink / raw)
  To: ml

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

New comment by Piraty on void-packages repository

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

Comment:
as pointed out by @pbui on IRC, there's a note in the [project's readme](https://github.com/EntropicEffect/rtl8822bu/blob/66aae0e630e9886acee2386c0623ca479130c8b8/README.md) about non-x86 archs.
that makefile should be patched to pick the correct karch

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ISSUE] [CLOSED] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink)
  2020-08-06 16:17 [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink) SumGR
                   ` (4 preceding siblings ...)
  2020-12-12  0:27 ` Piraty
@ 2020-12-12  4:31 ` q66
  5 siblings, 0 replies; 7+ messages in thread
From: q66 @ 2020-12-12  4:31 UTC (permalink / raw)
  To: ml

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

Closed 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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-12  4:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 16:17 [ISSUE] dkms modules fail to build on raspberry pi (missing arm64 aarch64 symlink) SumGR
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

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).