Page 1 of 1

Wifi adapter

Posted: Sun Oct 06, 2019 9:26 pm
by cipi65
I want to add a wifi usb adapter on my Odroid C2 ( with Android )and I tried a D-link DWA-171 with RTL8811( ID 0bda:1a2b ) chipset but Odroid not recognize the adapter.
I understood the Module 5A have the same chipset.
I put in atach a picture of adapter.

Re: Wifi adapter

Posted: Mon Oct 07, 2019 8:35 am
by odroid
Look into /system/etc/wifi_id_list.txt file to know how to add the VID/PID.

Re: Wifi adapter

Posted: Mon Oct 07, 2019 10:55 pm
by cipi65
This is really funny.
I use this Odroid to see Netflix and HBO GO on an old TV.
Because Netflix blocked all rooted devices I unroot Odroid and Netflix problem was solved.
Now I can't see HBO GO because after an update can't see wired internet connection, and this is the reason why I want to add the wireless adapter.
Surprise, now I need to edit /system/etc/wifi_id_list.txt ( I put this line in file: 0bda 1a2b 8811cu /system/etc/modprobe.d/8192cu /* D-Link DWA-171 */ ) but I can't modify the file because I unrooted the Odroid.
The question now, is how to root back the Odroid and after I will edit the file :/system/etc/wifi_id_list.txt, I will unroot, to see Netflix again :lol:

Re: Wifi adapter

Posted: Mon Oct 07, 2019 11:00 pm
by tobetter
cipi65 wrote:
Mon Oct 07, 2019 10:55 pm
This is really funny.
I use this Odroid to see Netflix and HBO GO on an old TV.
Because Netflix blocked all rooted devices I unroot Odroid and Netflix problem was solved.
Now I can't see HBO GO because after an update can't see wired internet connection, and this is the reason why I want to add the wireless adapter.
Surprise, now I need to edit /system/etc/wifi_id_list.txt ( I put this line in file: 0bda 1a2b 8811cu /system/etc/modprobe.d/8192cu /* D-Link DWA-171 */ ) but I can't modify the file because I unrooted the Odroid.
The question now, is how to root back the Odroid and after I will edit the file :/system/etc/wifi_id_list.txt, I will unroot, to see Netflix again :lol:
Can you run mount -o remount,rw /system in the command shell before editing /system/etc/wifi_id_list.txt?

Re: Wifi adapter

Posted: Tue Oct 08, 2019 1:46 am
by cipi65
tobetter wrote:
Mon Oct 07, 2019 11:00 pm
cipi65 wrote:
Mon Oct 07, 2019 10:55 pm
This is really funny.
I use this Odroid to see Netflix and HBO GO on an old TV.
Because Netflix blocked all rooted devices I unroot Odroid and Netflix problem was solved.
Now I can't see HBO GO because after an update can't see wired internet connection, and this is the reason why I want to add the wireless adapter.
Surprise, now I need to edit /system/etc/wifi_id_list.txt ( I put this line in file: 0bda 1a2b 8811cu /system/etc/modprobe.d/8192cu /* D-Link DWA-171 */ ) but I can't modify the file because I unrooted the Odroid.
The question now, is how to root back the Odroid and after I will edit the file :/system/etc/wifi_id_list.txt, I will unroot, to see Netflix again :lol:
Can you run mount -o remount,rw /system in the command shell before editing /system/etc/wifi_id_list.txt?
mount : operation not permitted

Re: Wifi adapter

Posted: Tue Oct 08, 2019 2:08 pm
by mad_ady
See if adb is running as root when connecting via microusb. Otherwise you can edit the file on a different system (pull the emmc, mount in a different pc and make the edit)

Re: Wifi adapter

Posted: Wed Oct 09, 2019 12:02 am
by cipi65
I rooted the Odroid with Kingo ROOT and add in /system/etc/wifi_id_list_txt a line with: "0bda 1a2b 8811cu /system/etc/modprobe.de/8811cu" , and also I try with "0bda 1a2b 8812au /system/etc/modprobe.de/8812au" but when I connect the wireless adapter nothing hapening.
This is what I see in USB Device Info:

Device Info
Device Path: /sys/bus/usb/devices/1-1.4/
Device Class: Use class information in the Interface Descriptors (0x0)
Vendor ID: 0bda
Vendor Name (reported): D-Link Corporation
Vendor Name (from DB): Realtek Semiconductor Corp.
Product ID: 1a2b
Product Name (reported): DISK
Product Name (from DB): not found

Additional Info
USB Version: 2.00
Speed: 480
Protocol: 00
Maximum Power: 500mA
Serial Number:

When the adapter in connected to Odroid I see a mesage : Corupted Realtek USB drive.Touch to fix
When I connected first time the adapter to Windows PC I see a disk drive and inside was the Windows driver. After I installed the adapter I can't see the disk drive.

