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 17, 2021 05:14AM
Hi Bodhi,

Have 2 questions on your advises:
1. is this command correct
setenv mtdparts 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-bootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
as after issuing it in printenv I see this:
...
mtdparts=mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-bootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)
...

2. Where to get u-boot-db88f6282abp_533ddr3db_nand.pached.bin file? It is not on the USB made from Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2

Thanks in advance!
Re: How to unbrick the Netgear Ready NAS Duo v2
September 17, 2021 05:16AM
Here is the output from kwboot + printenv
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 mtdparts 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-bootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
READYNAS_DUO_V2> 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=usb
console=console=ttyS0,115200 earlyprintk
device=0:1
devices=usb ide
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-bootenv),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

Environment size: 2972/131068 bytes
Re: How to unbrick the Netgear Ready NAS Duo v2
September 17, 2021 03:58PM
egor.tio,

> 1. is this command correct

Quote

mtdparts=mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(ubootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)

Yes, it is correct. The 1st mtdparts is the env name, the string has mtdparts= as the kernel expects that bootarg.


> 2. Where to get
> u-boot-db88f6282abp_533ddr3db_nand.pached.bin
> file? It is not on the USB made from
> Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2

u-boot-db88f6282abp_533ddr3db_nand.pached.bin is the rebuilt stock u-boot that Yury did. Look back in this thread to see if Yury attached the binary to some post. I should have asked that back when we worked on this.

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

> Here is the output from kwboot + printenv
>
> 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 mtdparts
> 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-bootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
> READYNAS_DUO_V2> 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=usb
> console=console=ttyS0,115200 earlyprintk
> device=0:1
> devices=usb ide
> 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-bootenv),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
> 
> Environment size: 2972/131068 bytes
> 

Ok. So after you have kwboot with U-Boot 2017.07-tld-2-rc1 as above, try booting into stock to see how far you go

This was what you've posted before:

nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000

I'd like to see the log of this attempt to make sure. If you can boot stock OS in serial console after kwboot with U-Boot 2017.07-tld-2-rc1 then you don't need Yury's u-boot binary.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 18, 2021 01:37AM
Yes, I can boot with that command
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> nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000

NAND read: device 0 offset 0x200000, size 0x600000
 6291456 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x1000000
 16777216 bytes read: OK
## Booting kernel from Legacy Image at 01200000 ...
   Image Name:   kernel 4.9.0-16-marvell
   Created:      2021-09-10  15:43:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2082004 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   ramdisk 4.9.0-16-marvell
   Created:      2021-09-10  15:43:13 UTC
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    5532038 Bytes = 5.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f5c9000, end 0fb0f986 ... 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] bootconsole [earlycon0] enabled
[    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,115200n8 earlyprintk
[    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: 248316K/262144K available (3824K kernel code, 398K rwdata, 1136K rodata, 296K init, 247K bss, 13828K 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.008346] Console: colour dummy device 80x30
[    0.012937] Calibrating delay loop... 1594.36 BogoMIPS (lpj=3188736)
[    0.042867] pid_max: default: 32768 minimum: 301
[    0.047732] Security Framework initialized
[    0.051958] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.058817] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.065575] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.073630] CPU: Testing write buffer coherency: ok
[    0.078715] ftrace: allocating 17063 entries in 34 pages
[    0.111547] Setting up static identity map for 0x8200 - 0x823c
[    0.117742] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.125491] devtmpfs: initialized
[    0.132991] VFP support v0.3: not present
[    0.137303] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.147210] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.153585] pinctrl core: initialized pinctrl subsystem
[    0.159831] NET: Registered protocol family 16
[    0.164701] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.172950] cpuidle: using governor ladder
[    0.177187] cpuidle: using governor menu
[    0.181486] Feroceon L2: Enabling L2
[    0.185215] Feroceon L2: Cache support initialised.
[    0.190440] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.204396] No ATAGs?[    0.210469] clocksource: Switched to clocksource orion_clocksource
[    0.227425] VFS: Disk quotas dquot_6.6.0
[    0.231541] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.244783] NET: Registered protocol family 2
[    0.249925] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.257051] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.263551] TCP: Hash tables configured (established 2048 bind 2048)
[    0.270121] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.276090] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.282618] NET: Registered protocol family 1
[    0.287318] Unpacking initramfs...
[    0.620492] Freeing initrd memory: 5404K
[    0.625071] audit: initializing netlink subsys (disabled)
[    0.630660] audit: type=2000 audit(0.572:1): initialized
[    0.636411] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.643067] zbud: loaded
[    0.647032] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.654675] io scheduler noop registered
[    0.658771] io scheduler cfq registered (default)
[    0.664500] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.673298] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    0.681975] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.688368] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.695369] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.701195] PCI: bus0: Fast back to back transfers disabled
[    0.706894] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.726506] PCI: bus1: Fast back to back transfers disabled
[    0.732312] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.739241] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.746692] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.751782] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.758753] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    0.765013] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.771166] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.803404] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.810988] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.843388] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.851138] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.858500] console [ttyS0] disabled
[    0.862218] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.871334] console [ttyS0] enabled
[    0.871334] console [ttyS0] enabled
[    0.878435] bootconsole [earlycon0] disabled
[    0.878435] bootconsole [earlycon0] disabled
[    0.888096] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    0.894498] nand: Hynix H27U1G8F2BTR-BC
[    0.898349] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.905962] Scanning device for bad blocks
[    0.986828] 5 ofpart partitions found on MTD device orion_nand
[    0.992691] Creating 5 MTD partitions on "orion_nand":
[    0.997865] 0x000000000000-0x000000180000 : "u-boot"
[    1.003784] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    1.009990] 0x000000200000-0x000000800000 : "uImage"
[    1.015882] 0x000000800000-0x000001800000 : "minirootfs"
[    1.022142] 0x000001800000-0x000008000000 : "jffs2"
[    1.028649] mousedev: PS/2 mouse device common for all mice
[    2.042538] rtc-mv f1010300.rtc: internal RTC not ticking
[    2.048111] i2c /dev entries driver
[    2.055684] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    2.061314] random: fast init done
[    2.071310] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    2.078887] ledtrig-cpu: registered to indicate activity on CPUs
[    2.085222] NET: Registered protocol family 17
[    2.090137] registered taskstats version 1
[    2.094315] zswap: loaded using pool lzo/zbud
[    2.101583] rtc-rs5c372 0-0032: setting system clock to 2021-09-18 06:33:45 UTC (1631946825)
[    2.111244] Freeing unused kernel memory: 296K
Re: How to unbrick the Netgear Ready NAS Duo v2
September 18, 2021 01:40AM
Btw, since I've installed Debian on NAS I was "apt update, upgrade" from time to time. And new Marvell Kernels were installed and written to NAND. Latest now is 4.9.0-16, as you can see from boot log.
Is it a bad practice and a possible cause of my issue?
Re: How to unbrick the Netgear Ready NAS Duo v2
September 18, 2021 02:54PM
egor.tio,

Excellent!

I see that you have installed the kernel 4.9.0-16-marvell on NAND, it is not stock.

Now since you can boot both 4.9.0-16-marvell on NAND, and Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on USB. You should install the new u-boot on NAND.

> Btw, since I've installed Debian on NAS I was "apt
> update, upgrade" from time to time. And new
> Marvell Kernels were installed and written to
> NAND. Latest now is 4.9.0-16, as you can see from
> boot log.
> Is it a bad practice and a possible cause of my
> issue?

