I have only ap-code ready (2g4 and 5g,for r2,but you only need to replace iface names)
https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:wlan#hostapd
Have not tried yet with mt7615/mt7622. Mt7615 is currently in my r2 (added antenna on wf3 today so i can test 2g4 and 5g). with and without the firmware-file i got a driver own failed…
without i see this:
[ 49.882535] mt7622-wmac 18000000.wmac: Load firmware : /lib/firmware/mediatek/mt7622-wmac_rf.bin
[ 49.891445] mt7622-wmac 18000000.wmac: Open file failed : /lib/firmware/mediatek/mt7622-wmac_rf.bin
[ 49.901529] mt7622-wmac 18000000.wmac: Invalid MAC address, using random address 02:9d:39:63:ac:55
[ 51.114069] mt7622-wmac 18000000.wmac: driver own failed
with the file i see this:
[ 31.582413] mt7622-wmac 18000000.wmac: Load firmware : /lib/firmware/mediatek/mt7622-wmac_rf.bin
[ 31.594925] mt7622-wmac 18000000.wmac: Load firmware ERR, count 1024byte
[ 31.601739] mt7622-wmac 18000000.wmac: Load firmware OK, count -2byte
[ 31.610768] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
root@bpi-r64:~# [ 32.826357] mt7622-wmac 18000000.wmac: driver own failed
looks like the error message is added by this patchset: https://www.spinics.net/lists/linux-wireless/msg200710.html
i cannot start AP on wlan0
Could not set interface wlan0 flags (UP): Input/output error
nl80211: Could not set interface 'wlan0' UP
i still have the rfkill-option active (softdep rfkill pre: mt7622)
tried 5.9-main (without the eeprom-patch), same result
seems like it is the rfkill-issue again… i loaded rfkill-module before mt7615e and then i got the firmware-load and can start hostapd
i tried to change the rule because driver-module is named mt7615e instead of mt7622m same result (after reboot). directly after boot i get the driver own failure, if i unload the module and load again, i get the firmware-info…maybe mt7622 is blocked some time
mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20190801210351
rfkill is loaded on boot, maybe the wlan0-interface in /etc/network/interfaces blocks…removed it so network is started completely, but same
root@bpi-r64:~# service networking status
�● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
Active: active (exited) since Thu 2019-02-14 10:12:03 UTC; 1 years 7 months a
Docs: man:interfaces(5)
Process: 164 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0
Main PID: 164 (code=exited, status=0/SUCCESS)
Feb 14 10:12:02 bpi-r64 systemd[1]: Starting Raise network interfaces...
Feb 14 10:12:03 bpi-r64 systemd[1]: Started Raise network interfaces.
root@bpi-r64:~# lsmod
Module Size Used by
aes_generic 36864 1
cmac 16384 1
btmtkuart 24576 0
bluetooth 512000 20 btmtkuart
ecdh_generic 16384 2 bluetooth
ecc 24576 1 ecdh_generic
rfkill 32768 3 bluetooth
libaes 16384 2 bluetooth,aes_generic
ip_tables 28672 0
x_tables 36864 1 ip_tables
root@bpi-r64:~# modprobe mt7615e
[ 52.224481] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 52.380732] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 52.388300] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 52.399402] cfg80211: failed to load regulatory.db
[ 52.564273] mt7622-wmac 18000000.wmac: Load firmware : /lib/firmware/mediatek/mt7622-wmac_rf.bin
[ 52.584584] mt7622-wmac 18000000.wmac: Load firmware ERR, count 1024byte
[ 52.592669] mt7622-wmac 18000000.wmac: Load firmware OK, count -2byte
[ 52.615394] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
root@bpi-r64:~# [ 53.823422] mt7622-wmac 18000000.wmac: driver own failed
root@bpi-r64:~# modprobe -r mt7615e
root@bpi-r64:~# modprobe mt7615e
[ 83.800559] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 83.820595] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 83.827979] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 83.850229] cfg80211: failed to load regulatory.db
[ 83.948589] mt7622-wmac 18000000.wmac: Load firmware : /lib/firmware/mediatek/mt7622-wmac_rf.bin
[ 83.958684] mt7622-wmac 18000000.wmac: Load firmware ERR, count 1024byte
[ 83.974036] mt7622-wmac 18000000.wmac: Load firmware OK, count -2byte
[ 84.001470] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 84.054993] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20190801210351
root@bpi-r64:~#
btw. it looks like the eeprom does not get loaded…(ok-message is wrong because on err there is only ret-var set, but not returned). i added the len in brackets to see difference
[ 157.004155] mt7622-wmac 18000000.wmac: Load firmware : /lib/firmware/mediatek/mt7622-wmac_rf.bin
[ 157.019551] mt7622-wmac 18000000.wmac: Load firmware ERR, count 1024 byte (19880)
imho the len is wrong, it is passed to function so i guess it’s the size of full eeprom and sobuffer needs to initialized with zeros till len and then overridden with file-data (or filled after last file-byte)
root@bpi-r64:~# ls -lh /lib/firmware/mediatek/mt7622-wmac_rf.bin
-rw-r--r-- 1 root root 1.0K Sep 16 12:23 /lib/firmware/mediatek/mt7622-wmac_rf.bin
root@bpi-r64:~# ls -l /lib/firmware/mediatek/mt7622-wmac_rf.bin
-rw-r--r-- 1 root root 1024 Sep 16 12:23 /lib/firmware/mediatek/mt7622-wmac_rf.bin
but i get the same values second time i insert the module…but then initialization succeeds
@nagi have you an idea why driver own failes the first time (also without eeprom-patch - 5.9-main)? without the patch (revert 894b7767ec2fc21574775c354ab5350e51c2171c) i get this:
mt7622-wmac 18000000.wmac: Timeout for driver own