Welcome! Log In Create A New Profile

Advanced

Debian on D-Link DNS-325 - possible!

Posted by pengu 
Debian on D-Link DNS-325 - possible!
August 09, 2015 11:05AM
got a DNS-325, tried to boot debian but no luck:


** MARVELL BOARD: DB-88F6281A-BP LE 

U-Boot 1.1.4 (May 16 2011 - 10:40:38) Marvell version: 3.4.14.DNS-325.03

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE80

Soc: MV88F6281 Rev 3 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>>                        
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootfstype=ext4'
Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Marvell>> fatload usb 0:1 0x800000 /uImage 
reading /uImage
.......................................................................................................................

3061607 bytes read
Marvell>> fatload usb 0:1 0x1100000 /uInitrd
reading /uInitrd
.................................................................................................
.......................................................................................................................

7119407 bytes read
Marvell>> bootm 0x800000 0x1100000
## Booting image at 00800000 ...
   Image Name:   Linux-4.0.0-kirkwood-tld-2
   Created:      2015-08-09  15:46:10 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3061543 Bytes =  2.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.0.0-kirkwood-tld-2
   Created:      2015-08-09  15:46:37 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7119343 Bytes =  6.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

the led keeps blinking and no serial output
I know, the kernel is a bit old but it should work.

same thing with this one:

...
Marvell>> bootm 0x800000 0x1100000
## Booting image at 00800000 ...
   Image Name:   Linux-4.1.0-kirkwood-tld-1
   Created:      2015-08-09  16:54:29 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3095607 Bytes =  3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.1.0-kirkwood-tld-1
   Created:      2015-08-09  16:54:34 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7128450 Bytes =  6.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

the same via tftp

default U-Boot env:

http://pastebin.com/VHe3kbLg



Edited 6 time(s). Last edit at 08/10/2015 01:39AM by pengu.
Re: Debian on D-Link DNS-325 ?
August 09, 2015 12:51PM
UART booting seems to work:


 ./kwboot -t -B 115200 /dev/ttyUSB1 -b /data/uboot.2013.10-tld-1-test.nsa325.uart.kwb
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  8 % [......................................................................]
 11 % [......................................................................]
 14 % [......................................................................]
 17 % [......................................................................]
 20 % [......................................................................]
 23 % [......................................................................]
 26 % [......................................................................]
 29 % [......................................................................]
 32 % [......................................................................]
 35 % [......................................................................]
 38 % [......................................................................]
 41 % [......................................................................]
 44 % [......................................................................]
 47 % [......................................................................]
 50 % [......................................................................]
 53 % [......................................................................]
 56 % [......................................................................]
 59 % [......................................................................]
 62 % [......................................................................]
 65 % [......................................................................]
 68 % [......................................................................]
 71 % [......................................................................]
 74 % [......................................................................]
 77 % [......................................................................]
 80 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 88 % [......................................................................]
 91 % [......................................................................]
 94 % [......................................................................]
 97 % [.....................................................]
[Type Ctrl-\ + c to quit]


U-Boot 2013.10-tld-1-uart (Aug 15 2014 - 02:26:46)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Warning: failed to set MAC address

PHY reset timed out
MV88E1318 PHY initialized on egiga0
NSA325>

so I could boot into debian but there will be some trouble ahead because of less memory

NSA325> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootfstype=ext4'
NSA325> usb start
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
NSA325>  fatload usb 0:1 0x800000 /uImage 
reading /uImage
3095671 bytes read in 148 ms (19.9 MiB/s)
NSA325> fatload usb 0:1 0x1100000 /uInitrd
reading /uInitrd
7128514 bytes read in 288 ms (23.6 MiB/s)
NSA325> bootm 0x800000 0x1100000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.1.0-kirkwood-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3095607 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.1.0-kirkwood-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7128450 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 PREEMPT Sun Jun 28 01:12:41 PDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: D-Link DNS-325 NAS (Rev A1)
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootfstype=ext4
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 503700K/524288K available (5877K kernel code, 561K rwdata, 1964K rodata, 284K init, 302K bss, 20588K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07b07a0   (7842 kB)
[    0.000000]       .init : 0xc07b1000 - 0xc07f8000   ( 284 kB)
[    0.000000]       .data : 0xc07f8000 - 0xc0884434   ( 562 kB)
[    0.000000]        .bss : 0xc0884434 - 0xc08cff94   ( 303 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000450] Console: colour dummy device 80x30
[    0.000485] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090112] pid_max: default: 32768 minimum: 301
[    0.090256] Security Framework initialized
[    0.090405] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090431] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091267] Initializing cgroup subsys blkio
[    0.091302] Initializing cgroup subsys devices
[    0.091329] Initializing cgroup subsys freezer
[    0.091366] Initializing cgroup subsys net_cls
[    0.091478] CPU: Testing write buffer coherency: ok
[    0.091969] Setting up static identity map for 0x8200 - 0x8258
[    0.092322] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.096760] devtmpfs: initialized
[    0.103562] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.104095] prandom: seed boundary self test passed
[    0.107855] prandom: 100 self tests passed
[    0.108011] pinctrl core: initialized pinctrl subsystem
[    0.109534] NET: Registered protocol family 16
[    0.109962] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.140118] cpuidle: using governor ladder
[    0.170117] cpuidle: using governor menu
[    0.170558] Feroceon L2: Enabling L2
[    0.170608] Feroceon L2: Cache support initialised.
[    0.171049] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.176778] No ATAGs?
[    0.211713] vgaarb: loaded
[    0.212109] usbcore: registered new interface driver usbfs
[    0.212194] usbcore: registered new interface driver hub
[    0.212264] usbcore: registered new device driver usb
[    0.213391] Switched to clocksource orion_clocksource
[    0.269757] NET: Registered protocol family 2
[    0.270561] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.270626] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.270684] TCP: Hash tables configured (established 4096 bind 4096)
[    0.270762] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.270787] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.270989] NET: Registered protocol family 1
[    0.271408] RPC: Registered named UNIX socket transport module.
[    0.271420] RPC: Registered udp transport module.
[    0.271428] RPC: Registered tcp transport module.
[    0.271436] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.271746] Unpacking initramfs...
[    0.916892] Freeing initrd memory: 6964K (c1100000 - c17cd000)
[    0.917006] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.918514] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.918548] Initialise system trusted keyring
[    0.918671] audit: initializing netlink subsys (disabled)
[    0.918733] audit: type=2000 audit(0.910:1): initialized
[    0.919617] zpool: loaded
[    0.919637] zbud: loaded
[    0.919944] VFS: Disk quotas dquot_6.6.0
[    0.920017] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.920687] NFS: Registering the id_resolver key type
[    0.920746] Key type id_resolver registered
[    0.920756] Key type id_legacy registered
[    0.920788] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.920806] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.921040] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.921541] Key type big_key registered
[    0.924616] alg: No test for stdrng (krng)
[    0.924661] Key type asymmetric registered
[    0.924677] Asymmetric key parser 'x509' registered
[    0.924768] bounce: pool size: 64 pages
[    0.924872] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.924894] io scheduler noop registered
[    0.924908] io scheduler deadline registered
[    0.924961] io scheduler cfq registered (default)
[    0.926453] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.927195] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.927647] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.928228] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.963474] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    1.003465] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    1.003669] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.043455] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    1.083454] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    1.083907] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.085295] console [ttyS0] disabled
[    1.085363] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    1.692200] console [ttyS0] enabled
[    1.697066] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    1.703492] nand: Samsung NAND 128MiB 3,3V 8-bit
[    1.708129] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.715759] Scanning device for bad blocks
[    1.797364] Bad eraseblock 804 at 0x000006480000
[    1.802720] Bad eraseblock 812 at 0x000006580000
[    1.835337] libphy: Fixed MDIO Bus: probed
[    1.839828] libphy: orion_mdio_bus: probed
[    1.849253] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.934107] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:00:00:00:00:00
[    2.943143] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.949766] ehci-pci: EHCI PCI platform driver
[    2.954326] ehci-orion: EHCI orion driver
[    2.958547] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.964122] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.971999] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    2.993429] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.999704] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.006559] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.013839] usb usb1: Product: EHCI Host Controller
[    3.018738] usb usb1: Manufacturer: Linux 4.1.0-kirkwood-tld-1 ehci_hcd
[    3.025399] usb usb1: SerialNumber: f1050000.ehci
[    3.030903] hub 1-0:1.0: USB hub found
[    3.034767] hub 1-0:1.0: 1 port detected
[    3.039651] mousedev: PS/2 mouse device common for all mice
[    3.046018] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    3.053101] i2c /dev entries driver
[    3.059305] hidraw: raw HID events driver (C) Jiri Kosina
[    3.065178] drop_monitor: Initializing network drop monitor service
[    3.071729] NET: Registered protocol family 17
[    3.076363] Key type dns_resolver registered
[    3.081524] Loading compiled-in X.509 certificates
[    3.086410] registered taskstats version 1
[    3.091600] rtc-mv f1010300.rtc: setting system clock to 2015-08-09 18:16:11 UTC (1439144171)
[    3.102690] Freeing unused kernel memory: 284K (c07b1000 - c07f8000)
Loading, please wait...
[    3.182296] systemd-udevd[60]: starting version 215
[    3.195679] random: systemd-udevd urandom read with 5 bits of entropy available
[    3.352701] SCSI subsystem initialized
[    3.356676] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    3.448217] sata_mv f1080000.sata: slots 32 ports 2
[    3.488171] scsi host0: sata_mv
[    3.502595] scsi host1: sata_mv
[    3.513916] ata1: SATA max UDMA/133 irq 33
[    3.518893] usb 1-1: New USB device found, idVendor=14cd, idProduct=8601
[    3.530659] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[    3.546071] usb 1-1: Product: USB 2.0 Hub            
[    3.551181] usb 1-1: Manufacturer: USB Device  
[    3.556770] ata2: SATA max UDMA/133 irq 33
[    3.566419] hub 1-1:1.0: USB hub found
[    3.573535] hub 1-1:1.0: 4 ports detected
[    3.863636] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    3.903433] ata1: SATA link down (SStatus 0 SControl F300)
[    3.996006] usb 1-1.2: New USB device found, idVendor=090c, idProduct=1000
[    4.002928] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.010309] usb 1-1.2: Product: USB Flash Disk
[    4.014790] usb 1-1.2: Manufacturer: General
[    4.019078] usb 1-1.2: SerialNumber: 0467QLBZ31IQ5MSE
[    4.034837] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    4.041530] scsi host2: usb-storage 1-1.2:1.0
[    4.047935] usbcore: registered new interface driver usb-storage
[    4.057293] usbcore: registered new interface driver uas
[    4.273438] ata2: SATA link down (SStatus 0 SControl F300)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... [    5.303998] scsi 2:0:0:0: Direct-Access     General  USB Flash Disk   1100 PQ: 0 ANSI: 4
[    5.321953] sd 2:0:0:0: [sda] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB)
[    5.330662] sd 2:0:0:0: [sda] Write Protect is off
[    5.336533] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.355402]  sda: sda1 sda2 sda3
Begin: Running /scripts/local-bl[    5.365955] sd 2:0:0:0: [sda] Attached SCSI removable disk
ock ... done.
[    5.379282] sd 2:0:0:0: Attached scsi generic sg0 type 0
Begin: Running /scripts/local-block ... done.
done.
Begin: Checking root file system ... fsck from util-linux 2.25.2
rootfs: clean, 77703/456960 files, 319079/1827328 blocks
done.
[    6.650076] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[    8.084316] systemd-udevd[272]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[    8.528983] MV-CESA:Fallback driver 'hmac(sha1)' could not be loaded!
[    8.536955] lm75 0-0048: hwmon0: sensor 'lm75'
[    8.541483] alg: hash: Failed to load transform for mv-hmac-sha1: -2
[    8.587969] orion_wdt: Initial timeout 21 sec
[    9.617188] random: nonblocking pool is initialized
done.
[ ok ] Setting parameters of disc: (none).
[....] Activating swap...[   10.303912] Adding 262140k swap on /dev/sda2.  Priority:-1 extents:1 across:262140k FS
done.
[   10.432113] EXT4-fs (sda3): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 77703/456960 files, 319079/1827328 blocks
done.
[   10.650720] EXT4-fs (sda3): re-mounted. Opts: (null)
[ ok ] Activating lvm and md swap...done.
...
...
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[....] Mounting local filesystems...mount: special device /dev/disk/by-label/data does not exist
failed.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   18.407453] NET: Registered protocol family 10
[   19.587423] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b0:b2:dc:39:cf:ea
Sending on   LPF/eth0/b0:b2:dc:39:cf:ea
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
[   21.838815] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   21.848754] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.1
DHCPACK from 192.168.1.1
Reloading /etc/samba/smb.conf: smbd.
bound to 192.168.1.168 -- renewal in 17840 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting sensors limits.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting system logging: syslog-ng.
[ ok ] Starting NetBIOS name server: nmbd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting p910nd daemon. Please edit /etc/default/p910nd first. ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting SMB/CIFS daemon: smbd.


