Additional driver modules

Talking about OS and emulation core development
eALduderino
Posts: 3
Joined: Wed Feb 26, 2020 3:51 am
languages_spoken: english
ODROIDs: GO Advance
Has thanked: 0
Been thanked: 0
Contact:

Re: Additional driver modules

Unread post by eALduderino » Wed Feb 26, 2020 3:58 am

Thank You kamots, i installed the Edimax EW-7611ULB drivers a few days ago. worked like a charm!

Keikune
Posts: 2
Joined: Fri Feb 28, 2020 2:20 am
languages_spoken: english, german
ODROIDs: ODROID Go-Advance
Has thanked: 0
Been thanked: 0
Contact:

Re: Additional driver modules

Unread post by Keikune » Fri Feb 28, 2020 2:26 am

a driver file for the LogiLink WLAN 802.11ac Nano would be cool
details:
WL0237 / WL0238 there are 2 types of this USB device

https://www.amazon.de/gp/product/B00Z1N ... UTF8&psc=1

Chipset : Realtek 8811AU

http://www.logilink.org/Produkte_LogiLi ... anguage=en

that is a "driver" link out of the manual. maybe it helps
https://www.2direct.de/media/driver/wl0237.zip

Source Code (i guess)
http://www.logilink.org/media/GPL/WL0237.zip

and how i install them? i copied the files on the system and connected with ssh . but there is no way that apt install oder make is working.

pic: http://prntscr.com/r8p0u7

Code: Select all

EmuELEC:~ # cd odroidgoadv-drivers-master/
EmuELEC:~/odroidgoadv-drivers-master # ./build.sh
./build.sh: line 3: apt: command not found
./build.sh: line 6: make: command not found
./build.sh: line 10: make: command not found
EmuELEC:~/odroidgoadv-drivers-master #
have a nice day ^^
Last edited by Keikune on Sat Feb 29, 2020 8:40 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 33698
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 515 times
Been thanked: 507 times
Contact:

Re: Additional driver modules

Unread post by odroid » Fri Feb 28, 2020 10:21 am

A few confirmed WiFi drivers have been added into our Kernel tree.
https://github.com/hardkernel/linux/com ... dgoA-4.4.y

User avatar
mad_ady
Posts: 7576
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 396 times
Been thanked: 302 times
Contact:

Re: Additional driver modules

Unread post by mad_ady » Fri Feb 28, 2020 2:45 pm

Emuelec doesn't have the tools required to build stuff. You'll need to build it on ubuntu and copy the ko to emuelec

Keikune
Posts: 2
Joined: Fri Feb 28, 2020 2:20 am
languages_spoken: english, german
ODROIDs: ODROID Go-Advance
Has thanked: 0
Been thanked: 0
Contact:

Re: Additional driver modules

Unread post by Keikune » Fri Feb 28, 2020 2:47 pm

ohh i see, that make sense , is ther a tutorial for that some where here on this board?
to compile the driver can i use a virtuel machine for this preocedure or need i a native OS running on hardware?

ness2991
Posts: 1
Joined: Mon Mar 09, 2020 1:29 am
languages_spoken: english
ODROIDs: Odroid Go Advance
Has thanked: 0
Been thanked: 0
Contact:

Re: Additional driver modules

Unread post by ness2991 » Mon Mar 09, 2020 1:43 am

