Bring up Ethernet 1 (eqos) in imx8mp evaluation kit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bring up Ethernet 1 (eqos) in imx8mp evaluation kit

5,674 Views
Adi99
Contributor I

Hello,

I am working with imx8mp evolution kit with Android 11 OS.

I want to work with Both On board Ethernet (eth0 and eth1)

By default eth0 which is fec controller is working fine, we are able to see the Eth0 node by ifconfig and we are able to ping.

But i am not able to bring up the Eth1 which is eqos node in imx8mp-evk.dts

Please suggest some solution to bring up the Ethernet 1[eqos node] in imx8mp evalution kit.

Below is the device tree node for eqos node:

&eqos {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rgmii-id";
phy-handle = <&ethphy0>;
status = "okay";

mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;

ethphy0: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
eee-broken-1000t;
rtl821x,aldps-disable;
rtl821x,clkout-disable;
};
};
};

Thanks in Advance.

0 Kudos
Reply
16 Replies

4,765 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

4,729 Views
Miles_x
Contributor I

Thanks for your help!   But I could not find the patch and gz file discribed in  document.  Would you send me the two file?

patch.png

0 Kudos
Reply

5,513 Views
Adi99
Contributor I

hello,

sorry for the late response.

--->You don't need remove ko path with GKI. The GKI will compile all drivers into ko.You need let the compile system move these driver into rootfs

>>>  i am using gki kernel. with that we arenot able to build phylink.ko file

can elaborate more to enable eqos node in imx8mp 

what are the changes in gki fragment - defconfig and kernel device tree file?

 

0 Kudos
Reply

5,652 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Send you the document

0 Kudos
Reply

4,769 Views
Miles_x
Contributor I

I am trying to do the same thing with android 12.0.0_1.0.0 on the 8mp evk.  Could you please provide the document you mentioned above to me, Thanks!

0 Kudos
Reply

5,376 Views
mark_vogt
Contributor I

I am trying to do the same thing with android 13 on the 8mp evk.  Can you please provide the document you mentioned above?

0 Kudos
Reply

5,057 Views
Adi99
Contributor I
@Zhiming_Liu will provide the document.
0 Kudos
Reply

5,640 Views
Adi99
Contributor I

Hello ,

Thanks for quick response.

The Document you shared which contain aosp source code version Android-11.0.0_2.0.0 and my version of aosp source is Android-11.0.0_2.6.0.

As per the Document we need to add kernel configuration to android_gki_defconfig (android_build/device/nxp/imx8m/evk_8mp). But in version "Android-11.0.0_2.6.0" "android_addition_defconfig" is there.

So, i put all kenel configuration to "android_gki_defconfig" at "android_build/device/nxp/imx8m/evk_8mp"

Below kernel configuration we added in "android_gki_defconfig":

CONFIG_STMMAC_ETH=m
CONFIG_STMMAC_PLATFORM=m
CONFIG_DWMAC_IMX8=m
CONFIG_PHYLINK=m
CONFIG_REALTEK_PHY=m

and Addded Below info to SharedBoardConfig.mk :

$(KERNEL_OUT)/drivers/net/phy/phylink.ko \
$(KERNEL_OUT)/drivers/net/pcs/pcs-xpcs.ko \
$(KERNEL_OUT)/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.ko \
$(KERNEL_OUT)/drivers/net/ethernet/stmicro/stmmac/stmmac-platform.ko \
$(KERNEL_OUT)/drivers/net/ethernet/stmicro/stmmac/stmmac.ko

Other Changes also i have done as per document.

But i am facing Below error while compiling:

FAILED: ninja: 'out/target/product/evk_8mp/obj/KERNEL_OBJ/drivers/net/phy/phylink.ko', needed by 'out/target/product/evk_8mp/obj/PACKAGING/depmod_vendor_stripped_intermediates/phylink.ko', missing and no known rule to make it
16:20:42 ninja failed with: exit status 1


I am not able to get phylink.ko in out folder

Thanks

0 Kudos
Reply

5,635 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The Android we release will output No-GKI boot image as well(name:boot-imx.img), you can add configs to android_addition_defconfig and download boot-imx.img

0 Kudos
Reply

2,080 Views
kevincheng
Contributor IV

Hi,

We have the same problem in Android 13 on iMX8mp. How to use No-GKI mode and use boot-imx.img to replace boot.img ?? 

 

 

Kevin

0 Kudos
Reply

5,623 Views
Adi99
Contributor I

Hello,

 

I add the configuration to android_addition_defconfig 

i am facing this error while compiling.

FAILED: ninja: 'out/target/product/evk_8mp/obj/KERNEL_OBJ/drivers/net/phy/phylink.ko', needed by 'out/target/product/evk_8mp/obj/PACKAGING/depmod_vendor_stripped_intermediates/phylink.ko', missing and no known rule to make it
16:20:42 ninja failed with: exit status 1

Thanks

0 Kudos
Reply

5,617 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

1.No-GKI kernel

Set these CONFIG to y, you don't need add the ko in SharedBoardConfig.mk

2.GKI kernel

add these configs to android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment

0 Kudos
Reply

