gk7102: rtl8xxxu Wi-Fi + -mno-unaligned-access - #2256
Conversation
Backport mainline rtl8xxxu for older Goke kernels and set RCR_APPEND_FCS so firmware RX trimming drops FCS instead of payload bytes. Co-authored-by: Cursor <cursoragent@cursor.com>
Provide rtl8188fufw.bin for RTL8188FTV (0bda:f179) used on GK7102 boards. Co-authored-by: Cursor <cursoragent@cursor.com>
Switch boards to rtl8xxxu + RTL8188FU firmware, enable WPA crypto options, GPIO9 Wi-Fi power in the usb overlay, and -mno-unaligned-access for the ARMv6 userspace corruption seen on some GK710x boards. Co-authored-by: Cursor <cursoragent@cursor.com>
Pass CMAKE_POLICY_VERSION_MINIMUM=3.5 so the package configures with current host CMake releases. Co-authored-by: Cursor <cursoragent@cursor.com>
PR Summary by QodoGK7102: enable rtl8xxxu (RTL8188FTV) Wi‑Fi + unaligned-access workaround
AI Description
Diagram
High-Level Assessment
Files changed (18)
|
Code Review by Qodo
1.
|
Selecting only RTL_8188FU left the parent package unset, so the firmware blob could be missing when rtl8xxxu-openipc is enabled alone. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Good afternoon Thank you for your interest in our project and for the corrections you sent. Unfortunately, we can't accept them in a single PR because it goes against our basic step-by-step principles: you're simultaneously making changes to the toolchain configuration with specific options, modifying the kernel configs, adding a new RTL driver package, editing the core mbedtls package, and altering third-party files which aren't meant to be edited.... The proposed PR is on hold until it is split into parts and discussed. |
|
Split per review feedback into separate PRs:
Board enablement / builder Wi-Fi profile are follow-ups. This PR can stay closed or superseded. |
Summary
rtl8xxxu-openipc(RTL8188FTV / 0bda:f179) withRCR_APPEND_FCSso RX FCS stripping does not corrupt EAPOLrtl8188fufw.bintolinux-firmware-openipcgk7102_lite/gk7102s_lite: overlayrtl8xxxu-gk7102(GPIO9), WPA crypto options,BR2_TARGET_OPTIMIZATION="-mno-unaligned-access"mbedtls-openipcconfigure on newer host CMake (CMAKE_POLICY_VERSION_MINIMUM=3.5)Toolchain note
BR2_TARGET_OPTIMIZATIONalone is not enough while packages use the prebuilt external SDK: rebuild/publishtoolchain.goke-gk710x.tgzwith the same flag (make BOARD=gk7102_lite toolchain, or temporarily comment outBR2_TOOLCHAIN_EXTERNAL*), and drop muslsrc/string/arm/memcpy.Sso libc does not use unaligned LDR/STR. With that SDK, Wi-Fi + SSH work without wpa/Dropbear alignment workarounds.Test plan
gk7102_liteuImage + rootfswlandev=rtl8xxxu-gk7102, WPA2 connect, DHCP, outbound networkMade with Cursor