ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

Debugging the brcmfmac driver

Open Callyth opened this issue 1 year ago • 3 comments

Hello. In order to investigate the cause of the Wi-Fi error on Ubuntu 24.04, I used the kernel config from linux-rockchip and enabled debugging to rebuild the brcmfmac and brcmutil modules, but a memory access error occurred, and I was unable to perform debugging. The error log has been deleted, so I will upload it later. Could the build settings be different from those of the drivers originally in the kernel?

Callyth avatar Sep 18 '24 04:09 Callyth

What board..?

Joshua-Riek avatar Sep 18 '24 13:09 Joshua-Riek

What board..?

Sorry for the late reply, I had trouble collecting the logs. ubuntu.log The board is the Orange Pi 5 Pro, and I am also performing this debugging on the 7ji side. I was able to debug successfully there, but I encountered errors and was unable to debug properly on ubuntu-rockchip. Success-arch.log Is the kernel for Ubuntu 24.04 based on linux-rockchip? I would appreciate it if you could let me know. Thank you.

Callyth avatar Sep 20 '24 12:09 Callyth

@jamstec0, the kernel is based on linux-rockchip, noble branch. Native compilation is out of the box, but I had to make several changes for cross compilation (gcc-14.2.0) and to avoid every module (re)build causes a whole recompile and to support custom kernels with a tag e.g. 6.1.0-1025+debug-rockchip.

ewaldc avatar Sep 23 '24 08:09 ewaldc

This bug seems to be caused by the current wpa_supplicant and is also occurring on raspberry pi devices and other devices. As a solution, adding brcmfmac.feature_disable=0x82000 to the boot parameter will prevent this problem. Hopefully others will not have to spend 4 months looking for the cause. @Joshua-Riek Sorry for the inconvenience.

Callyth avatar Nov 27 '24 15:11 Callyth