Open DealBreacker opened 1 year ago
@DealBreacker
it is driving me crazy and I might just have to return the adapter :(.
Don't let it driver you crazy. (pun inteded)
I have not tested my Edup with mt7901u chipset with OpenWRT. Why? Because the mt7601u driver does not support AP mode. For reference:
https://github.com/morrownr/USB-WiFi
See Main Menu item 5. USB WiFi chipset information for Linux. See Main Menu item 2. Plug and Play List. Go to mt7601u chipset section.
With that said, I think your little Edup adapter is almost the perfect little plug and play adapter for a wireless toolkit as it does not cost much and sometimes things happen and you need something that just works in managed mode to help get things going again.
I have used several adapters with OpenWRT and can suggest some that work well. Keep in mind, you should not need to manually install the firmware for these adapters as it should install when you install the driver. The best chipsets are mt7921au, mt7612u and mt7610u.
I'll throw a couple of ideas out:
https://www.amazon.com/dp/B08NPX2X4Z/?tag=pandaw-20
https://www.aliexpress.us/item/3256804283254522.html?gatewayAdapt=glo2usa
Let me know if you need further advise.
Nick
Ahhhh, I made a mistake when I was buying the edup adapter then! :P I'm going to keep it anyway, since it was only $8. Thank you for the clarification!
P.S: How long normally does AliExpress take to ship things? Do they overestimate or underestimate their shipping time? If you don't know then just ignore me!
Do they overestimate or underestimate their shipping time?
Based on the comments I have seen over the last year, I'd say most of the time the adapter arrives on time or early.
Error -2 appears to be „No such file or directory”. On my (Arch Linux) system, the firmware is in /lib/firmware/mediatek
. You wrote /lib/firmware/MediaTek
, which is not the same. The case matters.
@dubhater
Can you be specific about where you see '/lib/firmware/MediaTek'?
I am well aware that case matters but sometimes mistakes are made.
Nick
It's in @DealBreacker 's original post:
The drivers for this adapter seems to not be working.. (Working with OpenWrt O.S). Go the adapter in today, plugged it in, installed the firmware and mt7601u.bin, properly in /lib/firmware/MediaTek, and the firmware refuses to load.
@dubhater
I see. I missed that. Good eyes.
@DealBreacker
Do you understand what @dubhater is saying?
Yeah I get what he is saying. I will check when I get home if I wrote that down wrong or not. Thanks for the info! When I figure it out I'm going to send it here to let y'all know.
@DealBreacker was the error caused by /lib/firmware/MediaTek
in uppercase?
@shyguyCreate
When I saw your msg a few minutes ago and reread this thread, I said to myself, something is amiss here. I seem to have overlooked the probable problem last year when this thread started:
Not all Mediatek firmware goes in `/lib/firmware/mediatek". you can look in the driver as a last resort as it will have code that shows where it will look for the firmware. The proper place for mt7601u firmware is:
/lib/firmware
as in...
/lib/firmware/mt7601u.bin
In fact, and for future reference for anyone that happen to read this thread, the firmware for the new WiFi 7 generation mt7925 chips is:
/lib/firmware/mediatek/mt7925
This is noted in the Firmware menu item on the Main Menu. However, I do not address the mt7601u so I probably should add it to the Firmware guide.
Hope this helps and let me also add that the mt7601u driver does not support AP mode. I do not know why but wish it did. It is however a really good managed mode driver. Very solid and stable.
FYI: I have now updated the Firmware guide:
If anyone wants to check my work, please do and let me know.
@morrownr how did you found out the path the driver was looking for the firmware?
@shyguyCreate
how did you found out the path the driver was looking for the firmware?
The primary reason I created this site was not to discover where firmware files should be place, it was to improve the information that is available to Linux users regarding USB WiFi. However, in doing that you learn a lot of things. I have been maintaining some Realtek out-of-kernel drivers here and I keep an eye on the kernel wifi programming.
What I did in this case to save time was I went and found where the firmware file was in a known good distro (Debian 12). I can dig into the kernel code and show you if you wish.
That would be great, I tried to find it but not good at C.
EDIT. Maybe I am looking at the wrong place. https://github.com/torvalds/linux/tree/master/drivers/net/wireless/mediatek/mt7601u
@morrownr I was looking at the README code and it seems strange that you remove the number 3 from the list. https://github.com/morrownr/USB-WiFi/commit/317d5d5ad9b7846d355a055128d82a067b53233a
@shyguyCreate
Hmmm... in looking at the current readme, menu item 3 is there. One of the problems with using github for essentially what is a editor issues is that the merged patches don't always make sense.
When github renders the readme the item 3 is there, but in the source code there is no item 3, it does not affect anything but for consistency sake.
Not all Mediatek firmware goes in `/lib/firmware/mediatek". you can look in the driver as a last resort as it will have code that shows where it will look for the firmware. The proper place for mt7601u firmware is:
/lib/firmware
as in...
/lib/firmware/mt7601u.bin
I can confirm this information, in Arch there is a symlink in the linux-firmware
package /lib/firmware/mt7601u.bin.zst -> mediatek/mt7601u.bin.zst
.
To prove the location of the firmware first I did:
rm /lib/firmware/mt7601u.bin.zst
mv /lib/firmware/mediatek/mt7601u.bin.zst /lib/firmware/mediatek/mt7602u.bin.zst
I connected the USB and got an error.
After that I move back the firmware mv /lib/firmware/mediatek/mt7602u.bin.zst /lib/firmware/mediatek/mt7601u.bin.zst
and still got an error after replugging.
At last I remade the symlink ln -s mediatek/mt7601u.bin.zst /lib/firmware/mt7601u.bin.zst
and got the USB working after reconnecting.
@shyguyCreate
I can confirm this information, in Arch there is a symlink in the linux-firmware package /lib/firmware/mt7601u.bin.zst -> mediatek/mt7601u.bin.zst.
My work maintaining some of the out-of-kernel drivers over the last several years causes me to look with a questioning eye at distros that do this type of thing... and things like this are common and cause inconsistencies which can lead to problems and troubleshooting issues. I would prefer distros contact driver maintainers to sort out any of their concerns instead of doing things like this. We need more consistency amount distros, not less.
Although it does not follow a standard, I am glad that it is plug-and-play.
Setup: Raspberry Pi 4B 8gb model OS: OpenWrt 22.03.5 Kernel version 5.10.176
The drivers for this adapter seems to not be working.. (Working with OpenWrt O.S). Go the adapter in today, plugged it in, installed the firmware and mt7601u.bin, properly in /lib/firmware/MediaTek, and the firmware refuses to load.
Continuously receiving a "Direct firmware load for mt7601u.bin failed with error -2" followed with "probe of 1-1.1:1.0 failed with error -12". Did some extensive research, seems to just be a faulty driver + hardware issue known for this adapter. If anyone has run into this issue and found out how to fix is please let me know as it is driving me crazy and I might just have to return the adapter :(.