Debian GNU/Linux 8 debianNSA310 ttyS0

sorry I haven't changed the hostname :-)

the LEDS seems to work but now it's crashed because of the less ram



Edited 2 time(s). Last edit at 08/09/2015 01:30PM by pengu.
Re: Debian on D-Link DNS-325 ?
August 09, 2015 02:43PM
You looked here? It seems he runs debian in them since 2013.
http://jamie.lentin.co.uk/devices/dlink-dns325/

And here http://davidedg.github.io/NAS-DNS325-mod/



Edited 3 time(s). Last edit at 08/09/2015 02:47PM by bobafetthotmail.
Re: Debian on D-Link DNS-325 ?
August 09, 2015 02:55PM
yes this isn't new to me but I thogut it should be possible with the stuff here.
but it seems that the stock U-Boot doesn't like boot the kernel.
Re: Debian on D-Link DNS-325 ?
August 09, 2015 03:38PM
pengu Wrote:
-------------------------------------------------------
> yes this isn't new to me but I thogut it should be
> possible with the stuff here.
> but it seems that the stock U-Boot doesn't like
> boot the kernel.

What's your u-boot envs looks like in serial console, stock u-boot?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 08/09/2015 03:42PM by bodhi.
Re: Debian on D-Link DNS-325 ?
August 09, 2015 03:47PM
> What's your u-boot envs looks like in serial
> console, stock u-boot?

