LwIP and multiple network interfaces

Tom Rini trini at konsulko.com
Thu Jan 2 23:47:24 CET 2025


On Thu, Jan 02, 2025 at 02:26:06PM -0800, E Shattow wrote:
> Problem: 'dhcp' must be ran twice when the network cable is plugged into a
> port other than the first network port.
> 
> Network cable plugged into bottom (first) Ethernet port:
> 1. Power on
> 2. StarFive # dhcp
> 
> ethernet at 16030000 Waiting for PHY auto negotiation to complete....... done
> DHCP client bound to address 192.168.2.51 (3678 ms)
> 
> 
> Network cable plugged into top (second) Ethernet port:
> 1. Power on
> 2. StarFive # dhcp
> ethernet at 16030000 Waiting for PHY auto negotiation to complete.........
> TIMEOUT !
> phy_startup() failed: -110
> FAILED: -110
> ethernet at 16040000 Waiting for PHY auto negotiation to complete...... done
> ethernet at 16030000 Waiting for PHY auto negotiation to complete.........
> TIMEOUT !
> phy_startup() failed: -110
> FAILED: -110
> Could not start ethernet at 16030000
> 3. StarFive # dhcp
> DHCP client bound to address 192.168.2.77 (31 ms)

What happens when you set ethact to 1 first?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250102/3724eecb/attachment.sig>


More information about the U-Boot mailing list