-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers for mt7613 #127
Comments
any updates on this? |
@vikingloudmouth no, i get alot of errors, i stopped now. maybe i''ll start again when i 'll have free time. have you dome progress? |
@bricco1981 I have tried to use the mt7515 driver. I was able to build the driver with openwrt 22.03.5 and running
I then tried the command line tool I also tried manually bringing the interface up with From a quick look at the code for the luci app, it appears to me to all start from the what is returned when running For me, I can see |
No,mt7615 are not the driver you Need . You Need mt7663. |
@bricco1981 Do you know where they are available? I thought the mt7615 driver covered that? (or is that just with the opensource mt76 driver version) |
I have been using the mt7663 driver on my mt7613 without any issues for the last week. It was built based on "MT7663_LinuxAP_6.0.3.0_20200106-775e6a.tar" with modifications copied from the mt7615d driver in https://github.com/Azexios/openwrt-r3p-mtk to get it to compile for openwrt 22.03.5. Does anyone know what need to be changed to use these mtk drivers for use with openwrt 23.05? |
so can you share the driver on github? or explain neded modification? |
@vikingloudmouth Hey, could you share the process of building the mtk drivers based on mt7663 for mt7613 device. I really need to get it working for my device. The default mt76 driver in openwrt has tx power issues. |
@vikingloudmouth can you please share the code, i'm not able to make this work. |
I'll share what I have when I have a chance, should find time to dig it back up gain and work out what I did in the next few weeks. I've been using it since I first posted with only one issue: intermittent reconnection problems when using clients only capable of WPA2 if the router is set to WPA2/WPA3 mixed mode. No issues with clients capable of WPA3, and no issues with WPA2 clients if I don't use the mixed mode and instead only set WPA2 mode. I also have tested it on openwrt 23.05 and the wireless worked fine - the config page wouldn't load though. Hopefully someone else can fix that after I share the code |
Thank you man, eagerly waiting for your code!
…On Wed, 8 May 2024, 15:40 vikingloudmouth, ***@***.***> wrote:
I'll share what I have a chance, should find time to dig it back up gain
and work out what I did in the next few weeks.
I've been using it since I first posted with only one issue: intermittent
reconnection problems when using clients only capable of WPA2 if the router
is set to WPA2/WPA3 mixed mode. No issues with clients capable of WPA3, and
no issues with WPA2 clients if I don't use the mixed mode and instead only
set WPA2 mode. I also have tested it on openwrt 23.05 and the wireless
worked fine - the config page wouldn't load though. Hopefully someone else
can fix that after I share the code
—
Reply to this email directly, view it on GitHub
<#127 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL2VLFSEDZO2N2S3YGXYA33ZBH2ZFAVCNFSM6AAAAAATMNL7TGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGIZTENRWGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
ok do not worry about config page i can make that easy. i'll make luci app mtk custom for this. |
FATAL: modpost: GPL-incompatible module mt_wifi.ko uses GPL-only symbol '__kernel_write' |
ping @vikingloudmouth |
Sorry for the lack of response. Left all the code in a mess and haven't got around to working out which of them actually works. Give mt7663.ko with OpenWrt 23.05 a go. I think it should work with
and looks for a I'll try to find the code that that actually can from. I really should have done this properly from the start... |
this is crazy i made the driver work but very low signal, so calibration is not correct. i'll try your mt7663.ko |
From memory the part of the code that looks for the firmware .bin file was kinda broken when the radio config was for two cards w.r.t. to using/not using a offset into the calibration area for the second radio in a .bin file was used. Think I ended up working around it be pointing it to a .bin file that contained the calibration data for both radios, setting a offset somewhere in the menuconfig, and making sure that I had it set as the second card with the first card selected as a 7603 (even though I wasn't using the mtk driver for the first card) Think I also had speed issues at one point if I was running with a default .dat without encryption (or something along those lines) even I using no password on the network |
If helpful, this is the relevant part of my config
I am using a .bin file I extracted from by device. Hopefully, this help you getting it to find the calibration data edit: the .bin I'm using comes from saving my radio mtdblock |
so when you first fixed the compilation, did the driver worked fine? good speed and signal? or always week? |
No I had speed issues initially. Don't think I needed to change the code to fix it though, just the config and point the driver to a .bin file that contained the calibration data at the offset rather than at the start. From memory, the driver was putting out some messages in one of openwrt logs (think it was the kernel log) about not finding firmware/eeprom/bin data and using a default one. Also pretty sure I've found the code that works. I'll give it a quick test from a clean start and put it up if it works. |
You probably already worked this out, but I got around this by changing the mt_wifi code to say it was GPL... |
yes i i fixed that. the problem that now i have is wrong macaddress and weak signal in ap mode, in sta mode i get good speed like 300 down 50 up. |
If your getting good speeds in sta mode that means you now have it finding the calibration data right? Try checking your config in AP mode, think I made have also had slows speeds until I setup the .dat file to use encryption (or something along those lines) for the network mode. From memory it wasn't really a problem with the driver, just that devices would only use a slow rate in the outdated default mode without any |
well the signal is too weak in ap mode and why i have wrong mac address? |
I have no idea about the mac address, I didn't check what it was before and don't know if it is wrong or not for me |
for the low signal could be that the antennas are not used the right way. my device is a comfast ew72 v2 |
Doesn't the good speed in STA mode rule that out? |
yes that's very strange. also i do not see about ANTENNA STAFF in bin folder, if you check the bin folder mt7615 you can see antenna things. |
you mean the .bin files? |
Using radio.bin and renaming it to e2p doesnt restore mac for mt7603.. |
that's a bad news and the range is still poor? can you check if your radio.bin start with mt7603 or mt7663? that's strange for me mt7603 are ok too. |
Yes, the range is remains poor as hell! Does mt7603 also look for e2p from /lib/firmware? |
What if i delete e2p from /lib/firmware? Will both mt7663 and mt7603 have poor str? |
Also, can i compile openwrt stock mt7603 along with proprietary together to choose between two? |
try, you have the device it's a good test. for mt7603 i have an idea. do this test with and without e2p |
Alright, i am waiting for a new build, as i didnt include the desired modules earlier. |
Btw, we cannot install kernel modules from opkg because of kernel hash mismatch, any solution for that?! |
just build it in kernel. |
i asked you if your bin start with mt7603 or mt7663 |
Btw, from where is the e2p file in /lib/firmware generated after flashing the firmware for the first time. Is it auto generated while building the firmware or is device specific and is just a copy of radio.bin? |
It will take another 5-10mins for the build man, sorry for the delay. |
Alright, the build failed with both mt7603 enabled. |
is generated like you did in luci, but this come from a partition called factory. and it will be installed. makefile mt_wifi but it will not install i disabled in makefile |
Will enabling it help mt7603 to get better? |
i'm asking your bin start with mt7603 or mt7663? |
Wait a sec.. e2p.txt Hex editor doesnt show much in text. |
Any suggestions?! |
try this is should not work but i need make sure. |
No change in mac and signal strength. |
try this in /etc_ro/wlan/ |
Everything stays the same. |
rename the bin i just sented e2p and use it in lib/firmware and in /etc_ro/wlan/ find out |
Man,really sorry for the delay, will get back to you in 5 mins. |
Something strange, When i used my default radio.bin as MT7603E.bin in /etc_ro/wlan, the default mac address came up but signal str is even poor. But when i use the bin you provided and place it in /etc_ro/wlan, signal str restores to almost that of stock but mac changes to something diff, with multiple zeros in between. |
Finally, it is fixed now, both mt7663 and mt7603 works like stock. Flashed full tplink stock firmware> booted intramfs> took backup of stock radio.bin> flashed new openwrt> used that radio.bin in /lib/firmware as well as /etc_ro/wlan/ Mac addresses on both the interfaces are stock ones!! |
Thanks a lot legend @bricco1981 !! |
If you need any help related to the drivers, please let me know!! Thanks again @bricco1981 and @vikingloudmouth !! |
Btw, stock tplink radio.bin configures it as MUTxRxEnable=1 |
nice idea, i need ask you some info, not now, we will continue. |
hi, thanks a lot for your help with this drivers. I'm try to understand how get drivers for mt7613be chipset, I cannot find any info. I'm talking about mtk and not mt76.should this card work with mt7615 drivers?
The text was updated successfully, but these errors were encountered: