Hi everyone.
I recently installed the "Lite" (32-bit, no desktop environment) image on my Pi 4. It's a fresh and clean system, I haven't tampered with anything.
My current goal is to compile the Alfa wireless drivers for the Realtek "rtl8814au" chipset. I downloaded those according to:
https://docs.alfa.com.tw/Support/Linux/RTL8814AU/
In the source directory, I then issue "make" and it says:
Apparently, there needs to exist a "build" directory under "/lib/modules/6.6.31+rpt-rpi-v8". I checked and my "uname -r" output is indeed "6.6.31+rpt-rpi-v8". When I browse directories, this directory does not have a "build" under it.
However, for example, "/lib/modules/6.6.31+rpt-rpi-v7l" does have a "build" under it.
When I check what kind of "linux-headers" packages I can install, there is only an arm64 package, but I have a 32-bit system (to run the same image on older Pi versions).
Is this a bug or should I install the 64-bit headers? When I try installing the 64-bit headers, I get another error:
...so I cannot install them. I found a likely problem in the Alfa makefile, as it seems to expect being compiled on an i386 PC. I corrected the makefile to look like:
...but it didn't help. I also tested the "rtl8812" driver to be certain. No luck, now the error I get is:
I recently installed the "Lite" (32-bit, no desktop environment) image on my Pi 4. It's a fresh and clean system, I haven't tampered with anything.
My current goal is to compile the Alfa wireless drivers for the Realtek "rtl8814au" chipset. I downloaded those according to:
https://docs.alfa.com.tw/Support/Linux/RTL8814AU/
In the source directory, I then issue "make" and it says:
Code:
makemake ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/6.6.31+rpt-rpi-v8/build M=/root/rtl8814au-5.8.5.1 modulesmake[1]: *** /lib/modules/6.6.31+rpt-rpi-v8/build: No such file or directory. Stop.make: *** [Makefile:2353: modules] Error 2
However, for example, "/lib/modules/6.6.31+rpt-rpi-v7l" does have a "build" under it.
When I check what kind of "linux-headers" packages I can install, there is only an arm64 package, but I have a 32-bit system (to run the same image on older Pi versions).
Code:
apt list | grep linux-headers | grep "6.6.31"WARNING: apt does not have a stable CLI interface. Use with caution in scripts.linux-headers-6.6.31+rpt-common-rpi/stable,stable,now 1:6.6.31-1+rpt1 all [installed,automatic]linux-headers-6.6.31+rpt-rpi-2712/stable 1:6.6.31-1+rpt1 arm64linux-headers-6.6.31+rpt-rpi-v6/stable,now 1:6.6.31-1+rpt1 armhf [installed,automatic]linux-headers-6.6.31+rpt-rpi-v7/stable,now 1:6.6.31-1+rpt1 armhf [installed,automatic]linux-headers-6.6.31+rpt-rpi-v7l/stable,now 1:6.6.31-1+rpt1 armhf [installed,automatic]linux-headers-6.6.31+rpt-rpi-v8/stable 1:6.6.31-1+rpt1 arm64linux-headers-rpi-2712/stable 1:6.6.31-1+rpt1 arm64linux-headers-rpi-v6/stable,now 1:6.6.31-1+rpt1 armhf [installed]linux-headers-rpi-v7/stable,now 1:6.6.31-1+rpt1 armhf [installed]linux-headers-rpi-v7l/stable,now 1:6.6.31-1+rpt1 armhf [installed]linux-headers-rpi-v8/stable 1:6.6.31-1+rpt1 arm64
Code:
aptitude install linux-headers-6.6.31+rpt-rpi-v8:arm64The following NEW packages will be installed: linux-headers-6.6.31+rpt-rpi-v8:arm64{b} 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Need to get 1,126 kB of archives. After unpacking 3,083 kB will be used.The following packages have unmet dependencies: linux-headers-6.6.31+rpt-rpi-v8:arm64 : Depends: gcc-12:arm64 which is a virtual package and is not provided by any available package
Code:
###################### Platform Related #######################CONFIG_PLATFORM_I386_PC = nCONFIG_PLATFORM_ANDROID_ARM64 = nCONFIG_PLATFORM_ARM_RPI = y
Code:
make ARCH=arm CROSS_COMPILE= -C /lib/modules/6.6.31+rpt-rpi-v8/build M=/root/rtl8812au modulesmake[1]: *** /lib/modules/6.6.31+rpt-rpi-v8/build: No such file or directory. Stop.make: *** [Makefile:1730: modules] Error 2
Statistics: Posted by diastrikos — Fri Jul 26, 2024 12:08 pm