Welcome! Log In Create A New Profile

Advanced

How to unbrick the Netgear Ready NAS Duo v2

Posted by yury_minsk 
Re: How to unbrick the Netgear Ready NAS Duo v2
September 22, 2021 02:53PM
egor.tio,

This box has the module g762.

Try

dmesg | grep -i3 fan
dmesg | grep -i3 g762

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 22, 2021 04:15PM
And then see this post about using lmsensors for the Lenovo Ix2-dl:

https://forum.doozan.com/read.php?2,123034,125359,page=3#msg-125359

UPDATE:

Hold on. That's might not work. Check your kernel config:

cat /boot/config-4.9.0-15-marvell | grep CONFIG_SENSORS_G762

If it is CONFIG_SENSORS_G762 =Y then follow the instruction in Luo's post above to setup lmsensors.

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



Edited 2 time(s). Last edit at 09/22/2021 04:20PM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 22, 2021 10:58PM
Bodhi, many thanks - it worked like a charm!
Re: How to unbrick the Netgear Ready NAS Duo v2
September 24, 2021 05:53AM
So, how to flash the current state to NAND, please?
Re: How to unbrick the Netgear Ready NAS Duo v2
September 24, 2021 02:48PM
egor.tio,

It is similar to the instruction in the release thread, but with a bit of adjustment.

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

I'll post it shortly.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 24, 2021 03:50PM
PART I

1. In Debian modify or create uBoot envs config file. It should look like this:

cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors 
/dev/mtd0 0xc0000 0x20000 0x20000

2. Check the mtds

cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00180000 00020000 "u-boot"
mtd1: 00020000 00020000 "u-boot-env"
mtd2: 00600000 00020000 "uImage"
mtd3: 01000000 00020000 "minirootfs"
mtd4: 06800000 00020000 "jffs2"

3. Back up the current mtd0

nanddump --noecc --omitoob -f mtd0.rnd_v2 /dev/mtd0
List the file, verify that mtd0.rnd_v2 size is exactly 1.5MB
ls -lh mtd0.rnd_v2


4. Check for bad block in the 1st MB (NAND block 0 to 7).

dmesg | grep -i 'bad'
If there is bad block(s) in range 0 to 7, then STOP here. And post the log for further advise.

5. Flash u-boot image

flash_erase /dev/mtd0 0 4
Expected output:

Quote

Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done

nandwrite /dev/mtd0 uboot.2017.07-tld-2-rc1.readynas_duo_v2.mtd0.kwb
Expected output:

Quote

Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000


6. Done.

Usually we would flash the env image to NAND and then make the adjustment here in Debian. However, this can also be done at u-boot prompt.

=======

PART II.


1. Reboot. The new u-boot will start from NAND.

kwboot is still running, but this time it is just a normal terminal like running piccom/minicom/screen (from now on there is no need to run kwboot unless needed to rescue the system).


Interrupt serial console at count down, enter the envs like you did before

setenv bootdev ide
setenv devices 'ide usb'
setenv mtdparts 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
and then boot

boot

2. Let it boot into Debian, log in, and then reboot. Interrupt u-boot countdown again, and then this time we'll save the envs

setenv bootdev ide
setenv devices 'ide usb'
setenv mtdparts 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
saveenv

If there is error then STOP here. And post the log for further advise.

We are done here, continue booting
boot

3. Let it boot into Debian, log in and then

fw_printenv

Please post the serial bootlog of the entire session. You can cut out the kernel log for the first few reboot to make it shorter. I only need to see the last kernel booting log.

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



Edited 2 time(s). Last edit at 09/24/2021 03:58PM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 25, 2021 04:41AM
Stuck on step 5, the output is not as expected:
Erasing 128 Kibyte @ 40af5c00000064 --  4 % complete
Tried to repeat same command - same output. No badblocks were found in dmesg output.



Edited 1 time(s). Last edit at 09/25/2021 04:49AM by egor.tio.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 25, 2021 03:04PM
egor.tio,

> Erasing 128 Kibyte @ 40af5c00000064 -- 4 %
> complete

That's a misleading/wrong message that I've seen before.

Go ahead and do nandwrite.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 26, 2021 12:56AM
It finally works! Many thanks to you Bodhi,for you support and patience!
here is the last bootlog:
U-Boot 2017.07-tld-2-rc1-gead3e3302f-dirty (Sep 13 2021 - 13:54:56 -0700)
NETGEAR READYNAS DUO V2

