Synology DSM on NSA320S

Marvell Kirkwood based
User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Tue Mar 13, 2018 9:17 pm

Okay, now I have a working module. :)

Code: Select all

DiskStation> lsmod                                                              
Module                  Size  Used by    Tainted: P                             
r8168                 317444  0                                                 
usb_storage            37102  1                                                 
ds111_synobios         35523  0                                                 
sky2                   35981  0                                                 
vfat                    8151  0                                                 
fat                    42273  1 vfat                                            
etxhci_hcd             62273  0                                                 
xhci_hcd               55286  0                                                 
ohci_hcd               16271  0                                                 
ehci_hcd               31584  0                                                 
usbcore               136506  6 usb_storage,etxhci_hcd,xhci_hcd,ohci_hcd,ehci_hd
But I Can only see these things related to the network:

Code: Select all

[   76.250000] eth0: stopped                                                    
[   76.740000] eth0: started                                                    
[  583.990000] eth0: stopped                                                    
[  584.450000] eth0: started                                                    
[  642.890000] eth0: stopped                                                    
[  644.880000] eth0: started                                                    
[  844.750000] eth0: stopped                                                    
[  845.010000] eth0: started 
Every time, when I try to set eth0 down, it throws this:

Code: Select all

DiskStation> ip link set eth0 down                                              
[ 1321.500000] eth0: stopped                                                    
DiskStation> [ 1323.520000] eth0: started
So that's why you see the flood. The card seems to be not recognized by default... But I tried to set up DHCP:

Code: Select all

eth0      Link encap:Ethernet  HWaddr <removed>                       
          inet addr:169.254.115.237  Bcast:169.254.255.255  Mask:255.255.0.0    
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:532                                           
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
          Interrupt:11  
And yes, I still don't have internet connection... :?
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Thu Mar 15, 2018 12:16 pm

MrDini wrote:The card seems to be not recognized by default...
unload driver, clear dmesg buffer, load driver and paste dmesg output.
Also can you run (after driver is loaded):

Code: Select all

lspci -k
MrDini wrote: But I tried to set up DHCP:

Code: Select all

eth0      Link encap:Ethernet  HWaddr <removed>                       
          inet addr:169.254.115.237  Bcast:169.254.255.255  Mask:255.255.0.0    
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:532                                           
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
          Interrupt:11  
And yes, I still don't have internet connection... :?
169.254.x.x ip range looks like fallback local address, when DHCP is unreachable for some reason, including driver problems.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Thu Mar 15, 2018 1:17 pm

The dmesg is empty as you Can see. Really... Edit: sorry, the second command box in my previous post is the dmesg buffer.

I have no lspci command on this system, but the lspci returns nothing with the stock firmware as I clearly remember. So don't think it will return my card with this OS.
Last edited by MrDini on Thu Mar 15, 2018 8:34 pm, edited 1 time in total.
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Thu Mar 15, 2018 8:33 pm

Code: Select all

cat /proc/bus/pci/devices
?

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Thu Mar 15, 2018 8:43 pm

Empty response:

Code: Select all

DiskStation> cat /proc/bus/pci/devices                                          
DiskStation>
And /proc/devices output:

Code: Select all

DiskStation> cat /proc/devices                                                  
Character devices:                                                              
  1 mem                                                                         
  4 /dev/vc/0                                                                   
  4 tty                                                                         
  4 ttyS                                                                        
  5 /dev/tty                                                                    
  5 /dev/console                                                                
  5 /dev/ptmx                                                                   
  7 vcs                                                                         
 10 misc                                                                        
 13 input                                                                       
 90 mtd                                                                         
128 ptm                                                                         
136 pts                                                                         
180 usb                                                                         
189 usb_device                                                                  
201 synobios                                                                    
254 bsg                                                                         
                                                                                
Block devices:                                                                  
  1 ramdisk                                                                     
259 blkext                                                                      
  8 sd                                                                          
  9 md                                                                          
 31 mtdblock                                                                    
 65 sd                                                                          
 66 sd                                                                          
 67 sd                                                                          
 68 sd                                                                          
 69 sd                                                                          
 70 sd                                                                          
 71 sd                                                                          
128 sd                                                                          
129 sd                                                                          
130 sd                                                                          
131 sd                                                                          
132 sd                                                                          
133 sd                                                                          
134 sd                                                                          
135 sd                                                                          
253 device-mapper                                                               
254 mdp
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Fri Mar 16, 2018 5:26 pm

Is /sys/bus/pci available?
You can turn on verbose output of driver:
filename: /mnt/HD_a2/build/r8168-8.041.00/src/r8168.ko
version: 8.041.00-NAPI
license: GPL
description: RealTek RTL-8168 Gigabit Ethernet driver
author: Realtek and the Linux r8168 crew <netdev@vger.kernel.org>
srcversion: F1DC9DB2267B5E0DFA860F0
alias: pci:v00001186d00004300sv00001186sd00004B10bc*sc*i*
alias: pci:v000010ECd00008168sv*sd*bc*sc*i*
depends:
vermagic: 2.6.31.8 mod_unload ARMv5
parm: speed:force phy operation. Deprecated by ethtool (8). (ushort)
parm: duplex:force phy operation. Deprecated by ethtool (8). (int)
parm: autoneg:force phy operation. Deprecated by ethtool (8). (int)
parm: aspm:Enable ASPM. (int)
parm: s5wol:Enable Shutdown Wake On Lan. (int)
parm: rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)
parm: timer_count:Timer Interrupt Interval. (int)
parm: eee_enable:Enable Energy Efficient Ethernet. (int)
parm: hwoptimize:Enable HW optimization function. (ulong)
parm: debug:Debug verbosity level (0=none, ..., 16=all) (int)

Code: Select all

insmod r8168.ko debug=16
Though I have no idea, what it can reveal.

Post Reply