openwrt for the rock64
#17
for anyone interested these are the basic kernel patches:
the change to the ethernet node could probably go upstream

Code:
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
index 95ab6928cfd4..13385bf3daa6 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
@@ -45,7 +45,8 @@ vcc_host_5v: vcc-host-5v-regulator {

    vcc_host1_5v: vcc_otg_5v: vcc-host1-5v-regulator {
        compatible = "regulator-fixed";
-        gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
+        enable-active-high;
+        gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
        pinctrl-names = "default";
        pinctrl-0 = <&usb20_host_drv>;
        regulator-name = "vcc_host1_5v";
@@ -87,7 +88,8 @@ standby_led: led-1 {
    sound {
        compatible = "audio-graph-card";
        label = "rockchip,rk3328";
-        dais = <&i2s1_p0
+        dais = <&i2s0_p0
+            &i2s1_p0
            &spdif_p0>;
    };

@@ -161,12 +163,30 @@ &gmac2io {

&hdmi {
    status = "okay";
+
+    port@0 {
+        hdmi_p0_0: endpoint {
+            remote-endpoint = <&i2s0_p0_0>;
+        };
+    };
};

&hdmiphy {
    status = "okay";
};

+&i2s0 {
+    status = "okay";
+
+    i2s0_p0: port {
+        i2s0_p0_0: endpoint {
+            dai-format = "i2s";
+            mclk-fs = <256>;
+            remote-endpoint = <&hdmi_p0_0>;
+        };
+    };
+};
+
&i2c1 {
    status = "okay";

@@ -365,6 +385,9 @@ &tsadc {

&uart2 {
    status = "okay";
+
+    /delete-property/ dmas;
+    /delete-property/ dma-names;
};

&u2phy {
@@ -397,6 +420,15 @@ &usb_host0_ohci {
    status = "okay";
};

+&usbdrd3 {
+    status = "okay";
+};
+
+&usbdrd_dwc3 {
+    dr_mode = "host";
+    status = "okay";
+};
+
&vop {
    status = "okay";
};

Code:
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
index 13385bf3daa6..7711efd856a8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
@@ -148,17 +148,30 @@ &gmac2io {
    assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
    assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
    clock_in_out = "input";
-    phy-supply = <&vcc_io>;
+    phy-handle = <&rtl8211f>;
    phy-mode = "rgmii";
-    pinctrl-names = "default";
+    phy-supply = <&vcc_io>;
    pinctrl-0 = <&rgmiim1_pins>;
-    snps,force_thresh_dma_mode;
-    snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
-    snps,reset-active-low;
-    snps,reset-delays-us = <0 10000 50000>;
-    tx_delay = <0x24>;
+    pinctrl-names = "default";
+    snps,aal;
    rx_delay = <0x18>;
+    tx_delay = <0x24>;
    status = "okay";
+
+    mdio {
+        compatible = "snps,dwmac-mdio";
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        rtl8211f: ethernet-phy@1 {
+            reg = <1>;
+            pinctrl-0 = <&eth_phy_reset_pin>;
+            pinctrl-names = "default";
+            reset-assert-us = <10000>;
+            reset-deassert-us = <50000>;
+            reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
+        };
+    };
};

&hdmi {
@@ -323,6 +336,12 @@ &io_domains {
};

&pinctrl {
+    gmac2io {
+        eth_phy_reset_pin: eth-phy-reset-pin {
+            rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
+        };
+    };
+
    ir {
        ir_int: ir-int {
            rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;

Hello again ! I've recently put together a new build.

CHANGES OF NOTE:

* Latest glibc / 5.10 kernel / openwrt packages
* Reworked the ethernet node in the DTS file ! (no more weird load problem and network restarts are possible without issue !)
* Led functionality is now enabled and configurable from GUI
* Small change copied from ayufan for power.
Small xhci change lifted from git.kernel.org


DOWNLOAD LINKS:

EXT4 Filesystem:
https://disk.yandex.com/d/K4d4knF7iBqkHw

SQUASHFS Filesystem:
https://disk.yandex.com/d/IG8mO4kMOPetwQ

TODO: 

* Release the patches I have that make this build  (see above post for the main kernel patches)
* Possibly get sound and display working
* Possibly add more packages/support for things like qos

OUTSTANDING:

* Asix ax88179 adapter is still unreliable for me  when plugged directly into the usb3 port. It appears to be much better when plugged into a usb3 hub (I haven't been able to crash it yet though i'm not sure this driver has ever been reliable when using bridging vendor or no vendor)

* I've switched the realtek r8152 driver to the vendor driver. The rtl8156 (2.5gbps) may stil be unreliable or only operate in 1gbps mode though.
  Reply


Messages In This Thread
openwrt for the rock64 - by wilsonYan - 08-11-2020, 12:13 AM
RE: openwrt for the rock64 - by tophneal - 08-11-2020, 09:49 AM
RE: openwrt for the rock64 - by yura407 - 11-29-2020, 11:30 PM
RE: openwrt for the rock64 - by chainu127 - 01-16-2021, 11:16 PM
RE: openwrt for the rock64 - by chainu127 - 02-01-2021, 09:23 PM
RE: openwrt for the rock64 - by chainu127 - 02-08-2021, 10:08 PM
RE: openwrt for the rock64 - by wilsonYan - 04-05-2021, 10:17 PM
RE: openwrt for the rock64 - by wilsonYan - 04-23-2021, 01:37 AM
RE: openwrt for the rock64 - by gechu - 05-12-2021, 12:10 PM
RE: openwrt for the rock64 - by helpmerock - 05-14-2021, 11:16 PM
RE: openwrt for the rock64 - by gechu - 05-15-2021, 02:20 PM
RE: openwrt for the rock64 - by helpmerock - 05-16-2021, 10:26 AM
RE: openwrt for the rock64 - by helpmerock - 05-21-2021, 10:14 AM
RE: openwrt for the rock64 - by stamasd - 05-22-2021, 11:16 AM
RE: openwrt for the rock64 - by stamasd - 05-23-2021, 07:53 AM
RE: openwrt for the rock64 - by wilsonYan - 06-28-2021, 09:50 PM
RE: openwrt for the rock64 - by wilsonYan - 09-22-2021, 01:33 AM
RE: openwrt for the rock64 - by wilsonYan - 09-22-2021, 06:38 PM
RE: openwrt for the rock64 - by helpmerock - 11-26-2021, 08:01 PM
RE: openwrt for the rock64 - by CanadianBacon - 12-20-2021, 11:46 AM
RE: openwrt for the rock64 - by helpmerock - 12-21-2021, 08:54 AM
RE: openwrt for the rock64 - by helpmerock - 12-21-2021, 09:56 AM
RE: openwrt for the rock64 - by c012 - 01-16-2022, 10:30 PM
RE: openwrt for the rock64 - by stamasd - 02-12-2022, 08:52 AM
RE: openwrt for the rock64 - by CanadianBacon - 03-09-2022, 11:37 PM
RE: openwrt for the rock64 - by CanadianBacon - 03-10-2022, 03:23 PM
RE: openwrt for the rock64 - by CanadianBacon - 03-12-2022, 06:59 PM
RE: openwrt for the rock64 - by helpmerock - 03-13-2022, 04:24 PM
RE: openwrt for the rock64 - by CanadianBacon - 03-13-2022, 06:42 PM
RE: openwrt for the rock64 - by CanadianBacon - 03-13-2022, 10:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 7 1,005 11-19-2024, 02:54 PM
Last Post: mara
  Upgrading ancient Rock64 timxjr1300 0 56 11-15-2024, 09:50 AM
Last Post: timxjr1300
  arch rock64 does not boot nemnob 1 959 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 43,592 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 81,027 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 1,863 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 636 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 1,077 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 1,083 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 11,232 10-12-2023, 05:14 PM
Last Post: tpaul

Forum Jump:


Users browsing this thread: 4 Guest(s)