SoC:   Kirkwood 88F6282_A1
I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
G762 Fan controller: Successfully initialized.
Enabled USB 2.0 Power.
Enabled USB 3.0 Power.
Running HDD staggered spin-up...
Enabling HDD-0 Power in 1s.
Enabling HDD-1 Power in 3s.
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
READYNAS_DUO_V2> setenv bootdev ide
READYNAS_DUO_V2>
READYNAS_DUO_V2> setenv devices 'ide usb'
READYNAS_DUO_V2> setenv mtdparts 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
READYNAS_DUO_V2> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0xc0000 -- 100% complete.
Writing to NAND... OK
READYNAS_DUO_V2> boot

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD20EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4M2XPP2YE
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
  Device 1: Model: WDC WD40EFZX-68AWUN0 Firm: 81.00A81 Ser#:  WD-WX12DA0EA0YP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Partition Map for IDE device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            497664          3778079f-01     83 Boot
  2     499712          39061504        3778079f-02     83
  3     39563262        3867465730      3778079f-03     05 Extd
  5     39563264        1486848         3778079f-05     82
  6     41052160        3865976832      3778079f-06     83


Partition Map for IDE device 1  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x1d1c0b7ff     "primary"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   ab5fbc39-407d-46e8-a992-8b15694ac102
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD20EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4M2XPP2YE
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
  Device 1: Model: WDC WD40EFZX-68AWUN0 Firm: 81.00A81 Ser#:  WD-WX12DA0EA0YP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
