Skip to content

Compatibility & Build Report -- Raspberry Pi 4, kernel 6.1.0-rpi7-rpi-v8 aarch64 #50

Closed

Description

@tonymet

This is a report on a successful build for Raspberry Pi 4 / Raspberry Pi OS . I attempted a build of the other "raspbian" repo that would not build.

The RTL8812BU device is being used for network security scanning.

Build info

Hardware = Raspberry Pi 4,
OS = Raspberry PI OS Lite 64bit
kernel = kernel 6.1.0-rpi7-rpi-v8 aarch64
debian_version = 12.4
branch = v5.13.1

Build Steps

$ git checkout v5.13.1
# apply patch to wifi_regd.c (see bove)
$ make
$ make install 
# follow remaining instructions in readme

Commit info

 git log --graph -5
* cfad3d6 - (HEAD -> raspberry-pi-linux-6.1) builds on raspberry pi linux 6.1 .  driver loads (2 hours ago) <Anthony Metzidis>
* 36deb90 - (origin/v5.13.1, v5.13.1) Update rtl8812bu.yml (11 months ago) <Fastoe>
* fae227a - Realtek RTL8812BU Driver(5.13.1) for Linux (11 months ago) <fastoe>
* 5a77dc7 - (origin/v5.8.7) Realtek RTL8812BU Driver for Linux (11 months ago) <fastoe>
* f5972a7 - CI (11 months ago) <fastoe>
* 

Diff

diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c
index 81e1dc7..c4dc645 100644
--- a/os_dep/linux/wifi_regd.c
+++ b/os_dep/linux/wifi_regd.c
@@ -405,7 +405,7 @@ int rtw_regd_init(struct wiphy *wiphy)
        wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS;
 #endif

-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0)))
        wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
 #endif

Testing

sudo iw dev INTERFACE  scan > scan-2023-12-14.txt

Activity

  1. tonymet commented on Dec 15, 2023

    @tonymet
    Author

    enabling MONITOR on the interface seems to crash the kernel. I'm looking into acquiring debug logs .

    sudo iw phy phy1 interface add mon0 type monitor
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions