imx8 quad eth0 and eth1

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8 quad eth0 and eth1

ソリューションへジャンプ
4,140件の閲覧回数
SoftMicro
Contributor II

We have a custom board using an Apalis i.mx8 Quad Max running Android 10

We are trying to use both eth0 and eth1 ports on the custom boards using 2 x KSZ9131 phy's. We can bring up individual phy's OK (ping etc) but cannot bring up and use both phy's.

apalis_8qm:/ # ifconfig eth1 up
[ 281.500581] Microchip KSZ9131 Gigabit PHY 5b050000.ethernet-2:07: attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_addr=5b050000.ethernet-2:07, irq=POLL)
apalis_8qm:/ # [ 284.592335] fec 5b050000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
[ 284.600353] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

apalis_8qm:/ $ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:14:2d:67:d5:03 Driver fec
inet addr:192.168.0.92 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c7fe:c946:c301:ef9f/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:912 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:143444 TX bytes:5459

apalis_8qm:/ # ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:14:2d:77:d5:03 Driver fec
inet6 addr: fe80::214:2dff:fe77:d503/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:107 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16389 TX bytes:746

apalis_8qm:/ # ping -I eth0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.0.92 eth0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=60 time=49.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=60 time=48.8 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=60 time=49.0 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=60 time=48.7 ms

apalis_8qm:/ # ping -I eth1 8.8.8.8
ping: Warning: source address might be selected on device other than eth1.
PING 8.8.8.8 (8.8.8.8) from 0.0.0.0 eth1: 56(84) bytes of data.
From 127.0.0.1: icmp_seq=1 Destination Host Unreachable
From 127.0.0.1: icmp_seq=2 Destination Host Unreachable
From 127.0.0.1: icmp_seq=3 Destination Host Unreachable
From 127.0.0.1: icmp_seq=4 Destination Host Unreachable
From 127.0.0.1: icmp_seq=5 Destination Host Unreachable

I am using this dhcpcd set up in init.rc -

service dhcpcd_eth0 /system/bin/dhcpcd -ABKL eth0 eth1
class main
disabled
oneshot

service iprenew_eth0 /system/bin/dhcpcd -n eth0 eth1
class main
disabled
oneshot

Has anyone used both eth0 and eth1 with i.mx8 and Android 10?

Is the second ip address the issue?

Thank you.

0 件の賞賛
返信
1 解決策
4,092件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Dear @SoftMicro You are welcome. Enjoy your vacation.

元の投稿で解決策を見る

0 件の賞賛
返信
16 返答(返信)
1,393件の閲覧回数
FoxYang
Contributor I

Hi,

@Rita_Wang 

I have EthernetDual but it's some missing network interfaces to work with Android 13. I cannot get it to build yet. Some interfaces from NetworkUtils error.

Can you send me  EthernetDual(2).tar ?

Thanks.

0 件の賞賛
返信
2,560件の閲覧回数
spk
Contributor I

Hello @Rita_Wang ,
we are working on a custom board based on IMX8MP, where in we plan to use dual Ethernet on android 11. Could you please share me - 0001-android-device-nxp-dual-ethernet.patch and EthernetDual(2).tar

Thank you in advance.

 

0 件の賞賛
返信
3,993件の閲覧回数
sig0912
Contributor III

Hello @Rita_Wang , @SoftMicro 

I'm using imx8qm on custom board with Android 12 and I'm having the same issue where the host is unreachable when pinging from eth0 and eth1.
I could find the 0001-android-device-nxp-dual-ethernet.patch but I can't get the EthernetDual(2).tar

Could you please share this tarball?

Thank you!

0 件の賞賛
返信
3,986件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

I share you by the email, please have a check.

0 件の賞賛
返信
3,974件の閲覧回数
sig0912
Contributor III

Thanks for sharing.

I just tried it but there are some missing network interfaces to work with Android 12. I cannot get it to build yet. Some interfaces from NetworkUtils are now deprecated for Android 12 and I'm now looking at the NetworkScore instead which seems to be the one to use.

I don't really do app like that so I'm a bit lost with the java files. Could you please explain what I should change to make EthernetDual package compatible with Android 12?

Thank you

0 件の賞賛
返信
4,111件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

 I email to you, please have a check.

0 件の賞賛
返信
4,105件の閲覧回数
SoftMicro
Contributor II
I got your email with no content!
0 件の賞賛
返信
4,102件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Have you got the 0001-android-device-nxp-dual-ethernet(4) and EthernetDual(2).tar I share to you?

0 件の賞賛
返信
3,417件の閲覧回数
chadA
Contributor III

Hi @Rita_Wang ,

Could you share these 2 packages with me?

Now I am also tring to use 2 ethernets on Imx8mm with android 9. And I am searching any useful information.

Thanks

Chad

0 件の賞賛
返信
3,805件の閲覧回数
vedantteksun
Contributor I
hI B45499, we are facing the same issue. Can I get these 2 files from you?
It will be very helpful.
0 件の賞賛
返信
3,788件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Dear @vedantteksun ,

I email to you, please have a check. These patches are for the i.MX8MP, the method is the same, you can refer to.

Wish you have a nice day

Best Regards

Rita

0 件の賞賛
返信
4,099件の閲覧回数
SoftMicro
Contributor II
I can't access "NXP Office365 portal" to get these files. Can you email these directly or post here.

Thanks
0 件の賞賛
返信
4,097件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

@SoftMicro This patch is for the i.MX8MP, for the i.MX8QM you can refer to

0 件の賞賛
返信
4,094件の閲覧回数
SoftMicro
Contributor II
Thank you so much b45499. I will try this out when I return from vacation in a week.
0 件の賞賛
返信
4,093件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Dear @SoftMicro You are welcome. Enjoy your vacation.

0 件の賞賛
返信
4,043件の閲覧回数
SoftMicro
Contributor II
This fixed the issues, thank you