The boot log stopped at about 2 minutes, i.e. is not a completed bootlog (I usually need to see the bootlog until the login prompt so I can tell what's on a system).

Yes, it looks like is possible that you have been writing to NAND too much. The rootfs should be on the HDD. Is it on the HDD or on NAND? And if you did apt-upgrade too often, you need to reflash the ramdisk at NAND addr 0x2000000 regularly, too. That's bad.

The bottom line is to avoid wearing out NAND and having NAND-related problem, the kernel files uImage and uInitrd should be on the rootfs (USB, or HDD). Some people wants to have the kernel on NAND, so the compromise is to have only the uImage on NAND, but not uInitrd.

For a Debian-base NAS like this box, the best configuration is to have the rootfs on HDD. And then boot from the kernel on that rootfs. There is really not much benefit to keep kernel files on NAND.

(For boxes that run as router, you would run OpenWrt on NAND).

===============

So congrats! the new u-boot is all you need. But we need to make the envs permanently saved to NAND, and adjust a bit to make it boot automatically. I can prepare a released u-boot image so you can flash to mtd0.

Before I do that, you should boot with kwboot like you did above. Interrupt u-boot at countdown,

setenv bootcmd_debian 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset'
setenv bootcmd_nand 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
setenv bootcmd 'run bootcmd_nand; run bootcmd_debian'
printenv
and then
boot


And post the serial boot log (from kwboot command until the login prompt) here. It is also for future users looking to unbrick this box, or to run Debian.

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



Edited 2 time(s). Last edit at 09/18/2021 02:56PM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 19, 2021 12:37AM
I was able to boot, here is complete boot log:
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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 bootcmd_debian 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset'
READYNAS_DUO_V2> setenv bootcmd_nand 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
READYNAS_DUO_V2> setenv bootcmd 'run bootcmd_nand; run bootcmd_debian'
READYNAS_DUO_V2> printenv
arcNumber=1680
baudrate=115200
bootcmd=run bootcmd_nand; run bootcmd_debian
bootcmd_debian=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_nand=nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=3
bootdev=usb
console=console=ttyS0,115200 earlyprintk
device=0:1
devices=usb ide
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:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
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

Environment size: 3181/131068 bytes
READYNAS_DUO_V2> boot

NAND read: device 0 offset 0x200000, size 0x600000
 6291456 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x1000000
 16777216 bytes read: OK
## Booting kernel from Legacy Image at 01200000 ...
   Image Name:   kernel 4.9.0-16-marvell
   Created:      2021-09-10  15:43:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2082004 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   ramdisk 4.9.0-16-marvell
   Created:      2021-09-10  15:43:13 UTC
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    5532038 Bytes = 5.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f5c9000, end 0fb0f986 ... 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] bootconsole [earlycon0] enabled
[    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,115200n8 earlyprintk
[    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: 248316K/262144K available (3824K kernel code, 398K rwdata, 1136K rodata, 296K init, 247K bss, 13828K 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.008347] Console: colour dummy device 80x30
[    0.012946] Calibrating delay loop... 1594.36 BogoMIPS (lpj=3188736)
[    0.042867] pid_max: default: 32768 minimum: 301
[    0.047732] Security Framework initialized
[    0.051958] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.058817] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.065575] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.073630] CPU: Testing write buffer coherency: ok
[    0.078715] ftrace: allocating 17063 entries in 34 pages
[    0.111542] Setting up static identity map for 0x8200 - 0x823c
[    0.117732] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.125482] devtmpfs: initialized
[    0.133003] VFP support v0.3: not present
[    0.137309] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.147220] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.153593] pinctrl core: initialized pinctrl subsystem
[    0.159847] NET: Registered protocol family 16
[    0.164720] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.172959] cpuidle: using governor ladder
[    0.177196] cpuidle: using governor menu
[    0.181495] Feroceon L2: Enabling L2
[    0.185223] Feroceon L2: Cache support initialised.
[    0.190449] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.204405] No ATAGs?[    0.210483] clocksource: Switched to clocksource orion_clocksource
[    0.227439] VFS: Disk quotas dquot_6.6.0
[    0.231550] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.244794] NET: Registered protocol family 2
[    0.249934] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.257059] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.263560] TCP: Hash tables configured (established 2048 bind 2048)
[    0.270131] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.276099] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.282627] NET: Registered protocol family 1
[    0.287328] Unpacking initramfs...
[    0.620451] Freeing initrd memory: 5404K
[    0.625029] audit: initializing netlink subsys (disabled)
[    0.630616] audit: type=2000 audit(0.572:1): initialized
[    0.636366] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.643027] zbud: loaded
[    0.646990] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.654630] io scheduler noop registered
[    0.658730] io scheduler cfq registered (default)
[    0.664453] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.673261] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    0.681940] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.688332] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.695334] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.701158] PCI: bus0: Fast back to back transfers disabled
[    0.706859] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.726521] PCI: bus1: Fast back to back transfers disabled
[    0.732331] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.739258] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.746709] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.751799] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.758771] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    0.765030] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.771183] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.803428] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.811014] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.843406] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.851152] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.858511] console [ttyS0] disabled
[    0.862226] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.871342] console [ttyS0] enabled
[    0.871342] console [ttyS0] enabled
[    0.878443] bootconsole [earlycon0] disabled
[    0.878443] bootconsole [earlycon0] disabled
[    0.888107] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    0.894508] nand: Hynix H27U1G8F2BTR-BC
[    0.898358] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.905972] Scanning device for bad blocks
[    0.986856] 5 ofpart partitions found on MTD device orion_nand
[    0.992718] Creating 5 MTD partitions on "orion_nand":
[    0.997891] 0x000000000000-0x000000180000 : "u-boot"
[    1.003806] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    1.010000] 0x000000200000-0x000000800000 : "uImage"
[    1.015892] 0x000000800000-0x000001800000 : "minirootfs"
[    1.022148] 0x000001800000-0x000008000000 : "jffs2"
[    1.028647] mousedev: PS/2 mouse device common for all mice
[    2.042554] rtc-mv f1010300.rtc: internal RTC not ticking
[    2.048131] i2c /dev entries driver
[    2.055702] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    2.061331] random: fast init done
[    2.071326] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    2.078899] ledtrig-cpu: registered to indicate activity on CPUs
[    2.085233] NET: Registered protocol family 17
[    2.090146] registered taskstats version 1
[    2.094322] zswap: loaded using pool lzo/zbud
[    2.101576] rtc-rs5c372 0-0032: setting system clock to 2021-09-19 05:31:44 UTC (1632029504)
[    2.111239] Freeing unused kernel memory: 296K
[    2.115716] This architecture does not have kernel memory protection.
Loading, please wait...
starting version 232
[    2.197365] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.212397] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.219587] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.463815] SCSI subsystem initialized
[    2.507940] sata_mv f1080000.sata: slots 32 ports 2
[    2.545252] scsi host0: sata_mv
[    2.562804] scsi host1: sata_mv
[    2.566182] ata1: SATA max UDMA/133 irq 33
[    2.570322] ata2: SATA max UDMA/133 irq 33
[    3.050515] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.059251] ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    3.065993] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.075323] ata1.00: configured for UDMA/133
[    3.080045] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5
[    3.562510] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.571104] ata2.00: ATA-10: WDC WD40EFZX-68AWUN0, 81.00A81, max UDMA/133
[    3.577934] ata2.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    3.587220] ata2.00: configured for UDMA/133
[    3.591885] scsi 1:0:0:0: Direct-Access     ATA      WDC WD40EFZX-68A 0A81 PQ: 0 ANSI: 5
[    3.624271] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    3.632089] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.637947] sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    3.645752] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    3.657204] sd 0:0:0:0: [sda] Write Protect is off
[    3.662211] sd 1:0:0:0: [sdb] Write Protect is off
[    3.667123] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.676299] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.709062]  sda: sda1 sda2 sda3 < sda5 sda6 >
[    3.717995] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.730705]  sdb: sdb1
[    3.737264] 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
/dev/sda2: clean, 50801/1222992 files, 1696665/4882432 blocks
done.
[    4.388388] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[    5.045589] NET: Registered protocol family 10
[    5.060328] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.097058] 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)
[    5.115580] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    5.148994] systemd[1]: Set hostname to <readynas>.
[    5.887873] random: crng init done
[    5.891299] random: 7 urandom warning(s) missed due to ratelimiting
[    6.204741] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    6.226887] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    6.246840] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
[    6.270954] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    6.295480] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    6.314862] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    6.339355] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
         Mounting NFSD configuration filesystem...
         Mounting Debug File System...
[  OK  ] Listening on LVM2 metadata daemon socket.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Reached target Slices.
[  OK  ] Listening on RPCbind Server Activation Socket.
         Mounting RPC Pipe File System...
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
         Mounting POSIX Message Queue File System...
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on [    6.560733] RPC: Registered named UNIX socket transport module.
LVM2 poll daemon[    6.567927] RPC: Registered udp transport module.
 socket.
[    6.574045] RPC: Registered tcp transport module.
[    6.579639] RPC: Registered tcp NFSv4.1 backchannel transport module.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on Journal Socket.
         Starting Journal Service...
         Starting Remount Root and Kernel File Systems...
[    6.659215] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
         Starting Create list of required st…ce nodes for the current kernel...
         Starting Monitoring of LVM2 mirrors…ng dmeventd or progress polling...
         Starting Load Kernel Modules...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volu[    6.786726] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
mes.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Mounted NFSD configuration filesystem.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Journal Service.
[  OK  ] Started LVM2 metadata daemon.
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
         Starting Flush Journal to Persistent Storage...
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
         Starting pNFS block layout mapping daemon...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started pNFS block layout mapping daemon.
