HiIf I understand correctly D-Link 320 revB is not yet supported. I would volunteer to try to make it work as I have one. But I would need quite some assistance from this group. I have never done kernel work, nor hardware,
but I'm a fairly experienced C++ programmer and can read and do minor modifications to C-code. I've been using Ubuntu and Debian for over 5 years now and know most of the standard stuff.How do you suggest to proceed? Is there a way to connect to the thing other than Ethernet? I've read about a serial cable but dont know exactly which cable you mean.
Do I need a Debian machine to compile? I have Ubuntu 14 running,
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
I also noticed the similarity between DNS-320L and DNS-320 rev B1/B2 and posted a reply to another topic.
I can confirm the DNS-320 rev B1/B2 boards both have the text:-
1NS320L...A1G
1NS320BM..A1G
2-Bay iSCSI/NAS Storage Enclosure
REV-A1
So the "boards" would appear to be identical with DNS-320L. But there may be differences in the chips soldered onto the board and there is obviously a difference in the firmware that D-Link installs.
Does DNS-320L have larger RAM chips?
Is there a safe way to try the DNS-320L version of Alt-F on a DNS-320 rev B2 board without risking a bricking?
On Thursday, 4 December 2014 15:25:36 UTC, João Cardoso wrote:
I am messing around with spare DNS-320 rev B2 and spare HDD.
D-Link firmware updated to 1.02 2014/04/23
Temporarily installed fun_plug, so I could take backup copies of nand partitions mtd0 - mtd6
Serial adapter fitted and u-boot command line accessed.
I have been playing around a bit with u-boot to try to understand it, never used it before.
Managed to boot from the backup copies of nand mtd1 and mtd2 on usb memory stick:-
usb start
usb info
usb storage
usb dev
usb part
fatinfo usb 0:1
fatls usb 0:1 /dns-320/mtd_dump_b2/
fatload usb 0:1 0xa00000 /dns-320/mtd_dump_b2/mtd1 0x300000
fatload usb 0:1 0xf00000 /dns-320/mtd_dump_b2/mtd2 0x300000
bootm 0xa00000 0xf00000
[root@DNS-325]# cat /proc/mtddev: size erasesize namemtd0: 00100000 00020000 "u-boot"mtd1: 00500000 00020000 "uImage"mtd2: 00500000 00020000 "ramdisk"mtd3: 06600000 00020000 "image" # huge 107MB with most programsmtd4: 00a00000 00020000 "mini firmware"mtd5: 00500000 00020000 "config"
[root@dns-320l]# cat /proc/mtddev: size erasesize namemtd0: 00100000 00020000 "u-boot"mtd1: 00500000 00020000 "uImage"mtd2: 00500000 00020000 "ramdisk"mtd3: 06400000 00020000 "image" # huge 104MB with most programsmtd4: 00a00000 00020000 "rescue firmware"mtd5: 00500000 00020000 "config"mtd6: 00200000 00020000 "my-dlink"
[root@DNS-325]# dns323-fw-Split a vendor firmware file into its components:dns323-fw -s [-q (quiet)][-k kernel_file] [-i initramfs_file] [-a sqimage_file] [-d defaults_file] firmware_file-Merge a kernel and initramfs into a firmware compatible vendor firmware file:dns323-fw -m [-q (quiet)]-k kernel_file -i initramfs_file [-a sqimage_file] [-d defaults_file][-p product_id] [-c custom_id] [-l model_id ] [-u sub_id] [-v new_version][-t type (0-FrodoII, 1-Chopper, 2-Gandolf, 3-DNS-325-A1A2, 4-DNS-320-A1A2, 5-DNS-320-B 6-DNS-320L] firmware_file-Print information from a firmware file:dns323-fw -f firmware_file
setenv bootargs console=ttyS0,115200 root=/dev/ram0 init=/initsetenv ipaddr 192.168.1.100 # the box IPsetenv serverip 192.168.1.1 # the tftp server IPtftp 0xa00000 uImage # load the kernel image in u-boot format into memory at 0xa00000tftp 0xf00000 urootfs # the rootfs image in u-boot format into memory at 0xf00000bootm 0xa00000 0xf00000 # run it from memory. DON'T flash it
Please post the output of 'cat /proc/mtd'. The full log from power up will also be useful, as there might exists differences from other board revisions.
To get the uImage and urootfs, use 'dns323-fw -s <Alt-F-*.bin>' firmware files, it will create a kernel and initramfs files in u-boot format.You can start with the fw files for the DNS320L. Please post the boot logs.
On Thursday, 4 December 2014 19:01:53 UTC, João Cardoso wrote:To get the uImage and urootfs, use 'dns323-fw -s <Alt-F-*.bin>' firmware files, it will create a kernel and initramfs files in u-boot format.You can start with the fw files for the DNS320L. Please post the boot logs.
On Thursday, 4 December 2014 19:47:26 UTC, Andrew G wrote:On Thursday, 4 December 2014 19:01:53 UTC, João Cardoso wrote:To get the uImage and urootfs, use 'dns323-fw -s <Alt-F-*.bin>' firmware files, it will create a kernel and initramfs files in u-boot format.You can start with the fw files for the DNS320L. Please post the boot logs.
Splitting firmware worked on box (stock firmware + fun_plug), but had to create link to library used by dns323-fw-box-arm:-ln -s /ffp/lib/ld-uClibc.so.0 /lib/ld-uClibc.so.0
Copied files to usb memory stick, copied kernel/ramdisk to memory, booted from memory, log attached.
BOOTS!!!
All lights on: power=blue, usb=white, L=orange, R=orange
serial console working
telnet working
web interface - non working stock firmware login page - then showing Alt-F 0.1RC4 Status Page
I think it is a bit confused, with just Alt-F kernel/ramdisk and rest is stock-firmware plus ffp.
dd if=sqimage of=/tmp/sqimage.xz bs=2048 skip=1mkdir -p /rootmnt/sqimagemount -o loop /tmp/sqimage.xz /rootmnt/sqimagemount -t aufs -o remount,append:/rootmnt/sqimage=rr /
Could you please check attached boot log.
What is next thing to try?
Flash whole Alt-F to nand using stock web ui,
or possibly use u-boot to flash sqimage to mtd3 so Alt-F has all its own files?
On Thursday, December 4, 2014 10:31:04 PM UTC, Andrew G wrote:
On Thursday, 4 December 2014 19:47:26 UTC, Andrew G wrote:On Thursday, 4 December 2014 19:01:53 UTC, João Cardoso wrote:To get the uImage and urootfs, use 'dns323-fw -s <Alt-F-*.bin>' firmware files, it will create a kernel and initramfs files in u-boot format.You can start with the fw files for the DNS320L. Please post the boot logs.
Splitting firmware worked on box (stock firmware + fun_plug), but had to create link to library used by dns323-fw-box-arm:-ln -s /ffp/lib/ld-uClibc.so.0 /lib/ld-uClibc.so.0
Copied files to usb memory stick, copied kernel/ramdisk to memory, booted from memory, log attached.
BOOTS!!!Great!
All lights on: power=blue, usb=white, L=orange, R=orangeThere are some issues even for the 320L-rev-Ax boxes, the top-posted topic addresses some of them.
serial console working
telnet working
web interface - non working stock firmware login page - then showing Alt-F 0.1RC4 Status Pagebrowser cache
I think it is a bit confused, with just Alt-F kernel/ramdisk and rest is stock-firmware plus ffp.
root: Starting ffp: * /ffp/start/SERVERS.sh inactive* /ffp/start/portmap.sh inactive* /ffp/start/nfsd.sh inactive* /ffp/start/LOGIN.sh inactive* /ffp/start/telnetd.sh ...Starting /ffp/sbin/telnetd -l /ffp/bin/sh
You can try mounting the 'sqimage' file produced by the dns323-fw split procedure, for further testing Alt-F (together with the DNS-320L top-posted topic fixes)dd if=sqimage of=/tmp/sqimage.xz bs=2048 skip=1mkdir -p /rootmnt/sqimagemount -o loop /tmp/sqimage.xz /rootmnt/sqimagemount -t aufs -o remount,append:/rootmnt/sqimage=rr /
That's enough for today.nohup rcall stop >/dev/null 2>&1 &
to prevent it creating a nohup.out file in the current directory.
Checking dns320l-daemon and leds.
dns320l-daemon -x GetTemperature
Works and same temperatures in status page
dns320l-daemon -x SetFanFull
dns320l-daemon -x SetFanHalf
dns320l-daemon -x SetFanStop
All work and status page shows fan speed 6000/3000/0
Half/Stop seem to be permanent (temp is 30ºC-34ºC).
Full drops to Half after few seconds then drops to Stop 30 seconds later. I think a 30 second background task must be adjusting it. But this does not seem to happen when set to Half, fan just keeps going. Don't know what happens when hot.
dns320l-daemon -x PowerLedOff
dns320l-daemon -x PowerLedOn
dns320l-daemon -x PowerLedBlink
All work, Off only last few seconds before reappearing.
dns320l-daemon -x ReadRtc
dns320l-daemon -x hctosys
dns320l-daemon -x systohc
All work, time changes copied both ways as expected.
dns320l-daemon -x EnablePowerRecovery
dns320l-daemon -x DisablePowerRecovery
Return "OK", have not actually tested effect after power loss.
dns320l-daemon -x GetPowerRecoveryState
Returns (0=disabled/128=enabled) as appropriate.
dns320l-daemon -x EnableWOL
dns320l-daemon -x DisableWOL
Return "OK", have not actually tested wake up.
dns320l-daemon -x GetWOLState
Returns (0=disabled/1=enabled) as appropriate.
dns320l-daemon -x ShutdownDaemon
daemon process disappears, and is replaced by another with different pid
dns320l-daemon -x quit
just says "Bye" no obvious effect.
dns320l-daemon -x DeviceReady
Returns "OK".
Status page shows one hard disk in "left", it is actually in "right".
I think I might have seen a post about this, but could not find it again.
Both disk leds are orange, another post says this means degraded raid. Agrees with status page.
This disk was formatted by stock firmware, I presume Alt-F can be told that it is not raid.
echo 1 > /tmp/sys/usb_led/brightness
echo 0 > /tmp/sys/usb_led/brightness
cat /tmp/sys/usb_led/brightness
turn "usb orange" led on/off and report state
off only lasts few seconds before reappearing (usb stick is plugged in)
echo 1 > /tmp/sys/usb2_led/brightness
echo 0 > /tmp/sys/usb2_led/brightness
cat /tmp/sys/usb2_led/brightness
turn "usb blue" led on/off and report state
echo 1 > /tmp/sys/left_led/brightness
echo 0 > /tmp/sys/left_led/brightness
cat /tmp/sys/left_led/brightness
echo 1 > /tmp/sys/right_led/brightness
echo 0 > /tmp/sys/right_led/brightness
cat /tmp/sys/right_led/brightness
seem to correctly control the left/right hard disk orange leds.
off only lasts few seconds before reappearing
Do not know how to test the hard disk blue leds.
Trying shutdown by invoking the \sbin\poweroff script
#!/bin/sh
nohup rcall stop &
dns320l-daemon -x DeviceShutdown
busybox poweroff
Seems to shutdown fairly cleanly, filesystem was still in use, probably due to mounting sqimage from hard disk.
Suggest change nohup command line in \sbin\poweroff to:-That's enough for today.nohup rcall stop >/dev/null 2>&1 &
to prevent it creating a nohup.out file in the current directory.
So far does not seem to be any difference between DNS-320L rev A? and DNS-320 rev B?, except for:-
1) DNS-320L has more ram. 256MB instead of 128MB.
2) Stock firmware installed by D-Link.
3) Label.
4) Slightly higher price for DNS-320L
Suggest build DNS-320 rev B? version of Alt-F which is identical to DNS-320L except for necessary tweaks to get stock firmware to accept it. Could possibly also include a ram size check to enable correct model no to be displayed (unless better way to distinguish them is found).
processor : 0model name : Feroceon 88FR131 rev 1 (v5l)BogoMIPS : 996.14Features : swp half fastmult edspCPU implementer : 0x56CPU architecture: 5TECPU variant : 0x2CPU part : 0x131CPU revision : 1Hardware : DNS-320L-A1Revision : 0000Serial : 0000000000000000
Most odd things in your dns320l-daemon testing are due to 'sysctrl' (fan/temp/led/button/... daemon) being executed and restore the fan/led to their "proper" values.
Status page shows one hard disk in "left", it is actually in "right".
There is a fix for that (System->Utilities->Fixes)
Both disk leds are orange, another post says this means degraded raid. Agrees with status page.
This disk was formatted by stock firmware, I presume Alt-F can be told that it is not raid.
It is not RAID? Can you please post the output of 'mdadm --examine --scan --verbose'
Minor tweak to DNS-320L fixes |
Suggest change nohup command line in \sbin\poweroff to:-nohup rcall stop >/dev/null 2>&1 &
to prevent it creating a nohup.out file in the current directory.
Can you please post the output of 'cat /proc/cpuinfo'? The 320L-rev-A1 says:
You can try to make you own firmware file using dns323-fw
You can try to make you own firmware file using dns323-fw using the '-m' option, and supplying the values that it reports on a D-Link fw files when using '-s'
On Monday, 8 December 2014 16:21:41 UTC, João Cardoso wrote:You can try to make you own firmware file using dns323-fw using the '-m' option, and supplying the values that it reports on a D-Link fw files when using '-s'D-Link and Alt-F Firmware remerged as suggested, log attached.
Only two bytes changed, 'L' =>'B' and 11=>12.
# cmp -l Alt-F-0.1RC4-DNS-320L-rev-A1.bin altf-remerged-dns320b
57 114 102
63 13 14
Disabled ffp and rebooted to stock firmware.
Flashed the remerged Alt-F firmware through stock web ui.
Booted.
Applied tweaked version of DNS-320L patches.
Shutdown from Alt-F web ui.
Log attached.
Earlier swapoff (in /sbin/poweroff) prevented raid in use error.
Still getting in use errors for aufs and sda2, the sda2 may be related to the line:-
Unmounting /mnt/sda2/Alt-F aufs branch failed, stop all services first.
so maybe only problem is aufs, which I do not understand yet, just that it is some weird form of mount.
All this work for a two byte change!
I purchased DNS-320 rev B's because slightly cheaper than L's and I did not want the 'cloud' features of L.
But for Alt-F the L is probably better just for the extra ram, wish I had known that earlier.
Wonder if that dns323-fw split/remerge would work well on the stock firmware, to load stock L firmware on B hardware or vice versa.
Great! Does it works on your B1 and B2 boards?
I will make an Experimental release for the DNS-320-rev-Bx and the DNS320L-rev-Ax tomorrow, with all fixes applied (and no need for the DNS-320L fixes)
I think the best is for users to break the RAID1 and use a standard swap partition, see the Purple leds, can't access to my NAS webpage post
On Tuesday, 9 December 2014 19:19:01 UTC, João Cardoso wrote:Great! Does it works on your B1 and B2 boards?
Sorry the DNS-320 rev B2 is only spare at the moment, all others holding important data and backups. Will stay with stock firmware until absolutely sure Alt-F is better and stable.
I will make an Experimental release for the DNS-320-rev-Bx and the DNS320L-rev-Ax tomorrow, with all fixes applied (and no need for the DNS-320L fixes)
Good, will look forward to trying it.
I tried to build RC4 myself, but failed (ticket #356 raised), two source tars could not be downloaded, probably deleted by site owners, plus I think there is some other problem that I do not understand yet.
I think the best is for users to break the RAID1 and use a standard swap partition, see the Purple leds, can't access to my NAS webpage post
Partly agree, maybe d-link did it to prevent crash when hdd fails, swapped data should still work.
But as this is d-link's standard partitioning there may be several less knowledgable users who end up with raided swap, or people who want to keep partitioning compatible with stock firmware. I added swapoff to /sbin/poweroff because it was an easy place to change, actually suggesting just moving slightly earlier in shutdown sequence, just before raid is closed.
I do not like seeing unnecessary errors in logs, makes it much harder to trace other errors when they occur.
D-Link's partitioning is one reason I want to try Alt-F, would like to create a system which has no system data on the hard disks, everthing in nand or ram, or maybe usb. So that hard disks can be present/missing and the partitioning/formatting can be changed in any way without the operating system being effected.
Do not think Alt-F can do that yet,
I flashed the B2 build to a DNS-320 B1 that I had sitting in a draw doing nothing, Seems to have worked fine and was able to go through the setup wizard ok
Update: i have used the Alt-F-1.0-DNS-320-rev-Bx, the firmware upgrade went OK.Unfortunately, i cannot do anything now with my DNS-320, since it isn't shown anymore on my local LAN.Is there a way to REVERT the firmware upgrade?Resetting it from the bottom button of the device gives only red lashing on both HDD led,
but it doesn't give the expected result.Any help appreciated, thanks.Ioan
On Monday, December 23, 2019 at 9:14:07 AM UTC+2, Ioan Atudosie wrote:Hello guys,I do have a DNS-320 Ver B2 (see photo). I am not able to run any firmware on it, so it's stuck to v 1.0Is there any way to "upgrade" it with a firmware so that it becomes a "cloud" 320L?