Jump to content

[T95Z Plus] Ethernet working with Armbian 4.19....


Recommended Posts

Posted

Because the device tree problem, Ethernet did not working under Armbian 4.19.x. The correct device tree as follow, this will make the T95Z Plus Ethernet working:

 

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2016 Endless Computers, Inc.
 * Author: Carlo Caione <carlo@endlessm.com>
 
*/

/dts-v1/;

#include "meson-gxm.dtsi"
#include "meson-gx-p23x-q20x.dtsi"

/ {
	compatible = "amlogic,q201", "amlogic,s912", "amlogic,meson-gxm";
	model = "Amlogic Meson GXM (S912) Q201 Development Board";
};

&ethmac {
	phy-mode = "rgmii";
	pinctrl-0 = <&eth_pins>;
	pinctrl-names = "default";
	reg = <0x0 0xc9410000 0x0 0x10000 
	       0x0 0xc8834540 0x0 0x8 
	       0x0 0xc8834558 0x0 0xc>;

	/* Select external PHY by default */
	phy-handle = <&external_phy>;

	amlogic,tx-delay-ns = <2>;

	/* External PHY reset is shared with internal PHY Led signals */
	snps,reset-gpio = <&gpio GPIOZ_14 0>;
	snps,reset-delays-us = <0 10000 1000000>;
	snps,reset-active-low;
};

&external_mdio {
	external_phy: ethernet-phy@0 {
		/* T95Z Plus's phy has phy id = 0381:5c11 */
		compatible = "ethernet-phy-id0381.5c11", "ethernet-phy-ieee802.3-c22";
		/* T95Z Plus's phy has phy addr = 1 */
		reg = <1>;
		max-speed = <1000>;
		interrupt-parent = <&gpio_intc>;
		interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
	};
};

&sd_emmc_a {
	brcmf: wifi@1 {
		reg = <1>;
		compatible = "brcm,bcm4329-fmac";
	};
};

 

You can download the dts/dtb here:

https://pan.baidu.com/s/1FJtKjyaL9rlhmJFQG8cVSg

 

Please copy the meson-gxm-T95Z-Plus.dtb to your /boot, then modify the /boot/uEnv.ini to point to the new dtb, reboot the system make things work. 

Good luck!

meson-gxm-T95Z-Plus.zip

Posted
4 hours ago, kbkpbot said:

You can download the dts/dtb here:

https://pan.baidu.com/s/1FJtKjyaL9rlhmJFQG8cVSg

 

Is there any other place than pan.baidu.com (Google Drive or as atatchment to this mesage here in the forum)?

I cant access this url :(
Do you think it would work also with a T95K Pro? - because the T95K Pro is also a 

compatible = "amlogic,q201", "amlogic,s912", "amlogic,meson-gxm"; model = "Amlogic Meson GXM (S912) Q201 Development Board";

Posted
10 hours ago, guidol said:

Is there any other place than pan.baidu.com (Google Drive or as atatchment to this mesage here in the forum)?

I cant access this url :(
Do you think it would work also with a T95K Pro? - because the T95K Pro is also a 

compatible = "amlogic,q201", "amlogic,s912", "amlogic,meson-gxm"; model = "Amlogic Meson GXM (S912) Q201 Development Board";

I uploaded an attachment in the message.

Please try it....

 

Posted
19 hours ago, kbkpbot said:

Please copy the meson-gxm-T95Z-Plus.dtb to your /boot, then modify the /boot/uEnv.ini to point to the new dtb, reboot the system make things work. 

Good luck!

meson-gxm-T95Z-Plus.zip

Many Thanks for the upload via attachment, but your .dtb doenst work for my Ethernet-port :(

 

Today I extracted the .dts for the Sunvell T95K Pro with the Amlogic Customization Tool v5.50 from a T95K Pro Update-file,

I did compile them on the T95K Pro (which is running the 4.19.x kernel) via dtc from .dts to .dtb, but the T95K Pro wouldnt

boot with this .dtb when copied to the card and configured in the 2 dtb-config-files (they are also very big against other dtbs).

 

Linux sunvell-t95kpro 4.19.6-aml-s9xxx #5.67 SMP PREEMPT Fri Dec 7 10:50:53 MSK 2018 aarch64 GNU/Linux

dtc -I dts -O dtb ./T95KPro_gxm_q201_1g.dts -o ./T95KPro_gxm_q201_1g.dtb
dtc -I dts -O dtb ./T95KPro_gxm_q201_2g.dts -o ./T95KPro_gxm_q201_2g.dtb

-rw-r--r-- 1 root root 44735 Dec 18 11:34 T95KPro_gxm_q201_1g.dtb
-rw-r--r-- 1 root root 54276 Dec 18 11:06 T95KPro_gxm_q201_1g.dts
-rw-r--r-- 1 root root 45370 Dec 18 11:34 T95KPro_gxm_q201_2g.dtb
-rw-r--r-- 1 root root 54967 Dec 18 11:06 T95KPro_gxm_q201_2g.dts

Has the internal format changed from a older kernel to a newer - how can I get a newer .dtb that is working wth my ethernet-port?

For information and future possibilities I have attached the 2 .dts versions (for 1G or 2G of ram)

Sunvell_T95KPRO_dts_extract.zip

Posted

Please  note:

  The T95Z Plus use a external phy ,  ZTE's ZX2AA500. So the device tree use a phy_id=0381:5c11 for this phy. 

 

  I just added some pr_info in the dwmac-meson8b.c and stmmac_mdio.c, then recompile the kenerl , check dmesg , to see what is happen.

  Then I found the phy-id .

  I also checked the kernel 3.14 and found that the phy addr is 1 , not 0.

  So by fixed the dts, and finally make the ethernet work . 

 

If you can open the box, you can check the phy chip. If the phy chip is also the ZTE's ZX2AA500, then you can just modify the phy_addr (reg = <1>)  from 0 to 5(?) to see work or not.

 

Posted
On 12/17/2018 at 8:25 AM, kbkpbot said:

Please copy the meson-gxm-T95Z-Plus.dtb to your /boot, then modify the /boot/uEnv.ini to point to the new dtb, reboot the system make things work. 

Good luck!

meson-gxm-T95Z-Plus.zip

I sure would like to learn how to extract a DTB file from an Android device. Can you please explain how you managed to get the DTB file from your T95Z-Plus device?

  • Werner locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines