LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network drivers for MT7668AUN mediatek wifichipset (https://www.linuxquestions.org/questions/linux-networking-3/network-drivers-for-mt7668aun-mediatek-wifichipset-4175735160/)

satyahari 03-22-2024 12:53 AM

Network drivers for MT7668AUN mediatek wifichipset
 
Hello everyone,

I hope this message finds you well. I am currently facing an issue with my MT7668AUN MediaTek WiFi chipset on the latest kernels, and I'm seeking some assistance from the community to resolve it.

Despite my efforts, I've been unable to locate compatible network drivers for this chipset that work seamlessly with the newest kernel versions. I've scoured various forums, checked official documentation, and tried multiple troubleshooting steps, but unfortunately, I haven't had any luck.

If anyone has experience or suggestions regarding where I might find or how I could potentially resolve this driver compatibility issue, I would greatly appreciate your guidance. Any tips, links to resources, or personal experiences would be incredibly valuable.

Thank you very much for taking the time to read this message, and I look forward to any assistance you can provide.

TB0ne 03-22-2024 08:22 AM

Quote:

Originally Posted by satyahari (Post 6491160)
Hello everyone,
I hope this message finds you well. I am currently facing an issue with my MT7668AUN MediaTek WiFi chipset on the latest kernels, and I'm seeking some assistance from the community to resolve it.

Despite my efforts, I've been unable to locate compatible network drivers for this chipset that work seamlessly with the newest kernel versions. I've scoured various forums, checked official documentation, and tried multiple troubleshooting steps, but unfortunately, I haven't had any luck. If anyone has experience or suggestions regarding where I might find or how I could potentially resolve this driver compatibility issue, I would greatly appreciate your guidance. Any tips, links to resources, or personal experiences would be incredibly valuable. Thank you very much for taking the time to read this message, and I look forward to any assistance you can provide.

You don't tell us anything that would let us help you. Not the version/distro of Linux you're using, on what kind of hardware, what kind of network card/dongle this is (brand/model), or anything that you say you've done/tried. All we have is a chipset and that you "haven't had any luck". We can't guess.

Provide details and we can try to help.

jayjwa 03-22-2024 03:10 PM

It's not looking good. https://wireless.wiki.kernel.org/en/...ivers/mediatek Doesn't list it as a supported chipset, and it is listed under the "any other chip" link that won't work. Personally, I'd research and buy a known-working nic.

TB0ne 03-22-2024 03:43 PM

Quote:

Originally Posted by jayjwa (Post 6491289)
It's not looking good. https://wireless.wiki.kernel.org/en/...ivers/mediatek Doesn't list it as a supported chipset, and it is listed under the "any other chip" link that won't work. Personally, I'd research and buy a known-working nic.

There are a few links to Github with instructions on how to compile the driver, with several working solutions, but the OP doesn't say what they've read/done/tried...no idea where to go from here.

There are also some links saying that you just need the firmware, which is available for Debian and derivatives, but we don't know what version/distro the OP is running either. They've given us nothing.

satyahari 03-23-2024 02:17 PM

Thank you all for the replies and asking for more details and to be more specific

1. As of now, I am looking for the drivers for the mediaTek wifi chipset MT7668AUN. More details of the chip MT7668 can be found in the below link
https://www.mediatek.com/products/broadband-wifi/mt7668

2. I am working for latest Tizen OS for the latest kernel 6.8.1

3. I am looking to modify the drivers to extract the CSI(Channel state Information) data.

4. I found this chipset is mainly used in IoT enabled smart devices like display devices.

TB0ne 03-23-2024 02:27 PM

Quote:

Originally Posted by satyahari (Post 6491455)
Thank you all for the replies and asking for more details and to be more specific

1. As of now, I am looking for the drivers for the mediaTek wifi chipset MT7668AUN. More details of the chip MT7668 can be found in the below link
https://www.mediatek.com/products/broadband-wifi/mt7668
2. I am working for latest Tizen OS for the latest kernel 6.8.1
3. I am looking to modify the drivers to extract the CSI(Channel state Information) data.
4. I found this chipset is mainly used in IoT enabled smart devices like display devices.

Great; you still don't tell us what you've looked at already, and restating the same device model number again tells us nothing new. And putting "mediaTek MT7668AUN linux" into Google pulls up several articles with links to drivers; did you try to look???
https://ps4linux.com/mt7668-wifi-blu...linux-compile/

There's source linked there, along with instructions.

love_for_open_source 03-29-2024 09:47 AM

Hi,

I am also working on porting the mediatek MT7668 wifi driver. The driver's previous kernel version was v4.19. Currently I am trying to make it work on kernel v6.1. Due to changes in kernel module cfg80211, there are quite a few complications in making the MT7668 wifi driver work on kernel 6.1. I am able to successfully compile the driver and it's also probing fine. But its stuck at some point and is not able to scan and connect to wifi network. Currently, I am finding ways to debug the module and find the exact cause.
I have a few queries regarding the firmware of mediatek MT7668. Does it also needs to be updated as the kernel has updated?. If yes, then I think the case is closed. If no, then I guess It's possible to make it compatible with kernel v6.1.
Also, any advice on debugging the module would be great.
Here are the environment details

HOST: x86-64 ubuntu 22.04
TARGET: am625x-evc
ARCH: ARM64
kernel-version: 6.1.33

Thanks

business_kid 03-29-2024 10:35 AM

Hello love_for_open_source & welcome to LQ.

I gather you're trying to update the dodgy kernel code. The biggest issue you will face is that there seems to have been significant header changes between 4.x kernels and 5.x that required major work, and I presume that's been the bulk of it.

Have you got a MT7668? The various Arm distros are very good at beating older drivers into shape and you may find much of the work already done for you, even the scanning issue you mentioned.

love_for_open_source 04-27-2024 05:12 PM

Yeah I do have one and I am able to successfully compile it as well currently I am debugging the module and I need a bit of assistance there. If anyone can help much appreciated

business_kid 04-28-2024 05:21 AM

I did a 4.x.x to 5.x.x conversion for the headers this way.
  1. Open a terminal (1), start the compile. Focus on the missing include.
  2. Open another terminal (2) and cd to the kernel includes.
  3. Perform a file search for the missing include, usually in another directory.
  4. Run lndir to get the actual include found where it's wanted. I linked the whole directory because there would be many repeat offenders otherwise.
  5. Repeat ad nauseam until the thing compiled.

The compile was for an Arm box, and not PC. There was a crazy include layout on the Arm kernel at that time. I detailed the troubles I had back to my distro and haven't had an issue since.


All times are GMT -5. The time now is 07:27 AM.