> From: Johannes Krottmayer <krj...@gmail.com>
> Date: Sat, 9 Jun 2018 17:23:09 +0200
> 
> Hi Mark!
> 
> I have installed the dtb package. And copied the rk3328-rock64.dtb in
> the FAT boot partition. Now I see all boot messages from the kernel.
> 
> But with this dtb file, the ethernet is unstable:
> 
> $ ping 10.42.42.1
> PING 10.42.42.1 (10.42.42.1): 56 data bytes
> 64 bytes from 10.42.42.1: icmp_seq=9 ttl=64 time=0.853 ms
> 64 bytes from 10.42.42.1: icmp_seq=31 ttl=64 time=0.708 ms
> ^C
> --- 10.42.42.1 ping statistics ---
> 40 packets transmitted, 2 packets received, 95.0% packet loss
> round-trip min/avg/max/std-dev = 0.708/0.780/0.853/0.072 ms
> $
> 
> I removed the file and the ethernet works great again:
> 
> $ ping 10.42.42.1
> PING 10.42.42.1 (10.42.42.1): 56 data bytes
> 64 bytes from 10.42.42.1: icmp_seq=0 ttl=64 time=1.499 ms
> 64 bytes from 10.42.42.1: icmp_seq=1 ttl=64 time=0.827 ms
> 64 bytes from 10.42.42.1: icmp_seq=2 ttl=64 time=0.786 ms
> 64 bytes from 10.42.42.1: icmp_seq=3 ttl=64 time=0.770 ms
> 64 bytes from 10.42.42.1: icmp_seq=4 ttl=64 time=0.979 ms
> 64 bytes from 10.42.42.1: icmp_seq=5 ttl=64 time=0.783 ms
> 64 bytes from 10.42.42.1: icmp_seq=6 ttl=64 time=0.977 ms
> 64 bytes from 10.42.42.1: icmp_seq=7 ttl=64 time=0.785 ms
> 64 bytes from 10.42.42.1: icmp_seq=8 ttl=64 time=0.803 ms
> 64 bytes from 10.42.42.1: icmp_seq=9 ttl=64 time=0.766 ms
> 64 bytes from 10.42.42.1: icmp_seq=10 ttl=64 time=0.768 ms
> ^C
> --- 10.42.42.1 ping statistics ---
> 11 packets transmitted, 11 packets received, 0.0% packet loss
> round-trip min/avg/max/std-dev = 0.766/0.886/1.499/0.208 ms
> $
> 
> Seems to me that there is a bug.

Works fine for me, but my board is connected to a 100Mbit/s switch.

I suspect this is related to the tx_delay settings in the device tree.
The firmware has:

        tx_delay: 00000018

whereas the linux device tree has:

       tx_delay: 00000024

You could try and change that number and see if things improve.

Cheers.

Mark

Reply via email to