Re: Wifi adapter

Posted: Wed Oct 09, 2019 12:45 am
by mad_ady
I didn't know they make hybrid wifis, I only knew of 3g modems that behaved like this. They needed usb_modeswitch to change operating mode.
They change vid/pid when switching

Re: Wifi adapter

Posted: Wed Oct 09, 2019 10:25 am
by odroid
As far as I remember, RTL8821CU also needed a "usb_modeswitch" command.

Re: Wifi adapter

Posted: Wed Oct 09, 2019 10:55 pm
by cipi65
odroid wrote:
Wed Oct 09, 2019 10:25 am
As far as I remember, RTL8821CU also needed a "usb_modeswitch" command.
Can you be more specific about "usb modeswich" command ?
I need same advices how the make the wireless adapter functional.

Thank you

Re: Wifi adapter

Posted: Thu Oct 10, 2019 9:04 am
by odroid

Re: Wifi adapter

Posted: Thu Oct 10, 2019 11:03 pm
by cipi65
odroid wrote:
Thu Oct 10, 2019 9:04 am
viewtopic.php?f=177&t=34769
Now I don't understand, the topic is about building a LINUX driver for RTL8821.
All that I want, is to make my wifi adapter to work with Android (Marshmallow v5.4) installed on Odroid C2.
I put below the description of Wifi Module 5A, that is sold for Odroid C2.

IEEE 802.11ac/a/b/g/n WLAN module with on-board 2.4Ghz and 5.8Ghz Dual band antenna.

Works with ODROID series
Android and Linux compatible

Please update your OS to the latest version if it doesn’t work.

Realtek RTL8811AU chipset ( USB ID = 0bda:a811 )
– Dual-Band 11ac 1×1 with 64/128/152 bit WEP, WPA/WPA-PSK,WPA2/WPA2-PSK securities
– Frequency Range: 2.4-2.483GHz ; 5.725~5.825GHz
– Support WLAN Standards: IEEE802.11ac/a/b/g/n
– Transmission Speed : ~200 Mbps
– USB 2.0 High-speed
– Antenna Gain: 2dBi
– Dimension : 36 x 19 x 9 mm
– LED for WiFi Link Activity
– Frequency Range: 2.4-2.483GHz ; 5.725~5.825GHz
– Dimension : 36 x 19 x 9 mm
– Weight : 5 g

This module is build with RTL8811 and is Android compatible, only the USB ID is different. That's the reson that I modify the :/system/etc/wifi_id_list.txt but my wifi adapter did't work.

Re: Wifi adapter

Posted: Fri Oct 11, 2019 9:44 am
by odroid
I believe CU and AU are very different chipset and their device drivers are not compatible each other.

Re: Wifi adapter

Posted: Sun Oct 13, 2019 4:29 pm
by cipi65
odroid wrote:
Fri Oct 11, 2019 9:44 am
I believe CU and AU are very different chipset and their device drivers are not compatible each other.
I really don't undersatnd, the ANDROID for Odroid not have all drivers that ANDROID put in his build ??
The adapter from picture is with RTL8811CU, like mine, and HAVE ANDROID DRIVER !!!

Re: Wifi adapter

Posted: Mon Oct 14, 2019 10:05 am
by odroid
I have no idea how they can sell it with the strange advertising.
I think you have to contact the seller first to get an Android porting guide and relevant source code packages.

Re: Wifi adapter

Posted: Mon Oct 14, 2019 3:03 pm
by codewalker
If you can use adb command, Try this.

Code: Select all

[~]$ adb shell
1|root@odroidc2:/ # mount -o rw,remount /system                                
root@odroidc2:/ # vi /system/etc/wifi_id_list.txt   
cipi65 wrote:
Tue Oct 08, 2019 1:46 am
tobetter wrote:
Mon Oct 07, 2019 11:00 pm
cipi65 wrote:
Mon Oct 07, 2019 10:55 pm
This is really funny.
I use this Odroid to see Netflix and HBO GO on an old TV.
Because Netflix blocked all rooted devices I unroot Odroid and Netflix problem was solved.
Now I can't see HBO GO because after an update can't see wired internet connection, and this is the reason why I want to add the wireless adapter.
Surprise, now I need to edit /system/etc/wifi_id_list.txt ( I put this line in file: 0bda 1a2b 8811cu /system/etc/modprobe.d/8192cu /* D-Link DWA-171 */ ) but I can't modify the file because I unrooted the Odroid.
The question now, is how to root back the Odroid and after I will edit the file :/system/etc/wifi_id_list.txt, I will unroot, to see Netflix again :lol:
Can you run mount -o remount,rw /system in the command shell before editing /system/etc/wifi_id_list.txt?
mount : operation not permitted