eventhorizon669 wrote:
Sat Feb 22, 2020 12:21 pm
TP-Link Archer T2U Nano (https://www.amazon.com/gp/product/B07PB1X4CN) works for me using the driver built from https://github.com/aircrack-ng/rtl8812au
I just bought the T2U Nano and don't really know where to start with adding the driver to my OGA. I have a windows computer with Paragon's linux file system installed. Will I be able to install it without linux?

psk
Posts: 10
Joined: Tue Feb 25, 2020 2:16 am
languages_spoken: english
ODROIDs: Odroid Go Advance
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Additional driver modules

Unread post by psk » Wed Mar 11, 2020 11:17 pm

ness2991 wrote:
Mon Mar 09, 2020 1:43 am
eventhorizon669 wrote:
Sat Feb 22, 2020 12:21 pm
TP-Link Archer T2U Nano (https://www.amazon.com/gp/product/B07PB1X4CN) works for me using the driver built from https://github.com/aircrack-ng/rtl8812au
I just bought the T2U Nano and don't really know where to start with adding the driver to my OGA. I have a windows computer with Paragon's linux file system installed. Will I be able to install it without linux?
Hi, I am interested in this too, so if there is a way, could someone point us into the wright direction.

Thank you.

joy
Posts: 1161
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 84 times
Been thanked: 130 times
Contact:

Re: Additional driver modules

Unread post by joy » Thu Mar 12, 2020 6:41 pm

joy wrote:
Thu Feb 20, 2020 4:30 pm
ripper121 wrote:
Wed Feb 19, 2020 5:27 pm
Could you create a Binary for esp8089 Wifi module please.
https://github.com/al177/esp8089
I had problems to get the "make" command running.
Hi @ripper121,
If you need tests for esp8089 module, please refer to this github.
I've modified some parts of esp8089 module driver from al177 github to fit in kernel 4.4.y version,
and confirmed that compile is done. (OGA native compile environment)
With the modified driver source, you will fix build problem. ;)

Code: Select all

$ git clone https://github.com/JeonghwaCho/esp8089.git -b odroid-goa
And please note that if you need it to interface sdio on OGA, some additional parts of kernel dts and defconfig should be modified to interface it via SDIO.
Also some patches are needed to perform esp module init and mac80211 registration.
I've just confirmed basic operation with a module of esp8266 for SDIO interface,
so I will share the patches early next week once I've arrange related patches.
Hi @ripper121,
Very sorry for late update.
esp8089-related commits have been merged into hardkernel github.
https://github.com/hardkernel/linux/com ... dgoA-4.4.y
You can find the drive in linux/drivers/net/wireless/esp8089 and need commits to Mar 11, 2020.
OGA hw has sdio ports only for test purpose so, rk3326-odroidgo2-linux.dts doesn't include related nodes by default.

Here is a sample dts patch.
viewtopic.php?f=193&t=38124#p285566

Code: Select all

diff --git a/arch/arm64/boot/dts/rockchip/rk3326-odroidgo2-linux.dts b/arch/arm64/boot/dts/rockchip/rk3326-odroidgo2-linux.dts
index 5cb56c0..9695263 100644
--- a/arch/arm64/boot/dts/rockchip/rk3326-odroidgo2-linux.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3326-odroidgo2-linux.dts
@@ -298,6 +298,28 @@
 		clock-output-names = "CLK_CAMERA_25MHZ";
 		#clock-cells = <0>;
 	};
+
+	sdio_pwrseq: sdio-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		pinctrl-names = "default";
+		pinctrl-0 = <&wifi_enable_h>;
+
+		/* CHIP_EN GPIO3_B6 */
+		reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
+	};
+
+	wireless-wlan {
+		compatible = "wlan-platdata";
+		rockchip,grf = <&grf>;
+		/* wifi_chip_type - wifi chip define
+		* ap6210, ap6330, ap6335
+		* rtl8188eu, rtl8723bs, rtl8723bu
+		* esp8089
+		*/
+		wifi_chip_type = "esp8089";
+		sdio_vref = <3300>; //1800mv or 3300mv
+		status = "okay";
+	};
 };
 
 
@@ -962,6 +984,19 @@
 	status = "okay";
 };
 
+&sdio {
+	bus-width = <4>;
+	cap-sd-highspeed;
+	cap-sdio-irq;
+	disable-wp;
+	supports-sdio;
+	ignore-pm-notify;
+	keep-power-in-suspend;
+	/* non-removable; */
+	mmc-pwrseq = <&sdio_pwrseq>;
+	status = "okay";
+};
+
 &tsadc {
 	pinctrl-names = "gpio", "otpout";
 	pinctrl-0 = <&tsadc_otp_gpio>;
@@ -1072,6 +1107,12 @@
 					<2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
 		};
 	};