5,569 Views
Adi99
Contributor I

Hello,

Thanks for quick response,

I updated the configs in "android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment" 

and  I removed the KO path from SharedBoardConfig.mk.

but it didn't works,

I am attaching the snapshot of configs which I am adding in imx8mp_gki.fragment 

And, Any changes require in u-boot.

 

Thanks,

0 Kudos
Reply

5,555 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

I updated the configs in "android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx8mp_gki.fragment" 

and  I removed the KO path from SharedBoardConfig.mk.

--->You don't need remove ko path with GKI. The GKI will compile all drivers into ko.You need let the compile system move these driver into rootfs.

0 Kudos
Reply

5,594 Views
Adi99
Contributor I

Once I try I will update you.

0 Kudos
Reply

5,489 Views
Adi99
Contributor I

 debug logs : 

 

***************************************************************************************

[ 11.485625][ T232] pps_core: LinuxPPS API ver. 1 registered
[ 11.491442][ T232] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 11.509478][ T232] PTP clock support registered
[ 11.589774][ T232] imx-dwmac 30bf0000.ethernet: IRQ eth_lpi not found
[ 11.596501][ T232] imx-dwmac 30bf0000.ethernet: no reset control found
[ 11.603444][ T232] imx-dwmac 30bf0000.ethernet: User ID: 0x10, Synopsys ID: 0x51
[ 11.610960][ T232] imx-dwmac 30bf0000.ethernet: DWMAC4/5
[ 11.616475][ T232] imx-dwmac 30bf0000.ethernet: DMA HW capability register supported
[ 11.624320][ T232] imx-dwmac 30bf0000.ethernet: RX Checksum Offload Engine supported
[ 11.632169][ T232] imx-dwmac 30bf0000.ethernet: TX Checksum insertion supported
[ 11.639595][ T232] imx-dwmac 30bf0000.ethernet: Wake-Up On Lan supported
[ 11.646506][ T232] imx-dwmac 30bf0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 11.654893][ T232] imx-dwmac 30bf0000.ethernet: device MAC address fa:ea:fe:90:03:c6
[ 11.662757][ T232] imx-dwmac 30bf0000.ethernet: Enabled Flow TC (entries=8)
[ 11.669841][ T232] imx-dwmac 30bf0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[ 11.678167][ T232] imx-dwmac 30bf0000.ethernet: Using 34 bits DMA width
[ 11.685376][ T232] libphy: stmmac: probed
[ 11.689792][ T232] mdio_bus stmmac-1: MDIO device at address 1 is missing.
[ 11.699155][ T189] imx-micfil sound-micfil: snd_soc_register_card failed (-517)
[ 13.053866][ C1] random: crng init done
its crashed and reboot the system.

 

****************************************************************************************

 

when I type below command it will give error regarding phy.

eth0 Link encap:Ethernet HWaddr fa:ea:fe:90:03:c6 Driver imx-dwmac
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
Interrupt:51

imx8mp:/ # ifconfig eth0 up
[ 229.435458][ T1986] Unexpected kernel BRK exception at EL1
[ 229.440967][ T1986] Internal error: BRK handler: f2005512 [#1] PREEMPT SMP
[ 229.447841][ T1986] Modules linked in: dwmac_imx stmmac_platform stmmac pcs_xpcs fec ptp pps_core realtek pci_imx6 rtc_snvs snd_soc_imx_rpmsg snd_soc_rpmsg_wm8960_i2c snd_soc_rpmsg_wm8960 imx_audio_rpmsg snd_soc_fsl_rpmsg imx_pcm_rpmsg i2c_rpmsg_imx imx_dsp_rproc imx_rproc rpmsg_raw virtio_rpmsg_bus imx_mailbox vsiv4l2 hantrodec_845s hx280enc_vc8000e snd_soc_fsl_dsp snd_soc_fsl_dsp_audiomix snd_soc_fsl_asoc_card snd_soc_imx_audmux snd_soc_simple_card snd_soc_simple_card_utils snd_soc_bt_sco snd_soc_wm8960 snd_soc_imx_cdnhdmi snd_soc_hdmi_codec dw_hdmi_gp_audio dw_hdmi_cec snd_soc_fsl_sai snd_soc_fsl_easrc snd_soc_fsl_asrc snd_soc_fsl_aud2htx snd_soc_imx_micfil snd_soc_fsl_micfil imx_pcm_dma_v2 imx_pcm_dma imx_sdma galcore moal(O) mlan(O) mac80211 cfg80211 imx8_media_dev(C) trusty_virtio trusty_ipc trusty_log trusty_irq imx8_mipi_csi2_sam(C) imx8_capture(C) imx8_isi_m2m(C) imx8_isi_cap(C) imx8_isi_hw(C) ov5640 v4l2_fwnode imx_cpufreq_dt cpufreq_dt imx8mm_thermal device_cooling
[ 229.447993][ T1986] nvmem_imx_ocotp dummy_battery gpio_switch dwc3_imx8mp panel_simple panel_raydium_rm67191 sec_mipi_dsim_imx imx_lcdifv3_crtc imx_lcdifv3_core imx_lcdif_crtc imx8mp_ldb dw_hdmi_imx imx8mp_hdmi_pavi imxdrm cdns_mhdp_imx dw_hdmi sec_dsim it6263 fsl_imx_ldb cdns_mhdp_drmcore adv7511 imx_lcdif_core synaptics_dsx_i2c snvs_pwrkey trusty_core phy_fsl_imx8_pcie phy_fsl_imx8mq_usb phy_fsl_samsung_hdmi phy_fsl_imx8mp_lvds reset_imx7 dsp_heap ion_unmapped_heap(C) ion_cma_heap(C) ion_sys_heap(C) ion_alloc(C) sdhci_esdhc_imx cqhci pwm_bl pwm_imx27 pca9450_regulator i2c_imx imx2_wdt imx gpio_mxc pinctrl_imx8mp pinctrl_imx irq_imx_irqsteer busfreq_imx8mq timer_imx_sysctr imx8m_pm_domains clk_blk_ctrl clk_imx8mp mxc_clk mx8_mu soc_imx8m
[ 229.599970][ T1986] CPU: 2 PID: 1986 Comm: ifconfig Tainted: G C O 5.10.72-gff08c85e6931-dirty #5
[ 229.609976][ T1986] Hardware name: SimpliCyclerGUI P1 BOARD (DT)
[ 229.615983][ T1986] pstate: a0400005 (NzCv daif +PAN -UAO -TCO BTYPE=--)
[ 229.622689][ T1986] pc : mdiobus_get_phy+0x38/0x3c
[ 229.627611][ T1986] lr : stmmac_init_phy+0x58/0x108 [stmmac]
[ 229.633269][ T1986] sp : ffffffc02685ba40
[ 229.637277][ T1986] x29: ffffffc02685ba60 x28: 0000000000000000
[ 229.643285][ T1986] x27: 0000000000000000 x26: ffffffc02685bc80
[ 229.649293][ T1986] x25: ffffff80c903a410 x24: 0000000000008914
[ 229.655301][ T1986] x23: 0000000000000041 x22: ffffff80c9c709c0
[ 229.661308][ T1986] x21: 0000000000000000 x20: 00000000ffffffff
[ 229.667315][ T1986] x19: ffffff80c9c70000 x18: ffffffc023fe5070
[ 229.673323][ T1986] x17: 0000000000000000 x16: 0000000000000000
[ 229.679331][ T1986] x15: 0000000000000000 x14: ffffffffffffffff
[ 229.685338][ T1986] x13: 0000000000015a2e x12: 0000000000000000
[ 229.691346][ T1986] x11: 0000000000000000 x10: 0000000000000001
[ 229.697353][ T1986] x9 : cff9802caed1f500 x8 : ffffff80c9c6c080
[ 229.703361][ T1986] x7 : 606c2b6b7264ff64 x6 : 0080223c3b626d53
[ 229.709368][ T1986] x5 : 536d623b3c220000 x4 : 0000000000008000
[ 229.715376][ T1986] x3 : ffffffc01081a350 x2 : 0000000000000000
[ 229.721384][ T1986] x1 : 00000000ffffffff x0 : ffffff80c918c000
[ 229.727392][ T1986] Call trace:
[ 229.730536][ T1986] mdiobus_get_phy+0x38/0x3c
[ 229.735089][ T1986] stmmac_open+0x94/0xcc8 [stmmac]
[ 229.740056][ T1986] __dev_open+0x104/0x1e8
[ 229.744239][ T1986] __dev_change_flags+0xac/0x1dc
[ 229.749030][ T1986] dev_change_flags+0x28/0x6c
[ 229.753561][ T1986] devinet_ioctl+0x418/0x5d8
[ 229.758005][ T1986] inet_ioctl+0x88/0x16c
[ 229.762101][ T1986] sock_do_ioctl+0x4c/0x160
[ 229.766457][ T1986] sock_ioctl+0x438/0x568
[ 229.770641][ T1986] __arm64_sys_ioctl+0x94/0xd0
[ 229.775263][ T1986] el0_svc_common+0xb8/0x1a4
[ 229.779706][ T1986] do_el0_svc+0x28/0x7c
[ 229.783716][ T1986] el0_svc+0x14/0x24
[ 229.787464][ T1986] el0_sync_handler+0x6c/0xb4
[ 229.791995][ T1986] el0_sync+0x1b4/0x1c0
[ 229.796008][ T1986] Code: d65f03c0 aa1f03e0 d50323bf d65f03c0 (d42aa240)
[ 229.802795][ T1986] ---[ end trace 1a9f8afae0f8d772 ]---
[ 229.820968][ T1986] Kernel panic - not syncing: BRK handler: Fatal exception
[ 229.828043][ T1986] SMP: stopping secondary CPUs
[ 229.832981][ T1986] Kernel Offset: disabled
[ 229.837165][ T1986] CPU features: 0x000,10240002,2000200c
[ 229.842561][ T1986] Memory Limit: none

U-Boot SPL 2021.04 (Jan 24 2023 - 13:02:29 +0530)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 2400MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated

*******************************************************************************************************************

Tags (1)
0 Kudos
Reply