default U-Boot env:

http://pastebin.com/VHe3kbLg
Re: Debian on D-Link DNS-325 ?
August 09, 2015 03:51PM
pengu,

Ah! I saw the default envs you've posted.

Set this env and then boot
mainlineLinux=yes

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on D-Link DNS-325 ?
August 09, 2015 05:54PM
@bobafetthotmail

I've tried this and the compiled U-Boot seems to work


U-Boot 2012.10-g8aac38e (Aug 10 2015 - 00:17:17)
DNS-325

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Warning: failed to set MAC address

Hit any key to stop autoboot:  0

Edit:
It doesn't load via kwboot, (I forgot the -p option, sorry) as all other too, so I had to flash it for testing.
the NSA325 kwb is loading fine for recovery propose.



Edited 2 time(s). Last edit at 08/10/2015 01:50AM by pengu.
Re: Debian on D-Link DNS-325 ?
August 09, 2015 08:08PM
pengu Wrote:
-------------------------------------------------------
> @bobafetthotmail
>
> I've tried this and the compiled U-Boot seems to
> work
>
>
> 
> U-Boot 2012.10-g8aac38e (Aug 10 2015 - 00:17:17)
> DNS-325
> 
> SoC:   Kirkwood 88F6281_A1
> DRAM:  256 MiB
> WARNING: Caches not enabled
> NAND:  128 MiB
> In:    serial
> Out:   serial
> Err:   serial
> Net:   egiga0
> Warning: failed to set MAC address
> 
> Hit any key to stop autoboot:  0 
> 
>

No need to go to that trouble. That env change should boot Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on D-Link DNS-325 ?
August 09, 2015 08:27PM
shure but with working uart .. no problem
I don't need the stock OS so it's ok
Re: Debian on D-Link DNS-325 ?
August 09, 2015 11:04PM
pengu Wrote:
-------------------------------------------------------
> shure but with working uart .. no problem
> I don't need the stock OS so it's ok

Not stock OS. I meant the Debian-3.18.5-kirkwood-tld-1 USB rootfs should boot with stock u-boot but you need to change that variable.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on D-Link DNS-325 ?
August 10, 2015 01:37AM
thanks a lot bodhi,
this was my thought too, but I noticed on many NSA310 boxes, that this doesn't matter.
linux/debian is starting anyway

with the built (on my NSA325v2) / flashed U-Boot it starts as it should.
The U-boot seems also fully functional (LAN, USB, S-ATA)

I'll try this one later with my NSA320s, perhaps it runs there too.

Edit
it gets loaded but it doesn't start



Edited 1 time(s). Last edit at 08/10/2015 02:06AM by pengu.
Re: Debian on D-Link DNS-325 ?
August 10, 2015 02:29AM
pengu,

This one is very similar to the GoFlex Net (except for the RAM).

The source is 2012. I'll see if it can be merged into my build.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/10/2015 02:34AM by bodhi.
Re: Debian on D-Link DNS-325 - possible!
August 10, 2015 03:27PM
I'm running debian for hours now, there is only one thing:
how I can start/control the fan?
it's running outside the box but not when debian is running
Re: Debian on D-Link DNS-325 - possible!
August 10, 2015 04:03PM
pengu Wrote:
-------------------------------------------------------
> I'm running debian for hours now, there is only
> one thing:
> how I can start/control the fan?
> it's running outside the box but not when debian
> is running

