Skip to content

Commit

Permalink
update scripts and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
morrownr committed Nov 6, 2023
1 parent d99803f commit 7305e07
Show file tree
Hide file tree
Showing 10 changed files with 486 additions and 244 deletions.
31 changes: 31 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ Here is a link regarding Debian and Secure Boot:

https://wiki.debian.org/SecureBoot

There is work underway to add Secure Boot support for systems that do not
have `dkms` available or if a manual installation is desired.

If you are using a basic command line (non-dkms) installation, see the
following section in the Installation Steps part of the README:

Expand Down Expand Up @@ -192,3 +195,31 @@ dtoverlay=disable-wifi
```

-----

Question: When running `sudo sh install-driver.sh` on my RasPi 4B or
400, I see the following:

```
Your kernel header files aren't properly installed.
Please consult your distro documentation or user support forums.
Once the header files are properly installed, please run...
```

Answer: The Pi 4/400 firmware now prefers the 64-bit kernel if one
exists so even if you installed the 32 bit version of the RasPiOS,
you may now have the 64 bit kernel active.

The fix:

add the following to /boot/config.txt and reboot:

arm_64bit=0

Reference:

https://forums.raspberrypi.com/viewtopic.php?p=2091532&hilit=Tp+link#p2091532

Note to RasPiOS devs: We really really wish you would consider the
consequences of the changes you make. Thank you.

-----
1 change: 0 additions & 1 deletion Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
config RTL8821AU
tristate "Realtek 8821A USB WiFi"
depends on USB
select WIRELESS_EXT
help
Help message of RTL8821AU

23 changes: 8 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ EXTRA_CFLAGS += -DCONFIG_LED_ENABLE
EXTRA_CFLAGS += -Wno-address
EXTRA_CFLAGS += -Wframe-larger-than=1648

# gcc-13
EXTRA_CFLAGS += -Wno-enum-int-mismatch

GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
ifeq ($(GCC_VER_49),1)
EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later
Expand Down Expand Up @@ -1352,20 +1355,8 @@ ifeq ($(CONFIG_PLATFORM_AUTODETECT), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT

SUBARCH := $(shell uname -m)

ifeq ($(SUBARCH), aarch64)
SUBARCH := arm64
endif

ifeq ($(SUBARCH), armv7l)
SUBARCH := arm
endif

ifeq ($(SUBARCH), armv6l)
SUBARCH := arm
endif

#SUBARCH := $(shell uname -m)
SUBARCH := $(shell uname -m | sed -e "s/i.86/i386/; s/ppc/powerpc/; s/armv.l/arm/; s/aarch64/arm64/; s/riscv.*/riscv/;")
ARCH ?= $(SUBARCH)

CROSS_COMPILE ?=
Expand Down Expand Up @@ -2516,7 +2507,8 @@ sign:
@mokutil --import MOK.der
@$(KSRC)/scripts/sign-file sha256 MOK.priv MOK.der 8821au.ko

sign-install: all sign install
sign-install:
sign install

backup_rtlwifi:
@echo "Making backup rtlwifi drivers"
Expand Down Expand Up @@ -2573,4 +2565,5 @@ clean:
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
rm -fr MOK.der MOK.priv
endif
Loading

0 comments on commit 7305e07

Please sign in to comment.