freebsd-arm Digest, Vol 740, Issue 7

Emmanuel Vadot manu at bidouilliste.com
Wed Jul 8 09:00:12 UTC 2020


On Tue, 07 Jul 2020 20:54:38 +0300
Furkan Salman <furkan at fkardame.com> wrote:

> Hello,
> 
> 
> 
> I am running FreeBSD using s199pwa1k9r@ test image over RockPiE we were only able to get 1 lan card out of the 2. The one working is 1Gb which is over RTL8211E, there is another Lan which is 100mb only and it is onboard rk3328 lan. We can see the lan card but it is not coming up even after trying to bring it up manually.
> 
> 
>
> You can find the bootlog attached here > https://hastebin.com/bifoyuwubo.coffeescript
> 
> 
> 
> Below is my finding.
> 
> Bootlog information about the Lan connectiion.
> 
> 
> 
> dwc0: <Rockchip Gigabit Ethernet Controller> mem 0xff540000-0xff54ffff irq 44 on ofwbus0    
> 
> miibus0: <MII bus> on dwc0                                                                  
> 
> rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 0 on miibus0                  
> 
> rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master,o
> 
> rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0                  
> 
> rgephy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master,o
> 
> dwc0: Ethernet address: d2:55:35:5f:0a:67                                                   
> 
> dwc1: <Rockchip Gigabit Ethernet Controller> mem 0xff550000-0xff55ffff irq 45 on ofwbus0    
> 
> miibus1: <MII bus> on dwc1                                                                  
> 
> ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus1                              
> 
> ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto                         
> 
> dwc1: Ethernet address: 62:73:64:5d:e2:22
> 
> 
> 
> root at rock-pi-e:~ # ifconfig -a                                                              
> 
> dwc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500                  
> 
>         options=80008<VLAN_MTU,LINKSTATE>                                                   
> 
>         ether d2:55:35:5f:0a:67                                                             
> 
>         inet 192.168.1.14 netmask 0xffffff00 broadcast 192.168.1.255                        
> 
>         media: Ethernet autoselect (1000baseT <full-duplex>)                                
> 
>         status: active                                                                      
> 
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>                                
> 
> dwc1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500                  
> 
>         options=80008<VLAN_MTU,LINKSTATE>                                                   
> 
>         ether 62:73:64:5d:e2:22                                                             
> 
>         media: Ethernet autoselect (none)                                                   
> 
>         status: no carrier                                                                  
> 
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>                                
> 
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384                           
> 
>         options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>                     
> 
>         inet6 ::1 prefixlen 128                                                             
> 
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3                                          
> 
>         inet 127.0.0.1 netmask 0xff000000                                                   
> 
>         groups: lo                                                                          
> 
>         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>                                           
> 
> root at rock-pi-e:~ #
> 
> 
> 
> iperf3 server is running on my X86 Laptop over wifi as I have a shortage of lan cable tonight. If needed I can arrange it tomorrow and share another iperf result with both devices on 1Gb lan connection.
> 
> 
> 
> root at rock-pi-e:~ # iperf3 -c 192.168.1.15                                                   
> 
> Connecting to host 192.168.1.15, port 5201                                                  
> 
> [  5] local 192.168.1.14 port 22396 connected to 192.168.1.15 port 5201                     
> 
> [ ID] Interval           Transfer     Bitrate         Retr  Cwnd                            
> 
> [  5]   0.00-1.00   sec  11.1 MBytes  93.2 Mbits/sec    0    567 KBytes                     
> 
> [  5]   1.00-2.00   sec  9.15 MBytes  76.7 Mbits/sec    0    572 KBytes                     
> 
> [  5]   2.00-3.00   sec  6.48 MBytes  54.4 Mbits/sec    0    575 KBytes                     
> 
> [  5]   3.00-4.00   sec  5.73 MBytes  48.1 Mbits/sec    0    578 KBytes                     
> 
> [  5]   4.00-5.00   sec  5.93 MBytes  49.6 Mbits/sec    0    582 KBytes                     
> 
> [  5]   5.00-6.00   sec  6.35 MBytes  53.4 Mbits/sec    0    585 KBytes                     
> 
> [  5]   6.00-7.00   sec  9.35 MBytes  78.5 Mbits/sec    0    591 KBytes                     
> 
> [  5]   7.00-8.00   sec  7.37 MBytes  61.8 Mbits/sec    0    594 KBytes                     
> 
> [  5]   8.00-9.00   sec  9.67 MBytes  81.2 Mbits/sec    0    598 KBytes                     
> 
> [  5]   9.00-10.00  sec  6.26 MBytes  52.4 Mbits/sec    0    601 KBytes                     
> 
> - - - - - - - - - - - - - - - - - - - - - - - - -                                           
> 
> [ ID] Interval           Transfer     Bitrate         Retr                                  
> 
> [  5]   0.00-10.00  sec  77.4 MBytes  64.9 Mbits/sec    0             sender                
> 
> [  5]   0.00-10.85  sec  76.6 MBytes  59.2 Mbits/sec                  receiver              
> 
>                                                                                             
> 
> iperf Done.                      
> 
> root at rock-pi-e:~ # iperf3 -R -c 192.168.1.15                                                
> 
> Connecting to host 192.168.1.15, port 5201                                                  
> 
> Reverse mode, remote host 192.168.1.15 is sending                                           
> 
> [  5] local 192.168.1.14 port 30995 connected to 192.168.1.15 port 5201                     
> 
> [ ID] Interval           Transfer     Bitrate                                               
> 
> [  5]   0.00-1.00   sec  5.92 MBytes  49.7 Mbits/sec                                        
> 
> [  5]   1.00-2.00   sec  3.30 MBytes  27.7 Mbits/sec                                        
> 
> [  5]   2.00-3.00   sec  2.88 MBytes  24.2 Mbits/sec                                        
> 
> [  5]   3.00-4.00   sec  3.27 MBytes  27.4 Mbits/sec                                        
> 
> [  5]   4.00-5.00   sec  4.53 MBytes  38.0 Mbits/sec                                        
> 
> [  5]   5.00-6.00   sec  4.22 MBytes  35.4 Mbits/sec                                        
> 
> [  5]   6.00-7.00   sec  2.82 MBytes  23.7 Mbits/sec                                        
> 
> [  5]   7.00-8.00   sec  3.70 MBytes  31.0 Mbits/sec                                        
> 
> [  5]   8.00-9.00   sec  3.52 MBytes  29.5 Mbits/sec                                        
> 
> [  5]   9.00-10.00  sec  3.43 MBytes  28.8 Mbits/sec                                        
> 
> - - - - - - - - - - - - - - - - - - - - - - - - -                                           
> 
> [ ID] Interval           Transfer     Bitrate         Retr                                  
> 
> [  5]   0.00-10.80  sec  38.0 MBytes  29.5 Mbits/sec  268             sender                
> 
> [  5]   0.00-10.00  sec  37.6 MBytes  31.5 Mbits/sec                  receiver              
> 
>                                                                                             
> 
> iperf Done.             
> 
> 
> 
> 
> 
> If there is anything else I can help you with then please let me know.
> 
> 
> 
> Thank you.
> 
> Furkan.

 We don't have any clock support for the gmac* so I'm not surprised
that it doesn't work.
 For the first interface u-boot does some setup so it just work for us,
the second one isn't setup by u-boot so the module might not be clocked
correctly.

> 
> 
> 
> 
> 
> ---- On Mon, 06 Jul 2020 23:47:07 +0300 Oleksandr Tymoshenko <gonzo at bluezbox.com> wrote ----
> 
> 
> 
> Furkan Salman (mailto:furkan at fkardame.com) wrote: 
> > Hello Peter, 
> > 
> > I have rockpiE which is somewhat similar to Rock64, If s133pwa1k9r@ or gonzo@ can confirm if rockpie can be used to test RK3328 Lan issue then I am happy to help with testing. 
>  
>  
> Hi Furkan, 
>  
> Yes, RockPi E seems to be a good test target. If you could check the 
> GigE interface before and after the patch. Whether it works/doesn't work 
> and if it works in both cases - try testing performance with iperf3, 
> just to see if performance was affected in any way. 
>  
> Thanks 
>  
> -- 
> gonzo
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"


-- 
Emmanuel Vadot <manu at bidouilliste.com>


More information about the freebsd-arm mailing list