It's a GPIO fan. So you could control it with GPIO. However, there should be fan control utitlies in stock FW, which is easier.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on D-Link DNS-325 - possible!
December 15, 2015 05:02AM
In the last view weeks, I'm still working on this device and I see some issues when using newer kernels then 4.2.0.
Only one drive is recognized.

I'm using a stripped down config based on this one here available so this couldn't be the point.
The second drive is coming up later when the system is booting so perhaps the second HDD has to be powerd by the system and it isn't powerd up by U-Boot.
I got a second one so let's see .. perhaps ist's the same there.
Re: Debian on D-Link DNS-325 ?
December 26, 2015 12:04PM
I'm trying to reproduce this on the second dns325 but it doesn't boot.
I'm using the same U-Boot configuration as on the first one but the uImage / uInitrd only gets loaded but not started.


Edit

let's try this

Preparing kirkwood boot image to boot from uart
Nand ECC mode = default
Nand page size = 0x800
Image Type:   Kirkwood Boot from Serial port Image
Data Size:    410180 Bytes = 400.57 kB = 0.39 MB
Load Address: 00600000
Entry Point:  00600000

Edit 2

the kernel doesn't start with both mentioned U-Boot versions



Edited 3 time(s). Last edit at 12/26/2015 07:28PM by pengu.
Re: Debian on D-Link DNS-325 ?
December 26, 2015 12:26PM
./kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot.kwb 
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  2 % [......................................................................]
  4 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 19 % [......................................................................]
 21 % [......................................................................]
 24 % [......................................................................]
 26 % [......................................................................]
 28 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 43 % [......................................................................]
 45 % [......................................................................]
 48 % [......................................................................]
 50 % [......................................................................]
 52 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 65 % [......................................................................]
 67 % [......................................................................]
 69 % [......................................................................]
 72 % [......................................................................]
 74 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 89 % [......................................................................]
 91 % [......................................................................]
 93 % [......................................................................]
 96 % [......................................................................]
 98 % [...........................................................]
[Type Ctrl-\ + c to quit]


U-Boot 2012.04.01-g415d386-dirty (Dec 26 2015 - 19:14:51)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0

after editing the env it's booting as it should ;-)

Edit

same as with the first one ..

[[    0.000000] Linux version 4.3.2-kirkwood-rm-1 (root@debianNSA325v2) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Tue Dec 15 01:04:40 CET 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: D-Link DNS-325 NAS (Rev A1)

only one HDD is spinning up and available on linux ...

so U-Boot doesn't matter .. what else?



Edited 3 time(s). Last edit at 12/26/2015 02:06PM by pengu.
Re: Debian on D-Link DNS-325 ?
December 26, 2015 03:34PM
pengu,

Are you aware about davidedg GitHub page?

https://github.com/davidedg/NAS-DNS325-mod

Also, DNS325 is in the mainline already, so I don't quite understand what could be the problem with SATA 2?

./linux-4.2-tld/arch/arm/boot/dts/kirkwood-dns325.dts
./linux-4.2-tld/arch/arm/boot/dts/kirkwood-dnskw.dtsi

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/26/2015 03:43PM by bodhi.
Re: Debian on D-Link DNS-325 ?
December 26, 2015 06:53PM
Thanks bodhi
perhaps I've missed that.
I'm using this DTS allready and I'll try this U-Boot later.
Hopefully this changes the HDD thing, otherwise there is something wrong with the used kernels
but all of them based on your config and no (more) problems (kernel 4.3.x) on all other devices

As I see now, it was the same with my first dns325, I didn't noticed that



Edited 1 time(s). Last edit at 12/26/2015 07:26PM by pengu.
Re: Debian on D-Link DNS-325 ?
December 27, 2015 01:21AM
pengu Wrote:
-------------------------------------------------------
> Thanks bodhi
> perhaps I've missed that.
> I'm using this DTS allready and I'll try this
> U-Boot later.
> Hopefully this changes the HDD thing, otherwise
> there is something wrong with the used kernels
> but all of them based on your config and no (more)
> problems (kernel 4.3.x) on all other devices
>
> As I see now, it was the same with my first
> dns325, I didn't noticed that

Well, if you are running stock u-boot and have problem with the 2nd SATA power up then they must have botched that and turned it on in the stock kernel. To see both SATAs, it should be done in u-boot. Perhaps this also needs a u-boot poke comand "mw 0xxxxxx" like in the NSA3xx series.

The bottom line, sounds like a new u-boot is a better solution. I will rebase the DNS-325 to the latest version for release in the future. In the mean time, you could try davidedg's build for 2014.01.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on D-Link DNS-325 ?
December 28, 2015 04:28AM
yes bodhi, I also think that a new U-Boot is a better solution.
In stock U-Boot it isn't possible to run newer Linux kernels because they only get loaded but not started.
On both boxes (the first one isn't avaible anymore) a newer U-Boot (2012) is running to get get newer kernels started.
Perhaps it's something wrong with that.
Because of heat and stress in summer this year I didn't know anymore where I get the U-Boot which is running on the first box but I think it's nearly the same es the one used on the second box now (same behaviour).

Your kernel is running fine but none based on your config.
This is the only device on which I'm seeing this, so atm I have to stay on kernel 4.2.0 until this is fixed.
Re: Debian on D-Link DNS-325 ?
December 28, 2015 06:06PM
the HDDs were coming up .. this isn't the problem:


U-Boot 2012.04.01-g415d386 (Dec 26 2015 - 19:40:55)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 


=> ide reset

Reset IDE: Bus 0: ....OK Bus 1: OK 
  Device 0: Model: WDC WD5000AAKS-00YGA0  Firm: 12.01C02 Ser#:  WD-WCAS83787553
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
  Device 1: Model: WDC WD5000AAKS-00YGA0  Firm: 12.01C02 Ser#:  WD-WCAS83787553
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

Edit

same result as before

Kernel 4.2.0 (good)

[    0.000000] Linux version 4.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
...
...
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootfstype=ext4 mtdparts=orion_nand:0x100000@0(uboot)ro,0x20000@0xA0000(uboot_env)
...
...
[    3.614091] ata1: SATA max UDMA/133 irq 33
[    3.618220] ata2: SATA max UDMA/133 irq 33
...
...
[    4.123518] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    4.163481] ata1.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133
[    4.170310] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    4.233477] ata1.00: configured for UDMA/133
[    4.253784] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1C02 PQ: 0 ANSI: 5
[    5.303757] scsi 2:0:0:0: Direct-Access     General  USB Flash Disk   1100 PQ: 0 ANSI: 4
[    5.320085] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.329096] sd 2:0:0:0: [sdb] 15851520 512-byte logical blocks: (8.11 GB/7.55 GiB)
[    5.337816] sd 0:0:0:0: [sda] Write Protect is off
[    5.342829] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.352320] sd 2:0:0:0: [sdb] Write Protect is off
[    5.360071] sd 2:0:0:0: [sdb] No Caching mode page found
[    5.365483] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    5.378442]  sdb: sdb1 sdb2 sdb3
[    5.386193] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    5.404416]  sda: sda1 sda2
[    5.409569] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.813426] ata2: link is slow to respond, please be patient (ready=0)
[   10.593440] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   11.133469] ata2.00: ATA-8: WDC WD5000AAKX-001CA0, 15.01H15, max UDMA/133
[   11.140292] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   11.183471] ata2.00: configured for UDMA/133
[   11.203763] scsi 1:0:0:0: Direct-Access     ATA      WDC WD5000AAKX-0 1H15 PQ: 0 ANSI: 5
[   11.213599] sd 1:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[   11.222257] sd 1:0:0:0: [sdc] Write Protect is off
[   11.227290] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.255094]  sdc: sdc1 sdc2
[   11.260167] sd 1:0:0:0: [sdc] Attached SCSI disk
[   11.267703] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   11.289041] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   11.320272] sd 1:0:0:0: Attached scsi generic sg2 type 0

Kernel 4.2.1, 4.2.2, 4.3.0, 4.3.2 (bad)

[    0.000000] Linux version 4.3.2-kirkwood-rm-1 (root@debianNSA325v2) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Tue Dec 15 01:04:40 CET 2015
...
...
[    3.218250] ata1: SATA max UDMA/133 irq 33
[    3.237201] ata2: SATA max UDMA/133 irq 33
...
...

[    3.727535] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.763552] ata1.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133
[    3.770401] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.799555] ata1.00: configured for UDMA/133
[    3.820090] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1C02 PQ: 0 ANSI: 5
[    4.147514] ata2: SATA link down (SStatus 0 SControl F300)
[    4.186105] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    4.195097] sd 0:0:0:0: [sda] Write Protect is off
[    4.200119] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.257076]  sda: sda1 sda2
[    4.262276] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.271282] sd 0:0:0:0: Attached scsi generic sg0 type 0

as seen, only one drive is coming up.

All kernels are based on the 4.2.0-tld (config, patch)

