D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-320 => Topic started by: enoch81 on August 11, 2016, 07:24:27 PM

Title: [SOLVED] - Help me to unbrick my DNS 320 A1
Post by: enoch81 on August 11, 2016, 07:24:27 PM
Hello guys,
I have a DNS 320 rev A1 that worked like a charm for several years with an unofficial firmware (ALT-F).
Two weeks ago I decided to upgrade that firmware, but things gone wrong
So i soldered the jtag connectors and successfully  logged in with tera term.
But, how I can break the autoboot sequence and go to the u-boot command prompt?
I tried several schemas, press "space" on start.
Press space +1 on start
PRess space +1 several times on boot
PRess space +1 only once before the request "PRESS ANY KEY TO STOP AUTOBOOT".
What can I do?
Title: Re: Help me to unbrick my DNS 320 A1
Post by: ivan on August 12, 2016, 10:06:30 AM
Have you tried asking on the Alt-F forum https://groups.google.com/forum/?hl=en#!forum/alt-f (https://groups.google.com/forum/?hl=en#!forum/alt-f) ?
Title: Re: Help me to unbrick my DNS 320 A1
Post by: enoch81 on August 13, 2016, 08:00:40 AM
Have you tried asking on the Alt-F forum https://groups.google.com/forum/?hl=en#!forum/alt-f (https://groups.google.com/forum/?hl=en#!forum/alt-f) ?
Already tryied, but it seems that it's a desert group.
Actually I solved to login to the u-boot shell due to bad solders.
I want to boot the kernel from the a usb pendrive so I can flash it from the webgui.
How can I do that?

I never used u-boot

this is what I tryied:

Code: [Select]
Marvell_DNS320>> 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_DNS320>> usb storage
  Device 0: Vendor: CBM      Prod.: Flash Disk       Rev: 5.00
            Type: Removable Hard Disk
            Capacity: 1998.0 MB = 1.9 GB (4091904 x 512)
Marvell_DNS320>> fatls usb 0:1
...
            system volume information/
 27810631   dns-320_a1_fw_v2.00

1 file(s), 1 dir(s)

Marvell_DNS320>> fatload usb 0:1 0x1000000 dns-320_a1_fw_v2.00
reading dns-320_a1_fw_v2.00
...
...
..

27810631 bytes read
Marvell_DNS320>>
But how can I boot the kernel off the usb drive?
Title: Re: Help me to unbrick my DNS 320 A1
Post by: FurryNutz on August 26, 2016, 07:15:34 AM
Any status on this?  ???
Title: Re: Help me to unbrick my DNS 320 A1
Post by: enoch81 on August 29, 2016, 02:31:09 PM
Any status on this?  ???
Hi!
Actually I can boot into the alt-f webpage but it' has a weird behaviour, plus I can't reach the proper firmware upload page (I WANT TO RESTORE TO THE ORIGINAL FIRMWARE).
It' prompt me a "Unsupported unknown board" message.
I'm very tired, but I hate to throw away a functional NAS when it's only a matter of software.
In the alt-f group forum I had no answer.
The same on the http://forum.dsmg600.info

It's a nightmare.
The nas only boot up, show me a limited ALT-F interface but for some minutes, plus the fan it's completely ignored and it's turned off.

If someone can save my nas... please, help me.

