A bit more digging online and I've found these resources: https://ncrmnt.org/2014/10/28/dlink-dns-327l-how-you-should-not-make-a-nas/ This describes a Weltrend MCU on the DNS-327L which is similar to the DNS-320L. I checked on my board and it looks like I have the same. http://www.aboehler.at/hg/dns320l-daemon https://www.aboehler.at/doku/doku.php/projects:dns320l The first blog pby TenCX - Debian
I've downloaded the GLP source, but not really sure what I'm looking for. I've looked in some of the tar files but can't see anything obvious.by TenCX - Debian
I copied the file system from the stock OS into the Debian OS. I'm trying to run fan_control and have got this far, but I'm stuck with the errors: root@debian:~/dns320_root/usr/local/modules/usrsbin# PATH=$PATH:. LD_LIBRARY_PATH=/root/dns320_root/usr/local/modules/usrlib/:/root/dns320_root/usr/local/modules/lib ./fan_control *** Fan Cobtrol Help Message *** fan_control b c:by TenCX - Debian
QuoterayknightHave you tried running pwmconfig to see if it detects PWM controls and is able to control the fan? I tried... but no luck? root@debian:~# pwmconfig # pwmconfig revision $Revision$ ($Date$) This program will search your sensors for pulse width modulation (pwm) controls, and test each one to see if it controls a fan on your motherboard. Note that many motherboards do notby TenCX - Debian
fan_control help: # fan_control --help *** Fan Cobtrol Help Message *** fan_control b c: for NAS booting fan_control 0 d : open debug msg fan_control 1 d : open debug msg fan_control 2 d : open debug msg fan_control 0 c : close debug msg fan_control 1 c : close debug msg fan_control 2 c : close debug msg fan_control -L : set Lower (THYST) fan_control -H : set Upper(TOS)by TenCX - Debian
Heres the stock console log: ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 sizeby TenCX - Debian
It was a compiled c program I believe rather than a shell script. Is there anything I could monitor while in stock OS to work out how its controlling the fan?by TenCX - Debian
Thanks for your help getting it working! I noticed my fan doesn't seem to be working, do you have any suggestions on how I can control the fan via Debian? I booted into stock OS to test the fan is actually working, and I can successfully control the fan using the fan_control command.by TenCX - Debian
So I checked what would happen with the new bootcmd (with the new load addresses) but the previous bootargs (with root=/dev/sda1) and this failed too. Given the earlier error was: fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sda1 I decided to try fsck.ext2 /dev/sda1 manually at the initramfs prompt: (initramfs) fsck.ext2 /dev/sda1 sh: fsck.ext2: notby TenCX - Debian
Thanks. This certainly seems to have loaded initrd, but fails to boot properly... ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5by TenCX - Debian
bodhi, Thanks for your reply. Heres the full log: ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0]by TenCX - Debian
For reference, here's a full printenv: Marvell>> printenv baudrate=115200 loads_echo=0 ipaddr=2.66.66.201 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root) MALLOC_len=1 ethprime=egiga0 bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none iby TenCX - Debian
I've successfully got my D-Link DNS-320 B1 with stock u-boot to boot the latest (14 Dec 2019) Linux Kernel 5.4.2 Kirkwood package and Debian rootfs as per this post via an ext2 formatted USB stick. When I add a SATA drive to the device it fails to load the rootfs from the USB when using the following settings: bootargs=console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelby TenCX - Debian