On all other (tested) kirkwood devices, all drives were detected.

my kirkwood kernel builds
my oxnas kernel builds
Tvheadend Kirkwood Debian packages

my kirkwood devices:
- 1x hp t5325 (1,2 GHz, 88F6281 / 512 MB / 4x USB)

my oxnas devices
- 2x pogoplug

my dove devices
- 2x Chip PC LXD8541 (800 MHz, 88F510 / 1024 MB / 6x USB)
- 1x Wyse T50 (1,0 GHz, 88F510 / 1024 MB / 4x USB)

my amlogic devices
- several s905x / s912 devices

my x86 devices
Dell Optiplex 3020 (3,4 GHz, 2C/4T / Haswell / 4096 MB 2x Intel I210 / PicoPSU)
PC 1: (ASRock Z390 itx/ac / i3-8100, 3,6 GHZ, 2C / 4T / 32 GB RAM / Nanum SE-P180Q
PC 2: (ASRock Fatal1ty X470 Gaming-ITX/ac / Ryzen 5 2600, 3,4 GHz, 6C 12T / 32 GB RAM / Radeon RX550 2 GB / Be Quiet! BN229



Edited 3 time(s). Last edit at 12/28/2015 06:32PM by pengu.
Re: Debian on D-Link DNS-325 ?
December 28, 2015 06:37PM
differend behaviour with newer U-Boot:


U-Boot 2014.07-gd0a00d5-dirty (Dec 28 2015 - 15:15:42)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 

=> 
=> ide reset

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD5000AAKS-00YGA0  Firm: 12.01C02 Ser#:  WD-WCAS83787553
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

with davidedg's build .. the same ...

U-Boot 2014.01 (Jan 21 2014 - 18:35:47)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
=> ide reset

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD5000AAKS-00YGA0  Firm: 12.01C02 Ser#:  WD-WCAS83787553
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
=>



Edited 1 time(s). Last edit at 12/28/2015 06:43PM by pengu.
Re: Debian on D-Link DNS-325 ?
December 28, 2015 11:39PM
pengu Wrote:
-------------------------------------------------------
> differend behaviour with newer U-Boot:
>
>
> 
> U-Boot 2014.07-gd0a00d5-dirty (Dec 28 2015 -
> 15:15:42)
> D-Link DNS-325
> 
> SoC:   Kirkwood 88F6281_A1
> DRAM:  256 MiB
> WARNING: Caches not enabled
> NAND:  128 MiB
> In:    serial
> Out:   serial
> Err:   serial
> Net:   egiga0
> Hit any key to stop autoboot:  0 
> 
> => 
> => ide reset
> 
> Reset IDE: Bus 0: OK Bus 1: not available  
>   Device 0: Model: WDC WD5000AAKS-00YGA0  Firm:
> 12.01C02 Ser#:  WD-WCAS83787553
>             Type: Hard Disk
>             Supports 48-bit addressing
>             Capacity: 476940.0 MB = 465.7 GB
> (976773168 x 512)
> 
>
>
> with davidedg's build .. the same ...
>
>
> U-Boot 2014.01 (Jan 21 2014 - 18:35:47)
> D-Link DNS-325
> 
> SoC:   Kirkwood 88F6281_A1
> DRAM:  256 MiB
> WARNING: Caches not enabled
> NAND:  128 MiB
> In:    serial
> Out:   serial
> Err:   serial
> Net:   egiga0
> Hit any key to stop autoboot:  0 
> => ide reset
> 
> Reset IDE: Bus 0: OK Bus 1: not available  
>   Device 0: Model: WDC WD5000AAKS-00YGA0  Firm:
> 12.01C02 Ser#:  WD-WCAS83787553
>             Type: Hard Disk
>             Supports 48-bit addressing
>             Capacity: 476940.0 MB = 465.7 GB
> (976773168 x 512)
> => 
>

It is understandable. I've made sure other u-boots work with both SATAs (but I dont have this box). When I have a chance I'll take a look at this source code.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on D-Link DNS-325 ?
December 29, 2015 07:31AM
perhaps this helps:

U-Boot 2014.01 (Jan 21 2014 - 18:35:47)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
=> md f1010140
f1010140: 00000880 00039604 00000000 00000000    ................
f1010150: 00039884 000398a4 00000000 00000000    ................
f1010160: 00000000 00000000 00000000 00000000    ................
f1010170: 00000000 00000000 00000000 00000000    ................
f1010180: 00000000 00000000 00000000 00000000    ................
f1010190: 00000000 00000000 00000000 00000000    ................
f10101a0: 00000000 00000000 00000000 00000000    ................
f10101b0: 00000000 00000000 00000000 00000000    ................
f10101c0: 00000000 00000000 00000000 00000000    ................
f10101d0: 00000000 00000000 00000000 00000000    ................
f10101e0: 00000000 00000000 00000000 00000000    ................
f10101f0: 00000000 00000000 00000000 00000000    ................
f1010200: 00000000 76543210 3210ba98 000100ff    .....2Tv...2....
f1010210: 00000000 00000000 00000000 00000000    ................
f1010220: 00000000 00000000 00000000 00000000    ................
f1010230: 00000000 00000000 00000000 00000000    ................

when changing the first line ... no HDDs were detected:

=> mw.l f1010140  0x02

f1010140: 00000002 00039604 00000000 00000000    ................
f1010150: 00039006 000398a6 00000000 00000000    ................
f1010160: 00000000 00000000 00000000 00000000    ................
f1010170: 00000000 00000000 00000000 00000000    ................
f1010180: 00000000 00000000 00000000 00000000    ................
f1010190: 00000000 00000000 00000000 00000000    ................
f10101a0: 00000000 00000000 00000000 00000000    ................
f10101b0: 00000000 00000000 00000000 00000000    ................
f10101c0: 00000000 00000000 00000000 00000000    ................
f10101d0: 00000000 00000000 00000000 00000000    ................
f10101e0: 00000000 00000000 00000000 00000000    ................
f10101f0: 00000000 00000000 00000000 00000000    ................
f1010200: 00000000 76543210 3210ba98 000100ff    .....2Tv...2....
f1010210: 00000000 00000000 00000000 00000000    ................
f1010220: 00000000 00000000 00000000 00000000    ................
f1010230: 00000000 00000000 00000000 00000000    ................

=> ide reset

Reset IDE: ide_preinit failed

changing back to the default value, HDD0 is back:

=> mw.l f1010140  0x0880 

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD5000AAKS-00YGA0  Firm: 12.01C02 Ser#:  WD-WCAS83787553
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

perhaps we could poke the other one too ...


Edit

The other thing is the kernel.
They are all based on your config .. no changes in the S-ATA Section
What else could influence this?

Edit 2

now I'm looking at the kernel part .. with 2014.x U-Boot wee "see" only one HDD ...
When booting "4.2.0-kirkwood-tld-1" I see both HDDs:

[0:0:0:0]    disk    ATA      WDC WD5000AAKS-0 1C02  /dev/sda 
[1:0:0:0]    disk    ATA      WDC WD5000AAKX-0 1H15  /dev/sdc

even when U-Boot shows only one after "ide reset"

[    3.531529] sata_mv f1080000.sata: version 1.28
[    3.531840] sata_mv f1080000.sata: slots 32 ports 2
[    3.575417] scsi host0: sata_mv
[    3.592777] scsi host1: sata_mv
[    3.619308] ata1: SATA max UDMA/133 irq 33
[    3.657575] ata2: SATA max UDMA/133 irq 33
[    4.163449] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    4.203473] ata1.00: ATA-8: WDC WD5000AAKS-00YGA0, 12.01C02, max UDMA/133
[    4.210297] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    4.253475] ata1.00: configured for UDMA/133
[    9.833423] ata2: link is slow to respond, please be patient (ready=0)
[   10.553440] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   11.153468] ata2.00: ATA-8: WDC WD5000AAKX-001CA0, 15.01H15, max UDMA/133
[   11.160294] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   11.203475] ata2.00: configured for UDMA/133

it doesn't matter which (3.5'') HDD I use



Edited 4 time(s). Last edit at 12/29/2015 08:23AM by pengu.
Attachments:
open | download - config-4.3.2-kirkwood-rm-1.txt (112.5 KB)
Re: Debian on D-Link DNS-325 ?
December 30, 2015 01:50AM
pengu,

I guess you could try the new kernel 4.4 when I release it and go from there.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on D-Link DNS-325 ?
December 30, 2015 06:45AM
that's an option.
Perhaps I have missed something thats needed on this device.
Re: Debian on D-Link DNS-325 ?
February 01, 2016 08:12AM
thanks bodhi
it's working(again) with the new kernel.
Re: Debian on D-Link DNS-325 ?
February 01, 2016 07:25PM
pengu Wrote:
-------------------------------------------------------
> thanks bodhi
> it's
> working(ag
> ain) with the new kernel.


pengu,

Is there cryptodev installed in this rootfs when you print out this dmesg?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: