Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: cosminbro on January 22, 2023, 04:40:49 AM

Title: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: cosminbro 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?

Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: Juanito 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)?
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: cosminbro 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/ ....
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: Juanito on January 22, 2023, 06:52:29 PM
Ah - you should be able to use the one from x86 or x86_64.
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: cosminbro 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?
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: Juanito 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.
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: cosminbro 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
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: cosminbro 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
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: cosminbro 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
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: Juanito 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.
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: Paul_123 on January 24, 2023, 05:36:51 PM
For the record 8192eu is a realtek product, not Mediatek.
Title: Re: Asus USB-AC51 (MT7610U) on piCore 64 13.1
Post by: patrikg 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.