> Date: Mon, 30 Jul 2018 15:16:13 +0200
> From: Robert <info...@die-optimisten.net>
> 
> On Mon, 30 Jul 2018 22:07:12 +1000
> Jonathan Gray <j...@jsg.id.au> wrote:
> > The miniroot includes a u-boot image/dtb for the pine64+,
> > you'll need to dd a different image over it.
> > 
> > If you install the u-boot-aarch64 package it can be found at
> > 
> > /usr/local/share/u-boot/nanopi_a64/u-boot-sunxi-with-spl.bin
> > 
> > dd if=u-boot-sunxi-with-spl.bin of=/dev/sdXc bs=1024 seek=8
> 
> Done, see log below. Now no network is found (same as when I compile
> the firmware and uboot directly from the latest GIT.
> I'm afraid I might have to look into the firmware/u-boot; so I wanted
> to check first if anyone here ever had this working...?

See my other mail.

Below is the diff (against a fairly recent Linux mainline tree) that I
used to get mine working.  If you manage to build the .dtb file with
this diff, install it on the EFI (msdos) partition in a subdirectory
named "allwinner".  Or wait until we've patched the ports.

Cheers,

Mark


diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts 
b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
index e2dce48fa29a..6cbf823a39bb 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
@@ -51,6 +51,7 @@
        compatible = "friendlyarm,nanopi-a64", "allwinner,sun50i-a64";
 
        aliases {
+               ethernet0 = &emac;
                serial0 = &uart0;
        };
 
@@ -67,6 +68,14 @@
        status = "okay";
 };
 
+&emac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
+       phy-mode = "rgmii";
+       phy-handle = <&ext_rgmii_phy>;
+       status = "okay";
+};
+
 /* i2c1 connected with gpio headers like pine64, bananapi */
 &i2c1 {
        pinctrl-names = "default";
@@ -78,6 +87,13 @@
        bias-pull-up;
 };
 
+&mdio {
+       ext_rgmii_phy: ethernet-phy@1 {
+               compatible = "ethernet-phy-ieee802.3-c22";
+               reg = <7>;
+       };
+};
+
 &mmc0 {
        pinctrl-names = "default";
        pinctrl-0 = <&mmc0_pins>;

Reply via email to