device ide 0:1
1 bytes read in 15 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
2068944 bytes read in 337 ms (5.9 MiB/s)
loading uInitrd ...
5532102 bytes read in 901 ms (5.9 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_readynas_duo_v2.dtb ...
13124 bytes read in 8 ms (1.6 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.9.0-16-marvell
   Created:      2021-09-21   7:29:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2068880 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.9.0-16-marvell
   Created:      2021-09-21   7:30:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5532038 Bytes = 5.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f5c8000, end 0fb0e986 ... OK
   Loading Device Tree to 0f5c1000, end 0f5c7343 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-16-marvell (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 Debian 4.9.272-2 (2021-07-19)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt:Machine model: NETGEAR ReadyNAS Duo v2
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 248312K/262144K available (3824K kernel code, 398K rwdata, 1136K rodata, 296K init, 247K bss, 13832K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03c4400   (3825 kB)
[    0.000000]       .init : 0xc0502000 - 0xc054c000   ( 296 kB)
[    0.000000]       .data : 0xc054c000 - 0xc05af868   ( 399 kB)
[    0.000000]        .bss : 0xc05af868 - 0xc05ed61c   ( 248 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000406] Console: colour dummy device 80x30
[    0.000433] Calibrating delay loop... 1594.36 BogoMIPS (lpj=3188736)
[    0.048062] pid_max: default: 32768 minimum: 301
[    0.048200] Security Framework initialized
[    0.048215] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.048327] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.048343] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049152] CPU: Testing write buffer coherency: ok
[    0.049231] ftrace: allocating 17063 entries in 34 pages
[    0.076632] Setting up static identity map for 0x8200 - 0x823c
[    0.076838] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.079371] devtmpfs: initialized
[    0.083481] VFP support v0.3: not present
[    0.083627] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.083647] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083802] pinctrl core: initialized pinctrl subsystem
[    0.084753] NET: Registered protocol family 16
[    0.085064] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.086232] cpuidle: using governor ladder
[    0.086246] cpuidle: using governor menu
[    0.086526] Feroceon L2: Enabling L2
[    0.086560] Feroceon L2: Cache support initialised.
[    0.086777] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.090219] No ATAGs?
[    0.094240] clocksource: Switched to clocksource orion_clocksource
[    0.104908] VFS: Disk quotas dquot_6.6.0
[    0.104979] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.111157] NET: Registered protocol family 2
[    0.111817] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.111851] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.111880] TCP: Hash tables configured (established 2048 bind 2048)
[    0.111927] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.111947] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.112084] NET: Registered protocol family 1
[    0.112307] Unpacking initramfs...
[    0.441386] Freeing initrd memory: 5404K
[    0.441954] audit: initializing netlink subsys (disabled)
[    0.442018] audit: type=2000 audit(0.424:1): initialized
[    0.442384] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.442446] zbud: loaded
[    0.443767] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.443877] io scheduler noop registered
[    0.443939] io scheduler cfq registered (default)
[    0.444858] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.446212] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    0.446228] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.446274] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.446285] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.446510] PCI: bus0: Fast back to back transfers disabled
[    0.446522] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.458280] PCI: bus1: Fast back to back transfers disabled
[    0.458400] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.458416] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.458435] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.458447] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.458506] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    0.458555] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.458933] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.487184] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.487334] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.515155] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.515473] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.516324] console [ttyS0] disabled
[    0.516373] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.072173] console [ttyS0] enabled
[    1.076680] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.083081] nand: Hynix H27U1G8F2BTR-BC
[    1.086942] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.094561] Scanning device for bad blocks
[    1.175410] 5 cmdlinepart partitions found on MTD device orion_nand
[    1.181709] Creating 5 MTD partitions on "orion_nand":
[    1.186884] 0x000000000000-0x000000180000 : "u-boot"
[    1.192788] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    1.199005] 0x000000200000-0x000000800000 : "uImage"
[    1.204898] 0x000000800000-0x000001800000 : "minirootfs"
[    1.211141] 0x000001800000-0x000008000000 : "jffs2"
[    1.217653] mousedev: PS/2 mouse device common for all mice
[    2.254307] rtc-mv f1010300.rtc: internal RTC not ticking
[    2.259882] i2c /dev entries driver
[    2.265877] random: fast init done
[    2.270783] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    2.283076] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    2.290654] ledtrig-cpu: registered to indicate activity on CPUs
[    2.296984] NET: Registered protocol family 17
[    2.301887] registered taskstats version 1
[    2.306056] zswap: loaded using pool lzo/zbud
[    2.313324] rtc-rs5c372 0-0032: setting system clock to 2021-09-26 05:47:10 UTC (1632635230)
[    2.323012] Freeing unused kernel memory: 296K
[    2.327485] This architecture does not have kernel memory protection.
Loading, please wait...
starting version 232
[    2.409032] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.423956] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.431135] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.683625] SCSI subsystem initialized
[    2.739082] sata_mv f1080000.sata: slots 32 ports 2
[    2.772786] scsi host0: sata_mv
[    2.788963] scsi host1: sata_mv
[    2.795174] ata1: SATA max UDMA/133 irq 33
[    2.799317] ata2: SATA max UDMA/133 irq 33
[    3.282273] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.293086] ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    3.299833] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.309167] ata1.00: configured for UDMA/133
[    3.313879] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5
[    3.794268] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.802858] ata2.00: ATA-10: WDC WD40EFZX-68AWUN0, 81.00A81, max UDMA/133
[    3.809689] ata2.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    3.818975] ata2.00: configured for UDMA/133
[    3.823653] scsi 1:0:0:0: Direct-Access     ATA      WDC WD40EFZX-68A 0A81 PQ: 0 ANSI: 5
[    3.847767] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    3.855585] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.865814] sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    3.873635] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    3.885993] sd 1:0:0:0: [sdb] Write Protect is off
[    3.891031] sd 0:0:0:0: [sda] Write Protect is off
[    3.895947] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.905117] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.940187]  sda: sda1 sda2 sda3 < sda5 sda6 >
[    3.951148] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.956701]  sdb: sdb1
[    3.963724] sd 1:0:0:0: [sdb] Attached SCSI disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ...   WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  "disk/by-uuid/108cec26-0b5f-4bb5-9346-cb929454bc00": Invalid path for Logical Volume.
done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 -a -C0 /dev/sda2
rootfs: clean, 50981/1222992 files, 1697569/4882432 blocks
done.
[   14.586186] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   15.254216] NET: Registered protocol family 10
[   15.269205] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.306015] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   15.324549] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[   15.369000] systemd[1]: Set hostname to <readynas>.
[   16.088384] random: crng init done
[   16.091802] random: 7 urandom warning(s) missed due to ratelimiting
[   16.402619] systemd[1]: Listening on LVM2 poll daemon socket.
[  OK  ] Listening on LVM2 poll daemon socket.
[   16.422753] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[   16.446691] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   16.466844] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[   16.486575] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   16.506594] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   16.526605] systemd[1]: Listening on LVM2 metadata daemon socket.
[  OK  ] Listening on LVM2 metadata daemon socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Created slice System Slice.
         Mounting RPC Pipe File System...
         Mounting Debug File System...
         Starting Load Kernel Modules...
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Mounting NFSD configuration filesystem...
[  OK  ] Listening on RPCbind Server Activation Socket.
         Mounting POSIX M[   16.827592] RPC: Registered named UNIX socket transport module.
