lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMZO5DJAsj8-m2tEfrHn4xZdK6FE0bZepRZBrSD9=tWSSCNOA@mail.gmail.com>
Date:   Wed, 26 Oct 2022 23:16:45 -0300
From:   Fabio Estevam <festevam@...il.com>
To:     Andrew Lunn <andrew@...n.ch>,
        Vladimir Oltean <vladimir.oltean@....com>
Cc:     Tim Harvey <tharvey@...eworks.com>,
        netdev <netdev@...r.kernel.org>, Marek Vasut <marex@...x.de>,
        Fabio Estevam <festevam@...x.de>
Subject: Marvell 88E6320 connected to i.MX8MN

Hi,

I am trying to make a Marvell 88E6320 switch to work on an imx8mn-based board
running kernel 6.0.5.

Ethernet is functional in U-Boot with Tim's series:
https://lore.kernel.org/all/20221004164918.2251714-1-tharvey@gateworks.com/

However, in the kernel I am not able to retrieve an IP via DHCP:

mv88e6085 30be0000.ethernet-1:00: switch 0x1150 detected: Marvell
88E6320, revision 2
fec 30be0000.ethernet eth0: registered PHC device 0
mv88e6085 30be0000.ethernet-1:00: switch 0x1150 detected: Marvell
88E6320, revision 2
mv88e6085 30be0000.ethernet-1:00: configuring for fixed/rgmii-id link mode
mv88e6085 30be0000.ethernet-1:00: Link is Up - 1Gbps/Full - flow control off
mv88e6085 30be0000.ethernet-1:00 lan3 (uninitialized): PHY
[!soc@...us@...00000!ethernet@...e0000!mdio!switch@...dio:03] driver
[Generic PHY] (irq=POLL)
mv88e6085 30be0000.ethernet-1:00 lan4 (uninitialized): PHY
[!soc@...us@...00000!ethernet@...e0000!mdio!switch@...dio:04] driver
[Generic PHY] (irq=POLL)
device eth0 entered promiscuous mode
DSA: tree 0 setup
...

~# udhcpc -i lan4
udhcpc: started, v1.31.1
[   25.174846] mv88e6085 30be0000.ethernet-1:00 lan4: configuring for
phy/gmii link mode
udhcpc: sending discover
[   27.242123] mv88e6085 30be0000.ethernet-1:00 lan4: Link is Up -
100Mbps/Full - flow control rx/tx
[   27.251064] IPv6: ADDRCONF(NETDEV_CHANGE): lan4: link becomes ready
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
...

This is my devicetree:
https://pastebin.com/raw/TagQJK2a

The only way that I can get IP via DHCP to work in the kernel is if
I access the network inside U-Boot first and launch the kernel afterward.

It looks like U-Boot is doing some configuration that the kernel is missing.

Does anyone have any suggestions, please?

Thanks,

Fabio Estevam

Powered by blists - more mailing lists