Repository navigation
rda5995-openipc: build the firmware into the module - #2653
Conversation
The pinned rda-wlan built rdawfmac with the vendor's default, which reads the firmware and power_config.txt from /var/Run/wifi/rdaw at load time; no image has that directory, so an RDA5995 got no firmware. rda-wlan 06fd4b6 compiles them in from the driver's *.bin.hex arrays, leaving out the RF images only the factory test mode uses.
PR Summary by QodoEmbed RDA5995 firmware through an upstream revision bump
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Camera firmware change lacks testing
|
| ################################################################################ | ||
|
|
||
| RDA5995_OPENIPC_VERSION = 593c3184ae3f84c563b1704f6ad24879f122634b | ||
| RDA5995_OPENIPC_VERSION = 06fd4b61252788bc46a66c88fd2773493ab5dd2a |
There was a problem hiding this comment.
1. Camera firmware change lacks testing 📘 Rule violation ≡ Correctness
The package version change selects firmware-embedding driver sources without testing firmware download on a real camera. The PR states that no camera with the affected chip was available and that the emulator has no RDA device, so the changed camera behavior remains unverified.
Agent Prompt
## Issue description
The package now selects a commit that changes the firmware-loading behavior, but the PR provides no real-camera evidence and explicitly says firmware download is untested.
## Fix Focus Areas
- general/package/rda5995-openipc/rda5995-openipc.mk[7-7]
## Recommended Fix
Test the updated module on a camera containing an RDA5995, capture firmware-download and driver initialization output, and add the affected board, symptom, and before/after evidence to the PR description.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Code review by qodo was updated up to the latest commit afc0bf7 |
Problem
rdawfmacfrom #2640 has no firmware. The pinnedOpenIPC/rda-wlancommit built it with the vendor's defaultWLAND_FIRMWARE_PATH "/var/Run/wifi/rdaw", so at load time the driver readsrda5995_usb_*.binandpower_config.txtfrom a directory no OpenIPC image has, and the*.bin.hexarrays in the source are never compiled. #2640's description said the firmware was compiled in; it wasn't.OpenIPC/rda-wlan@06fd4b6 defines
WLAND_DOWNLOAD_FIRMWARE_FROM_HEXinstead, so the station/p2p and AP images andpower_config.txtare built into the module and nothing is read from the filesystem. It leaves out the RF images, which serve only the factory RF test mode (/data/misc/wifi/rda5995_testmodeorfirmware_path=rf). This PR moves the pin to that commit.Hardware tested on
No camera with an RDA5995. Built locally and loaded in the qemu-hisilicon emulator, which has no RDA chip, so firmware download itself is untested.
Evidence
Module, before and after the bump:
Image sizes after the bump, built locally:
Emulator (no chip on the bus): the module resolves and runs its init, then unloads as before:
Scope
general/package/all-patches/linux/(those go to OpenIPC/linux)general/overlay/or in a sharedload_<vendor>script hardcodes a value specific to my boardLD_PRELOAD, and no binaries that cannot be rebuilt from source