However, the MT7615 card doesn’t show up and I don’t know how to get it to show up on the install. I’ve had success getting the MT7615 visible with OpenWRT, but not working…
currently building 5.4 for r2…on 5.4 i replaced the mt76 driver (drivers/net/wireless/mt76_new) with a newer version from openwrt…maybe there is any bug with mt7615
I added the mt7615_rf.bin file you mentioned to /lib/firmware/mediatek and reboot the machine. I get these messages from dmesg | grep mt7615:
root@bananapi:~# dmesg | grep "mt7615"
[ 10.734252] mt7615e 0000:01:00.0: enabling device (0140 -> 0142)
[ 10.740580] mt7615e 0000:01:00.0: Load firmware : /lib/firmware/mediatek/mt7615e_rf.bin
[ 10.793882] mt7615e 0000:01:00.0: Load firmware OK, count 1024 byte
[ 20.979016] mt7615e 0000:01:00.0: Message -16 (seq 1) timeout
[ 20.984788] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 31.219013] mt7615e 0000:01:00.0: Message -16 (seq 2) timeout
[ 31.224792] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 41.459012] mt7615e 0000:01:00.0: Message -16 (seq 3) timeout
[ 41.464780] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 51.699002] mt7615e 0000:01:00.0: Message -16 (seq 4) timeout
[ 51.704774] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 61.938998] mt7615e 0000:01:00.0: Message -16 (seq 5) timeout
[ 61.944763] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 72.179002] mt7615e 0000:01:00.0: Message -16 (seq 6) timeout
[ 72.184770] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 82.419003] mt7615e 0000:01:00.0: Message -16 (seq 7) timeout
[ 82.424769] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 92.659002] mt7615e 0000:01:00.0: Message -16 (seq 8) timeout
[ 92.664768] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 102.899003] mt7615e 0000:01:00.0: Message -16 (seq 9) timeout
[ 102.904770] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 113.139004] mt7615e 0000:01:00.0: Message -16 (seq 10) timeout
[ 113.144857] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 123.379002] mt7615e 0000:01:00.0: Message -16 (seq 11) timeout
[ 123.384855] mt7615e 0000:01:00.0: Failed to get patch semaphore
[ 123.394486] mt7615e: probe of 0000:01:00.0 failed with error -11
It literally takes over 2 minutes while trying to do whatever with the module. This issue didn’t exist before I added this module to my kernel; plus I cannot log in via serial or SSH until it finishes doing whatever it’s doing (which is really annoying…)
Sorry, not trying to be stupid, but where do I get those patches?
EDIT: Hold up, I followed the last link and see those files. What do I do with them? Put them in /lib/firmware/meditek as well?
UPDATE: Okay, once again, I followed the link and found the eeprom.c in the drivers/net/wireless/mediatek/mt76_new/mt7615 directory. How do I use the mt76_new folder instead of the mt76 folder? Do I just change the names, or… ?
LAST UPDATE: It’s almost bedtime and I have to get up ridiculously early in the morning to be at work. So I’m gonna retire for the night. Thank you so far for all your assistance, Frank!
Right,put these files on r2 in your rootfs in the path. Last line in your prevous log shows path for rom-patch file.
Semaphore-issue should be solved…i guess you see it because of missing firmware files
Maybe your semaphore-issue is caused by the fix…as it tries again on this error. But your semaphore issue has eootcause of missing file so i guess handle is not freed
if firmware-file is missing, mcu_init should not return -EAGAIN
as far as i see, semaphore-issue triggers before the file (RAM_PATCH) is loaded
Okay, first thing I tried was putting the specified files in the /lib/firmware/mediatek directory. Semaphore error occurred. I think tried /lib/firmware/mediatek/mediatek directory. Same thing. I’m at a loss of where to put the files… Here is the log (yeah, it’s pretty much a dup of last time…)
You said the place to put the rom_patch file was the last line in my previous log. Here is it:
In addition, your message said the rom_patch file should be placed in the location specified by the last line in my log. That path is relative, not an absolute path, so I’m a little more than a little confused here…
It is relative to /lib/firmware. I have no idea why you got the error,because it looks like before first file gets loaded. You have compiled mt7615 as module,right (like my current defconfig)?
Try removing the rf (eeprom) file,as i have not tested it with mt7615 (only with mt7622)
Yeah, I haven’t changed the default configuration regarding mt7615. Added a few options for my Relatek USB ethernet adapter and phone USB tethering, though…
I’ve put the files back in /lib/firmware/mediatek, removed the rf file, and rebooted. Only difference is these lines from dmesg.
The bluetooth-problem is related to bpi-r64 where wifi and bluetooth shares some registers/memory in hardware. Your configuration is bluetooth from r2 and separate mt7615 wifi so this should not be affected. It does not on my system.not in 5.4 and not in 5.10. But you can try 5.10. And you can try reverting the semaphore patch… but i guess this only brings one error not the repeation…card should not work too.
Rf (eeprom) file is optional,so you can ignore this error. Still have no idea why you get semaphore error on r2 as should only be r64 related.
Still wondering why it does not work for you because it works with my hardware
This is annoying… Disabling bluetooth on 5.4.77 didn’t do anything. Same errors…
Changed git branch to 5.10-rc, compiled, and loaded into the rootfs. Wifi adapter came up, but the serial connection stopped responding once it got things working… Was able to log in using SSH, so not a complete loss. I’m restoring the base image so I can make the changes without contamination from anything else I did to the image, but it’s looking favorable now with the 5.10-rc branch…
I saw a 5.10-wifi branch. Is there something special about that branch compared to 5.10-rc?
EDIT: Compiling 5.10-wifi branch to see what happens… (mostly for sh!ts and giggles)
EDIT: 5.10-wifi branch is 5.10-rc1. 5.10-rc branch is 5.10-rc4… That’s seems to be the difference…
Yay! Using 5.10-wifi branch, I am able to get both the onboard wifi and the mt7615 PCIe card to be recognized! Here is the dmesg output in relation to the mt7615:
root@bananapi:~# dmesg | grep mt76
[ 11.446311] mt7615e 0000:01:00.0: enabling device (0140 -> 0142)
[ 11.486746] mt7615e 0000:01:00.0: Firmware is not ready for download
[ 11.609846] mt7615e 0000:01:00.0 wlp1s0: renamed from wlan0
root@bananapi:~#