[  OK  ] Started Load/Save Random Seed.
[    7.334365] systemd-journald[149]: Received request to flush runtime journal from PID 1
[  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.
[    8.177436] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[  OK  ] Found device /dev/ttyS0.
[    8.442668] orion_wdt: Initial timeout 21 sec
[    8.499606] usbcore: registered new interface driver usbfs
[    8.557417] libphy: Fixed MDIO Bus: probed
[    8.562431] usbcore: registered new interface driver hub
[    8.570411] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    8.614627] usbcore: registered new device driver usb
[    8.619905] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    8.654397] marvell-cesa f1030000.crypto: CESA device successfully registered
[    8.686767] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.702211] libphy: orion_mdio_bus: probed
[    8.715237] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.766655] ehci-orion: EHCI orion driver
[    8.777159] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.794768] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    8.847211] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.882877] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.906588] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 2
[    8.923686] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    8.976473] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.983347] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.990625] usb usb1: Product: xHCI Host Controller
[    8.995538] usb usb1: Manufacturer: Linux 4.9.0-16-marvell xhci-hcd
[    9.001840] usb usb1: SerialNumber: 0000:01:00.0
[    9.010717] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    9.066550] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    9.346654] hub 1-0:1.0: USB hub found
[    9.377032] hub 1-0:1.0: 2 ports detected
[    9.403967] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.410936] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.418222] usb usb2: Product: EHCI Host Controller
[    9.423139] usb usb2: Manufacturer: Linux 4.9.0-16-marvell ehci_hcd
[    9.429443] usb usb2: SerialNumber: f1050000.ehci
[    9.437079] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.539585] usb usb1-port1: couldn't allocate usb_device
[    9.636304] hub 2-0:1.0: USB hub found
[  OK  ] Found device WDC_WD20EFRX-68E[    9.677894] hub 2-0:1.0: 1 port detected
UZN0 6.
[    9.729870] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.810324] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[  OK  ] Found device [    9.899959] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
WDC_WD20EFRX-68E[    9.908236] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
UZN0 5.
[    9.916836] usb usb3: Product: xHCI Host Controller
[    9.922517] usb usb3: Manufacturer: Linux 4.9.0-16-marvell xhci-hcd
[    9.928819] usb usb3: SerialNumber: 0000:01:00.0
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 1.
[    9.987734] hub 3-0:1.0: USB hub found
         Starting File System Check on /dev/…350-03ec-46dc-96c6-ccde5b52a0b9...
[   10.000633] hub 3-0:1.0: 2 ports detected
         Activating swap /dev/disk/by-uuid/5…9ba-016e-49a2-8a73-ece05dec9a7b...
         Starting File System Check on /dev/…a29-7ab1-48bd-bd4f-3232c64b687f...
[   10.121572] 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 Daemon to report status.
[  OK  ] Reached target Swap.
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[  OK  ] Started File System Check on /dev/d…01a29-7ab1-48bd-bd4f-3232c64b687f.
         Mounting /home...
[  OK  ] Started File System Check on /dev/d…ef350-03ec-46dc-96c6-ccde5b52a0b9.
         Mounting /boot...
[   10.837157] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   10.911030] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[  OK  ] Mounted /boot.
[   11.015185] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Mounted /home.
[  OK  ] Reached target Local File Systems.
         Starting Preprocess NFS configuration...
[  OK  ] Started ifup for eth0.
         Starting Create Volatile Files and Directories...
         Starting Raise network interfaces...
[  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 Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
         Starting RPC bind portmap service...
[   11.492538] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started RPC bind portmap service.
[  OK  ] Reached target RPC Port Mapper.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Initialization.
         Starting Cockpit Web Service Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on mpd.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  ] Listening on Cockpit Web Service Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started D-Bus System Message Bus.
         Starting Restore /etc/resolv.conf i…fore the ppp link was shut down...
         Starting UPS power management daemon...
         Starting Initialize hardware monitoring sensors...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting Network Manager...
         Starting System Logging Service...
         Starting Modem Manager...
         Starting Login Service...
[  OK  ] Started Raise network interfaces.
[  OK  ] Started Restore /etc/resolv.conf if…before the ppp link was shut down.
[  OK  ] Started System Logging Service.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started UPS power management daemon.
[  OK  ] Started Login Service.
         Starting Authorization Manager...
[  OK  ] Started Authorization Manager.
[   13.935995] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   13.945942] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  OK  ] Started Modem Manager.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
[  OK  ] Started Music Player Daemon.
         Starting OpenBSD Secure Shell server...
         Starting Transmission BitTorrent Daemon...
         Starting NFS Mount Daemon...
         Starting Network Manager Wait Online...
         Starting Network Manager Script Dispatcher Service...
[  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.
[  OK  ] Started Hostname Service.
[   15.891127] NFSD: starting 90-second grace period (net c059a428)
[  OK  ] Started NFS server and services.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: service and resource monitoring daemon...
         Starting Permit User Sessions...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
         Starting Samba NMB Daemon...
         Starting Cockpit motd updater service...
         Starting LSB: exim Mail Transport Agent...
         Starting keep memory of all UPnP devices that announced themselves...
[  OK  ] Started LSB: service and resource monitoring daemon.
[  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

Re: How to unbrick the Netgear Ready NAS Duo v2
September 19, 2021 12:41AM
Bodhi, thank you for your help! When I've installed Debian on NAS, I was following one article and since all went smooth almost on the first try, I wasn't really worried if the suggested way is the optimal one. NAS was working, until this issue :-)

So, please, advise on how to properly place boot parts to not wear out NAND and be able to recover in worst case.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 19, 2021 03:56PM
egor.tio,

> So, please, advise on how to properly place boot
> parts to not wear out NAND and be able to recover
> in worst case.

OK, so you are running Debian 9 rootfs on HDD. And you probably want to keep running the system this way so you can upgrade kernel from mainline? You don't need the USB rootfs if that's the intention.

Keep the USB rootfs for rescue pupose, though. In case your HDD rootfs has problem, you can boot into the USB rootfs to fix it (e.g. fsck,...).


==========

We need to adjust the bootargs in your boot envs and try again. kwboot, and interrupt u-boot at countdown, and then


setenv mtdparts 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(ubootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'

setenv set_bootargs_nand  'setenv bootargs console=ttyS0,115200  $mtdparts earlyprintk=serial'

setenv bootcmd_debian 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset'
setenv bootcmd_nand 'run set_bootargs_nand; nand read.e 0x1200000 0x200000 0x600000; nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
setenv bootcmd 'run bootcmd_nand; run bootcmd_debian'
printenv

and then
boot

Log in to Debian and get these information.

uname -a
which mkimage
which flash_erase
which nandwrite
which nanddump
mount
cat /proc/mtd
cat /etc/fw_env.config
ls -latr /boot


Please post the entire serial bootlog (including everything, errors,..., basically verbatim).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 19, 2021 10:55PM
Here is the complete llog
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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 mtdparts 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(ubootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)'
READYNAS_DUO_V2>
READYNAS_DUO_V2> setenv set_bootargs_nand  'setenv bootargs console=ttyS0,115200  $mtdparts earlyprintk=serial'
READYNAS_DUO_V2>
READYNAS_DUO_V2> setenv bootcmd_debian 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset'
READYNAS_DUO_V2> setenv bootcmd_nand 'run set_bootargs_nand; nand read.e 0x1200000 0x200000 0x600000; nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
READYNAS_DUO_V2> setenv bootcmd 'run bootcmd_nand; run bootcmd_debian'
READYNAS_DUO_V2> printenv
arcNumber=1680
baudrate=115200
bootcmd=run bootcmd_nand; run bootcmd_debian
bootcmd_debian=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_nand=run set_bootargs_nand; nand read.e 0x1200000 0x200000 0x600000; nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=3
bootdev=usb
console=console=ttyS0,115200 earlyprintk
device=0:1
devices=usb ide
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(ubootenv),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
set_bootargs_nand=setenv bootargs console=ttyS0,115200  $mtdparts earlyprintk=serial
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

Environment size: 3258/131068 bytes
READYNAS_DUO_V2> boot

NAND read: device 0 offset 0x200000, size 0x600000
 6291456 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x1000000
 16777216 bytes read: OK
## Booting kernel from Legacy Image at 01200000 ...
   Image Name:   kernel 4.9.0-16-marvell
   Created:      2021-09-10  15:43:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2082004 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   ramdisk 4.9.0-16-marvell
   Created:      2021-09-10  15:43:13 UTC
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    5532038 Bytes = 5.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f5c9000, end 0fb0f986 ... 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] bootconsole [earlycon0] enabled
[    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 mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(ubootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial
[    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: 248316K/262144K available (3824K kernel code, 398K rwdata, 1136K rodata, 296K init, 247K bss, 13828K 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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008344] Console: colour dummy device 80x30
[    0.012939] Calibrating delay loop... 1594.36 BogoMIPS (lpj=3188736)
[    0.042867] pid_max: default: 32768 minimum: 301
[    0.047730] Security Framework initialized
[    0.051959] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.058818] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.065575] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.073626] CPU: Testing write buffer coherency: ok
[    0.078715] ftrace: allocating 17063 entries in 34 pages
[    0.112994] Setting up static identity map for 0x8200 - 0x823c
[    0.119189] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.126910] devtmpfs: initialized
[    0.134444] VFP support v0.3: not present
[    0.138733] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.148663] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.155044] pinctrl core: initialized pinctrl subsystem
[    0.161295] NET: Registered protocol family 16
[    0.166180] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.174377] cpuidle: using governor ladder
[    0.178618] cpuidle: using governor menu
[    0.182930] Feroceon L2: Enabling L2
[    0.186662] Feroceon L2: Cache support initialised.
[    0.191888] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.205840] No ATAGs?[    0.211917] clocksource: Switched to clocksource orion_clocksource
[    0.228892] VFS: Disk quotas dquot_6.6.0
[    0.233005] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.246227] NET: Registered protocol family 2
[    0.251366] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.258490] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.264991] TCP: Hash tables configured (established 2048 bind 2048)
[    0.271561] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.277529] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.284058] NET: Registered protocol family 1
[    0.288758] Unpacking initramfs...
[    0.621876] Freeing initrd memory: 5404K
[    0.626473] audit: initializing netlink subsys (disabled)
[    0.632058] audit: type=2000 audit(0.564:1): initialized
[    0.637815] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.644469] zbud: loaded
[    0.648430] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.656072] io scheduler noop registered
[    0.660174] io scheduler cfq registered (default)
[    0.665902] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.674706] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    0.683388] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.689780] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.696782] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.702608] PCI: bus0: Fast back to back transfers disabled
[    0.708307] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.727955] PCI: bus1: Fast back to back transfers disabled
[    0.733760] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.740688] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.748139] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.753229] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.760201] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    0.766459] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.772615] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.804850] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.812434] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.844834] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.852587] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.859949] console [ttyS0] disabled
[    0.863665] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.872782] console [ttyS0] enabled
[    0.872782] console [ttyS0] enabled
[    0.879883] bootconsole [earlycon0] disabled
[    0.879883] bootconsole [earlycon0] disabled
[    0.889550] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    0.895955] nand: Hynix H27U1G8F2BTR-BC
[    0.899806] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.907428] Scanning device for bad blocks
[    0.988288] 5 cmdlinepart partitions found on MTD device orion_nand
[    0.994592] Creating 5 MTD partitions on "orion_nand":
[    0.999758] 0x000000000000-0x000000180000 : "u-boot"
[    1.005662] 0x000000180000-0x0000001a0000 : "ubootenv"
[    1.011683] 0x000000200000-0x000000800000 : "uImage"
[    1.017568] 0x000000800000-0x000001800000 : "minirootfs"
[    1.023830] 0x000001800000-0x000008000000 : "jffs2"
[    1.030332] mousedev: PS/2 mouse device common for all mice
[    2.051987] rtc-mv f1010300.rtc: internal RTC not ticking
[    2.057564] i2c /dev entries driver
[    2.065138] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    2.070963] random: fast init done
[    2.080769] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    2.088351] ledtrig-cpu: registered to indicate activity on CPUs
[    2.094684] NET: Registered protocol family 17
[    2.099610] registered taskstats version 1
[    2.103784] zswap: loaded using pool lzo/zbud
[    2.111063] rtc-rs5c372 0-0032: setting system clock to 2021-09-20 03:50:51 UTC (1632109851)
[    2.120731] Freeing unused kernel memory: 296K
[    2.125203] This architecture does not have kernel memory protection.
Loading, please wait...
starting version 232
[    2.207101] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.222084] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.229297] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.457350] SCSI subsystem initialized
[    2.505533] sata_mv f1080000.sata: slots 32 ports 2
[    2.542867] scsi host0: sata_mv
[    2.560410] scsi host1: sata_mv
[    2.563776] ata1: SATA max UDMA/133 irq 33
[    2.567926] ata2: SATA max UDMA/133 irq 33
[    3.047950] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.056681] ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    3.063430] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.072770] ata1.00: configured for UDMA/133
[    3.077496] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5
[    3.559945] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.568539] ata2.00: ATA-10: WDC WD40EFZX-68AWUN0, 81.00A81, max UDMA/133
[    3.575371] ata2.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    3.584658] ata2.00: configured for UDMA/133
[    3.589333] scsi 1:0:0:0: Direct-Access     ATA      WDC WD40EFZX-68A 0A81 PQ: 0 ANSI: 5
[    3.610756] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    3.618577] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.625604] sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    3.633421] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    3.649036] sd 1:0:0:0: [sdb] Write Protect is off
[    3.654073] sd 0:0:0:0: [sda] Write Protect is off
[    3.658986] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.668157] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.705624]  sda: sda1 sda2 sda3 < sda5 sda6 >
[    3.714526] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.724412]  sdb: sdb1
[    3.730976] 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
/dev/sda2: clean, 50807/1222992 files, 1696750/4882432 blocks
done.
[    4.385018] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[    5.042528] NET: Registered protocol family 10
[    5.056899] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.093686] 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)
[    5.112225] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    5.145566] systemd[1]: Set hostname to <readynas>.
[    6.146047] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    6.168341] systemd[1]: Listening on LVM2 poll daemon socket.
[  OK  ] Listening on LVM2 poll daemon socket.
[    6.188211] systemd[1]: Listening on LVM2 metadata daemon socket.
[  OK  ] Listening on LVM2 metadata daemon socket.
[    6.208256] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    6.232231] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    6.256343] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    6.280248] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Created slice System Slice.
         Mounting POSIX Message Queue File System...
[    6.432897] random: crng init done
[    6.436316] random: 7 urandom warning(s) missed due to ratelimiting
[  OK  ] Created slice system-systemd\x2dfsck.slice.
         Mounting Debug File System...
[  OK  ] Created slice system-getty.slice.
[  OK  ] Reached target Slices.
         Mounting NFSD configuration filesystem...
         Mounting RPC Pipe File System...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
         Starting Create list of required st…ce nodes for the current kernel...
[    6.628086] RPC: Registered named UNIX socket transport module.
[    6.634053] RPC: Registered udp transport module.
[    6.638867] RPC: Registered tcp transport module.
[    6.643603] RPC: Registered tcp NFSv4.1 backchannel transport module.
         Starting Load Kernel Modules...
         Starting Monitoring of LVM2 mirrors…ng dmeventd or progress polling...
         Starting Remount Root and Kernel File Systems...
         Starting Journal Service...
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Mounted Debug File System.
[  OK      6.824822] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
m] Mounted POSIX Message Queue File System.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[    6.860179] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[  OK  ] Mounted NFSD configuration filesystem.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started LVM2 metadata daemon.
         Starting Load/Save Random Seed...
         Starting udev Coldplug all Devices...
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
         Starting pNFS block layout mapping daemon...
[  OK  ] Started Journal Service.
[  OK  ] Started Load/Save Random Seed.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started pNFS block layout mapping daemon.
[  OK  ] Started Apply Kernel Variables.
[    7.321221] systemd-journald[149]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Monitoring of LVM2 mirrors,…sing dmeventd or progress polling.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Started udev Kernel Device Manager.
[    8.174029] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[  OK  ] Found device /dev/ttyS0.
[    8.436208] orion_wdt: Initial timeout 21 sec
[    8.449673] usbcore: registered new interface driver usbfs
[    8.484047] usbcore: registered new interface driver hub
[    8.501588] usbcore: registered new device driver usb
[    8.520689] libphy: Fixed MDIO Bus: probed
[    8.560713] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.617575] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.634290] ehci-orion: EHCI orion driver
[    8.638491] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    8.648209] marvell-cesa f1030000.crypto: CESA device successfully registered
[    8.683998] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    8.696144] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    8.705278] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.735405] libphy: orion_mdio_bus: probed
[    8.755534] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.819095] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.857586] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.864443] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.871710] usb usb1: Product: xHCI Host Controller
[    8.876623] usb usb1: Manufacturer: Linux 4.9.0-16-marvell xhci-hcd
[    8.882925] usb usb1: SerialNumber: 0000:01:00.0
[    8.901102] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    9.176518] hub 1-0:1.0: USB hub found
[    9.228319] hub 1-0:1.0: 2 ports detected
[    9.286421] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 2
[    9.294190] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.349743] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    9.371038] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.416380] usb usb1-port1: couldn't allocate usb_device
[    9.455983] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    9.472080] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.544076] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.550983] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.558253] usb usb3: Product: xHCI Host Controller
[    9.563165] usb usb3: Manufacturer: Linux 4.9.0-16-marvell xhci-hcd
[    9.569469] usb usb3: SerialNumber: 0000:01:00.0
[    9.764560] hub 3-0:1.0: USB hub found
[    9.795727] hub 3-0:1.0: 2 ports detected
[    9.831592] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.838456] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.845724] usb usb2: Product: EHCI Host Controller
[    9.850638] usb usb2: Manufacturer: Linux 4.9.0-16-marvell ehci_hcd
[    9.857012] usb usb2: SerialNumber: f1050000.ehci
[  OK  ] Found device [    9.887735] hub 2-0:1.0: USB hub found
WDC_WD20EFRX-68E[    9.892695] hub 2-0:1.0: 1 port detected
UZN0 1.
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 5.
         Activating swap /dev/disk/by-uuid/5…9ba-016e-49a2-8a73-ece05dec9a7b...
         Starting File System Check on /dev/…350-03ec-46dc-96c6-ccde5b52a0b9...
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 6.
         Starting File System Check on /dev/…a29-7ab1-48bd-bd4f-3232c64b687f...