essage Queue Fil[   16.834786] RPC: Registered udp transport module.
e System...
[   16.840898] RPC: Registered tcp transport module.
[   16.846754] RPC: Registered tcp NFSv4.1 backchannel transport module.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
         Starting Monitoring of LVM2 mirrors…ng dmeventd or progress polling...
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Reached target Slices.
         Starting Create list of required st…ce nodes for the current kernel...
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Mounted RPC Pipe File System.
[  OK     17.066446] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
m] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted NFSD configuration filesystem.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started Journal Service.
[   17.174428] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[  OK  ] Started LVM2 metadata daemon.
         Starting Create Static Device Nodes in /dev...
         Starting Apply Kernel Variables...
         Starting pNFS block layout mapping daemon...
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started pNFS block layout mapping daemon.
[   17.627474] systemd-journald[148]: Received request to flush runtime journal from PID 1
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Monitoring of LVM2 mirrors,…sing dmeventd or progress polling.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started udev Kernel Device Manager.
[   18.464102] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[  OK  ] Found device /dev/ttyS0.
[   18.681834] orion_wdt: Initial timeout 21 sec
[   18.747293] usbcore: registered new interface driver usbfs
[   18.788539] libphy: Fixed MDIO Bus: probed
[   18.809492] usbcore: registered new interface driver hub
[   18.855411] usbcore: registered new device driver usb
[   18.878004] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   18.900725] marvell-cesa f1030000.crypto: CESA device successfully registered
[   18.924840] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   18.945877] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   18.956406] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   18.967498] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   18.999344] ehci-orion: EHCI orion driver
[   19.004023] libphy: orion_mdio_bus: probed
[   19.022884] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[   19.085066] orion-ehci f1050000.ehci: EHCI Host Controller
[   19.098083] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[   19.109746] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 2
[   19.163427] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   19.212170] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   19.222542] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   19.229388] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   19.236722] usb usb1: Product: xHCI Host Controller
[   19.241639] usb usb1: Manufacturer: Linux 4.9.0-16-marvell xhci-hcd
[   19.247949] usb usb1: SerialNumber: 0000:01:00.0
[   19.330299] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   19.592738] hub 1-0:1.0: USB hub found
[   19.624044] hub 1-0:1.0: 2 ports detected
[   19.690743] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[   19.697609] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   19.704884] usb usb2: Product: EHCI Host Controller
[   19.709797] usb usb2: Manufacturer: Linux 4.9.0-16-marvell ehci_hcd
[   19.716168] usb usb2: SerialNumber: f1050000.ehci
[   19.723459] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   19.826345] usb usb1-port1: couldn't allocate usb_device
[   19.896930] hub 2-0:1.0: USB hub found
[  OK  ] Found device WDC_WD40EFZX-68AWUN0 primary.
[   19.919081] hub 2-0:1.0: 1 port detected
         Mounting /mnt/disk_b...
[   19.979818] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[   20.038407] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 1.
[   20.135529] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[   20.142489] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   20.149761] usb usb3: Product: xHCI Host Controller
[   20.154734] usb usb3: Manufacturer: Linux 4.9.0-16-marvell xhci-hcd
[   20.161038] usb usb3: SerialNumber: 0000:01:00.0
         Starting File System Check on /dev/…350-03ec-46dc-96c6-ccde5b52a0b9...
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 6.
[   20.379587] hub 3-0:1.0: USB hub found
[   20.400914] hub 3-0:1.0: 2 ports detected
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 5.
[  OK  ] Started File System Check Daemon to report status.
         Activating swap /dev/disk/by-uuid/5…9ba-016e-49a2-8a73-ece05dec9a7b...
         Starting File System Check on /dev/…a29-7ab1-48bd-bd4f-3232c64b687f...
[   20.642624] Adding 743420k swap on /dev/sda5.  Priority:-1 extents:1 across:743420k FS
[  OK  ] Activated swap /dev/disk/by-uuid/5b3799ba-016e-49a2-8a73-ece05dec9a7b.
[  OK  ] Started File System Check on /dev/d…ef350-03ec-46dc-96c6-ccde5b52a0b9.
         Mounting /boot...
[  OK  ] Reached target Swap.
[   21.062272] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[   21.134777] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[  OK  ] Mounted /boot.
[  OK  ] Started File System Check on /dev/d…01a29-7ab1-48bd-bd4f-3232c64b687f.
         Mounting /home...
[   21.706455] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Mounted /home.
[   22.191043] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Mounted /mnt/disk_b.
[  OK  ] Reached target Local File Systems.
[  OK  ] Started ifup for eth0.
         Starting Create Volatile Files and Directories...
         Starting Raise network interfaces...
         Starting Preprocess NFS configuration...
[  OK  ] Started Preprocess NFS configuration.
         Starting NFSv4 ID-name mapping service...
[  OK  ] Reached target NFS client services.
[  OK  ] Started Create Volatile Files and Directories.
         Starting RPC bind portmap service...
[   22.652529] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started RPC bind portmap service.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target RPC Port Mapper.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on mpd.socket.
         Starting Cockpit Web Service Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Started Raise network interfaces.
[  OK  ] Listening on Cockpit Web Service Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting Login Service...
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
         Starting Initialize hardware monitoring sensors...
[  OK  ] Started Regular background program processing daemon.
         Starting Restore /etc/resolv.conf i…fore the ppp link was shut down...
         Starting System Logging Service...
         Starting UPS power management daemon...
         Starting Modem Manager...
[  OK  ] Started Restore /etc/resolv.conf if…before the ppp link was shut down.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started Login Service.
         Starting fan speed regulator...
[  OK  ] Started System Logging Service.
[  OK  ] Started UPS power management daemon.
         Starting Authorization Manager...
[   25.097800] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   25.107762] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  OK  ] Started Authorization Manager.
[  OK  ] Started Modem Manager.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting Transmission BitTorrent Daemon...
         Starting NFS Mount Daemon...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started Music Player Daemon.
         Starting Network Manager Wait Online...
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started fan speed regulator.
[  OK  ] Started NFS Mount Daemon.
         Starting NFS server and services...
[  OK  ] Started Network Manager Script Dispatcher Service.
         Starting Hostname Service...
[  OK  ] Started OpenBSD Secure Shell server.
[   27.258427] NFSD: starting 90-second grace period (net c059a428)
[  OK  ] Started NFS server and services.
[  OK  ] Started Hostname Service.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting Permit User Sessions...
         Starting LSB: service and resource monitoring daemon...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: service and resource monitoring daemon.
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
         Starting Samba NMB Daemon...
         Starting Cockpit motd updater service...
         Starting keep memory of all UPnP devices that announced themselves...
         Starting LSB: exim Mail Transport Agent...
[  OK  ] Started keep memory of all UPnP devices that announced themselves.
[  OK  ] Started Cockpit motd updater service.
[  OK  ] Started Transmission BitTorrent Daemon.
[  OK  ] Started Samba NMB Daemon.
         Starting Samba SMB Daemon...

Debian GNU/Linux 9 readynas ttyS0


Last login: Sun Sep 26 06:45:28 BST 2021 on ttyS0
Linux readynas 4.9.0-16-marvell #1 Debian 4.9.272-2 (2021-07-19) armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No mail.
root@readynas:~# fw_printenv
arcNumber=1680
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=3
bootdev=ide
console=console=ttyS0,115200 earlyprintk
device=0:1
devices=ide usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_readynas_duo_v2.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)
partition=nand0,2
preboot=mii write 0x0 0x0 0x9140
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15
root@readynas:~#
Re: How to unbrick the Netgear Ready NAS Duo v2
September 26, 2021 12:57AM
I'm only worried about future kernel updates - should I ignore those packages while updating?
Re: How to unbrick the Netgear Ready NAS Duo v2
September 26, 2021 02:16AM
egor.tio,

Excellent!

> I'm only worried about future kernel updates -
> should I ignore those packages while updating?

Not sure what you meant, which packages?

Future upgrade is exactly as before.

And then you just need to recreate uImage and (optionally uInitrd) when you do kernel upgrade. If you only upgrade Debian when most often only uInitrd need to be recreated. To do this when needed only, then you need to watch /boot to see if there are new files after an upgrade.

However, if whenever you do apt-get update and apt-get upgrade, you would just recreate uImage and uInitrd then it will always be consistent.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
aceJacek
Re: How to unbrick the Netgear Ready NAS Duo v2
November 20, 2022 02:25PM
Is there a chance to get from you your patched version of u-boot? I can't recompile it myself, I'm getting too many mysterious problems with cross compiler...
Pontus
Re: How to unbrick the Netgear Ready NAS Duo v2
January 19, 2024 02:22AM
I have the exact same problem and now I can not get a hold of the toolchain from readynas site so I can not compile. Can you post your file u-boot-db88f6282abp_533ddr3db_nand.pached.bin here?
Re: How to unbrick the Netgear Ready NAS Duo v2
January 19, 2024 02:37AM
Hi Pontus!

Attaching my uboot_new.bin, hope it helps you!
Attachments:
open | download - uboot_new.bin (512 KB)
Pontus
Re: How to unbrick the Netgear Ready NAS Duo v2
January 19, 2024 02:49AM
Thanx egor.tio! Yes manage to power on now so I can continue my rescue of the NAS. Fingers crossed!
I loaded
openwrt-23.05.2-ath79-generic-aruba_ap-105-squashfs-sysupgrade
on my ReadyNAS Duo V2 by mistake now I get (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.15.137
Created: 2023-11-14 13:38:11 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2781742 Bytes = 2.7 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02000000 ...
Bad Magic Number

I'm a novice, can I fix this?
Re: How to unbrick the Netgear Ready NAS Duo v2
May 03, 2024 10:28PM
@corei5,

1. You could install Debian on USB following this instruction:

https://forum.doozan.com/read.php?2,102054,105374#msg-105374

2. Or load a correct OpenWrt image.

Just repeat what you did at u-boot console prompt, but with an image for this Netgear Ready NAS Duo v2.

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

when I try to install openWRT this is what I get
������������X��D�L�8��
0��`��<��� \
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ 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]
Hit any key to stop autoboot: 0
Marvell>>
Marvell>> usb reset
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Marvell>> fatload usb 0:1 0x1200000 openwrt-23.05.3-kirkwood-generic-netgear_readynas-duo-v2-initramfs-uImage
reading openwrt-23.05.3-kirkwood-generic-netgear_readynas-duo-v2-initramfs-uImage
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

5031774 bytes read
Marvell>> setenv bootargs 'console=ttyS0,115200n8 earlyprintk
Marvell>> bootm 0x1200000
## Booting image at 01200000 ...
Image Name: ARM OpenWrt Linux-5.15.150
Created: 2024-03-22 22:09:42 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5031710 Bytes = 4.8 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.15.150 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.3.0 r23809-234f1a2efa) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Fri Mar 22 22:09:42 2024
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt: Machine model: NETGEAR ReadyNAS Duo v2
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[ 0.000000] Unknown kernel command line parameters "earlyprintk", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 242328K/262144K available (6241K kernel code, 589K rwdata, 980K rodata, 8192K init, 218K bss, 19816K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000001] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.000032] Switching to timer-based delay loop, resolution 5ns
[ 0.000150] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[ 0.000175] CPU: Testing write buffer coherency: ok
[ 0.000255] pid_max: default: 32768 minimum: 301
[ 0.001119] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001147] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.003693] Setting up static identity map for 0x100000 - 0x10003c
[ 0.003887] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[ 0.007788] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007820] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.008009] pinctrl core: initialized pinctrl subsystem
[ 0.009526] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.009843] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.010892] thermal_sys: Registered thermal governor 'step_wise'
[ 0.010969] cpuidle: using governor ladder
[ 0.011218] Feroceon L2: Enabling L2
[ 0.011250] Feroceon L2: Cache support initialised.
[ 0.016666] No ATAGs?
[ 0.022318] SCSI subsystem initialized
[ 0.022674] usbcore: registered new interface driver usbfs
[ 0.022716] usbcore: registered new interface driver hub
[ 0.022751] usbcore: registered new device driver usb
[ 0.023691] clocksource: Switched to clocksource orion_clocksource
[ 0.024743] NET: Registered PF_INET protocol family
[ 0.024886] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.025518] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.025553] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.025569] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.025605] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.025638] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.025714] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.025740] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.025997] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.026032] PCI: CLS 0 bytes, default 32
[ 0.033864] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.038216] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.038237] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.039101] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.041316] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[ 0.042369] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[ 0.042409] mvebu-pcie mbus@f1000000:pcie@82000000: MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[ 0.042434] mvebu-pcie mbus@f1000000:pcie@82000000: MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[ 0.042457] mvebu-pcie mbus@f1000000:pcie@82000000: MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[ 0.042479] mvebu-pcie mbus@f1000000:pcie@82000000: MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[ 0.042501] mvebu-pcie mbus@f1000000:pcie@82000000: IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[ 0.042522] mvebu-pcie mbus@f1000000:pcie@82000000: MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[ 0.042539] mvebu-pcie mbus@f1000000:pcie@82000000: IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[ 0.042735] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[ 0.042750] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.042766] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[ 0.042780] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[ 0.042794] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[ 0.042806] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[ 0.042818] pci_bus 0000:00: root bus resource [io 0x1000-0xeffff]
[ 0.042915] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[ 0.043822] PCI: bus0: Fast back to back transfers disabled
[ 0.043838] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.043981] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[ 0.044019] pci 0000:01:00.0: reg 0x10: [mem 0x40000000-0x40001fff 64bit]
[ 0.044158] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.044195] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[ 0.045041] PCI: bus1: Fast back to back transfers disabled
[ 0.045054] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.045202] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[ 0.045221] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[ 0.045244] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 0.045258] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff]
[ 0.045302] pci 0000:00:01.0: enabling device (0140 -> 0142)
[ 0.054619] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.056129] printk: console [ttyS0] disabled
[ 0.056209] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[ 0.788410] printk: console [ttyS0] enabled
[ 0.793185] Loading iSCSI transport class v2.0-870.
[ 0.801957] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[ 0.808372] nand: Hynix H27U1G8F2BTR-BC
[ 0.812218] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.819858] Scanning device for bad blocks
[ 0.900856] 4 fixed-partitions partitions found on MTD device orion_nand
[ 0.907603] Creating 4 MTD partitions on "orion_nand":
[ 0.912764] 0x000000000000-0x000000180000 : "u-boot"
[ 0.919829] 0x000000180000-0x0000001a0000 : "u-boot-env"
[ 0.925673] 0x000000200000-0x000000800000 : "kernel"
[ 0.932141] 0x000000800000-0x000008000000 : "ubi"
[ 0.954868] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 0.964869] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02
[ 2.003697] rtc-mv f1010300.rtc: internal RTC not ticking
[ 2.009200] i2c_dev: i2c /dev entries driver
[ 2.014856] orion_wdt: Initial timeout 21 sec
[ 2.028173] marvell-cesa f1030000.crypto: CESA device successfully registered
[ 2.036238] NET: Registered PF_INET6 protocol family
[ 2.042972] Segment Routing with IPv6
[ 2.046730] In-situ OAM (IOAM) with IPv6
[ 2.050754] NET: Registered PF_PACKET protocol family
[ 2.055887] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.069111] 8021q: 802.1Q VLAN Support v1.8
[ 2.078013] UBI: auto-attach mtd3
[ 2.081360] ubi0: attaching mtd3
[ 2.226422] ubi0: scanning is finished
[ 2.240985] ubi0: attached mtd3 (name "ubi", size 120 MiB)
[ 2.246524] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 2.253435] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 2.260181] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[ 2.267010] ubi0: good PEBs: 960, bad PEBs: 0, corrupted PEBs: 0
[ 2.273045] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 2.280308] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 115520490
[ 2.289403] ubi0: available PEBs: 0, total reserved PEBs: 960, PEBs reserved for bad PEB handling: 20
[ 2.298906] ubi0: background thread "ubi_bgt0d" started, PID 251
[ 2.305715] block ubiblock0_0: created from ubi0:0(rootfs)
[ 2.311232] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 2.342368] Freeing unused kernel image (initmem) memory: 8192K
[ 2.348387] Run /init as init process
[ 2.591159] init: Console is alive
[ 2.594909] init: - watchdog -
[ 2.603897] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 2.612506] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.621477] fsl-ehci: Freescale EHCI Host controller driver
[ 2.629908] ehci-orion: EHCI orion driver
[ 2.634102] orion-ehci f1050000.ehci: EHCI Host Controller
[ 2.639635] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 2.647557] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[ 2.673707] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 2.680225] hub 1-0:1.0: USB hub found
[ 2.684586] hub 1-0:1.0: 1 port detected
[ 2.691305] ehci-platform: EHCI generic platform driver
[ 2.702231] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.719856] init: - preinit -
[ 2.865580] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.905679] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.926906] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.973739] usb 1-1: new high-speed USB device number 2 using orion-ehci
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 5.176107] procd: - early -
[ 5.179110] procd: - watchdog -
[ 5.743113] procd: - watchdog -
[ 5.746496] procd: - ubus -
[ 5.753456] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.799401] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.806086] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.814735] procd: - init -
Please press Enter to activate this console.
[ 5.956297] urngd: jent-rng init failed, err: 11
[ 6.090524] kmodloader: loading kernel modules from /etc/modules.d/*
[ 6.175799] PPP generic driver version 2.4.2
[ 6.185182] NET: Registered PF_PPPOX protocol family
[ 6.203134] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 7.257945] random: jshn: uninitialized urandom read (4 bytes read)
[ 7.297896] random: jshn: uninitialized urandom read (4 bytes read)
[ 7.320055] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.330367] random: jshn: uninitialized urandom read (4 bytes read)
[ 14.003707] random: crng init done
[ 14.007133] random: 98 urandom warning(s) missed due to ratelimiting
[ 19.495327] br-lan: port 1(eth0) entered blocking state
[ 19.500595] br-lan: port 1(eth0) entered disabled state
[ 19.506032] device eth0 entered promiscuous mode
[ 22.288723] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control enabled
[ 22.298575] br-lan: port 1(eth0) entered blocking state
[ 22.303848] br-lan: port 1(eth0) entered forwarding state
[ 22.310738] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.36.1 (2024-03-22 22:09:42 UTC) built-in shell (ash)

_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 23.05.3, r23809-234f1a2efa
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# Watchdog handover: fd=3
- watchdog -
Watchdog does not have CARDRESET support
Sat May 4 14:56:30 UTC 2024 upgrade: Sending TERM to remaining processes ...
Sat May 4 14:56:34 UTC 2024 upgrade: Sending KILL to remaining processes ...
[ 241.857724] stage2 (2567): drop_caches: 3
Sat May 4 14:56:40 UTC 2024 upgrade: Switching to ramdisk...
Sat May 4 14:56:41 UTC 2024 upgrade: Performing system upgrade...
verifying sysupgrade tar file integrity
Unlocking kernel ...

Writing from <stdin> to kernel ...
umount: can't unmount /dev/ubiblock0_0: Invalid [ 243.956224] block ubiblock0_0: released
argument
Volume ID 0, size 22 LEBs (2838528 bytes, 2.7 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 117927936
Volume ID 1, size 914 LEBs (117927936 bytes, 112.4 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs_data", alignment 1
Unlocking kernel ...

Writing from <stdin> to kernel ...
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource [ 246.325785] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
busy
[ 246.332293] br-lan: port 1(eth0) entered disabled state
[ 246.338291] reboot: Restarting system

__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ 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.15.150
Created: 2024-03-22 22:09:42 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2783950 Bytes = 2.7 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02000000 ...
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
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>>


I ran the openwrt-23.05.3-kirkwood-generic-netgear_readynas-duo-v2-initramfs-uImage (
Looks good)
then the openwrt-23.05.3-kirkwood-generic-netgear_readynas-duo-v2-squashfs-sysupgrade.bin
(no good)


Thanks
Re: How to unbrick the Netgear Ready NAS Duo v2
May 04, 2024 12:31PM
Quote

## Loading Ramdisk Image at 02000000 ...
Bad Magic Number�

OpenWrt doesn't use a ramdisk. It's flash space will/is being used by the overlay. So you'll have to change the u-boot environment.

https://github.com/openwrt/openwrt/commit/4e46ae1f69b5ff1cf09b2e2eee69a7c38a00202d
Mijzelf,

Thankyou Thankyou Thankyou Thankyou!!

It worked, I have spent hours and more hours and now it's upgraded and working

Bodhi,

Thankyou as well!!

should I update the U-Boot as well U-Boot 1.1.4 (Jun 29 2012 - 16:06:40) Marvell version: 3.4.27

corei5
Re: How to unbrick the Netgear Ready NAS Duo v2
May 05, 2024 02:22PM
corei5,

> should I update the U-Boot as well U-Boot 1.1.4
> (Jun 29 2012 - 16:06:40) Marvell version: 3.4.27

If it works well with the current u-boot, then no need to upgrade u-boot. When you want to use a capability that's not available then think about upgrade.

A few years ago, our forum member ingmar_k sent in a pull request for this board, but I have not spent time to test it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
July 26, 2024 09:41AM
Hello,
I am writing this here because it has to do with environment variables used by Yuri Minsk in this thread.
Basically my netgear ready nas duo v2 has perfectly working original old u-boot, and I would like to set it to first try to load your rootfs from usb and if that failed (i.e. usb storage not present) then proceed to load stock OS. I have set these environment variables:
setenv mainlineLinux yes
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10  mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial init=/usr/bin/systemd'
setenv reset_bootargs 'setenv bootargs console=ttyS0,115200 reason=normal mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
setenv bootcmd_stock 'run reset_bootargs; nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'
USB starts no problem, but STOCK OS hangs up at "booting the kernel" .
I have foun that the problem is the environment variable "mainlineLinux yes" if I do not set this variable then stock OS starts as normal. Is this variable necessary for USB rootfs booting and operation ? What does it do? Can I omit it and start USB just fine ?
Re: How to unbrick the Netgear Ready NAS Duo v2
July 26, 2024 02:28PM
AndreaCipcino,

> setenv mainlineLinux yes

> USB starts no problem, but STOCK OS hangs up at
> "booting the kernel" .

> I have foun that the problem is the environment
> variable "mainlineLinux yes" if I do not set this
> variable then stock OS starts as normal.

>Is this
> variable necessary for USB rootfs booting and
> operation ? What does it do? Can I omit it and
> start USB just fine ?

You should set it to no in stock OS booting. LIke this
setenv bootcmd_stock 'setenv mainlineLinux no; run reset_bootargs; nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'

This is the old stock u-boot, and most likely there is some setups for booting stock kernel. Those setups are not appropriate for mainline Linux kernel. IOW, it could mess up the data passing from u-boot to modern kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
July 29, 2024 11:19AM
Bodhi,
now both usb rootfs and stock boots fine, thank you!
Now for saving this configuration, it is better to use saveenv or use fw_setenv ?
Re: How to unbrick the Netgear Ready NAS Duo v2
July 29, 2024 02:18PM
AndreaCipcino,

> Now for saving this configuration, it is better to
> use saveenv or use fw_setenv ?

Use saveenv in serial console.

Currently, you cannot use fw_setenv yet. The mtdparts in bootargs and the /etc/fw_env.config must be correct so you can read/write u-boot envs in Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
August 02, 2024 03:55AM
Bodhi,
all done , now uboot is perfectly set!
Thanks for helping me .
Re: How to unbrick the Netgear Ready NAS Duo v2
August 02, 2024 06:50AM
Cool!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
October 18, 2024 02:57AM
Hello bodhi.
I need your help.
I apologize for my bad English. When I type and run this console code, it returns the following:
▒
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Nov 15 2011 - 17:59:57) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1007

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

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 (Nov 15 2011 - 17:59:57) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1007

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

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
Marvell>> setenv bootcmd_stock 'setenv mainlineLinux no; run reset_bootargs; nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000; bootm 0x1200000 0x2000000'
** Too many args (max. 16) **
Marvell>>



Edited 1 time(s). Last edit at 10/18/2024 03:00AM by mochkodan.
Re: How to unbrick the Netgear Ready NAS Duo v2
October 18, 2024 06:32AM
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10  mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial init=/usr/bin/systemd'
setenv reset_bootargs 'setenv bootargs console=ttyS0,115200 reason=normal mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
setenv bootcmd_stock 'run reset_bootargs; nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'
after that code boot stuck:
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Nov 15 2011 - 17:59:57) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1007

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

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]


Author:

Your Email:


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: