Hi,
John-Paul bricked his DNS-323-rev-B1 box running D-Link fw-1.08 while trying to flash Alt-F on it.
The following are excerpts from private conversations, with John-Paul approval.
I've managed to create a serial cable. The serial output shows
a CRC error. See below. The problem is that the Rev-B1 does not seeor accept key strokes via the serial cable, so I cannot interrupt theboot sequence. Perhaps there is a cable issue, but I've measured theconnection with an Ohm meter and the wires seem to be fine.
As instructed in the web site http://dns323.kood.org/hardware:serialI only connected pins 2, 3, and 4 (RX, TX, and GND).** LOADER **** MARVELL BOARD: RD-88F5182-NAS-2 LEU-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3DRAM CS[0] base 0x00000000 size 64MBDRAM Total size 64MB[8192kB@ff800000] Flash: 8 MBAddresses 20M - 0M are saved for the U-Boot usage.Mem malloc Initialization (20M - 16M): Done*** Warning - bad CRC, using default environmentSoc: MV88F5182 Rev 2CPU: ARM926 (Rev 0) running @ 500MhzSysClock = 166Mhz , TClock = 166MhzUSB 0: host modeUSB 1: host modePCI 0: PCI Express Root Complex InterfacePCI 1: Conventional PCI, speed = 33000000Hit any key to stop autoboot: 0## Booting image at ff820000 ...Image Name: Alt-F-0.1RC3, kernel 2.6.35.14Image Type: ARM Linux Kernel Image (uncompressed)Data Size: 1383068 Bytes = 1.3 MBLoad Address: 00008000Entry Point: 00008000Verifying Checksum ... OKOK## Loading Ramdisk Image at ff9a0000 ...Image Name: Alt-F-0.1RC3, initrdImage Type: ARM Linux RAMDisk Image (uncompressed)Data Size: 6385664 Bytes = 6.1 MBLoad Address: 00800000Entry Point: 00800000Verifying Checksum ... Bad Data CRCOK** LOADER **** MARVELL BOARD: RD-88F5182-NAS-2 LEU-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3(and it keeps repeating)
@you have to be really fast typing the "space", followed by "1" keys right after poweron.
Keep typing them several times.
@YES!!! It worked.
That was fantastic advice. <SPACE>1 did the trick. I now have the "Marvell>>" prompt!
I have the rev-B1 unit un-bricked. During this process I ran into onemajor difficulty (which partly explains why the unit got bricked inthe first place).As the output (I emailed you earlier) showed, the Alt-F kernel CRCwas still fine; the unit complained about the ramdisk image CRC.So I uploaded via the serial port, using kermit, the Alt-F ramdisk image.After the ramdisk image got uploaded (no errors), the unit erased itsflash blocks and then gave me an error before it started to copy theramdisk image to flash. The error was:Ramdisk Size = 6385728error,Ramdisk size > 005e0000 byesMarvell>>Note: 005e0000 == 6160384, which is not enough space to fit 6385728 in.Then I retried loading the Dlink vendor 1.08 firmware, both kerneland ramdisk. This version was on the unit before I flashed Alt-F.Same error:Ramdisk Size = 6475178error,Ramdisk size > 005e0000 byesMarvell>>Again, 005e0000 == 6160384, which is not enough space to fit 6475178 in.Then finally I loaded the Dlink vendor 1.03 firmware (kernel andramdisk), which has a ramdisk size of 5966369. This succeeded and theunit booted the firmware without any issues. I can reach its web GUI.Apparently, the Dlink firmware version 1.08, as well as Alt-F, do notfit. And no: I do not have an explanation why the Dlink firmware version1.08 worked fine, when flashed from an older Dlink firmware version...
My previously bricked rev-B1 now runs Alt-F. I followed this procedure:Starting with Dlink firmware 1.03, reset to defaults, reboot, upgradeto 1.04, reset to defaults, reboot, upgrade to 1.05, reset to defaults,reboot, upgrade to 1.06, reset to defaults, reboot, upgrade to 1.07,reset to defaults, reboot, upgrade to 1.08, reset to defaults, reboot,shutdown, power-off, power-on, upgrade to Alt-F 0.1RC3, shutdown,power-off, power-on, worked! Reset to defaults, reboot, still works.All upgrade were performed via the web GUI.
Some more hints:
Currently, I don't have a shell on the 1.03 firmware, since:a. via the console (/dev/ttyS0) I cannot enter any commands; the ^Ckeystroke simply shows:Starting pid 2539, console /dev/ttyS0: '/bin/sh'BusyBox v1.00-pre1 (2006.07.17-10:17+0000) Built-in shell (ash)Enter 'help' for a list of built-in commands.But nothing I enter results in any output. (Is this normal?)
@Yes, you have to type '5784468' to "unlock" it! D-Link stuff, like the <space><1> key u-boot break sequence
@As you show in your email, it's a bootloader (u-boot) bug -- later on, somewhere in the process of the several upgrades of the D-Link firmware a new u-boot must have been flashed.
Can you check your current u-boot version, and try to identify where inthe flash sequence was it upgraded?According to http://dns323.kood.org/, there was several upgrades, canyou confirm that?At the time of the brick you hadU-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3
@Sounds very reasonable, but sadly it's not the case. The console bootlogs of all versions show U-Boot 1.1.1:% grep U-boot boot_10[345678] boot_alt-fboot_103:U-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3boot_103:Addresses 20M - 0M are saved for the U-Boot usage.boot_103:0x007d0000-0x00800000 : "u-boot"boot_104:U-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3boot_104:Addresses 20M - 0M are saved for the U-Boot usage.boot_104:0x007d0000-0x00800000 : "u-boot"boot_105:U-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3boot_105:Addresses 20M - 0M are saved for the U-Boot usage.boot_105:0x007d0000-0x00800000 : "u-boot"boot_106:U-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3boot_106:Addresses 20M - 0M are saved for the U-Boot usage.boot_106:0x007d0000-0x00800000 : "u-boot"boot_107:U-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3boot_107:Addresses 20M - 0M are saved for the U-Boot usage.boot_107:0x007d0000-0x00800000 : "u-boot"boot_108:U-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3boot_108:Addresses 20M - 0M are saved for the U-Boot usage.boot_108:0x007d0000-0x00800000 : "u-boot"boot_alt-f:U-Boot 1.1.1 (Dec 20 2006 - 15:49:31) Marvell version: 1.7.3boot_alt-f:Addresses 20M - 0M are saved for the U-Boot usage.boot_alt-f:0x0000007d0000-0x000000800000 : "u-boot"
Hi,
I've got some problem with my DNS-323 A1. After upgrade to 0.1RC4
device worked couple of days
then I needed to change UPS battery and powered it down. From that moment it's just blinking fast and not starting up.
Made some soldering with my original Nokia DKU-5 cable and that's what I see in terminal:** MARVELL BOARD: RD-88F5181-POS-NAS LE
U-Boot 1.1.1 (Nov 13 2006 - 14:01:34) Marvell version: 1.4.2
DRAM CS[0] base 0x00000000 size 64MB
DRAM Total size 64MB
[8192kB@ff800000] Flash: 8 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done
*** Warning - bad CRC, using default environment
It hangs without message "Hit any key to stop autoboot: 0". I can't get Marvell command line.
Soc: MV88F5181 Rev 3
CPU: ARM926 (Rev 0) running @ 500Mhz
SysClock = 166Mhz , TClock = 166Mhz
Init usb device.
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
** LOADER **** MARVELL BOARD: RD-88F5182-NAS-2 LE
U-Boot 1.1.1 (Oct 12 2007 - 17:19:14) Marvell version: 1.7.3.001
DRAM CS[0] base 0x00000000 size 64MBDRAM Total size 64MB[8192kB@ff800000] Flash: 8 MBAddresses 20M - 0M are saved for the U-Boot usage.Mem malloc Initialization (20M - 16M): Done*** Warning - bad CRC, using default environment
Soc: MV88F5182 Rev 2
CPU: ARM926 (Rev 0) running @ 500MhzSysClock = 166Mhz , TClock = 166Mhz
USB 0: host modeUSB 1: host mode
PCI 0: PCI Express Root Complex InterfacePCI 1: Conventional PCI, speed = 33000000
Hit any key to stop autoboot: 0
## Booting image at ff820000 ...
Image Name: Linux-2.6.12.6-arm1
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1455992 Bytes = 1.4 MB
Load Address: 00008000Entry Point: 00008000Verifying Checksum ... OKOK## Loading Ramdisk Image at ff9a0000 ...
Image Name: RamdiskImage Type: ARM Linux RAMDisk Image (gzip compressed)Data Size: 6462441 Bytes = 6.2 MB
Load Address: 00800000Entry Point: 00800000
Verifying Checksum ... OKStarting kernel ...
..
Any tips ?
Is this some kind of hardware problem ?
Regards,
Adam
On Wednesday, December 17, 2014 6:42:25 PM UTC, sprinterrro wrote:Hi,
I've got some problem with my DNS-323 A1. After upgrade to 0.1RC4from D-Link fw or a previous Alt-F release?
device worked couple of daysDid you reboot the box afterwards? You did it at least after flashing RC4, so the flash run OK, or the box wouldn't even reboot to Alt-F.
then I needed to change UPS battery and powered it down. From that moment it's just blinking fast and not starting up.
Made some soldering with my original Nokia DKU-5 cable and that's what I see in terminal:** MARVELL BOARD: RD-88F5181-POS-NAS LE
U-Boot 1.1.1 (Nov 13 2006 - 14:01:34) Marvell version: 1.4.2
DRAM CS[0] base 0x00000000 size 64MB
DRAM Total size 64MB
[8192kB@ff800000] Flash: 8 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done
*** Warning - bad CRC, using default environmentThis is "normal", it also appears on my DNS-323-rev-B1 board.It hangs without message "Hit any key to stop autoboot: 0". I can't get Marvell command line.
Soc: MV88F5181 Rev 3
CPU: ARM926 (Rev 0) running @ 500Mhz
SysClock = 166Mhz , TClock = 166Mhz
Init usb device.
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000You should see (you already know that, just for reference) something similar to (apart from rev-A1/B1 differences)
Is this some kind of hardware problem ?In the worst case scenario the u-boot flash "partition" is damaged, which has no possible cure. Someone in the DNS-323 forum reported using a JTAG to flash u-boot, but that is a very advanced topic.
Regards,
Adam