mt7621 - validate mt7603/mt762e calibration

Peter Naulls peter at chocky.org
Fri Nov 18 09:51:09 PST 2022


Our vendor has put calibration data into flash for the onboard WiFi. They've
made some changes which I have to their supplied 4.14.131 driver to read from
the "factory" flash partition to read calibration data.

As per my previous post on u-boot, getting exact details out of them
has proved tricky due to language challenges and whatnot.


This is kernel 5.10.154.  The driver code here in question is substantially
different.

[   22.298838] pci 0000:00:00.0: enabling device (0004 -> 0007)
[   22.310143] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
[   22.322339] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   23.511774] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   23.522944] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   23.570908] mt7603e 0000:01:00.0: firmware init done
[   23.770019] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=24
[   23.780950] pci 0000:00:01.0: enabling device (0004 -> 0007)
[   23.792240] mt76x2e 0000:02:00.0: enabling device (0000 -> 0002)
[   23.804437] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   24.471734] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[   24.488470] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   24.499444] mt76x2e 0000:02:00.0: Build: 1
[   24.507607] mt76x2e 0000:02:00.0: Build Time: 201607111443____
[   24.540896] mt76x2e 0000:02:00.0: Firmware running!

On modern kernels, the location of the data is determined
by the DTB of course, and this all appears to be in order, and having looked
in some detail at the code, everything seems to be there for calibration to 
happen with no additional effort, but I don't see any debug one way or another.

My question is, how to verify the calibration data has been correctly set,
both on the driver level and in practical testing?

I'm not an RF engineer, so by all means educate me here.




More information about the openwrt-devel mailing list