[   10.103482] 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 Daemon to report status.
[  OK  ] Reached target Swap.
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[  OK  ] Started File System Check on /dev/d…ef350-03ec-46dc-96c6-ccde5b52a0b9.
         Mounting /boot...
[   10.580528] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   10.644392] 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...
[   11.087846] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Mounted /home.
[  OK  ] Reached target Local File Systems.
         Starting Preprocess NFS configuration...
         Starting Create Volatile Files and Directories...
         Starting Raise network interfaces...
[  OK  ] Started ifup for eth0.
[  OK  ] Started Preprocess NFS configuration.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting RPC bind portmap service...
         Starting Update UTMP about System Boot/Shutdown...
         Starting NFSv4 ID-name mapping service...
[  OK  ] Reached target NFS client services.
[   11.669855] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target System Initialization.
         Starting Cockpit Web Service Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Listening on mpd.socket.
[  OK  ] Started RPC bind portmap service.
[  OK  ] Reached target RPC Port Mapper.
[  OK  ] Listening on Cockpit Web Service Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting UPS power management daemon...
[  OK  ] Started D-Bus System Message Bus.
         Starting System Logging Service...
         Starting Initialize hardware monitoring sensors...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting Network Manager...
         Starting Modem Manager...
         Starting Restore /etc/resolv.conf i…fore the ppp link was shut down...
         Starting Login Service...
[  OK  ] Started System Logging Service.
[  OK  ] Started Restore /etc/resolv.conf if…before the ppp link was shut down.
[  OK  ] Started Raise network interfaces.
[  OK  ] Started UPS power management daemon.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started Login Service.
         Starting Authorization Manager...
[  OK  ] Started Authorization Manager.
[  OK  ] Started Modem Manager.
[   14.179375] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   14.189300] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   14.199772] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
[  OK  ] Started Music Player Daemon.
         Starting NFS Mount Daemon...
         Starting Transmission BitTorrent Daemon...
         Starting OpenBSD Secure Shell server...
         Starting Network Manager Wait Online...
[  OK  ] Started NFS Mount Daemon.
         Starting NFS server and services...
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started OpenBSD Secure Shell server.
[   15.294974] NFSD: starting 90-second grace period (net c059a428)
[  OK  ] Started NFS server and services.
         Starting Hostname Service...
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: service and resource monitoring daemon...
         Starting Permit User Sessions...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Hostname Service.
[  OK  ] Started LSB: service and resource monitoring daemon.
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
         Starting LSB: exim Mail Transport Agent...
         Starting Cockpit motd updater service...
         Starting Samba NMB Daemon...
         Starting keep memory of all UPnP devices that announced themselves...
[  OK  ] Started Cockpit motd updater service.
[  OK  ] Started keep memory of all UPnP devices that announced themselves.
[  OK  ] Started Transmission BitTorrent Daemon.
[  OK  ] Started Samba NMB Daemon.
         Starting Samba SMB Daemon...

Debian GNU/Linux 9 readynas ttyS0


Broadcast message from root@blackbox (somewhere) (Mon Sep 20 06:51:11 2021):

Communications restored with UPS NAS


Debian GNU/Linux 9 readynas ttyS0

readynas login: root
Password:
Last login: Sat Sep 18 07:37:24 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:~# uname -a
bootLinux readynas 4.9.0-16-marvell #1 Debian 4.9.272-2 (2021-07-19) armv5tel GNU/Linux
root@readynas:~# which mkimage
/usr/bin/mkimage
root@readynas:~# which flash_erase
/usr/sbin/flash_erase
root@readynas:~# which nandwrite
/usr/sbin/nandwrite
root@readynas:~# which nanddump
/usr/sbin/nanddump
root@readynas:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=124156k,nr_inodes=31039,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=25404k,mode=755)
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda1 on /boot type ext2 (rw,relatime,stripe=4)
/dev/sda6 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=25400k,mode=700)
root@readynas:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00180000 00020000 "u-boot"
mtd1: 00020000 00020000 "ubootenv"
mtd2: 00600000 00020000 "uImage"
mtd3: 01000000 00020000 "minirootfs"
mtd4: 06800000 00020000 "jffs2"
root@readynas:~# cat /etc/fw_env.config
root@readynas:~# ls -latr /boot
total 18721
drwx------  2 root root   12288 Sep 10  2017 lost+found
drwxr-xr-x 21 root root    4096 Sep 10  2017 ..
-rw-r--r--  1 root root 2068080 Mar  8  2021 vmlinuz-4.9.0-15-marvell
-rw-r--r--  1 root root 1775448 Mar  8  2021 System.map-4.9.0-15-marvell
-rw-r--r--  1 root root  157883 Mar  8  2021 config-4.9.0-15-marvell
-rw-r--r--  1 root root 5527214 Apr  5 09:26 initrd.img-4.9.0-15-marvell
lrwxrwxrwx  1 root root      58 Apr  5 09:28 dtb-4.9.0-15-marvell -> dtbs/4.9.0-15-marvell/kirkwood-netgear_readynas_duo_v2.dtb
-rw-r--r--  1 root root 2068880 Jul 19 21:08 vmlinuz-4.9.0-16-marvell
-rw-r--r--  1 root root 1776288 Jul 19 21:08 System.map-4.9.0-16-marvell
-rw-r--r--  1 root root  157883 Jul 19 21:08 config-4.9.0-16-marvell
lrwxrwxrwx  1 root root      24 Sep 10 16:40 vmlinuz.old -> vmlinuz-4.9.0-15-marvell
lrwxrwxrwx  1 root root      24 Sep 10 16:40 vmlinuz -> vmlinuz-4.9.0-16-marvell
lrwxrwxrwx  1 root root      27 Sep 10 16:40 initrd.img.old -> initrd.img-4.9.0-15-marvell
lrwxrwxrwx  1 root root      27 Sep 10 16:40 initrd.img -> initrd.img-4.9.0-16-marvell
drwxr-xr-x 11 root root    1024 Sep 10 16:40 dtbs
-rw-r--r--  1 root root 5532038 Sep 10 16:42 initrd.img-4.9.0-16-marvell
lrwxrwxrwx  1 root root      58 Sep 10 16:43 dtb-4.9.0-16-marvell -> dtbs/4.9.0-16-marvell/kirkwood-netgear_readynas_duo_v2.dtb
lrwxrwxrwx  1 root root      58 Sep 10 16:43 dtb -> dtbs/4.9.0-16-marvell/kirkwood-netgear_readynas_duo_v2.dtb
drwxr-xr-x  4 root root    1024 Sep 10 16:57 .
Re: How to unbrick the Netgear Ready NAS Duo v2
September 20, 2021 01:10AM
egor.tio,

The boot log looks quite clean. The mtd partitions and flashing tools are all set to go for flashing u-boot

This is I would suggest for the new setup:

Base on what in your /boot folders on the rootfs (/dev/sda2), you could just boot directly using the kernel files on it. No need to flash the kernel files to NAND.

lrwxrwxrwx  1 root root      24 Sep 10 16:40 vmlinuz -> vmlinuz-4.9.0-16-marvell
lrwxrwxrwx  1 root root      27 Sep 10 16:40 initrd.img -> initrd.img-4.9.0-16-marvell
lrwxrwxrwx  1 root root      58 Sep 10 16:43 dtb -> dtbs/4.9.0-16-marvell/kirkwood-netgear_readynas_duo_v2.dtb

And then each time you upgrade kernel or Debian, there will be a new set of kernel files on /boot. At that time., you would recreate the uImage and uInitrd files (these are u-boot format of vmlinuz and initrd).

It will not interfere with what you have right now. Just an alternative mode of booting. And then when you find this configuration is exactly what you like, you can keep it (and never update the kernel files on NAND again).

Does this sound better, and you want to do this?

======

Before I come back with the envs adjustment and kernel images for u-boot, to boot from the HDD rootfs, please get additional info:

ls -l  /dev/disk/by-label/

(The rootfs on /dev/sda2 partition will be labeled to rootfs, and I want to make sure this label is not currently used, or if /dev/sda2 was already labeld that way).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 20, 2021 11:43AM
Yes, it sounds great!

List by labels command failed, adding output from blkid
root@readynas:~# blkid
/dev/sdb1: UUID="910dff86-7170-4285-9c4b-d8fc946fae39" TYPE="ext4" PARTLABEL="primary" PARTUUID="ab5fbc39-407d-46e8-a992-8b15694ac102"
/dev/sda1: UUID="eaeef350-03ec-46dc-96c6-ccde5b52a0b9" TYPE="ext2" PARTUUID="3778079f-01"
/dev/sda2: UUID="108cec26-0b5f-4bb5-9346-cb929454bc00" TYPE="ext4" PARTUUID="3778079f-02"
/dev/sda5: UUID="5b3799ba-016e-49a2-8a73-ece05dec9a7b" TYPE="swap" PARTUUID="3778079f-05"
/dev/sda6: UUID="64201a29-7ab1-48bd-bd4f-3232c64b687f" TYPE="ext4" PARTUUID="3778079f-06"

Seems I don't have "rootfs" used as label
Re: How to unbrick the Netgear Ready NAS Duo v2
September 20, 2021 06:40PM
To boot from HDD rootfs.

1. Prepare the rootfs.

Since the current rootfs is on /dev/sda2, label it.

e2label /dev/sda2 rootfs

Create 2 kernel files and the DTB folder to boot with.

mkdir -p /boot/boot
cd /boot/boot
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.9.0-16-marvell -d /boot/vmlinuz-4.9.0-16-marvell uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.9.0-16-marvell -d /boot/initrd.img-4.9.0-16-marvell  uInitrd
ln -s /boot/dtbs dts
sync

2. kwboot from another Linux box

kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-2-rc1.readynas_duo_v2.mtd0.kwb -p

Reboot this box. Innterrupt kwboot serial console at countdown, and enter 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)'

And then boot

boot

And please post the entire serial console log (shorten the kwboot progress bar to make smaller).

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



Edited 2 time(s). Last edit at 09/21/2021 02:26AM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 20, 2021 11:03PM
First attempt is a fail:
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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> 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> 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
** File not found /boot/uImage **
device ide 1:1
** File not found /boot/uImage **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
loading uImage ...
** File not found /boot/uImage **
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-netgear_readynas_duo_v2.dtb ...
** File not found /boot/dts/kirkwood-netgear_readynas_duo_v2.dtb **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
resetting ...

Looks like boot partition is not visible?
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 12:11AM
egor.tio,

> Looks like boot partition is not visible?

Ah, OK. it does make sense. The rootfs is on partition 2. The scandisk requires the kernel files to be on partition 1 (to keep the scan simple and follow old convention).

Basically, we need the kernel files and the dts folder on this partition
/dev/sda1 on /boot type ext2 (rw,relatime,stripe=4)

Let's see what are on this partition
cd /boot
ls -lart

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 12:23AM
root@readynas:/home/master# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=124156k,nr_inodes=31039,mode                                                                                =755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmod                                                                                e=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=25404k,mode=755)
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xa                                                                                ttr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,re                                                                                latime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blki                                                                                o)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatim                                                                                e,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,fr                                                                                eezer)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime                                                                                ,perf_event)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpu                                                                                set)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,de                                                                                vices)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,time                                                                                out=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/sda1 on /boot type ext2 (rw,relatime,stripe=4)
/dev/sda6 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=25400k,mode=70                                                                                0,uid=1000,gid=1000)
root@readynas:/home/master# cd /boot
root@readynas:/boot# ls -lart
total 26177
drwx------  2 root root   12288 Sep 10  2017 lost+found
-rw-r--r--  1 root root 2068080 Mar  8  2021 vmlinuz-4.9.0-15-marvell
-rw-r--r--  1 root root 1775448 Mar  8  2021 System.map-4.9.0-15-marvell
-rw-r--r--  1 root root  157883 Mar  8  2021 config-4.9.0-15-marvell
-rw-r--r--  1 root root 5527214 Apr  5 09:26 initrd.img-4.9.0-15-marvell
lrwxrwxrwx  1 root root      58 Apr  5 09:28 dtb-4.9.0-15-marvell -> dtbs/4.9.0-15-marvell/kirkwood-netgear_readynas_duo_v2.dtb
-rw-r--r--  1 root root 2068880 Jul 19 21:08 vmlinuz-4.9.0-16-marvell
-rw-r--r--  1 root root 1776288 Jul 19 21:08 System.map-4.9.0-16-marvell
-rw-r--r--  1 root root  157883 Jul 19 21:08 config-4.9.0-16-marvell
lrwxrwxrwx  1 root root      24 Sep 10 16:40 vmlinuz.old -> vmlinuz-4.9.0-15-marvell
lrwxrwxrwx  1 root root      24 Sep 10 16:40 vmlinuz -> vmlinuz-4.9.0-16-marvell
lrwxrwxrwx  1 root root      27 Sep 10 16:40 initrd.img.old -> initrd.img-4.9.0-15-marvell
lrwxrwxrwx  1 root root      27 Sep 10 16:40 initrd.img -> initrd.img-4.9.0-16-marvell
drwxr-xr-x 11 root root    1024 Sep 10 16:40 dtbs
-rw-r--r--  1 root root 5532038 Sep 10 16:42 initrd.img-4.9.0-16-marvell
lrwxrwxrwx  1 root root      58 Sep 10 16:43 dtb-4.9.0-16-marvell -> dtbs/4.9.0-16-marvell/kirkwood-netgear_readynas_duo_v2.dtb
lrwxrwxrwx  1 root root      58 Sep 10 16:43 dtb -> dtbs/4.9.0-16-marvell/kirkwood-netgear_readynas_duo_v2.dtb
drwxr-xr-x 21 root root    4096 Sep 21 04:49 ..
-rw-r--r--  1 root root 2068944 Sep 21 04:50 uImage
-rw-r--r--  1 root root 5532102 Sep 21 04:54 uInitrd
lrwxrwxrwx  1 root root       4 Sep 21 04:55 dts -> dtbs
drwxr-xr-x  4 root root    1024 Sep 21 04:55 .
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 02:07AM
The /boot is actually the partition name in your box.

So I've revised the instruction above.

https://forum.doozan.com/read.php?3,74954,125399#msg-125399

These bold lines:

mkdir -p /boot/boot
cd /boot/boot
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.9.0-16-marvell -d /boot/vmlinuz-4.9.0-16-marvell uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.9.0-16-marvell -d /boot/initrd.img-4.9.0-16-marvell  uInitrd
ln -s /boot/dtbs dts
sync

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



Edited 1 time(s). Last edit at 09/21/2021 02:26AM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 02:12AM
Ok, so in /boot/boot I should have link to dts folder and 2 files - uImage and uInitrd?
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 02:28AM
egor.tio Wrote:
-------------------------------------------------------
> Ok, so in /boot/boot I should have link to dts
> folder and 2 files - uImage and uInitrd?

I've edited the post above.

And right, you could do symlink, too.

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



Edited 1 time(s). Last edit at 09/21/2021 02:32AM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 03:27AM
We have progress! Now it stops on new point:
Broadcast message from root@blackbox (somewhere) (Tue Sep 21 11:23:15 2021):

Warning communications lost with UPS NAS
                                                                               /
Sending boot image...
  0 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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> 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),0                                                                                x6800000@0x1800000(jffs2)'
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 23 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
2068944 bytes read in 338 ms (5.8 MiB/s)
loading uInitrd ...
5532102 bytes read in 904 ms (5.8 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_readynas_duo_v2.dtb ...
** File not found /boot/dts/kirkwood-netgear_readynas_duo_v2.dtb **
## 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
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f5c8000, end 0fb0e986 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000690).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Kirkwood (Flattened Device Tree)
0000054e        Marvell Orion-2 Development Board
000005e4        Marvell Orion-NAS Reference Design
00000631        Buffalo Linkstation Pro/Live
000005e5        Buffalo/Revogear Kurobox Pro
00000630        Buffalo Terastation Pro II/Live
000007d5        Buffalo Linkstation LS-HGL
0000061d        QNAP TS-109/TS-209
00000641        QNAP TS-409
00000661        Linksys WRT350N v2
00000674        Technologic Systems TS-78xx SBC
0000069d        HP Media Vault mv2120
00000926        LaCie 2Big Network
00000709        Netgear WNR854T
00000714        Marvell Orion-VoIP GE Reference Design
0000071a        Marvell Orion-VoIP FXO Reference Design
00000766        Marvell Orion-1-90 AP GE Reference Design
00000b61        Buffalo Linkstation LiveV3 (LS-CHL)
ffffffff        Marvell Orion5x (Flattened Device Tree)

Please check your kernel config and/or bootloader.
Strange that dtb file is not found... It is present in /boot/dts and in /boot/boot/dts



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

> ** File not found
> /boot/dts/kirkwood-netgear_readynas_duo_v2.dtb **

> Strange that dtb file is not found... It is
> present in /boot/dts and in /boot/boot/dts

Looks like we missed a nested level!

ln -s /boot/dtbs/4.9.0-16-marvell /boot/boot/dts

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



Edited 1 time(s). Last edit at 09/21/2021 04:20AM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 04:22AM
Or perhaps that folder symlink is not working. Try symlink or copy the DTB file directly to /boot/boot/dts/.

But I recalled that folder symlink worked in this u-boot.

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