+
+	sdio-pwrseq {
+		wifi_enable_h: wifi-enable-h {
+			rockchip,pins = <3 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
 };
 
 /* DON'T PUT ANYTHING BELOW HERE.  PUT IT ABOVE PINCTRL */
In my case, chip enable and reset port is assigned as following.

Code: Select all

CHIP_EN : connect to SPI1_MISO (GPIO3_B6) with 10kohm pull-up from 3.3V
RST : connect to SPI1_CS0 (GPIO3_B1) with 10kohm pull-up from 3.3V
Attachments
0001_kernel_support_sdio_wifi.diff.zip
(966 Bytes) Downloaded 8 times

User avatar
rooted
Posts: 7343
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 498 times
Been thanked: 138 times
Contact:

Re: Additional driver modules

Unread post by rooted » Thu Mar 12, 2020 9:13 pm

@joy Did you install a SDIO WiFi module? If so how was the performance?

joy
Posts: 1161
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 84 times
Been thanked: 130 times
Contact:

Re: Additional driver modules

Unread post by joy » Mon Mar 16, 2020 10:28 am

rooted wrote:
Thu Mar 12, 2020 9:13 pm
@joy Did you install a SDIO WiFi module? If so how was the performance?
Hi @rooted,

Please note that test hw is configured using unstable external jumper wires. ;)

I use Network router, 'TPLINK AC1900' and host PC, 'ODROID-C2'.
oga_esp8266_test.png
oga_esp8266_test.png (11.1 KiB) Viewed 590 times
Here is a brief iperf3 test result.
oga_esp8266_iperf.png
oga_esp8266_iperf.png (14.77 KiB) Viewed 590 times
'smb' transfer speed was around 5.5MB/s (5.0~5.6MB/s)
and copy throughput using 'scp' was also 5.5MB/s (5.2~5.6MB/s).
These users thanked the author joy for the post:
rooted (Mon Mar 16, 2020 11:02 am)

User avatar
rooted
Posts: 7343
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 498 times
Been thanked: 138 times
Contact:

Re: Additional driver modules

Unread post by rooted » Mon Mar 16, 2020 11:01 am

Not bad, is that speed limited by the module? Can it support 150mbps module, I think the one you used is 72mbps?

joy
Posts: 1161
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 84 times
Been thanked: 130 times
Contact:

Re: Additional driver modules

Unread post by joy » Mon Mar 16, 2020 11:08 am

@rooted,
You're right. The module supports wifi speed up to 72.2mbps.

Eliza
Posts: 18
Joined: Mon May 13, 2019 10:27 pm
languages_spoken: German, English
ODROIDs: Go & Go Advance (familiar with RasPi)
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Additional driver modules

Unread post by Eliza » Tue Mar 17, 2020 6:05 am

@joy thanks for sharing the patch. Do you know if it has been included in the reference image 1.1 that came out 2 days later?

joy
Posts: 1161
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 84 times
Been thanked: 130 times
Contact:

Re: Additional driver modules

Unread post by joy » Tue Mar 17, 2020 10:18 am

Hi @Eliza,
No.
Kernel package version of the image, v1.1 20200313 is as following and it doesn't include esp8089-related commits.

Code: Select all

# uname -a
Linux goadvance 4.4.189-14 #1 SMP Fri Jan 31 19:20:31 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
But I think upgrade logic using 'apt' will be available soon. ;)
https://wiki.odroid.com/odroid_go_advan ... ntu_es#v11

If you need related resources so you want to test it very soon with your environment, please let me know.

crashoverride
Posts: 4840
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 248 times
Contact:

Re: Additional driver modules

Unread post by crashoverride » Wed Mar 18, 2020 1:09 pm

Eliza wrote:
Tue Mar 17, 2020 6:05 am
Do you know if it has been included in the reference image 1.1 that came out 2 days later?
joy wrote:
Tue Mar 17, 2020 10:18 am
But I think upgrade logic using 'apt' will be available soon.
See also: viewtopic.php?f=193&p=286391#p286391

