• August 17, 2019, 08:35:09 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: [SOLVED] - Help me to unbrick my DNS 320 A1  (Read 12397 times)

enoch81

  • Level 1 Member
  • *
  • Posts: 4
[SOLVED] - Help me to unbrick my DNS 320 A1
« 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?
« Last Edit: October 05, 2016, 05:10:49 PM by enoch81 »
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1441
Re: Help me to unbrick my DNS 320 A1
« Reply #1 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 ?
Logged

enoch81

  • Level 1 Member
  • *
  • Posts: 4
Re: Help me to unbrick my DNS 320 A1
« Reply #2 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 ?
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?
Logged

FurryNutz

  • Poweruser

  • ▲▲
  • *****
  • Posts: 47679
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Help me to unbrick my DNS 320 A1
« Reply #3 on: August 26, 2016, 07:15:34 AM »

Any status on this?  ???
Logged
Cable:200mb/10Mb>NetGear C7800>DIR-882>DGS-1100>HP 24pt Gb Switch. COVR-3902/2202/1203,DIR-2680,890L,882,880L,868L,DNR-202L,DNS-345x2,DCS-933L,936L and 960L.
Go Here>Router Troubleshooting

enoch81

  • Level 1 Member
  • *
  • Posts: 4
Re: Help me to unbrick my DNS 320 A1
« Reply #4 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.

« Last Edit: August 29, 2016, 02:32:53 PM by enoch81 »
Logged

FurryNutz

  • Poweruser

  • ▲▲
  • *****
  • Posts: 47679
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Help me to unbrick my DNS 320 A1
« Reply #5 on: August 30, 2016, 06:27:31 AM »

I hope Ivan can help you further...
Logged
Cable:200mb/10Mb>NetGear C7800>DIR-882>DGS-1100>HP 24pt Gb Switch. COVR-3902/2202/1203,DIR-2680,890L,882,880L,868L,DNR-202L,DNS-345x2,DCS-933L,936L and 960L.
Go Here>Router Troubleshooting

baltzatu

  • Level 2 Member
  • **
  • Posts: 45
  • Slayer Fan
Re: Help me to unbrick my DNS 320 A1
« Reply #6 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.

Hope it helps.
« Last Edit: September 07, 2016, 08:42:13 PM by baltzatu »
Logged
R.I.P., Jeffrey John "Jeff" Hanneman (January 31st, 1964 May 2nd, 2013)...

FurryNutz

  • Poweruser

  • ▲▲
  • *****
  • Posts: 47679
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Help me to unbrick my DNS 320 A1
« Reply #7 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.

Hope it helps.
Logged
Cable:200mb/10Mb>NetGear C7800>DIR-882>DGS-1100>HP 24pt Gb Switch. COVR-3902/2202/1203,DIR-2680,890L,882,880L,868L,DNR-202L,DNS-345x2,DCS-933L,936L and 960L.
Go Here>Router Troubleshooting

baltzatu

  • Level 2 Member
  • **
  • Posts: 45
  • Slayer Fan
Re: Help me to unbrick my DNS 320 A1
« Reply #8 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's method:



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). Also, get an Alt-F firmware (I used this one: Alt-F-0.1RC4.1-DNS-320-rev-A1A2.bin) - 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!) 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 :)
« Last Edit: March 04, 2017, 10:39:45 PM by baltzatu »
Logged
R.I.P., Jeffrey John "Jeff" Hanneman (January 31st, 1964 May 2nd, 2013)...

FurryNutz

  • Poweruser

  • ▲▲
  • *****
  • Posts: 47679
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Help me to unbrick my DNS 320 A1
« Reply #9 on: September 19, 2016, 07:24:24 AM »

Thank you so much. Hope this helps future users when needed.  ;)
Logged
Cable:200mb/10Mb>NetGear C7800>DIR-882>DGS-1100>HP 24pt Gb Switch. COVR-3902/2202/1203,DIR-2680,890L,882,880L,868L,DNR-202L,DNS-345x2,DCS-933L,936L and 960L.
Go Here>Router Troubleshooting

baltzatu

  • Level 2 Member
  • **
  • Posts: 45
  • Slayer Fan
Re: Help me to unbrick my DNS 320 A1
« Reply #10 on: September 19, 2016, 11:07:39 PM »

You're welcome :)
Logged
R.I.P., Jeffrey John "Jeff" Hanneman (January 31st, 1964 May 2nd, 2013)...

FurryNutz

  • Poweruser

  • ▲▲
  • *****
  • Posts: 47679
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Help me to unbrick my DNS 320 A1
« Reply #11 on: September 20, 2016, 06:39:31 AM »

 :)
Logged
Cable:200mb/10Mb>NetGear C7800>DIR-882>DGS-1100>HP 24pt Gb Switch. COVR-3902/2202/1203,DIR-2680,890L,882,880L,868L,DNR-202L,DNS-345x2,DCS-933L,936L and 960L.
Go Here>Router Troubleshooting

enoch81

  • Level 1 Member
  • *
  • Posts: 4
Re: Help me to unbrick my DNS 320 A1
« Reply #12 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?
Logged

baltzatu

  • Level 2 Member
  • **
  • Posts: 45
  • Slayer Fan
Re: [SOLVED] - Help me to unbrick my DNS 320 A1
« Reply #13 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
« Last Edit: October 05, 2016, 09:14:18 PM by baltzatu »
Logged
R.I.P., Jeffrey John "Jeff" Hanneman (January 31st, 1964 May 2nd, 2013)...