Heisath / wdmc2-kernel

Tools to create a mainline linux kernel and debian rootfs for WD MyCloud Gen2
GNU General Public License v2.0
33 stars 10 forks source link

Tweak can't apply #27

Open machsix opened 1 month ago

machsix commented 1 month ago

I managed to install Debian 12 with the latest 6.1.x kernel on my wd cloud. However, the LAN speed is terrible. I can't even get > 20MB/s. I try to apply the tweak with the internet but it failed.

root@wdmycloud:/etc/samba# ethtool -C eth0 pkt-rate-low 20000 pkt-rate-high 3000000 rx-frames 32 rx-usecs 1150 rx-usecs-high 1150 rx-usecs-low 100 rx-frames-low 32 rx-frames-high 32 adaptive-rx on
netlink error: cannot modify an unsupported parameter (offset 100)
netlink error: Invalid argument

Here are some other info

root@wdmycloud:/etc/samba# ethtool -i eth0
driver: mvpp2
version: 1.0
firmware-version: 
expansion-rom-version: 
bus-info: eth0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
root@wdmycloud:/etc/samba# ethtool -c eth0                                                                                                                                
Coalesce parameters for eth0:                                                                                                                                             
Adaptive RX: n/a  TX: n/a                                                                                                                                                 
stats-block-usecs: n/a                                                                                                                                                    
sample-interval: n/a                                                                                                                                                      
pkt-rate-low: n/a                                                                                                                                                         
pkt-rate-high: n/a                                                                                                                                                        

rx-usecs: 1150                                                                                                                                                            
rx-frames: 32                                                                                                                                                             
rx-usecs-irq: n/a                                                                                                                                                         
rx-frames-irq: n/a                                                                                                                                                        

tx-usecs: 1000                                                                                                                                                            
tx-frames: 64                                                                                                                                                             
tx-usecs-irq: n/a                                                                                                                                                         
tx-frames-irq: n/a                                                                                                                                                        

rx-usecs-low: n/a                                                                                                                                                         
rx-frame-low: n/a                                                                                                                                                         
tx-usecs-low: n/a                                                                                                                                                         
tx-frame-low: n/a                                                                                                                                                         

rx-usecs-high: n/a                        
rx-frame-high: n/a                        
tx-usecs-high: n/a                        
tx-frame-high: n/a   
CQE mode RX: n/a  TX: n/a                 

root@wdmycloud:/etc/samba# ethtool -s eth0                                                                                                                                
root@wdmycloud:/etc/samba# ethtool eth0                                                                                                                                   
Settings for eth0:                        
        Supported ports: [ TP    MII ]                                               
        Supported link modes:   10baseT/Half 10baseT/Full                                                                                                                 
                                100baseT/Half 100baseT/Full                                                                                                               
                                1000baseT/Full         
        Supported pause frame use: No                                                
        Supports auto-negotiation: Yes                                               
        Supported FEC modes: Not reported                                            
        Advertised link modes:  10baseT/Half 10baseT/Full                                                                                                                 
                                100baseT/Half 100baseT/Full                                                                                                               
                                1000baseT/Full                                       
        Advertised pause frame use: No                                               
        Advertised auto-negotiation: Yes                                             
        Advertised FEC modes: Not reported                                           
        Link partner advertised link modes:  10baseT/Half 10baseT/Full                                                                                                    
                                             100baseT/Half 100baseT/Full                                                                                                  
                                             1000baseT/Half 1000baseT/Full                                                                                                
        Link partner advertised pause frame use: Symmetric                                                                                                                
        Link partner advertised auto-negotiation: Yes                                
        Link partner advertised FEC modes: Not reported                              
        Speed: 1000Mb/s                   
        Duplex: Full                      
        Auto-negotiation: on                                                         
        master-slave cfg: preferred slave                                            
        master-slave status: slave                                                   
        Port: MII                         
        PHYAD: 0                          
        Transceiver: external                                                        
        Link detected: yes 

root@wdmycloud:/etc/samba# modinfo mvpp2
name:           mvpp2
filename:       (builtin)
license:        GPL v2
file:           drivers/net/ethernet/marvell/mvpp2/mvpp2
author:         Marcin Wojtas <mw@semihalf.com>
description:    Marvell PPv2 Ethernet Driver - www.marvell.com
parm:           queue_mode:Set queue_mode (single=0, multi=1) (int)

root@wdmycloud:/etc/samba# uname -a
Linux wdmycloud 6.1.104+ #2 SMP Mon Aug 12 00:18:37 EDT 2024 armv7l GNU/Linux

root@wdmycloud:/etc/samba# lsmod
Module                  Size  Used by
overlay               102400  0
udp_diag               16384  0
md_mod                118784  0
sg                     28672  0
fuse                  102400  1
configfs               32768  1
ip_tables              20480  0
ipv6                  368640  41 udp_diag

root@wdmycloud:/etc/samba# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

Do you have idea what is wrong? Thanks a lot for your help

Heisath commented 1 month ago

Maybe try leaving out some of the parameters to figure out which one exactly is not applying. We can't expect the mycloud to work with newer and newer kernels without problems. So if nothing else works, use an older one.