Edited 1 time(s). Last edit at 09/21/2021 04:23AM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 05:08AM
I've tried with file copied and with symlink to folder, like you suggested
root@readynas:/boot/boot# ls -lat
total 7458
drwxr-xr-x 2 root root    1024 Sep 21 11:00 .
lrwxrwxrwx 1 root root      27 Sep 21 11:00 dts -> /boot/dtbs/4.9.0-16-marvell
-rw-r--r-- 1 root root 5532102 Sep 21 08:30 uInitrd
-rw-r--r-- 1 root root 2068944 Sep 21 08:29 uImage
drwxr-xr-x 5 root root    1024 Sep 21 08:29 ..

Same error
Found bootable drive on ide 0
loading uImage ...
2068944 bytes read in 349 ms (5.7 MiB/s)
loading uInitrd ...
5532102 bytes read in 901 ms (5.9 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_readynas_duo_v2.dtb ...
** File not found /boot/dts/kirkwood-netgear_readynas_duo_v2.dtb **
Re: How to unbrick the Netgear Ready NAS Duo v2
September 21, 2021 03:33PM
egor.tio,

Let's clean up the /boot

cd /boot
rm dts

and just create or recreate the ./boot folder from here. Remove everything. And copy the files, don't use symlink. Basically the folder should look like this:

cd /boot  # this is the partition
mkdir -p boot    # create top level boot folder on this partition

These are required files to boot new u-boot:

./boot/uImage
./boot/uInitrd
./boot/dts/kirkwood-netgear_readynas_duo_v2.dtb

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



Edited 1 time(s). Last edit at 09/21/2021 03:36PM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 22, 2021 01:35AM
Hooray! I was able to boot debian from HDD!
Boot log is here:
Sending boot image...
  0 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


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> 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> 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 18 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
2068944 bytes read in 336 ms (5.9 MiB/s)
loading uInitrd ...
5532102 bytes read in 902 ms (5.8 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.049151] CPU: Testing write buffer coherency: ok
[    0.049230] ftrace: allocating 17063 entries in 34 pages
[    0.076638] Setting up static identity map for 0x8200 - 0x823c
[    0.076846] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.079381] devtmpfs: initialized
[    0.083486] VFP support v0.3: not present
[    0.083634] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.083655] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083810] pinctrl core: initialized pinctrl subsystem
[    0.084763] NET: Registered protocol family 16
[    0.085074] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.086242] cpuidle: using governor ladder
[    0.086257] cpuidle: using governor menu
[    0.086537] Feroceon L2: Enabling L2
[    0.086571] Feroceon L2: Cache support initialised.
[    0.086787] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.090233] No ATAGs?
[    0.094255] clocksource: Switched to clocksource orion_clocksource
[    0.104920] VFS: Disk quotas dquot_6.6.0
[    0.104990] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.111161] NET: Registered protocol family 2
[    0.111820] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.111854] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.111883] TCP: Hash tables configured (established 2048 bind 2048)
[    0.111928] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.111948] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.112083] NET: Registered protocol family 1
[    0.112312] Unpacking initramfs...
[    0.441440] Freeing initrd memory: 5404K
[    0.442011] audit: initializing netlink subsys (disabled)
[    0.442075] audit: type=2000 audit(0.424:1): initialized
[    0.442443] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.442503] zbud: loaded
[    0.443824] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.443935] io scheduler noop registered
[    0.443996] io scheduler cfq registered (default)
[    0.444911] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.446298] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    0.446315] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.446324] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.446334] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.446558] PCI: bus0: Fast back to back transfers disabled
[    0.446570] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.458297] PCI: bus1: Fast back to back transfers disabled
[    0.458418] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.458434] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.458453] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.458464] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.458524] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    0.458572] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.458951] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.487201] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.487348] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.515177] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.515489] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.516334] console [ttyS0] disabled
[    0.516385] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.072180] console [ttyS0] enabled
[    1.076690] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.083090] nand: Hynix H27U1G8F2BTR-BC
[    1.086950] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.094569] Scanning device for bad blocks
[    1.175456] 5 cmdlinepart partitions found on MTD device orion_nand
[    1.181761] Creating 5 MTD partitions on "orion_nand":
[    1.186935] 0x000000000000-0x000000180000 : "u-boot"
[    1.192843] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    1.199060] 0x000000200000-0x000000800000 : "uImage"
[    1.204959] 0x000000800000-0x000001800000 : "minirootfs"
[    1.211201] 0x000001800000-0x000008000000 : "jffs2"
[    1.217719] mousedev: PS/2 mouse device common for all mice
[    2.254325] rtc-mv f1010300.rtc: internal RTC not ticking
[    2.259896] i2c /dev entries driver
[    2.265889] random: fast init done
[    2.270800] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    2.283091] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    2.290669] ledtrig-cpu: registered to indicate activity on CPUs
[    2.297001] NET: Registered protocol family 17
[    2.301904] registered taskstats version 1
[    2.306072] zswap: loaded using pool lzo/zbud
[    2.313337] rtc-rs5c372 0-0032: setting system clock to 2021-09-22 06:32:02 UTC (1632292322)
[    2.323030] Freeing unused kernel memory: 296K
[    2.327502] This architecture does not have kernel memory protection.
Loading, please wait...
starting version 232
[    2.409453] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.424408] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.431614] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.681737] SCSI subsystem initialized
[    2.729113] sata_mv f1080000.sata: slots 32 ports 2
[    2.765494] scsi host0: sata_mv
[    2.783253] scsi host1: sata_mv
[    2.789496] ata1: SATA max UDMA/133 irq 33
[    2.793642] ata2: SATA max UDMA/133 irq 33
[    3.274290] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.283023] ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    3.289770] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.299105] ata1.00: configured for UDMA/133
[    3.303819] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5
[    3.786283] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.794878] ata2.00: ATA-10: WDC WD40EFZX-68AWUN0, 81.00A81, max UDMA/133
[    3.801709] ata2.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    3.810994] ata2.00: configured for UDMA/133
[    3.815661] scsi 1:0:0:0: Direct-Access     ATA      WDC WD40EFZX-68A 0A81 PQ: 0 ANSI: 5
[    3.839717] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    3.847533] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.857724] sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    3.865546] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    3.877961] sd 1:0:0:0: [sdb] Write Protect is off
[    3.883007] sd 0:0:0:0: [sda] Write Protect is off
[    3.887924] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.897093] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.939707]  sda: sda1 sda2 sda3 < sda5 sda6 >
[    3.950962]  sdb: sdb1
[    3.955600] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.960558] 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, 50814/1222992 files, 1697032/4882432 blocks
done.
[   14.730037] 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.398532] NET: Registered protocol family 10
[   15.413158] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.449974] 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.468498] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[   15.512961] systemd[1]: Set hostname to <readynas>.
[   16.126097] random: crng init done
[   16.129514] random: 7 urandom warning(s) missed due to ratelimiting
[   16.579704] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
[   16.602637] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[   16.626684] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   16.646634] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[   16.670676] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[   16.694617] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   16.715322] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
         Mounting Debug File System...
[  OK  ] Created slice system-getty.slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
         Mounting NFSD configuration filesystem...
         [   16.902458] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
Mounting POSIX Message Queue File System...
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[  OK  ] Reached target Slices.
[   16.972631] RPC: Registered named UNIX socket transport module.
[   16.978610] RPC: Registered udp transport module.
[   16.983347] RPC: Registered tcp transport module.
[   16.988077] RPC: Registered tcp NFSv4.1 backchannel transport module.
         Starting Load Kernel Modules...
         Starting Create list of required st…ce nodes for the current kernel...
[  OK  ] Listening on RPCbind Server Activation Socket.
         Mounting RPC Pipe File System...
[  OK  ] Listening on LVM2 metadata daemon socket.
[   17.073165] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
         Starting Monitoring of LVM2 mirrors…ng dmeventd or progress polling...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on LVM2 poll daemon socket.
[  OK  ] Listening on Journal Audit Socket.
         Starting Journal Service...
[  OK  ] Mounted NFSD configuration filesystem.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started LVM2 metadata daemon.
         Starting Create Static Device Nodes in /dev...
         Starting Apply Kernel Variables...
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
         Starting pNFS block layout mapping daemon...
