[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <93127324-0b09-7ea7-d54a-42d247570e73@eks-engel.de>
Date: Wed, 12 Jun 2019 11:05:22 +0200
From: Benjamin Beckmeyer <beb@...-engel.de>
To: Andrew Lunn <andrew@...n.ch>
CC: <netdev@...r.kernel.org>
Subject: Re: DSA with MV88E6321 and imx28
>> I captured a ping from my device to my computer to look if outgoing is working
>> (captured on both devices). Here is the output from my device where i started the:
>>
>> 00:24:24.752057 ARP, Request who-has 192.168.10.2 tell 192.168.10.1, length 28
>> 0x0000: 0001 0800 0604 0001 6a2a ad79 def5 c0a8 ........j*.y....
>> 0x0010: 0a01 0000 0000 0000 c0a8 0a02 ............
>>
>> and here the output of the receiver:
>>
>> 14:49:06.725940 MEDSA 0.2:0: ARP, Request who-has benjamin-HP tell 192.168.10.1, length 42
>> 0x0000: 0000 4010 0000 0806 0001 0800 0604 0001 ..@.............
>> 0x0010: 6a2a ad79 def5 c0a8 0a01 0000 0000 0000 j*.y............
>> 0x0020: c0a8 0a02 0000 0000 0000 0000 0000 0000 ................
>> 0x0030: 0000
>>
>> I'm really stuck at the moment because I don't know what to do further. I think,
>> I did everything what is needed.
>> And I know when I configure the switch manually via MDIO the connection is working.
>> When I'm looking for traffic in ifconfig on all ports there is everywhere 0 bytes
>> except for eth0.
>> Do you have any ideas?
> I would start simple and build up. Don't use a bridge. Just put the IP
> address 192.168.10.1 on the slave interface for port 2.
>
> So something like:
>
> ip link set eth0 up
> ip addr add 192.168.10.1/24 dev lan2
> ip link set lan2 up
>
> then you can try ping 192.168.10.2.
>
> Then trace the packet along the path. Does the ARP request make it to
> 192.168.10.2? Is a reply sent? ethtool -S lan2 will show you the
> packet counts. Do the counters show the ARP going out and the reply
> coming back?
>
> Andrew
Hi Andrew,
it is finally running in DSA mode. Thanks so much, Andrew. I can set an
IP address to all ports individually and running it now in a bridge with
all 4 copper ports. Set an IP address to the bridge and get a ping reply
from all ports. So far, that is all what I have to test, for now.
I warned you before, I will go back to another custom board. But now with
more experience thanks to you.
Cheers,
Benjamin
Powered by blists - more mailing lists