joy
Posts: 1161
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 84 times
Been thanked: 130 times
Contact:

Re: Additional driver modules

Unread post by joy » Wed Mar 18, 2020 2:04 pm

crashoverride wrote:
Wed Mar 18, 2020 1:09 pm
Eliza wrote:
Tue Mar 17, 2020 6:05 am
Do you know if it has been included in the reference image 1.1 that came out 2 days later?
joy wrote:
Tue Mar 17, 2020 10:18 am
But I think upgrade logic using 'apt' will be available soon.
See also: viewtopic.php?f=193&p=286391#p286391
@crashoverride,
Thank you for clarifying it.
@Eliza,
I misunderstood the future plan about kernel update.
Let me check it with hardkernel team.

eventhorizon669
Posts: 4
Joined: Sat Feb 22, 2020 12:00 pm
languages_spoken: english
ODROIDs: C2, HC1, GO Advance
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Additional driver modules

Unread post by eventhorizon669 » Sat Mar 21, 2020 2:59 am

psk wrote:
Wed Mar 11, 2020 11:17 pm
ness2991 wrote:
Mon Mar 09, 2020 1:43 am
eventhorizon669 wrote:
Sat Feb 22, 2020 12:21 pm
TP-Link Archer T2U Nano (https://www.amazon.com/gp/product/B07PB1X4CN) works for me using the driver built from https://github.com/aircrack-ng/rtl8812au
I just bought the T2U Nano and don't really know where to start with adding the driver to my OGA. I have a windows computer with Paragon's linux file system installed. Will I be able to install it without linux?
Hi, I am interested in this too, so if there is a way, could someone point us into the wright direction.

Thank you.
Apologies, it's been a while since I did this so I'm going from memory.

The first step is to hook up a USB ethernet adapter to the OGA so you can perform the driver install. I used https://www.amazon.com/Plugable-Etherne ... B00AQM8586 for this.

Once your OGA is on the network you can SSH in and complete the rest of the procedure per the instructions at https://github.com/aircrack-ng/rtl8812au:

Code: Select all

sudo apt-get update
sudo apt-get install build-essential bc libelf-dev linux-headers-`uname -r`
git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
make && sudo make install
You can then put back in the T2U Nano and start using wifi. You'll know when the wifi adapter is working because it has a blinking green LED that only activates once the driver is enabled.

I hope that helps.

P.S. I've moved on from the reference image to batocera since my original post. I got the T2U Nano working on that distribution as well and can provide instructions for doing so if anyone is interested.
These users thanked the author eventhorizon669 for the post:
psk (Sat Mar 21, 2020 3:34 am)

psk
Posts: 10
Joined: Tue Feb 25, 2020 2:16 am
languages_spoken: english
ODROIDs: Odroid Go Advance
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Additional driver modules

Unread post by psk » Sat Mar 21, 2020 3:51 am

[/quote]

Apologies, it's been a while since I did this so I'm going from memory.

The first step is to hook up a USB ethernet adapter to the OGA so you can perform the driver install. I used https://www.amazon.com/Plugable-Etherne ... B00AQM8586 for this.

Once your OGA is on the network you can SSH in and complete the rest of the procedure per the instructions at https://github.com/aircrack-ng/rtl8812au:

Code: Select all

sudo apt-get update
sudo apt-get install build-essential bc libelf-dev linux-headers-`uname -r`
git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
make && sudo make install
You can then put back in the T2U Nano and start using wifi. You'll know when the wifi adapter is working because it has a blinking green LED that only activates once the driver is enabled.

I hope that helps.

P.S. I've moved on from the reference image to batocera since my original post. I got the T2U Nano working on that distribution as well and can provide instructions for doing so if anyone is interested.
[/quote]

thank you eventhorizon669 for the insights

Post Reply

Return to “Platform development”

Who is online

Users browsing this forum: esprit, notime2d8 and 4 guests