(https://16189135493643817969.googlegroups.com/attach/6ce296cb9f720/tre7.png?part=0.4&view=1&vt=ANaJVrGDnzHxFdT_AchrlIALCUfyBtLAbZh8-dqS8K2FbKQH8QSwwhnfIfci71scV5s1uW9mEnGaHFQ3qhuZk9iKS-ZUn42q3wbrhH2dWVZxRqVjPlJEFG0)
Title: Re: Help me to unbrick my DNS 320 A1
Post by: FurryNutz on August 30, 2016, 06:27:31 AM
I hope Ivan can help you further...
Title: Re: Help me to unbrick my DNS 320 A1
Post by: baltzatu on September 07, 2016, 08:37:27 PM
Well... DNS-320 is an old product. Most of them have been already replaced by newer devices, so the dedicated forums are not as animated as they used to be.

Anyway: my "unbricking" experience is here (http://forum.dsmg600.info/viewtopic.php?pid=49126#p49126).

Hope it helps.
Title: Re: Help me to unbrick my DNS 320 A1
Post by: FurryNutz on September 08, 2016, 07:05:00 AM
Any chance you can import that procedure here in to this thread please?

Would be best in case something happens to that forum. As back up.  :D

Well... DNS-320 is an old product. Most of them have been already replaced by newer devices, so the dedicated forums are not as animated as they used to be.

Anyway: my "unbricking" experience is here (http://forum.dsmg600.info/viewtopic.php?pid=49126#p49126).

Hope it helps.
Title: Re: Help me to unbrick my DNS 320 A1
Post by: baltzatu on September 19, 2016, 06:08:26 AM
Of course. Sorry for the delay.

I've seen this "help me unbrick it" question too many times, so I'll try to help.

Please keep in mind that I sold my DNS-320 a long time ago, so this is the only way I can help you. Don't ask me anything, because I won't answer your questions.

Use the procedure at your own risk. If it worked for me it doesn't necessarily mean that it'll work for you.


Here's how I've recovered my DNS-320 rev. A which I've bricked with an attempt to flash it with the original D-Link firmware that failed. At that time, I had Alt-F installed and I forgot to reset the device to factory settings before attempting to restore the official D-Link firmware.

1. Get the necessary hardware: buy a 3.3V USB-to-serial adapter (I bought mine from a Chinese website) and solder a header on the board or follow @tthsn/Jamie Lentin (http://jamie.lentin.co.uk/devices/dlink-dns325/)'s method:

(http://jamie.lentin.co.uk/devices/dlink-dns325/dns320-serial.jpeg)

2. Get the "helper" ready: if you have Linux installed, you're good to go; Windows users (like myself) have to install a Linux virtual machine. I used a Debian Wheezy installation with XFCE under VirtualBox, but other Linux flavor and VMWare Player probably will do. After installing the operating system, get dns323-firmware-tools (I used split323fw from here (https://github.com/mpalmer/dns323-firmware-tools)). Also, get an Alt-F firmware (I used this one: Alt-F-0.1RC4.1-DNS-320-rev-A1A2.bin (https://sourceforge.net/projects/alt-f/files/Releases/0.1RC4.1/Alt-F-0.1RC4.1-DNS-320-rev-A1A2.bin/download)) - inside the Linux machine, of course.

3. Split the firmware using split323fw and save the kernel and initrd: splitdns323fw <path>/Alt-F-0.1RC4.1-DNS-320-rev-A1A2.bin -k <path>/uImage -i <path>/uInitrd.

4. Attach an USB stick to the virtual machine, format it using EXT2 and copy uImage and uInitrd on it, then disconnect it from the virtual machine and connect it to your DNS-320.

5. Jamie Lentin's guide (this one! (http://jamie.lentin.co.uk/devices/dlink-dns325/keeping-original-firmware)) to boot from the USB stick without replacing the firmware was absolutely essential. You don't have to follow it all; just run printenv (to see the device's MAC - ethaddr). The commands are the following:

setenv ethaddr xx:xx:xx:xx:xx:xx
setenv bootargs console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw
usb reset ; ext2load usb 0:1 0xa00000 /uImage ; ext2load usb 0:1 0xf00000 /uInitrd
bootm 0xa00000 0xf00000


The device will reboot. After that, I was able to access the web administration interface and flash the NAS with its original firmware.

I tried using the original firmware from the beginning, but I think it doesn't split properly, because the device failed to restart boot properly all the time.

Good luck :)
Title: Re: Help me to unbrick my DNS 320 A1
Post by: FurryNutz on September 19, 2016, 07:24:24 AM
Thank you so much. Hope this helps future users when needed.  ;)
Title: Re: Help me to unbrick my DNS 320 A1
Post by: baltzatu on September 19, 2016, 11:07:39 PM
You're welcome :)
Title: Re: Help me to unbrick my DNS 320 A1
Post by: FurryNutz on September 20, 2016, 06:39:31 AM
 :)
Title: Re: Help me to unbrick my DNS 320 A1
Post by: enoch81 on October 05, 2016, 05:10:24 PM
Of course. Sorry for the delay.

I've seen this "help me unbrick it" question too many times, so I'll try to help.

Please keep in mind that I sold my DNS-320 a long time ago, so this is the only way I can help you. Don't ask me anything, because I won't answer your questions.

Use the procedure at your own risk.....
... Good luck :)

MAn, you saved me and my NAS.
Thank you!!!!

This is the solution.
How did you find the commands?
Title: Re: [SOLVED] - Help me to unbrick my DNS 320 A1
Post by: baltzatu on October 05, 2016, 08:27:43 PM
That's good news. Glad I could help :)

Jamie Lentin helped me out. His instructions and advice were essential. The guide ("Keeping D-Link Firmware") was already written, he suggested to split a firmware and use the image and kernel - that was pretty much it; I just came up with the idea of using an Alt-F firmware instead of the original, since the latter failed to split properly :D