Welcome! Log In Create A New Profile

Advanced

Bricked UBoot on Netgear Readynas Duo V2

Posted by kbch 
Bricked UBoot on Netgear Readynas Duo V2
April 27, 2021 03:37PM
I'm not exactly sure how this happened. I edited and added some env's on my Readynas Duo V2 to support loading an initramfs from USB. Since then it is stuck after an Ethernet message and I can't enter UBoot anymore. It also doesn't go further with booting after this Ethernet message.

Is there something I could try or do I now have a big paper weight? :)

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB-88F6282A-BP LE 

U-Boot 1.1.4 (Jun 29 2012 - 16:06:40) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1009

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006D0120

Soc: MV88F1155 Rev 1 (DDR3)
CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz 

DRAM unknown CAL  tRP = 8 tRAS = 20 tRCD=8
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Plug On and Power down, Please Switch On !

�
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB-88F6282A-BP LE 

U-Boot 1.1.4 (Jun 29 2012 - 16:06:40) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1009

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006D0120

Soc: MV88F1155 Rev 1 (DDR3)
CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz 

DRAM unknown CAL  tRP = 8 tRAS = 20 tRCD=8
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Switch On !

Net:   egiga0 [PRIME]

Re: Bricked UBoot on Netgear Readynas Duo V2
April 27, 2021 07:05PM
kbch,


> USB 0: host mode
> PEX 0: PCI Express Root Complex Interface
> PEX interface detected Link X1
> Switch On !
>
> Net: egiga0 [PRIME]

If the Ethernet cabe was connected in this boot, then disconnect it and cycle power. See how it behaves when there is no network connection.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked UBoot on Netgear Readynas Duo V2
April 28, 2021 03:39AM
Hi bodhi

It keeps stuck on this message no matter if Ethernet is connected or not. Also doesn't matter if other peripheral stuff like USB Sticks are connected.
Re: Bricked UBoot on Netgear Readynas Duo V2
April 28, 2021 04:51PM
kbch,

If you have a backup of mtd0 (where u-boot image is), you can try UART booting:

https://forum.doozan.com/read.php?3,51739,51919#msg-51919

Or if you can find u-boot image for this box from Netgear website, use that. Usually, a recovery FW will contain the u-boot image inside.

I suspect that some u-boot envs were messed up.

How long have you wait when the box was stuck at that Etherner initialization? did you wait for a long period such as 5 minutes?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked UBoot on Netgear Readynas Duo V2
April 28, 2021 04:55PM
And see an unbrick session for this box here:

https://forum.doozan.com/read.php?3,74954

Please read the entire thread before attempt anything.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/28/2021 04:56PM by bodhi.
Re: Bricked UBoot on Netgear Readynas Duo V2
April 28, 2021 04:59PM
Hi,

attached are backup mtd0 and mtd1 of my Readynas Duo V2. You should be able to use kwboot to get a working uboot in RAM.

kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0 -p

Once you have a working uboot it should be possible to boot into Debian and flash the mtd partitions. I don't know the exact commands but some of the experts here will be able to help with that.

Remember to adjust mac address etc in the uboot environment to those of your own box.

Koen
Attachments:
open | download - mtd0.zip (210.6 KB)
open | download - mtd1.zip (1 KB)
Re: Bricked UBoot on Netgear Readynas Duo V2
April 28, 2021 05:25PM
I have now built kwboot from http://ftp.denx.de/pub/u-boot/u-boot-2021.04.tar.bz2 and tried to boot mtd0. But it fails with a Protocol error. Not sure if my (presumably fake) pl2303 is causing issues or uboot tools is too new.

Will try to use the supplied Raspberry Pi kwboot binary with Raspberry Pi UART tomorrow.

➜  tools sudo ./kwboot -t -B 9600 /dev/ttyUSB0 -b ~/drive/readynas/mtd0 -p -d
Sending debug message. Please reboot the target...\
Sending boot image...
  0 % [+xmodem: Protocol error
Re: Bricked UBoot on Netgear Readynas Duo V2
April 28, 2021 05:37PM
I'm pretty sure that the uart speed should be 115200 and not 9600
Re: Bricked UBoot on Netgear Readynas Duo V2
April 28, 2021 07:38PM
kbch Wrote:
-------------------------------------------------------
> I have now built kwboot from
> http://ftp.denx.de/pub/u-boot/u-boot-2021.04.tar.bz2
> and tried to boot mtd0. But it fails with a
> Protocol error. Not sure if my (presumably fake)
> pl2303 is causing issues or uboot tools is too
> new.
>
> Will try to use the supplied Raspberry Pi kwboot
> binary with Raspberry Pi UART tomorrow.
>
>
> ➜  tools sudo ./kwboot -t -B 9600 /dev/ttyUSB0
> -b ~/drive/readynas/mtd0 -p -d
> Sending debug message. Please reboot the
> target...\
> Sending boot image...
>   0 % [+xmodem: Protocol error
>

For this box, there is mo need to build kwboot. Whatever the Linux host you are running, the distro kwboot is good enough.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Bricked UBoot on Netgear Readynas Duo V2
April 29, 2021 10:11AM
hmm, this is weird. I got it now working with the UART of the Raspberry Pi + kwboot from the Debian u-boot-tools package. But it looks like it afterwards boots again the old Bootloader from NAND or maybe it loads the envs from NAND. At least its also stuck at the Ethernet message again.

pi@devtable:~ $ kwboot -t -B 115200 /dev/ttyS0 -b mtd0 -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
  3 % [......................................................................]
  4 % [......................................................................]
  5 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  6 % [......................................................................]
  7 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
  9 % [......................................................................]
  9 % [......................................................................]
 10 % [....������+.................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 11 % [......................................................................]
 12 % [......................................................................]
 13 % [......................................................................]
 13 % [......................................................................]
 14 % [......................................................................]
 14 % [......................................................................]
 15 % [......................................................................]
 15 % [......................................................................]
 16 % [......................................................................]
 17 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 18 % [......................................................................]
 19 % [......................................................................]
 19 % [......................................................................]
 20 % [......................................................................]
 21 % [......................................................................]
 21 % [................������+.....................................................]
 22 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 25 % [......................................................................]
 25 % [......................................................................]
 26 % [......................................................................]
 26 % [......................................................................]
 27 % [......................................................................]
 27 % [......................................................................]
 28 % [......................................................................]
 29 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 30 % [......................................................................]
 31 % [......................................................................]
 31 % [......................................................................]
 32 % [......................................................................]
 33 % [..........................������+...........................................]
 33 % [......................................................................]
 34 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 35 % [......................................................................]
 36 % [......................................................................]
 37 % [......................................................................]
 37 % [......................................................................]
 38 % [......................................................................]
 38 % [......................................................................]
 39 % [......................................................................]
 39 % [......................................................................]
 40 % [......................................................................]
 40 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 42 % [......................................................................]
 43 % [......................................................................]
 43 % [......................................................................]
 44 % [......................................������+...............................]
 44 % [......................................................................]
 45 % [......................................................................]
 46 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 47 % [......................................................................]
 48 % [......................................................................]
 48 % [......................................................................]
 49 % [......................................................................]
 50 % [......................................................................]
 50 % [......................................................................]
 51 % [......................................................................]
 51 % [......................................................................]
 52 % [......................................................................]
 52 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 54 % [......................................................................]
 55 % [......................................................................]
 55 % [...................................................������+..................]
 56 % [......................................................................]
 56 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 59 % [......................................................................]
 60 % [......................................................................]
 60 % [......................................................................]
 61 % [......................................................................]
 62 % [......................................................................]
 62 % [......................................................................]
 63 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 64 % [......................................................................]
 65 % [......................................................................]
 66 % [......................................................................]
 66 % [......................................................................]
 67 % [...............................................................������+......]
 67 % [......................................................................]
 68 % [......................................................................]
 68 % [......................................................................]
 69 % [......................................................................]
 70 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 71 % [......................................................................]
 72 % [......................................................................]
 72 % [......................................................................]
 73 % [......................................................................]
 74 % [......................................................................]
 74 % [......................................................................]
 75 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 76 % [......................................................................]
 77 % [......................................................................]
 78 % [......................................................................]
 78 % [......................................................................]
 79 % [...������+..................................................................]
 79 % [......................................................................]
 80 % [......................................................................]
 80 % [......................................................................]
 81 % [......................................................................]
 81 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 83 % [......................................................................]
 84 % [......................................................................]
 84 % [......................................................................]
 85 % [......................................................................]
 85 % [......................................................................]
 86 % [......................................................................]
 87 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 88 % [......................................................................]
 89 % [......................................................................]
 89 % [......................................................................]
 90 % [...............������+......................................................]
 91 % [......................................................................]
 91 % [......................................................................]
 92 % [......................................................................]
 92 % [......................................................................]
 93 % [......................................................................]
 93 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 95 % [......................................................................]
 96 % [......................................................................]
 96 % [......................................................................]
 97 % [......................................................................]
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [......................................................................]
 99 % [..............................................]
[Type Ctrl-\ + c to quit]

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB-88F6282A-BP LE 

U-Boot 1.1.4 (Jun 29 2012 - 16:06:40) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1009

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006D0120

Soc: MV88F1155 Rev 1 (DDR3)
CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz 

DRAM unknown CAL  tRP = 8 tRAS = 20 tRCD=8
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Switch On !

Net:   egiga0 [PRIME]
Re: Bricked UBoot on Netgear Readynas Duo V2
April 29, 2021 11:37AM
Got it now working. Used the uboot from http://www.readynas.com/download/beta/marvell/USB_Recovery/u-boot.bin and loaded it with the same kwboot command. Thanks for your help bodhi and koen!

Just out of curiosity, I also found other threads with this issue that it hangs at the ethernet message. Did I do something wrong when changing my envs or is this an issue of this uboot build that it sometimes corrupts something?



Edited 1 time(s). Last edit at 04/29/2021 11:38AM by kbch.
Re: Bricked UBoot on Netgear Readynas Duo V2
April 29, 2021 03:05PM
I've been waiting for this device to get supported in OpenWrt for a while but things seem to have got stuck. Netgear did implement some custom stuff to enable Wake on Lan etc. Some more details can be found here:

https://github.com/openwrt/openwrt/pull/3371#issuecomment-760968704

When I was running official Debian on it the device would sometimes struggle to reboot which could only be fixed by unplugging the power cable.

So I don't think you did anything wrong but that it is the odd reboot sequence that Netgear implemented that causes issues sometimes.
Re: Bricked UBoot on Netgear Readynas Duo V2
April 29, 2021 06:15PM
Quote

Just out of curiosity, I also found other threads with this issue that it hangs at the ethernet message. Did I do something wrong when changing my envs or is this an issue of this uboot build that it sometimes corrupts something?

It is possible that was caused by changes in u-boot envs.

Quote

So I don't think you did anything wrong but that it is the odd reboot sequence that Netgear implemented that causes issues sometimes.

It is also possible that the Kikrwood restart driver needs to be tweaked to work with this box.

According to this,

https://github.com/openwrt/openwrt/pull/3371#issuecomment-760968704

Quote

Poweroff in stock firmware cause setting two bits (PHY register: Page 3 Reg 17 Bit 4 and RTC register: SL2(BIT5) of RS5C372a control 1 register (0xe0)) and reboot. If bootloader detect that state, it enable WOL and suspend device. Then it wait for WOL signal or button.

So the problem with the hang after Ethernet comes up in u-boot, could be a wrong state it got into and might be waiting for WOL packet.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: