Looking for guys with NETGEAR ReadyNAS Duo v2

Did anyone have this old stuff? I'm looking for someone, who could test my PR:

I can provide images for tests.

I can test again if you provide images. However my system is currently running Debian 10 with a 5.4.x kernel booting from the SATA drives. I would need to know what environment variables to restore.

@RaylynnKnight

Thank You for response. Do You have stock bootloader?

Yes, I'm running the stock U-Boot with modified environment to enable booting to Debian 10 from the SATA drive.

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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]
Hit any key to stop autoboot:  0 

I've got a readynas duo v2 as well. The flash has some badblocks which killed the original firmware so it currently has Debian installed. Uboot is original but envs have been adjusted to run Debian. uImage and uIninrd are in flash, Debian rootfs is on an USB drive. The nas is not being used at the moment so happy to give your openwrt build a try.

@RaylynnKnight
@konus
@mbo2o

Thank You for response.

Here are images for installation:
https://github.com/openwrt/openwrt/files/5317845/openwrt-kirkwood-netgear_readynas-duo-v2-images.zip

I change envs" "bootargs" and "bootcmd". And nand area after env partition. So, if You want to go back after tests, please make backup of data stored in nand and described args.

I added luci and ext4 support. If You need more kmods, please let me know.

Tested successfully. As stated on GitHub you may add a Tested By from me. Please let me know when this gets merged to trunk as I would like to follow up with the similar 4-bay Netgear NV+ v2 which I have 2 of.

Hi,

I've successfully installed your image. The only issue I found is that when I power off the box there is an error and I need to pull the power cord before I can start the nas again. I experience the same thing when running Debian Buster so I don't think it has anything to do with your openwrt image.

Koen

root@OpenWrt:/# poweroff
root@OpenWrt:/# [  132.402983] br-lan: port 1(eth0) entered disabled state
[  132.425718] device eth0 left promiscuous mode
[  132.430192] br-lan: port 1(eth0) entered disabled state
[  136.311168] reboot: Power down
[  139.514539] ------------[ cut here ]------------
[  139.519182] WARNING: CPU: 0 PID: 1946 at drivers/power/reset/gpio-poweroff.c:46 __do_sys_reboot+0x130/0x210
[  139.528962] Modules linked in: pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_rtcache nf_conntrack ipt_REJECT g762 xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables hwmon crc_ccitt ledtrig_usbport nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ntfs mmc_block usb_storage mmc_core xhci_plat_hcd xhci_pci xhci_hcd sata_mv fsl_mph_dr_of ehci_platform ehci_orion ehci_fsl ehci_hcd gpio_button_hotplug ext4 mbcache jbd2
[  139.593417] CPU: 0 PID: 1946 Comm: procd Not tainted 5.4.68 #0
[  139.599272] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  139.605578] [<c0107f00>] (unwind_backtrace) from [<c010580c>] (show_stack+0x10/0x14)
[  139.613361] [<c010580c>] (show_stack) from [<c01152bc>] (__warn+0xb0/0xd8)
[  139.620267] [<c01152bc>] (__warn) from [<c0115330>] (warn_slowpath_fmt+0x4c/0x94)
[  139.627783] [<c0115330>] (warn_slowpath_fmt) from [<c0131d00>] (__do_sys_reboot+0x130/0x210)
[  139.636258] [<c0131d00>] (__do_sys_reboot) from [<c0101000>] (ret_fast_syscall+0x0/0x50)
[  139.644382] Exception stack(0xcf241fa8 to 0xcf241ff0)
[  139.649451] 1fa0:                   00000000 b6f47010 fee1dead 28121969 4321fedc 004e7764
[  139.657665] 1fc0: 00000000 b6f47010 000003e8 00000058 ffffffff 00000000 10624dd3 00000001
[  139.665877] 1fe0: 004e6e30 be940d74 004d351c b6f676cc
[  139.670942] ---[ end trace eaf37563a421919d ]---

@konus

Thank You for tests. Can I put You in "Tested-by" field?

You're right. gpio-poweroff from upstream are buggy. It isn't work and causes only warning. According to GPL sources of NETGEAR, poweroff should be done as reboot with some registers configuration. To proper poweroff is needed to clear bit in one of registers:

  • PHY register: Page 3 Reg 17 Bit 4
  • RTC register: SL2(BIT5) of RS5C372a control 1 register (0xe0)

For more info please look at file:
RND_5.3.13_WW.src/u-boot/board/mv_feroceon/mv_hal/usibootup/usibootup.c
from Netgear GPL sources.

I will add info to known issues in PR.

yes fine to add me to the tested-by field.

Hi @CHKDSK88,

did the Netgear Readynas Duo V2 get full openWrt support? I can't see any images in the 21.02 RC1 download section.

Thanks.

It is still in the GitHub pull requests (https://github.com/openwrt/openwrt/pull/3371) with status:

Review required

At least 2 approving reviews are required by reviewers with write access.
Merging is blocked

Merging can be performed automatically with 2 approving reviews.

So you'll need to get 2 reviewers with write access to approve. I've done what I can by adding my Tested By.

I bring back device to me. I plan to push it forward.

Where can I find the exact steps taken to load this on the device? I don't know how to stop booting in uboot or connect to the console. I haven't done any ARM-based Linux stuff and this box is old, but needs new life.

  • serial on J5 connector accessible from rear panel
    (115200 8N1) (VCC,TX,RX,GND) (3V3 LOGIC!)

To stop booting please press any key when u-boot ask for it.

Installation by USB + serial:

  • Copy initramfs image to fat32 usb drive
  • Connect pendrive to USB 2.0 front socket
  • Connect serial console
  • Stop booting in u-boot
  • Do:
    usb reset
    fatload usb 0:1 0x1200000 openwrt-kirkwood-netgear_readynas-duo-v2-initramfs-uImage
    setenv bootargs 'console=ttyS0,115200n8 earlyprintk'
    bootm 0x1200000
  • copy sysupgrade image via ssh.
  • run sysupgrade

Installation by TFTP + serial:

  • Setup TFTP server and copy initramfs image
  • Connect serial console
  • Stop booting in u-boot
  • Do:
    setenv serverip 192.168.1.1
    setenv ipaddr 192.168.1.2
    setenv bootargs 'console=ttyS0,115200n8 earlyprintk'
    tftpboot 0x1200000 openwrt-kirkwood-netgear_readynas-duo-v2-initramfs-uImage
    bootm 0x1200000
  • copy sysupgrade image via ssh.
  • run sysupgrade
2 Likes

Many thanks - that was easy. The instructions I was looking at seemingly omitted the J5 connector. Is that image you've linked above the latest version?

I recommend to use latest snapshot:

https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=kirkwood%2Fgeneric&id=netgear_readynas-duo-v2

Hi,
thanks for the great work. OpenWrt instead of electronic scrap!

I followed your instructions and installed the latest snapshot.
After sysupgrade the device rebootet as expected.
download sysupgrade.bin to /tmp
sysupgrade -v
Unfortunately an error occurs after reboot: "Bad Magic Number".

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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]
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x200000, size 0x600000

Reading data from 0x7ff800 -- 100% complete.
 6291456 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x1000000

Reading data from 0x17ff800 -- 100% complete.
 16777216 bytes read: OK
## Booting image at 01200000 ...
   Image Name:   ARM OpenWrt Linux-5.10.92
   Created:      2022-01-19   8:44:26 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2813934 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02000000 ...
Bad Magic Number▒

Some changes was done before merge. Please follow steps from commit message:

thanks a lot!
I am a complete newbie.
setenv bootcmd ... and saveenv makes sense.