Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X96Max+ PHY (IP1001M) no ETH #1193

Closed
tv4you2016 opened this issue Mar 20, 2023 · 20 comments
Closed

X96Max+ PHY (IP1001M) no ETH #1193

tv4you2016 opened this issue Mar 20, 2023 · 20 comments

Comments

@tv4you2016
Copy link

Device Information | 设备信息

  • SOC: S095x3
  • Model X96Max+ PHY (IP1001M)

Armbian Version | 系统版本

  • Kernel Version: [5.15.100]
  • Release: [bullseye]

hello @ophub
I have an X96 Max+ PHY (IP 1001M) but I can't get the ETH to work,
the dtb i am using is meson-sm1-x96-max-plus-ip1001m-2.dtb

The pin voltage is:

48--3.35
49--3.35
50--0.17
51--0.17
7---0.17
8---3.35

but i get this error and i don't get ip

if you want log by Uart for a better debug say

photo_2023-03-20_20-57-42

@tv4you2016
Copy link
Author

leaving attached the dtb and dts extracted from the original android rom

mybox.zip

@serrj-sv
Copy link

#1054 (comment)

@ophub
Copy link
Owner

ophub commented Mar 21, 2023

Now that you download the latest version, this issue should be resolved.

@tv4you2016
Copy link
Author

@ophub
i used the version
Armbian 23.05.0_amlogic_s905x3_bullseye_5.15.100_server 2023.03.20.img
which one did you correct it in?

@ophub
Copy link
Owner

ophub commented Mar 21, 2023

big change today

@serrj-sv
Copy link

serrj-sv commented Mar 21, 2023

Now that you download the latest version, this issue should be resolved.

It is not. Some boxes with IP1001M phy has an issue that it works only on 100Mbps. I spent a lot of time troubleshooting this, it seems have something to do with rgmii configuration, but I tried all possible combinations of internal tx and rx delays: none are working. Physicallly link goes up, but no Rx or Tx packets. So the only fix for now is to set interface to 100Mbps FD mode.

There was already same reports:

  1. X96Max_Plus2_AI either -19 error on ETH or no connection. #1054
  2. 先还原为原来的安卓系统,再armbian-install写入时不要加参数,不要使用-m yes #964 (comment)

@ophub
Copy link
Owner

ophub commented Mar 21, 2023

# This error has been resolved, download the latest firmware now.

A start job is running for Wait for network to be configured by ifupdown (imin 12s / no limit)

@tv4you2016
Copy link
Author

@ophub @serrj-sv

the only way to have ip for eth0 is to run the command ethtool -s eth0 speed 100
but every time I turn off the box and turn it back on I have to run that same command
does the Armbian_bullseye_03.20.2344 build already have the correction made for this box?

@ophub ophub closed this as completed Mar 21, 2023
@tv4you2016
Copy link
Author

@ophub
still does not work with the version Armbian_23.05.0_amlogic_s905x3_bullseye_5.15.103_server_2023.03.21.img
I still don't get the ip I have to run the command

@ophub
Copy link
Owner

ophub commented Mar 22, 2023

try meson-sm1-x96-max-plus-ip1001m.dtb

@tv4you2016
Copy link
Author

my dtb is meson-sm1-x96-max-plus-ip1001m-2.dtb

if i use my dtb is meson-sm1-x96-max-plus-ip1001m.dtb i get this error
photo_2023-03-22_09-12-35

@ophub
Copy link
Owner

ophub commented Mar 22, 2023

Have you tried updating to another series of kernels, such as 5.4/6.1 and so on. Did you use it before? Problems with recent kernels?

@tv4you2016
Copy link
Author

@ophub
Have you used it before?

  • no.. i received this version of the box recently

Problems with recent kernels?

  • at least with kernel 6.1.20 and 5.15.103 the error remains. Just running the command and that solves it

it recognizes the network card.. and detects 1GB but does not pick up the ip.
when I put 100mb (ethtool -s eth0 speed 100 )it works right away

@ophub
Copy link
Owner

ophub commented Mar 22, 2023

Is your wired network card 100 megabytes?

@tv4you2016
Copy link
Author

tv4you2016 commented Mar 23, 2023

I don't know,
but I think I should measure pin 36 according to the datasheet to find out, what do you say?

https://www.chipmall.com/datasheet/IC-Plus-IP1001M_5294170.html

and view pag 16

@serrj-sv
Copy link

@tv4you2016
pin 36 on this board is pulled down (0v) to set phy in rgmii mode, no sense to measure it.

As I already mentioned earlier this is specific case for this particular model of X96 (Max Plus2 AI with IP1001M phy): it fails to transmit and receive packets in gigabit mode. 100MBps works fine.

There are couple of options that control RGMII phy mode in kernel:
https://www.kernel.org/doc/Documentation/devicetree/bindings/net/amlogic%2Cmeson-dwmac.yaml

For RGMII to work properly you need to configure a tx and rx delays. They can be configured on MAC side (s905x3 SoC) or PHY side (IP1001M) or both (very rarely: only if physicals distance between MAC and PHY very long).
In our case, delays configured on PHY side (pins 48 and 49 pulled high), it means that SoC should be configured as following:

phy-mode: rgmii-id
amlogic,tx-delay-ns: 0
rx-internal-delay-ps: 0

This is how it configured on Android firmware, where gigabit interface is working properly. But for some reasons it's not working on armbian. Eventually I gave up and use it in 100Mbps mode all the time.

You can use attached DTB for this. It forces interface to 100MBits, so you don't have to run ethtool everytime.
meson-sm1-x96-max-plus-ip1001m-2-100m-no_oc.zip

@tv4you2016
Copy link
Author

@serrj-sv
this dtb works now i don't need to run the command every time the box turns off but now i only have 2gb instead of 4gb
@ophub

@serrj-sv
Copy link

now i only have 2gb instead of 4gb

do you have this issue only with my dtb or with original (meson-sm1-x96-max-plus-ip1001m-2.dtb) as well? you should probably check this:
https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/documents#1212-memory-size-recognition-error

@tv4you2016
Copy link
Author

@serrj-sv
In the original dtb I have 4gb of ram on the street and that only looks like 2gb

@ophub
Copy link
Owner

ophub commented Mar 25, 2023

View the document and copy the u-boot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants