Odroid C2 mainline kernel support

Post Reply
Flole
Posts: 34
Joined: Thu Apr 13, 2017 10:14 pm
languages_spoken: english, german
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 mainline kernel support

Post by Flole »

I finally wanted to try to upgrade my NFS-Based system's kernel again. Unfortunately it's still the same issue as before, even with the dts patched and a new dtb generated from that. Could you please share your meson-gxbb-odroidc2.dtb so I can rule out any mistake there? Also what kernel are you using?

moon.linux
Posts: 1189
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+...
Has thanked: 0
Been thanked: 13 times
Contact:

Re: Odroid C2 mainline kernel support

Post by moon.linux »

If you are facing Ethernet issue not working out could you please try attach patches on C2/C4/N2.
ethreset.tar.gz
(1.27 KiB) Downloaded 12 times
On USB device we also need to some similar fix, I will try to find a solution to on that as well.

Edited:
Can you guys check the following changes to fix the USB reset issue.

Code: Select all

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
index 234490d3ee68..d9d2a1ffe1dc 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
@@ -19,6 +19,7 @@ usb0_phy: phy@c0000000 {
                        #phy-cells = <0>;
                        reg = <0x0 0xc0000000 0x0 0x20>;
                        resets = <&reset RESET_USB_OTG>;
+                       reset-names = "phy-reset";
                        clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
                        clock-names = "usb_general", "usb";
                        status = "disabled";
@@ -29,6 +30,7 @@ usb1_phy: phy@c0000020 {
                        #phy-cells = <0>;
                        reg = <0x0 0xc0000020 0x0 0x20>;
                        resets = <&reset RESET_USB_OTG>;
+                       reset-names = "phy-reset";
                        clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
                        clock-names = "usb_general", "usb";
                        status = "disabled";
@@ -43,6 +45,9 @@ usb0: usb@c9000000 {
                        phys = <&usb0_phy>;
                        phy-names = "usb2-phy";
                        dr_mode = "host";
+                       snps,reset-phy-on-wake;
+                       resets = <&reset RESET_USB_DDR_0>, <&reset RESET_USB_DDR_1>,
+                               <&reset RESET_USB_DDR_2>, <&reset RESET_USB_DDR_3>;
                        status = "disabled";
                };

@@ -55,6 +60,7 @@ usb1: usb@c9100000 {
                        phys = <&usb1_phy>;
                        phy-names = "usb2-phy";
                        dr_mode = "host";
+                       resets = <&reset RESET_USB_DDR_0>;
                        status = "disabled";
                };
        };

fvolk
Posts: 456
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 42 times
Contact:

Re: Odroid C2 mainline kernel support

Post by fvolk »

I run a diskless C2 cluster, with only one file, the Uboot script, on microSD first partition.
Uboot loads kernel Image+dtb via TFTP, no initramfs, rootfs mounted by kernel via NFS.

U-Boot 2020.04 (May 05 2020 - 22:32:05 +0200) odroid-c2
...that I self-compiled for why I cant remember.

Linux c2 5.7.10tb+ #2 Mon Jul 27 09:15:03 CEST 2020 aarch64 GNU/Linux
...a kernel built from tobetter's source tree (https://github.com/tobetter/linux/commits/odroid-5.7.y)

I have not retested USB for a while...

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest