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
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



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
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



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
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
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: