LX2160A DPAA2 mode mac address is random

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

LX2160A DPAA2 mode mac address is random

1,672件の閲覧回数
baimahe
Contributor I

Uboot has already configured the environment variables ethaddr and children's and addr, but what is obtained in the kernel is a random MAC address

baimahe_0-1680581622833.png

baimahe_4-1680581834126.png

 

baimahe_2-1680581709824.png

baimahe_3-1680581784162.png

 

 

 

0 件の賞賛
返信
3 返答(返信)

1,575件の閲覧回数
mthenault
Contributor I

Hello, exact same issue on a board with ls1088 SoC

setting eth1addr.. eth6addr in uboot prior to boot does not change anything. uboot uses the variable ethaddr to set the mac, but in linux the mac is set to random. 

Is there a fix for this issue?

0 件の賞賛
返信

1,612件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to my verification result on LX2160ARDB with LSDK 21.08 pre-built image.

eth1addr=00:04:9F:05:84:38
eth2addr=00:04:9F:05:84:39
eth3addr=00:04:9F:05:84:3A
eth4addr=00:04:9F:05:84:3B
eth5addr=00:04:9F:05:84:3C
eth6addr=00:04:9F:05:84:3D
ethact=DPMAC2@xlaui4
ethaddr=00:04:9F:05:84:37

root@TinyLinux:~# ls-listni
dprc.1/dpni.1 (interface: eth0, end point: dpmac.2)
dprc.1/dpni.0 (interface: eth1, end point: dpmac.17)
root@TinyLinux:~# restool dpmac info dpmac.17
dpmac version: 4.7
dpmac object id/portal id: 17
plugged state: plugged
endpoint state: 0
endpoint: dpni.0, link is down
DPMAC link type: DPMAC_LINK_TYPE_PHY
DPMAC ethernet interface: DPMAC_ETH_IF_RGMII
MAC address: 00:04:9f:05:84:3b
maximum supported rate 1000 Mbps
Counters:
rx all frames: 0
rx frames ok: 0
rx frame errors: 0
rx frame discards: 0
rx u-cast: 0
rx b-cast: 0
rx m-cast: 0
rx 64 bytes: 0
rx 65-127 bytes: 0
rx 128-255 bytes: 0
rx 256-511 bytes: 0
rx 512-1023 bytes: 0
rx 1024-1518 bytes: 0
rx 1519-max bytes: 0
rx frags: 0
rx jabber: 0
rx align errors: 0
rx oversized: 0
rx pause: 0
rx bytes: 0
tx frames ok: 0
tx u-cast: 0
tx m-cast: 0
tx b-cast: 0
tx frame errors: 0
tx undersized: 0
tx b-pause: 0
tx bytes: 0
root@TinyLinux:~# restool dpni info dpni.0
dpni version: 7.16
dpni id: 0
plugged state: plugged
endpoint state: 0
endpoint: dpmac.17, link is down
link status: 0 - down
mac address: 00:04:9f:05:84:3b
max frame length: 10240
dpni_attr.options value is: 0
num_queues: 16
num_cgs: 1
num_rx_tcs: 1
num_tx_tcs: 1
mac_entries: 16
vlan_entries: 0
qos_entries: 0
fs_entries: 64
qos_key_size: 0
fs_key_size: 56
ingress_all_frames: 0
ingress_all_bytes: 0
ingress_multicast_frames: 0
ingress_multicast_bytes: 0
ingress_broadcast_frames: 0
ingress_broadcast_bytes: 0
egress_all_frames: 0
egress_all_bytes: 0
egress_multicast_frames: 0
egress_multicast_bytes: 0
egress_broadcast_frames: 0
egress_broadcast_bytes: 0
ingress_filtered_frames: 0
ingress_discarded_frames: 0
ingress_nobuffer_discards: 0
egress_discarded_frames: 0
egress_confirmed_frames: 0
ceetm_dequeue_bytes: 0
ceetm_dequeue_frames: 0
ceetm_reject_bytes: 0
ceetm_reject_frames: 0
cgr_reject_frames: 0
cgr_reject_bytes: 0
policer_cnt_red: 0
policer_cnt_yellow: 0
policer_cnt_green: 0
policer_cnt_re_red: 0
policer_cnt_re_yellow: 0
tx_pending_frames_cnt: 0

Please refer to my attached console log.

0 件の賞賛
返信

659件の閲覧回数
akhilgupta74
NXP Employee
NXP Employee

Can you please provide some more details regarding fix for your issue?
I am getting same issue but still clueless about fix.

0 件の賞賛
返信