[  OK  ] Started Journal Service.
[  OK  ] Started Apply Kernel Variables.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started pNFS block layout mapping daemon.
[  OK  ] Started Load/Save Random Seed.
[   17.737207] systemd-journald[158]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started Monitoring of LVM2 mirrors,…sing dmeventd or progress polling.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started udev Kernel Device Manager.
[   18.543732] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[  OK  ] Found device /dev/ttyS0.
[   18.785378] orion_wdt: Initial timeout 21 sec
[   18.821810] libphy: Fixed MDIO Bus: probed
[   18.870782] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   18.934165] usbcore: registered new interface driver usbfs
[   18.962108] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   18.990515] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   18.998074] usbcore: registered new interface driver hub
[   19.041604] usbcore: registered new device driver usb
[   19.071577] marvell-cesa f1030000.crypto: CESA device successfully registered
[   19.102101] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   19.122554] libphy: orion_mdio_bus: probed
[   19.162474] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   19.185126] ehci-orion: EHCI orion driver
[   19.229802] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[   19.253293] orion-ehci f1050000.ehci: EHCI Host Controller
[   19.287432] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   19.308721] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 2
[   19.331437] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[   19.406456] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   19.437316] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   19.444173] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   19.451459] usb usb1: Product: xHCI Host Controller
[   19.456366] usb usb1: Manufacturer: Linux 4.9.0-16-marvell xhci-hcd
[   19.462669] usb usb1: SerialNumber: 0000:01:00.0
[   19.522317] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   19.795020] hub 1-0:1.0: USB hub found
[   19.830358] hub 1-0:1.0: 2 ports detected
[   19.875876] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[   19.882748] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   19.890017] usb usb2: Product: EHCI Host Controller
[   19.894931] usb usb2: Manufacturer: Linux 4.9.0-16-marvell ehci_hcd
[   19.901233] usb usb2: SerialNumber: f1050000.ehci
[   19.908922] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   20.010373] usb usb1-port1: couldn't allocate usb_device
[   20.132201] hub 2-0:1.0: USB hub found
[   20.184348] hub 2-0:1.0: 1 port detected
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 5.
[   20.226638] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[   20.262461] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[  OK     20.272827] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
m] Found device [   20.281149] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
WDC_WD20EFRX-68E[   20.289818] usb usb3: Product: xHCI Host Controller
UZN0 6.
[   20.296113] usb usb3: Manufacturer: Linux 4.9.0-16-marvell xhci-hcd
[   20.303189] usb usb3: SerialNumber: 0000:01:00.0
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 1.
[   20.355260] hub 3-0:1.0: USB hub found
[   20.366430] hub 3-0:1.0: 2 ports detected
         Starting File System Check on /dev/…350-03ec-46dc-96c6-ccde5b52a0b9...
         Starting File System Check on /dev/…a29-7ab1-48bd-bd4f-3232c64b687f...
         Activating swap /dev/disk/by-uuid/5…9ba-016e-49a2-8a73-ece05dec9a7b...
[   20.503342] 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  ] Started File System Check Daemon to report status.
[  OK  ] Reached target Swap.
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[   21.069374] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   21.134748] 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.498194] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Mounted /home.
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
         Starting Preprocess NFS configuration...
[  OK  ] Started ifup for eth0.
         Starting Raise network interfaces...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
         Starting RPC bind portmap service...
[  OK  ] Started Preprocess NFS configuration.
         Starting NFSv4 ID-name mapping service...
[  OK  ] Reached target NFS client services.
[  OK  ] Started Updat[   22.064835] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
e UTMP about System Boot/Shutdown.
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on mpd.socket.
         Starting Cockpit Web Service Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  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 RPC bind portmap service.
[  OK  ] Listening on Cockpit Web Service Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Initialize hardware monitoring sensors...
         Starting Login Service...
         Starting UPS power management daemon...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Regular background program processing daemon.
         Starting Restore /etc/resolv.conf i…fore the ppp link was shut down...
         Starting Modem Manager...
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting System Logging Service...
[  OK  ] Reached target RPC Port Mapper.
         Starting Network Manager...
[  OK  ] Started Restore /etc/resolv.conf if…before the ppp link was shut down.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started System Logging Service.
[  OK  ] Started Login Service.
[  OK  ] Started UPS power management daemon.
[  OK  ] Started Raise network interfaces.
         Starting Authorization Manager...
[  OK  ] Started Authorization Manager.
[   24.488332] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   24.498342] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  OK  ] Started Modem Manager.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting NFS Mount Daemon...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started Music Player Daemon.
         Starting Transmission BitTorrent Daemon...
         Starting Network Manager Wait Online...
         Starting Network Manager Script Dispatcher Service...
[  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.
[  OK  ] Started Hostname Service.
[   25.818064] NFSD: starting 90-second grace period (net c059a428)
[  OK  ] Started NFS server and services.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: service and resource monitoring daemon...
         Starting Permit User Sessions...
[  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 Cockpit motd updater service...
         Starting LSB: exim Mail Transport Agent...
         Starting Daily apt download activities...
         Starting Samba NMB Daemon...
         Starting keep memory of all UPnP devices that announced themselves...
[  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

Re: How to unbrick the Netgear Ready NAS Duo v2
September 22, 2021 01:38PM
Cool!

Make sure that the system is running normally like it did before. And then we'll flash the new u-boot to NAND to make it permanent.

Please list the files in your setup, as a summary for others to follow.

mount
ls -lart /boot
ls -lart /boot/boot
e2label /dev/sda2
cat /proc/mtd

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 22, 2021 01:45PM
Here is the output:
root@readynas:/home/master# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=124156k,nr_inodes=31039,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=25404k,mode=755)
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda1 on /boot type ext2 (rw,relatime,stripe=4)
/dev/sda6 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=25400k,mode=700,uid=1000,gid=1000)
root@readynas:/home/master# ls -lart /boot
total 26179
drwx------  2 root root   12288 Sep 10  2017 lost+found
-rw-r--r--  1 root root 2068080 Mar  8  2021 vmlinuz-4.9.0-15-marvell
-rw-r--r--  1 root root 1775448 Mar  8  2021 System.map-4.9.0-15-marvell
-rw-r--r--  1 root root  157883 Mar  8  2021 config-4.9.0-15-marvell
-rw-r--r--  1 root root 5527214 Apr  5 09:26 initrd.img-4.9.0-15-marvell
lrwxrwxrwx  1 root root      58 Apr  5 09:28 dtb-4.9.0-15-marvell -> dtbs/4.9.0-15-marvell/kirkwood-netgear_readynas_duo_v2.dtb
-rw-r--r--  1 root root 2068880 Jul 19 21:08 vmlinuz-4.9.0-16-marvell
-rw-r--r--  1 root root 1776288 Jul 19 21:08 System.map-4.9.0-16-marvell
-rw-r--r--  1 root root  157883 Jul 19 21:08 config-4.9.0-16-marvell
lrwxrwxrwx  1 root root      24 Sep 10 16:40 vmlinuz.old -> vmlinuz-4.9.0-15-marvell
lrwxrwxrwx  1 root root      24 Sep 10 16:40 vmlinuz -> vmlinuz-4.9.0-16-marvell
lrwxrwxrwx  1 root root      27 Sep 10 16:40 initrd.img.old -> initrd.img-4.9.0-15-marvell
lrwxrwxrwx  1 root root      27 Sep 10 16:40 initrd.img -> initrd.img-4.9.0-16-marvell
-rw-r--r--  1 root root 5532038 Sep 10 16:42 initrd.img-4.9.0-16-marvell
lrwxrwxrwx  1 root root      58 Sep 10 16:43 dtb-4.9.0-16-marvell -> dtbs/4.9.0-16-marvell/kirkwood-netgear_readynas_duo_v2.dtb
lrwxrwxrwx  1 root root      58 Sep 10 16:43 dtb -> dtbs/4.9.0-16-marvell/kirkwood-netgear_readynas_duo_v2.dtb
drwxr-xr-x 21 root root    4096 Sep 21 04:49 ..
-rw-r--r--  1 root root 2068944 Sep 21 04:50 uImage
-rw-r--r--  1 root root 5532102 Sep 21 04:54 uInitrd
drwxr-xr-x 11 root root    1024 Sep 21 11:00 dtbs
drwxr-xr-x  3 root root    1024 Sep 22 07:23 boot
drwxr-xr-x  2 root root    1024 Sep 22 07:23 dts
drwxr-xr-x  6 root root    1024 Sep 22 07:28 .
root@readynas:/home/master# ls -lart /boot/boot
total 7459
-rw-r--r-- 1 root root 2068944 Sep 21 08:29 uImage
-rw-r--r-- 1 root root 5532102 Sep 21 08:30 uInitrd
drwxr-xr-x 3 root root    1024 Sep 22 07:23 .
drwxr-xr-x 2 root root    1024 Sep 22 07:23 dts
drwxr-xr-x 6 root root    1024 Sep 22 07:28 ..
root@readynas:/home/master# e2label /dev/sda2
rootfs
root@readynas:/home/master# 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"
root@readynas:/home/master#



Edited 1 time(s). Last edit at 09/22/2021 02:07PM by egor.tio.
Re: How to unbrick the Netgear Ready NAS Duo v2
September 22, 2021 01:47PM
System seems to be running as before, noticed only that system fan became much louder. Is it controlled by CPU or I can try to find software way?
Re: How to unbrick the Netgear Ready NAS Duo v2
September 22, 2021 02:16PM
Let me take a look at the DTS source to see which fan module is on this box.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: