WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Asus USB-AC51 (MT7610U) on piCore 64 13.1  (Read 2533 times)

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Asus USB-AC51 (MT7610U) on piCore 64 13.1
« on: January 22, 2023, 04:40:49 AM »
Hello,

I try all that I found and doesn't work. I saw that AC-51 is native supported in linux https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Adapters_that_are_supported_with_Linux_in-kernel_drivers.md

I used all drivers I already found.

What did I missed?


Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14797
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #1 on: January 22, 2023, 04:53:00 AM »
Perhaps you need the firmware-mediatek extension?

Try loading this extension, plugging in your adapter and then examining dmesg.

Edit: the mt76x0u kernel driver is in the wireless-KERNEL extension - did you try that (load the firmware first)?
« Last Edit: January 22, 2023, 05:39:59 AM by Juanito »

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #2 on: January 22, 2023, 01:11:34 PM »
Perhaps you need the firmware-mediatek extension?

Try loading this extension, plugging in your adapter and then examining dmesg.

Edit: the mt76x0u kernel driver is in the wireless-KERNEL extension - did you try that (load the firmware first)?

there isn't extension firmware-mediatek.tcz in http://tinycorelinux.net/13.x/aarch64/tcz/ ....

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14797
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #3 on: January 22, 2023, 06:52:29 PM »
Ah - you should be able to use the one from x86 or x86_64.

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #4 on: January 23, 2023, 03:59:56 AM »
Ah - you should be able to use the one from x86 or x86_64.

Ok, how do I install an extension from different repository?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14797
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #5 on: January 23, 2023, 07:20:44 AM »
Code: [Select]
wget http://www.tinycorelinux.net/13.x/x86/tcz/firmware-mediatek.tcz
wget http://www.tinycorelinux.net/13.x/x86/tcz/firmware-mediatek.tcz.md5.txt

..and then copy the files to your tce/optional folder.

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #6 on: January 23, 2023, 07:28:21 AM »
Code: [Select]
wget http://www.tinycorelinux.net/13.x/x86/tcz/firmware-mediatek.tcz
wget http://www.tinycorelinux.net/13.x/x86/tcz/firmware-mediatek.tcz.md5.txt

..and then copy the files to your tce/optional folder.

Ok, thanks a lot.

In the mean time, I manage to get work wireless on piCore 13.0, not 13.1, for another usb wifi dongle with 8192eu chipset, using .ko driver compiled for 5.10.39 linux kernel, from here:
http://downloads.fars-robotics.net/wifi-drivers/8192eu-drivers/8192eu-5.10.39-v8-1421.tar.gz

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #7 on: January 23, 2023, 07:52:18 AM »
Code: [Select]
wget http://www.tinycorelinux.net/13.x/x86/tcz/firmware-mediatek.tcz
wget http://www.tinycorelinux.net/13.x/x86/tcz/firmware-mediatek.tcz.md5.txt

..and then copy the files to your tce/optional folder.

And I have another problem now. When I install a .ko driver, it isn't persistent, it must be reinstalled after reboot. I use the following sintax, I hope it's ok:
sudo install -p -m 644 $module_bin $module_dir
sudo depmod $kernel

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #8 on: January 23, 2023, 07:59:21 AM »
I manage to work, by putting to /opt/bootlocal.sh the following lines:

Code: [Select]
mkdir /lib/modules/5.10.39-piCore-v8/kernel/drivers/net/wireless
cp /opt/WiFi/8192eu.ko /lib/modules/5.10.39-piCore-v8/kernel/drivers/net/wireless/
depmod -a
modprobe 8192eu.ko

But I'm wonder if there is another way

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14797
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #9 on: January 23, 2023, 08:30:25 AM »
You can make your own personal extension containing the module - see the extension making section of the wiki and/or search this forum for how to do this.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #10 on: January 24, 2023, 05:36:51 PM »
For the record 8192eu is a realtek product, not Mediatek.

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 708
Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
« Reply #11 on: January 25, 2023, 02:52:56 AM »
If you can follow some bash commands, this how you can do it.
http://forum.tinycorelinux.net/index.php/topic,18858.msg129216.html#msg129216

Here am using a very good trick, by using "$_" that's the previous commands argument, in this it's the tmp directory name that i have made with mkdir in the previous command.

And when the tc extract this file, it sense that it's a kernel module and do whats needed to load the module.
« Last Edit: January 25, 2023, 02:58:06 AM by patrikg »