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
December 25, 2018 05:17AM
After removing ECHO arg in bootcmd I have loading from USB, but, again have error

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

U-Boot 1.1.4 (Dec 18 2018 - 17:21:21) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1008

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

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

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


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

Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv mainlineLinux yes
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv set_bootargs 'setenv bootargs 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) earlyprintk=serial'
Marvell>> setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
Marvell>> setenv bootcmd_stock 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
Marvell>> setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3834716 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-12-24  12:34:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834652 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    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 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) 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: 239368K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22776K reserved, 0K cma-reserved)
[    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]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000005] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007893] Switching to timer-based delay loop, resolution 5ns
[    0.014229] Console: colour dummy device 80x30
[    0.018789] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029385] pid_max: default: 32768 minimum: 301
[    0.034212] Security Framework initialized
[    0.038495] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045171] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.052969] CPU: Testing write buffer coherency: ok
[    0.058735] Setting up static identity map for 0x100000 - 0x100058
[    0.065160] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.072840] devtmpfs: initialized
[    0.079980] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.089919] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.096368] prandom: seed boundary self test passed
[    0.104137] prandom: 100 self tests passed
[    0.108329] pinctrl core: initialized pinctrl subsystem
[    0.114524] NET: Registered protocol family 16
[    0.119414] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.127562] cpuidle: using governor ladder
[    0.131829] cpuidle: using governor menu
[    0.136151] Feroceon L2: Enabling L2
[    0.139856] Feroceon L2: Cache support initialised.
[    0.145064] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.159702] No ATAGs?
[    0.166789] vgaarb: loaded
[    0.172179] SCSI subsystem initialized
[    0.176371] usbcore: registered new interface driver usbfs
[    0.182002] usbcore: registered new interface driver hub
[    0.187434] usbcore: registered new device driver usb
[    0.193419] clocksource: Switched to clocksource orion_clocksource
[    0.268536] VFS: Disk quotas dquot_6.6.0
[    0.272593] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.287718] NET: Registered protocol family 2
[    0.292726] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.299802] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.306245] TCP: Hash tables configured (established 2048 bind 2048)
[    0.312721] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.318638] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.325109] NET: Registered protocol family 1
[    0.329856] RPC: Registered named UNIX socket transport module.
[    0.335892] RPC: Registered udp transport module.
[    0.340653] RPC: Registered tcp transport module.
[    0.345439] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.352110] Unpacking initramfs...
[    0.846586] Freeing initrd memory: 7076K
[    0.850696] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.858089] audit: initializing netlink subsys (disabled)
[    0.863937] Initialise system trusted keyrings
[    0.868479] Key type blacklist registered
[    0.872616] audit: type=2000 audit(0.850:1): state=initialized audit_enabled=0 res=1
[    0.880521] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.880571] zbud: loaded
[    0.887863] NFS: Registering the id_resolver key type
[    0.887879] Key type id_resolver registered
[    0.887881] Key type id_legacy registered
[    0.887900] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.887904] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.888055] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.888198] fuse init (API version 7.26)
[    0.888457] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.888612] orangefs_init: module version upstream loaded
[    0.888616] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.563425] random: fast init done
[    5.309713] Key type asymmetric registered
[    5.314116] Asymmetric key parser 'x509' registered
[    5.319104] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    5.326664] io scheduler noop registered
[    5.330651] io scheduler deadline registered
[    5.335085] io scheduler cfq registered (default)
[    5.340820] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    5.349659] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    5.358293] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    5.364637] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    5.371566] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.377378] PCI: bus0: Fast back to back transfers disabled
[    5.383020] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.413480] PCI: bus1: Fast back to back transfers disabled
[    5.419254] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    5.426207] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    5.433593] pci 0000:00:01.0: PCI bridge to [bus 01]
[    5.438623] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    5.445539] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    5.452154] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.513989] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.521791] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.583990] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.591974] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.599475] console [ttyS0] disabled
[    5.603159] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.612249] console [ttyS0] enabled
[    5.612249] console [ttyS0] enabled
[    5.619374] bootconsole [earlycon0] disabled
[    5.619374] bootconsole [earlycon0] disabled
[    5.634577] loop: module loaded
[    5.638206] sata_mv f1080000.sata: slots 32 ports 2
[    5.645259] scsi host0: sata_mv
[    5.648760] scsi host1: sata_mv
[    5.652109] ata1: SATA max UDMA/133 irq 33
[    5.656272] ata2: SATA max UDMA/133 irq 33
[    5.661269] nand: Could not find valid ONFI parameter page; aborting
[    5.667744] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    5.674143] nand: Hynix NAND 128MiB 3,3V 8-bit
[    5.678608] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.686233] Scanning device for bad blocks
[    5.745286] Bad eraseblock 726 at 0x000005ac0000
[    5.772394] 5 cmdlinepart partitions found on MTD device orion_nand
[    5.778703] Creating 5 MTD partitions on "orion_nand":
[    5.783880] 0x000000000000-0x000000180000 : "u-boot"
[    5.789889] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    5.796269] 0x000000200000-0x000000800000 : "uImage"
[    5.802274] 0x000000800000-0x000001800000 : "minirootfs"
[    5.808559] 0x000001800000-0x000008000000 : "jffs2"
[    5.815700] libphy: Fixed MDIO Bus: probed
[    5.820420] libphy: orion_mdio_bus: probed
[    5.828474] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.934377] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02
[    5.943232] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.949844] ehci-pci: EHCI PCI platform driver
[    5.954374] ehci-orion: EHCI orion driver
[    5.958586] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.964161] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.972067] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    5.998312] ata1: SATA link down (SStatus 0 SControl F300)
[    6.003847] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.004072] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.004078] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.004083] usb usb1: Product: EHCI Host Controller
[    6.004087] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    6.004091] usb usb1: SerialNumber: f1050000.ehci
[    6.004635] hub 1-0:1.0: USB hub found
[    6.004671] hub 1-0:1.0: 1 port detected
[    6.005153] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.005181] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    6.005483] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    6.005671] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.005677] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.005681] usb usb2: Product: xHCI Host Controller
[    6.005686] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.005690] usb usb2: SerialNumber: 0000:01:00.0
[    6.006227] hub 2-0:1.0: USB hub found
[    6.006260] hub 2-0:1.0: 2 ports detected
[    6.006688] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.006702] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    6.014911] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.015018] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    6.015024] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.015028] usb usb3: Product: xHCI Host Controller
[    6.015033] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.015037] usb usb3: SerialNumber: 0000:01:00.0
[    6.015578] hub 3-0:1.0: USB hub found
[    6.015609] hub 3-0:1.0: 2 ports detected
[    6.016235] usbcore: registered new interface driver usb-storage
[    6.016513] mousedev: PS/2 mouse device common for all mice
[    6.363446] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.524857] ata2: SATA link down (SStatus 0 SControl F300)
[    6.621824] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[    6.628580] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.635767] usb 1-1: Product: Mass Storage
[    6.639884] usb 1-1: Manufacturer: Generic
[    6.644015] usb 1-1: SerialNumber: N20C1700001671925693
[    6.649852] usb-storage 1-1:1.0: USB Mass Storage device detected
[    6.656274] scsi host2: usb-storage 1-1:1.0
[    7.053444] rtc-mv f1010300.rtc: internal RTC not ticking
[    7.059000] i2c /dev entries driver
[    7.064530] hidraw: raw HID events driver (C) Jiri Kosina
[    7.070244] drop_monitor: Initializing network drop monitor service
[    7.076753] NET: Registered protocol family 17
[    7.081282] Key type dns_resolver registered
[    7.086187] registered taskstats version 1
[    7.090296] Loading compiled-in X.509 certificates
[    7.095177] zswap: loaded using pool lzo/zbud
[    7.107216] Key type big_key registered
[    7.118335] Key type encrypted registered
[    7.123564] hctosys: unable to open rtc device (rtc0)
[    7.131829] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    7.499356] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    7.512839] usbcore: registered new interface driver uas
[    7.555503] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    7.699166] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[    7.717744] sd 2:0:0:0: [sda] 15237120 512-byte logical blocks: (7.80 GB/7.27 GiB)
[    7.732248] sd 2:0:0:0: [sda] Write Protect is off
[    7.742876] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Begin: Loading essential drivers ... done.
[    7.829837]  sda: sda1
[    7.849616] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   17.839531] __nand_correct_data: uncorrectable ECC error
[   17.845037] __nand_correct_data: uncorrectable ECC error
[   17.850381] blk_update_request: I/O error, dev mtdblock0, sector 0
[   17.856847] __nand_correct_data: uncorrectable ECC error
[   17.862182] __nand_correct_data: uncorrectable ECC error
[   17.867534] blk_update_request: I/O error, dev mtdblock0, sector 0
[   17.873740] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   18.369910] __nand_correct_data: uncorrectable ECC error
[   18.375332] __nand_correct_data: uncorrectable ECC error
[   18.380671] blk_update_request: I/O error, dev mtdblock0, sector 0
[   18.387117] __nand_correct_data: uncorrectable ECC error
[   18.392455] __nand_correct_data: uncorrectable ECC error
[   18.397864] blk_update_request: I/O error, dev mtdblock0, sector 0
[   18.404072] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
[   19.803605] __nand_correct_data: uncorrectable ECC error
[   19.808949] __nand_correct_data: uncorrectable ECC error
[   19.814347] blk_update_request: I/O error, dev mtdblock0, sector 0
[   19.820742] __nand_correct_data: uncorrectable ECC error
[   19.826166] __nand_correct_data: uncorrectable ECC error
[   19.831503] blk_update_request: I/O error, dev mtdblock0, sector 0
[   19.837710] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   20.226563] __nand_correct_data: uncorrectable ECC error
[   20.231905] __nand_correct_data: uncorrectable ECC error
[   20.237307] blk_update_request: I/O error, dev mtdblock0, sector 0
[   20.243767] __nand_correct_data: uncorrectable ECC error
[   20.249099] __nand_correct_data: uncorrectable ECC error
[   20.254451] blk_update_request: I/O error, dev mtdblock0, sector 0
[   20.260656] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   21.768886] __nand_correct_data: uncorrectable ECC error
[   21.774300] __nand_correct_data: uncorrectable ECC error
[   21.779638] blk_update_request: I/O error, dev mtdblock0, sector 0
[   21.786134] __nand_correct_data: uncorrectable ECC error
[   21.791467] __nand_correct_data: uncorrectable ECC error
[   21.796839] blk_update_request: I/O error, dev mtdblock0, sector 0
[   21.803049] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   22.191878] __nand_correct_data: uncorrectable ECC error
[   22.197281] __nand_correct_data: uncorrectable ECC error
[   22.202803] __nand_correct_data: uncorrectable ECC error
[   22.208175] __nand_correct_data: uncorrectable ECC error
[   22.213571] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   23.722412] __nand_correct_data: uncorrectable ECC error
[   23.727825] __nand_correct_data: uncorrectable ECC error
[   23.733163] blk_update_request: 2 callbacks suppressed
[   23.738321] blk_update_request: I/O error, dev mtdblock0, sector 0
[   23.744816] __nand_correct_data: uncorrectable ECC error
[   23.750153] __nand_correct_data: uncorrectable ECC error
[   23.755527] blk_update_request: I/O error, dev mtdblock0, sector 0
[   23.761736] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   24.150765] __nand_correct_data: uncorrectable ECC error
[   24.156169] __nand_correct_data: uncorrectable ECC error
[   24.161507] blk_update_request: I/O error, dev mtdblock0, sector 0
[   24.167932] __nand_correct_data: uncorrectable ECC error
[   24.173265] __nand_correct_data: uncorrectable ECC error
[   24.178671] blk_update_request: I/O error, dev mtdblock0, sector 0
[   24.184883] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   25.693243] __nand_correct_data: uncorrectable ECC error
[   25.698660] __nand_correct_data: uncorrectable ECC error
[   25.704097] blk_update_request: I/O error, dev mtdblock0, sector 0
[   25.710497] __nand_correct_data: uncorrectable ECC error
[   25.715876] __nand_correct_data: uncorrectable ECC error
[   25.721216] blk_update_request: I/O error, dev mtdblock0, sector 0
[   25.727424] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   26.116401] __nand_correct_data: uncorrectable ECC error
[   26.121740] __nand_correct_data: uncorrectable ECC error
[   26.127132] blk_update_request: I/O error, dev mtdblock0, sector 0
[   26.133581] __nand_correct_data: uncorrectable ECC error
[   26.138919] __nand_correct_data: uncorrectable ECC error
[   26.144270] blk_update_request: I/O error, dev mtdblock0, sector 0
[   26.150475] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   27.659185] __nand_correct_data: uncorrectable ECC error
[   27.664596] __nand_correct_data: uncorrectable ECC error
[   27.669938] blk_update_request: I/O error, dev mtdblock0, sector 0
[   27.676436] __nand_correct_data: uncorrectable ECC error
[   27.681775] __nand_correct_data: uncorrectable ECC error
[   27.687146] blk_update_request: I/O error, dev mtdblock0, sector 0
[   27.693357] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   28.082129] __nand_correct_data: uncorrectable ECC error
[   28.087537] __nand_correct_data: uncorrectable ECC error
[   28.093058] __nand_correct_data: uncorrectable ECC error
[   28.098434] __nand_correct_data: uncorrectable ECC error
[   28.103836] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   29.612367] __nand_correct_data: uncorrectable ECC error
[   29.617784] __nand_correct_data: uncorrectable ECC error
[   29.623121] blk_update_request: 2 callbacks suppressed
[   29.628280] blk_update_request: I/O error, dev mtdblock0, sector 0
[   29.634775] __nand_correct_data: uncorrectable ECC error
[   29.640112] __nand_correct_data: uncorrectable ECC error
[   29.645484] blk_update_request: I/O error, dev mtdblock0, sector 0
[   29.651694] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   30.040275] __nand_correct_data: uncorrectable ECC error
[   30.045682] __nand_correct_data: uncorrectable ECC error
[   30.051021] blk_update_request: I/O error, dev mtdblock0, sector 0
[   30.057445] __nand_correct_data: uncorrectable ECC error
[   30.062779] __nand_correct_data: uncorrectable ECC error
[   30.068175] blk_update_request: I/O error, dev mtdblock0, sector 0
[   30.074379] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   31.582733] __nand_correct_data: uncorrectable ECC error
[   31.588145] __nand_correct_data: uncorrectable ECC error
[   31.593587] blk_update_request: I/O error, dev mtdblock0, sector 0
[   31.599981] __nand_correct_data: uncorrectable ECC error
[   31.605355] __nand_correct_data: uncorrectable ECC error
[   31.610686] blk_update_request: I/O error, dev mtdblock0, sector 0
[   31.616894] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   32.005667] __nand_correct_data: uncorrectable ECC error
[   32.011010] __nand_correct_data: uncorrectable ECC error
[   32.016391] blk_update_request: I/O error, dev mtdblock0, sector 0
[   32.022782] __nand_correct_data: uncorrectable ECC error
[   32.028184] __nand_correct_data: uncorrectable ECC error
[   32.033537] blk_update_request: I/O error, dev mtdblock0, sector 0
[   32.039746] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   33.547886] __nand_correct_data: uncorrectable ECC error
[   33.553229] __nand_correct_data: uncorrectable ECC error
[   33.558633] blk_update_request: I/O error, dev mtdblock0, sector 0
[   33.565129] __nand_correct_data: uncorrectable ECC error
[   33.570460] __nand_correct_data: uncorrectable ECC error
[   33.575833] blk_update_request: I/O error, dev mtdblock0, sector 0
[   33.582043] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   33.970982] __nand_correct_data: uncorrectable ECC error
[   33.976388] __nand_correct_data: uncorrectable ECC error
[   33.981912] __nand_correct_data: uncorrectable ECC error
[   33.987290] __nand_correct_data: uncorrectable ECC error
[   33.992627] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   35.501333] __nand_correct_data: uncorrectable ECC error
[   35.506748] __nand_correct_data: uncorrectable ECC error
[   35.512086] blk_update_request: 2 callbacks suppressed
[   35.517244] blk_update_request: I/O error, dev mtdblock0, sector 0
[   35.523739] __nand_correct_data: uncorrectable ECC error
[   35.529077] __nand_correct_data: uncorrectable ECC error
[   35.534450] blk_update_request: I/O error, dev mtdblock0, sector 0
[   35.540660] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   35.929662] __nand_correct_data: uncorrectable ECC error
[   35.935066] __nand_correct_data: uncorrectable ECC error
[   35.940404] blk_update_request: I/O error, dev mtdblock0, sector 0
[   35.946828] __nand_correct_data: uncorrectable ECC error
[   35.952163] __nand_correct_data: uncorrectable ECC error
[   35.957558] blk_update_request: I/O error, dev mtdblock0, sector 0
[   35.963763] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   37.472602] __nand_correct_data: uncorrectable ECC error
[   37.478018] __nand_correct_data: uncorrectable ECC error
[   37.483356] blk_update_request: I/O error, dev mtdblock0, sector 0
[   37.489850] __nand_correct_data: uncorrectable ECC error
[   37.495226] __nand_correct_data: uncorrectable ECC error
[   37.500559] blk_update_request: I/O error, dev mtdblock0, sector 0
[   37.506767] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   37.895868] __nand_correct_data: uncorrectable ECC error
[   37.901205] __nand_correct_data: uncorrectable ECC error
[   37.906589] blk_update_request: I/O error, dev mtdblock0, sector 0
[   37.912978] __nand_correct_data: uncorrectable ECC error
[   37.918389] __nand_correct_data: uncorrectable ECC error
[   37.923741] blk_update_request: I/O error, dev mtdblock0, sector 0
[   37.929949] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   39.438076] __nand_correct_data: uncorrectable ECC error
[   39.443485] __nand_correct_data: uncorrectable ECC error
[   39.448827] blk_update_request: I/O error, dev mtdblock0, sector 0
[   39.455324] __nand_correct_data: uncorrectable ECC error
[   39.460663] __nand_correct_data: uncorrectable ECC error
[   39.466035] blk_update_request: I/O error, dev mtdblock0, sector 0
[   39.472247] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   39.861154] __nand_correct_data: uncorrectable ECC error
[   39.866555] __nand_correct_data: uncorrectable ECC error
[   39.872077] __nand_correct_data: uncorrectable ECC error
[   39.877450] __nand_correct_data: uncorrectable ECC error
[   39.882788] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   41.391385] __nand_correct_data: uncorrectable ECC error
[   41.396795] __nand_correct_data: uncorrectable ECC error
[   41.402132] blk_update_request: 2 callbacks suppressed
[   41.407290] blk_update_request: I/O error, dev mtdblock0, sector 0
[   41.413784] __nand_correct_data: uncorrectable ECC error
[   41.419122] __nand_correct_data: uncorrectable ECC error
[   41.424495] blk_update_request: I/O error, dev mtdblock0, sector 0
[   41.430706] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   41.819677] __nand_correct_data: uncorrectable ECC error
[   41.825077] __nand_correct_data: uncorrectable ECC error
[   41.830416] blk_update_request: I/O error, dev mtdblock0, sector 0
[   41.836838] __nand_correct_data: uncorrectable ECC error
[   41.842173] __nand_correct_data: uncorrectable ECC error
[   41.847569] blk_update_request: I/O error, dev mtdblock0, sector 0
[   41.853774] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   43.362575] __nand_correct_data: uncorrectable ECC error
[   43.367986] __nand_correct_data: uncorrectable ECC error
[   43.373324] blk_update_request: I/O error, dev mtdblock0, sector 0
[   43.379822] __nand_correct_data: uncorrectable ECC error
[   43.385201] __nand_correct_data: uncorrectable ECC error
[   43.390535] blk_update_request: I/O error, dev mtdblock0, sector 0
[   43.396743] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   43.785715] __nand_correct_data: uncorrectable ECC error
[   43.791059] __nand_correct_data: uncorrectable ECC error
[   43.796439] blk_update_request: I/O error, dev mtdblock0, sector 0
[   43.802830] __nand_correct_data: uncorrectable ECC error
[   43.808232] __nand_correct_data: uncorrectable ECC error
[   43.813586] blk_update_request: I/O error, dev mtdblock0, sector 0
[   43.819794] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   44.209376] random: crng init done
Begin: Running /scripts/local-block ... done.
[   45.331501] __nand_correct_data: uncorrectable ECC error
[   45.336915] __nand_correct_data: uncorrectable ECC error
[   45.342256] blk_update_request: I/O error, dev mtdblock0, sector 0
[   45.348753] __nand_correct_data: uncorrectable ECC error
[   45.354124] __nand_correct_data: uncorrectable ECC error
[   45.359459] blk_update_request: I/O error, dev mtdblock0, sector 0
[   45.365666] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   45.754610] __nand_correct_data: uncorrectable ECC error
[   45.759948] __nand_correct_data: uncorrectable ECC error
[   45.765500] __nand_correct_data: uncorrectable ECC error
[   45.770829] __nand_correct_data: uncorrectable ECC error
[   45.776227] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   47.284688] __nand_correct_data: uncorrectable ECC error
[   47.290029] __nand_correct_data: uncorrectable ECC error
[   47.295425] blk_update_request: 2 callbacks suppressed
[   47.300580] blk_update_request: I/O error, dev mtdblock0, sector 0
[   47.307054] __nand_correct_data: uncorrectable ECC error
[   47.312387] __nand_correct_data: uncorrectable ECC error
[   47.317756] blk_update_request: I/O error, dev mtdblock0, sector 0
[   47.323961] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   47.712957] __nand_correct_data: uncorrectable ECC error
[   47.718359] __nand_correct_data: uncorrectable ECC error
[   47.723732] blk_update_request: I/O error, dev mtdblock0, sector 0
[   47.730121] __nand_correct_data: uncorrectable ECC error
[   47.735518] __nand_correct_data: uncorrectable ECC error
[   47.740856] blk_update_request: I/O error, dev mtdblock0, sector 0
[   47.747063] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Begin: Running /scripts/local-block ... done.
[   49.255233] __nand_correct_data: uncorrectable ECC error
[   49.260575] __nand_correct_data: uncorrectable ECC error
[   49.265958] blk_update_request: I/O error, dev mtdblock0, sector 0
[   49.272345] __nand_correct_data: uncorrectable ECC error
[   49.277790] __nand_correct_data: uncorrectable ECC error
[   49.283128] blk_update_request: I/O error, dev mtdblock0, sector 0
[   49.289335] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   49.678141] __nand_correct_data: uncorrectable ECC error
[   49.683550] __nand_correct_data: uncorrectable ECC error
[   49.688888] blk_update_request: I/O error, dev mtdblock0, sector 0
[   49.695319] __nand_correct_data: uncorrectable ECC error
[   49.700655] __nand_correct_data: uncorrectable ECC error
[   49.706051] blk_update_request: I/O error, dev mtdblock0, sector 0
[   49.712255] Buffer I/O error on dev mtdblock0, logical block 0, async page read
done.
[   50.214464] __nand_correct_data: uncorrectable ECC error
[   50.219828] __nand_correct_data: uncorrectable ECC error
[   50.225216] blk_update_request: I/O error, dev mtdblock0, sector 0
[   50.231627] __nand_correct_data: uncorrectable ECC error
[   50.237070] __nand_correct_data: uncorrectable ECC error
[   50.242407] blk_update_request: I/O error, dev mtdblock0, sector 0
[   50.248614] Buffer I/O error on dev mtdblock0, logical block 0, async page read
[   50.637252] __nand_correct_data: uncorrectable ECC error
[   50.642590] __nand_correct_data: uncorrectable ECC error
[   50.648180] __nand_correct_data: uncorrectable ECC error
[   50.653592] __nand_correct_data: uncorrectable ECC error
[   50.658929] Buffer I/O error on dev mtdblock0, logical block 0, async page read
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) 
Re: How to unbrick the Netgear Ready NAS Duo v2
December 25, 2018 04:41PM
yury_minsk,

> After removing ECHO arg in bootcmd I have loading
> from USB

Good job! That's old u-boots limitation with the max number of envs that can be scripted in a env.

The ECC error possibly has something to do with this Ready NAS Duo DTS that does not match what u-boot think this box has. I'll take a look.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
December 25, 2018 05:00PM
yury_minsk,

1. Does this box has both USB 2.0 and USB 3.0 ports? what is your USB drive? brand, model, partition formatted as Ext3.... And it attached to which port?

2. What your rootfs formatted looks like? assuming it is mounted at /media/sdb1 on another Linux box,

fdisk -l 
e2label /dev/sdb1
mount
ls -lart /media/sdb1/boot


3. How did you flash new u-boot image to NAND? please post log.

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



Edited 1 time(s). Last edit at 12/25/2018 05:04PM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
February 16, 2019 02:17PM
bodhi,

Hello.

After 2 months I finished all my troubles with laptop and start again my fighting with NAS.

I create rootfs usb and load from it.

What now I have:
booting via KWBOOT with my custom image
loading rootfs from usb after sen env in marvell uboot

this looks like:

> kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-db88f6282abp_533ddr3db_nand.pached.bin -p

---skip---

Hit any key to stop autoboot:  0                                                                                                                                                               
Marvell>>   setenv mainlineLinux yes                                                                                                                                                           
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'                                                                                                                          
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'                                                                                                                        
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay                                                                                                =10  mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uIma                                                                                                ge),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial'                                                                                                              
Marvell>> setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; b                                                                                                ootm 0x800000 0x2100000'                                                                                                                                                                       
Marvell>> setenv bootcmd_stock 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0                                                                                                x800000 0x1000000;bootm 0x1200000 0x2000000'                                                                                                                                                   
Marvell>> setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'                                                                                                                          
Marvell>> boot                                                                                                                                          
(Re)start USB...                                                                                                                                                
USB:   scanning bus for devices... 2 USB Device(s) found                                                                                                                                       
Waiting for storage device(s) to settle before scanning...   

---skip---
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Dec 31 16:01:32 PST 1969 from 192.168.0.220 on pts/0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 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.
root@debian:~# uname -a
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel GNU/Linux
root@debian:~#


I want write original uboot to NAS (for booting without kwboot) and Add to uboot system environments for boot automatically from usb.

Can you halp me with this 2 tasks?

Thank you very match
Re: How to unbrick the Netgear Ready NAS Duo v2
February 16, 2019 02:38PM
yury_minsk,

> root@debian:~# uname -a
> Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat
> Jul 15 21:40:50 PDT 2017 armv5tel GNU/Linux
> root@debian:~#

Great progress :) once you acan boot Debian rootfs, the rest is easy,

>
> I want write original uboot to NAS (for booting
> without kwboot) and Add to uboot system
> environments for boot automatically from usb.
>

Your log is hard to read (it got cut off).

Marvell>>   setenv mainlineLinux yes                                                                                                                                                           
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'                                                                                                                          
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'                                                                                                                        
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay                                                                                                =10  mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uIma                                                                                                ge),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial'                                                                                                              
Marvell>> setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; b                                                                                                ootm 0x800000 0x2100000'                                                                                                                                                                       
Marvell>> setenv bootcmd_stock 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0                                                                                                x800000 0x1000000;bootm 0x1200000 0x2000000'                                                                                                                                                   
Marvell>> setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'

Before booting, list the envs

printenv                                                                                                   
boot


I also need to see dmesg, and the mtds.

So please try again. This time also get more info in Debian:
cat /proc/mtd
cat /etc/fw_env.config

Please post the entire serial boot log, from kwboot command until the last output of the above 2 commands. As always, good to see the entire booting progress so we can spot any problem, whether it is related to NAND mtds.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
February 16, 2019 03:02PM
bodhi,

➜  u-boot kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-db88f6282abp_533ddr3db_nand.pached.bin -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  7 % [......................................................................]
  9 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 24 % [......................................................................]
 26 % [......................................................................]
 28 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 33 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 43 % [......................................................................]
 45 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 50 % [......................................................................]
 52 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 60 % [......................................................................]
 62 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 67 % [......................................................................]
 69 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 77 % [......................................................................]
 79 % [......................................................................]
 81 % [......................................................................]
 83 % [......................................................................]
 84 % [......................................................................]
 86 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 96 % [......................................................................]
 98 % [......................................................................]
[Type Ctrl-\ + c to quit]

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

U-Boot 1.1.4 (Dec 18 2018 - 17:21:21) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1008

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

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

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


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

Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> 
Marvell>> setenv mainlineLinux yes
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelaye),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial'
Marvell>> setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; b
Marvell>> setenv bootcmd_stock 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0
Marvell>> setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=192.168.58.21
serverip=192.168.58.135
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=no
console=console=ttyS0,115200
CASset=min
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
ethact=egiga0
bootargs=console=ttyS0,115200 reason=normal mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x18002);
mainlineLinux=yes
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_initrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion00(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial
bootcmd_exec=usb start; run set_bootargs; run load_uimage; run load_initrd; bootm 0x800000 0x21
bootcmd_stock=nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;
bootcmd=run bootcmd_exec; run bootcmd_stock; reset

Environment size: 1840/131068 bytes
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
...............................................................................................
...............................................................................................

3834716 bytes read
....
.
......
............
.........................
...................................................
...............................................................................................
.................................................................................................................
..............................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2019-02-16  19:48:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834652 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 
[    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 root=LABEL=rootfs rootdelay=10 mtdpart@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: 239368K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata,
[    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]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idl
[    0.000005] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007893] Switching to timer-based delay loop, resolution 5ns
[    0.014229] Console: colour dummy device 80x30
[    0.018789] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.0
[    0.029385] pid_max: default: 32768 minimum: 301
[    0.034212] Security Framework initialized
[    0.038495] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045171] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.052969] CPU: Testing write buffer coherency: ok
[    0.058735] Setting up static identity map for 0x100000 - 0x100058
[    0.065160] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.072846] devtmpfs: initialized
[    0.079981] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911
[    0.089927] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.096371] prandom: seed boundary self test passed
[    0.104145] prandom: 100 self tests passed
[    0.108338] pinctrl core: initialized pinctrl subsystem
[    0.114521] NET: Registered protocol family 16
[    0.119416] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.127564] cpuidle: using governor ladder
[    0.131826] cpuidle: using governor menu
[    0.136151] Feroceon L2: Enabling L2
[    0.139856] Feroceon L2: Cache support initialised.
[    0.145064] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local
[    0.159707] No ATAGs?
[    0.166786] vgaarb: loaded
[    0.172181] SCSI subsystem initialized
[    0.176372] usbcore: registered new interface driver usbfs
[    0.182001] usbcore: registered new interface driver hub
[    0.187434] usbcore: registered new device driver usb
[    0.193420] clocksource: Switched to clocksource orion_clocksource
[    0.268523] VFS: Disk quotas dquot_6.6.0
[    0.272575] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.287684] NET: Registered protocol family 2
[    0.292691] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.299766] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.306210] TCP: Hash tables configured (established 2048 bind 2048)
[    0.312685] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.318604] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.325075] NET: Registered protocol family 1
[    0.329821] RPC: Registered named UNIX socket transport module.
[    0.335858] RPC: Registered udp transport module.
[    0.340619] RPC: Registered tcp transport module.
[    0.345404] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.352076] Unpacking initramfs...
[    0.846662] Freeing initrd memory: 7076K
[    0.850774] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.858167] audit: initializing netlink subsys (disabled)
[    0.864017] Initialise system trusted keyrings
[    0.868549] Key type blacklist registered
[    0.872682] audit: type=2000 audit(0.850:1): state=initialized audit_enabled=0 res=1
[    0.880591] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.880641] zbud: loaded
[    0.887922] NFS: Registering the id_resolver key type
[    0.887936] Key type id_resolver registered
[    0.887939] Key type id_legacy registered
[    0.887957] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.887961] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.888113] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.888253] fuse init (API version 7.26)
[    0.888512] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.888664] orangefs_init: module version upstream loaded
[    0.888668] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.563425] random: fast init done
[    5.309675] Key type asymmetric registered
[    5.314082] Asymmetric key parser 'x509' registered
[    5.319069] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    5.326628] io scheduler noop registered
[    5.330617] io scheduler deadline registered
[    5.335051] io scheduler cfq registered (default)
[    5.340784] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    5.349613] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:0
[    5.358242] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    5.364586] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    5.371514] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.377326] PCI: bus0: Fast back to back transfers disabled
[    5.382960] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.413481] PCI: bus1: Fast back to back transfers disabled
[    5.419255] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    5.426207] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    5.433592] pci 0000:00:01.0: PCI bridge to [bus 01]
[    5.438623] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    5.445537] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    5.452145] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.513994] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.521794] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.583990] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.591984] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.599482] console [ttyS0] disabled
[    5.603168] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 
[    5.612259] console [ttyS0] enabled
[    5.612259] console [ttyS0] enabled
[    5.619383] bootconsole [earlycon0] disabled
[    5.619383] bootconsole [earlycon0] disabled
[    5.634588] loop: module loaded
[    5.638214] sata_mv f1080000.sata: slots 32 ports 2
[    5.645271] scsi host0: sata_mv
[    5.648766] scsi host1: sata_mv
[    5.652117] ata1: SATA max UDMA/133 irq 33
[    5.656278] ata2: SATA max UDMA/133 irq 33
[    5.661277] nand: Could not find valid ONFI parameter page; aborting
[    5.667753] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    5.674151] nand: Hynix NAND 128MiB 3,3V 8-bit
[    5.678616] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.686233] Scanning device for bad blocks
[    5.745287] Bad eraseblock 726 at 0x000005ac0000
[    5.772398] 5 cmdlinepart partitions found on MTD device orion_nand
[    5.778702] Creating 5 MTD partitions on "orion_nand":
[    5.783880] 0x000000000000-0x000000180000 : "u-boot"
[    5.789896] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    5.796265] 0x000000200000-0x000000800000 : "uImage"
[    5.802270] 0x000000800000-0x000001800000 : "minirootfs"
[    5.808550] 0x000001800000-0x000008000000 : "jffs2"
[    5.815695] libphy: Fixed MDIO Bus: probed
[    5.820412] libphy: orion_mdio_bus: probed
[    5.828433] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.934368] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02
[    5.943222] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.949828] ehci-pci: EHCI PCI platform driver
[    5.954356] ehci-orion: EHCI orion driver
[    5.958566] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.964135] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.972073] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    5.998321] ata1: SATA link down (SStatus 0 SControl F300)
[    6.003855] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.004083] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.004089] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.004094] usb usb1: Product: EHCI Host Controller
[    6.004098] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    6.004102] usb usb1: SerialNumber: f1050000.ehci
[    6.004649] hub 1-0:1.0: USB hub found
[    6.004681] hub 1-0:1.0: 1 port detected
[    6.005164] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.005192] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    6.005495] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    6.005682] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.005688] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.005693] usb usb2: Product: xHCI Host Controller
[    6.005697] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.005702] usb usb2: SerialNumber: 0000:01:00.0
[    6.006242] hub 2-0:1.0: USB hub found
[    6.006275] hub 2-0:1.0: 2 ports detected
[    6.006704] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.006718] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    6.014929] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.015037] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    6.015043] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.015047] usb usb3: Product: xHCI Host Controller
[    6.015052] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.015056] usb usb3: SerialNumber: 0000:01:00.0
[    6.015597] hub 3-0:1.0: USB hub found
[    6.015629] hub 3-0:1.0: 2 ports detected
[    6.016253] usbcore: registered new interface driver usb-storage
[    6.016530] mousedev: PS/2 mouse device common for all mice
[    6.363447] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.524860] ata2: SATA link down (SStatus 0 SControl F300)
[    6.621830] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[    6.628587] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.635776] usb 1-1: Product: Mass Storage
[    6.639892] usb 1-1: Manufacturer: Generic
[    6.644024] usb 1-1: SerialNumber: N20C1700001671925693
[    6.649857] usb-storage 1-1:1.0: USB Mass Storage device detected
[    6.656283] scsi host2: usb-storage 1-1:1.0
[    7.053443] rtc-mv f1010300.rtc: internal RTC not ticking
[    7.058991] i2c /dev entries driver
[    7.064522] hidraw: raw HID events driver (C) Jiri Kosina
[    7.070233] drop_monitor: Initializing network drop monitor service
[    7.076742] NET: Registered protocol family 17
[    7.081269] Key type dns_resolver registered
[    7.086168] registered taskstats version 1
[    7.090279] Loading compiled-in X.509 certificates
[    7.095159] zswap: loaded using pool lzo/zbud
[    7.107191] Key type big_key registered
[    7.118316] Key type encrypted registered
[    7.123599] hctosys: unable to open rtc device (rtc0)
[    7.131865] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    7.476428] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    7.501770] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    7.515243] usbcore: registered new interface driver uas
[    7.697299] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[    7.714882] sd 2:0:0:0: [sda] 15237120 512-byte logical blocks: (7.80 GB/7.27 GiB)
[    7.728814] sd 2:0:0:0: [sda] Write Protect is off
[    7.739506] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DP
[    7.763213]  sda: sda1
[    7.769125] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file[   18.187770] EXT4-fs (sda1): mounting ext3 fi
 system
[   18.209132] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...[   20.507830] input: gpio-keys as /devices/pl
done.
[....] Waiting for /dev to be fully populated...[   20.657304] (NULL device *): hwmon_device_re
[   20.926523] marvell-cesa f1030000.crypto: CESA device successfully registered
[   20.956204] orion_wdt: Initial timeout 21 sec
[   20.995403] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   21.439534] random: crng init done
done.
[ ok ] Activating swap:.
[   22.036179] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14455/476720 files, 172771/1904384 blocks
. ok 
[   22.286037] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that locati
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:43:00:02:02
Sending on   LPF/eth0/00:50:43:00:02:02
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[   87.043642] NET: Registered protocol family 10
[   87.049662] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   87.055728] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1314 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1317 (klogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Sun Feb 17 15:03:40 PST 2019 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 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.
root@debian:~# 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@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of secto
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:~# 
Re: How to unbrick the Netgear Ready NAS Duo v2
February 16, 2019 08:14PM
yury_minsk,

root@debian:~# 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"


So your mtd0 is 1.5MB. And the u-boot envs area is right after that, in mtd1.

In Debian, modify the file /etc/fw_env.config to have this content:

# MTD device name       Device offset   Env. size       Flash sector size       Number of secto
/dev/mtd1 0x0 0x20000 0x20000

And list the envs
fw_printenv

And list the size of the u-boot image that you used for kwboot (do it twice to see number of bytes and also Kbytes)

ls -l u-boot-db88f6282abp_533ddr3db_nand.pached.bin
ls -lh u-boot-db88f6282abp_533ddr3db_nand.pached.bin

I'll write a flash commands after you posted the info above.

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



Edited 1 time(s). Last edit at 02/16/2019 08:15PM by bodhi.
Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 01:11AM
bodhi,

root@debian:~# fw_printenv
baudrate=115200
loads_echo=0
ipaddr=192.168.58.21
serverip=192.168.58.135
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=no
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200
mainlineLinux=no
CASset=min
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
ethprime=egiga0
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
bootcmd=nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000
bootargs=console=ttyS0,115200
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
bootdelay=3
disaMvPnp=no
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
enaAutoRecovery=yes
pcieTune=no

and

root@debian:~# ls -l u-boot-db88f6282abp_533ddr3db_nand.pached.bin 
-rw-r--r--. 1 root root 474832 Feb 16 22:44 u-boot-db88f6282abp_533ddr3db_nand.pached.bin
root@debian:~# ls -lh u-boot-db88f6282abp_533ddr3db_nand.pached.bin 
-rw-r--r--. 1 root root 464K Feb 16 22:44 u-boot-db88f6282abp_533ddr3db_nand.pached.bin

Thank you
Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 04:38AM
yury_minsk,

It is strange. In Debian, your mtds look correct, and the envs can be accessed now. However, what you set for mtds the bootargs did not look right!

Debian
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdpart@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial

stock
bootargs=console=ttyS0,115200 reason=normal mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x18002);

It could be that your serial output was messed up. The actual value must have been correct because your mtds in Debian looks fine
root@debian:~# 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"

To be extra careful, we need to verify it again. kwboot again and interrupt serial console, execute the setenv commands you did.

And post those commands here. I want to see if they are actually correct. If you have them in your notepad, copy them and post here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 04:53AM
bodhi,

Copypaste my all boot log with env prints:
➜  u-boot kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-db88f6282abp_533ddr3db_nand.pached.bin -p                                                                                                 
                                                                                                                                                 
Hit any key to stop autoboot:  0                                                                                                                                                               
Marvell>> setenv mainlineLinux yes                                                                                                                                                             
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'                                                                                                                          
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'                                                                                                                        
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay                                                                                                =10  mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uIma                                                                                                ge),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial'                                                                                                              
Marvell>> setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; b                                                                                                ootm 0x800000 0x2100000'                                                                                                                                                                       
Marvell>> setenv bootcmd_stock 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0                                                                                                x800000 0x1000000;bootm 0x1200000 0x2000000'                                                                                                                                                   
Marvell>> setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'                               
Marvell>> printenv                                                                                                                                                      
baudrate=115200                                                                                                                                             
loads_echo=0                                                                                                                                    
ipaddr=192.168.58.21                                                                                                                                                            
serverip=192.168.58.135                                                                                                                                                                     
rootpath=/mnt/ARM_FS/                                                                                                                                                               
netmask=255.255.255.0                                                                                                                                                               
run_diag=no                                                                                                                                 
console=console=ttyS0,115200                                                                                                                                                                   
CASset=min                                                                                                                              
ethprime=egiga0                                                                                                                                             
bootargs_root=root=/dev/nfs rw                                                                                                                                                                 
bootargs_end=:::DB88FXX81:eth0:none                                                                                                                                                            
image_name=uImage                                                                                                                                                   
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=                                                                                                $(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;                                                                                                                        
ethaddr=00:50:43:00:02:02                                                                                                                                                                      
ethmtu=1500                                                                                                                                 
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs                                                                                                                                                
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500                                                                                                                                 
usb0Mode=host                                                                                                                                       
yuk_ethaddr=00:00:00:EE:51:81                                                                                                                                                                  
nandEcc=1bit                                                                                                                                    
netretry=no                                                                                                                                 
rcvrip=169.254.100.100                                                                                                                                                                  
loadaddr=0x02000000                                                                                                                                                         
autoload=no                                                                                                                                 
stdin=serial                                                                                                                                    
stdout=serial                                                                                                                                       
stderr=serial                                                                                                                                       
enaMonExt=no                                                                                                                                    
enaCpuStream=no                                                                                                                                             
enaWrAllo=no                                                                                                                                    
pexMode=RC                                                                                                                              
disL2Cache=no                                                                                                                                       
setL2CacheWT=yes                                                                                                                                                
disL2Prefetch=yes                                                                                                                                                   
enaICPref=yes                                                                                                                                       
enaDCPref=yes                                                                                                                                       
sata_dma_mode=yes                                                                                                                                                   
netbsd_en=no                                                                                                                                    
vxworks_en=no                                                                                                                                       
bootdelay=3                                                                                                                                 
disaMvPnp=no                                                                                                                                    
enaAutoRecovery=yes                                                                                                                                                         
pcieTune=no                                                                                                                                 
ethact=egiga0                                                                                                                                       
bootargs=console=ttyS0,115200 reason=normal mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x1800                                                                                                00(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jff                                                                                                s2);                                                                                       
mainlineLinux=yes                                                                                                                                                   
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage                                                                                                                                             
load_initrd=ext2load usb 0:1 0x2100000 /boot/uInitrd                                                                                                                                           
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion                                                                                                _nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800                                                                                                000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial                                                                                                                                  
bootcmd_exec=usb start; run set_bootargs; run load_uimage; run load_initrd; bootm 0x800000 0x21                                                                                                00000                                                                                                               
bootcmd_stock=nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;                                                                                                bootm 0x1200000 0x2000000                                                                                                                                                                      
bootcmd=run bootcmd_exec; run bootcmd_stock; reset                                                                                                                                             

Environment size: 1840/131068 bytes                                                                                                                                                            
Marvell>> boot                                                                                                                                          
(Re)start USB...                                                                                                                                                
USB:   scanning bus for devices... 2 USB Device(s) found                                                                                                                                       
Waiting for storage device(s) to settle before scanning...                                                                                                                                     
1 Storage Device(s) found                                                                                                                                                                                                                                                             

3834716 bytes read                                                                                                                                                      

7245696 bytes read                                                                                                                                                      
## Booting image at 00800000 ...                                                                                                                                                               
   Image Name:   Linux-4.12.1-kirkwood-tld-1                                                                                                                                                   
   Created:      2019-02-16  19:48:54 UTC                                                                                                                                                      
   Image Type:   ARM Linux Kernel Image (uncompressed)                                                                                                                                         
   Data Size:    3834652 Bytes =  3.7 MB                                                                                                                                                       
   Load Address: 00008000                                                                                                                                                                      
   Entry Point:  00008000                                                                                                                                                                      
   Verifying Checksum ... OK                                          
OK                                                                                                      
## Loading Ramdisk Image at 02100000 ...                                                                                                                                                       
   Image Name:   initramfs-4.12.1-kirkwood-tld-1                                                                                                                                               
   Created:      2017-07-24   0:18:23 UTC                                                                                                                                                      
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)                                                                                                                                     
   Data Size:    7245632 Bytes =  6.9 MB                                                                                                                                                       
   Load Address: 00000000                                                                                                                                                                      
   Entry Point:  00000000                                                                                                                                                                      
   Verifying Checksum ... OK                                                                                                                                                                   

Starting kernel ...                                                                                                                                                         

Uncompressing Linux... done, booting the kernel.                                                                                                                                               
[    0.000000] Booting Linux on physical CPU 0x0                                                                                                                                               
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian                                                                                                 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017                                                                                                                                            
[    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 root=LABEL=rootfs rootdelay=10 mtdpart                                                                                                s=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x100000                                                                                                0@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: 239368K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata,                                                                                                 1024K init, 288K bss, 22776K reserved, 0K cma-reserved)                                                                                                                                       
[    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]     modules : 0xbf000000 - 0xc0000000   (  16 MB)                                                                                                                               
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)                                                                                                                               
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)                                                                                                                               
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)                                                                                                                               
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)                                                                                                                               
[    0.000000] Preemptible hierarchical RCU implementation.                                                                                                                                    
[    0.000000] NR_IRQS:16 nr_irqs:16 16                                                                                                                                                        
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idl                                                                                                e_ns: 9556302233 ns                                                                                                                                                         
[    0.000005] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns                                                                                                       
[    0.007893] Switching to timer-based delay loop, resolution 5ns                                                                                                                             
[    0.014228] Console: colour dummy device 80x30                                                                                                                                              
[    0.018789] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.0                                                                                                0 BogoMIPS (lpj=2000000)                                                                                                                                                                       
[    0.029383] pid_max: default: 32768 minimum: 301                                                                                                                                            
[    0.034212] Security Framework initialized                                                                                                                                                  
[    0.038498] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                                                                     
[    0.045171] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                                                                
[    0.052970] CPU: Testing write buffer coherency: ok                                                                                                                                         
[    0.058745] Setting up static identity map for 0x100000 - 0x100058                           
[    0.065177] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1                                                                                                                                      
[    0.072883] devtmpfs: initialized                                                                                                                                                           
[    0.080023] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911                                                                                                2604462750000 ns                                                                                                                                                
[    0.089960] futex hash table entries: 256 (order: -1, 3072 bytes)                                                                                                                           
[    0.096410] prandom: seed boundary self test passed                                                                                                                                         
[    0.104179] prandom: 100 self tests passed                                                                                                                                                  
[    0.108372] pinctrl core: initialized pinctrl subsystem                                                                                                                                     
[    0.114560] NET: Registered protocol family 16                                                                                                                                              
[    0.119460] DMA: preallocated 256 KiB pool for atomic coherent allocations                                                                                                                  
[    0.127616] cpuidle: using governor ladder                                                                                                                                                  
[    0.131881] cpuidle: using governor menu                                                                                                                                                    
[    0.136203] Feroceon L2: Enabling L2                                                                                                                                                        
[    0.139908] Feroceon L2: Cache support initialised.                                                                                                                                         
[    0.145116] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local                                                                                                -mac-address is not set                                                                                                                                                                     
[    0.159753] No ATAGs?                                                                                                                                                                       
[    0.166846] vgaarb: loaded                                                                                                                                                                  
[    0.172241] SCSI subsystem initialized                                                                                                                                                      
[    0.176429] usbcore: registered new interface driver usbfs                                                                                                                                  
[    0.182063] usbcore: registered new interface driver hub                                                                                                                                    
[    0.187494] usbcore: registered new device driver usb                                                                                                                                       
[    0.193479] clocksource: Switched to clocksource orion_clocksource                                                                                                                          
[    0.268564] VFS: Disk quotas dquot_6.6.0                                                                                                                                                    
[    0.272618] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)                                                                                                                 
[    0.287734] NET: Registered protocol family 2                                                                                                                                               
[    0.292742] TCP established hash table entries: 2048 (order: 1, 8192 bytes)                                                                                                                 
[    0.299819] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)                                                                                                                        
[    0.306262] TCP: Hash tables configured (established 2048 bind 2048)                                                                                                                        
[    0.312736] UDP hash table entries: 256 (order: 0, 4096 bytes)                                                                                                                              
[    0.318656] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                                                                                                                         
[    0.325126] NET: Registered protocol family 1                                                                                                                                               
[    0.329870] RPC: Registered named UNIX socket transport module.                                                                                                                             
[    0.335901] RPC: Registered udp transport module.                                                                                                                                           
[    0.340662] RPC: Registered tcp transport module.                                                                                                                                           
[    0.345448] RPC: Registered tcp NFSv4.1 backchannel transport module.                                                                                                                       
[    0.352121] Unpacking initramfs...                                                                                                                                                          
[    0.846528] Freeing initrd memory: 7076K                                                                                                                                                    
[    0.850644] NetWinder Floating Point Emulator V0.97 (double precision)                                                                                                                      
[    0.858039] audit: initializing netlink subsys (disabled)                                                                                                                                   
[    0.863888] Initialise system trusted keyrings                                                                                                                                              
[    0.868426] Key type blacklist registered                                                                                                                                                   
[    0.872562] audit: type=2000 audit(0.850:1): state=initialized audit_enabled=0 res=1                                                                                                        
[    0.880469] workingset: timestamp_bits=30 max_order=16 bucket_order=0                                                                                                                       
[    0.880521] zbud: loaded                                                                 
[    0.887812] NFS: Registering the id_resolver key type                                                                                                                                       
[    0.887828] Key type id_resolver registered                                                                                                                                                 
[    0.887831] Key type id_legacy registered                                                                                                                                                   
[    0.887849] nfs4filelayout_init: NFSv4 File Layout Driver Registering...                                                                                                                    
[    0.887853] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).                                                                                                                        
[    0.888002] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.                                                                                                                 
[    0.888143] fuse init (API version 7.26)                                                                                                                                                    
[    0.888403] orangefs_debugfs_init: called with debug mask: :none: :0:                                                                                                                       
[    0.888557] orangefs_init: module version upstream loaded                                                                                                                                   
[    0.888560] SGI XFS with ACLs, security attributes, realtime, no debug enabled                                                                                                              
[    2.563486] random: fast init done                                                                                                                                                          
[    5.309588] Key type asymmetric registered                                                                                                                                                  
[    5.313995] Asymmetric key parser 'x509' registered                                                                                                                                         
[    5.318982] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)                                                                                                            
[    5.326544] io scheduler noop registered                                                                                                                                                    
[    5.330530] io scheduler deadline registered                                                                                                                                                
[    5.334965] io scheduler cfq registered (default)                                                                                                                                           
[    5.340695] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver                                                                                                             
[    5.349532] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:0                                                                                                0                                                                                                   
[    5.358165] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]                                                                                                                         
[    5.364508] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]                                                                                                                  
[    5.371437] pci_bus 0000:00: root bus resource [bus 00-ff]                                                                                                                                  
[    5.377248] PCI: bus0: Fast back to back transfers disabled                                                                                                                                 
[    5.382883] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring                                                                                                     
[    5.413539] PCI: bus1: Fast back to back transfers disabled                                                                                                                                 
[    5.419316] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]                                                                                                                  
[    5.426266] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]                                                                                                             
[    5.433652] pci 0000:00:01.0: PCI bridge to [bus 01]                                                                                                                                        
[    5.438683] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]                                                                                                                   
[    5.445598] pcieport 0000:00:01.0: enabling device (0140 -> 0142)                                                                                                                           
[    5.452204] mv_xor f1060800.xor: Marvell shared XOR driver                                                                                                                                  
[    5.514052] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )                                                                                                          
[    5.521852] mv_xor f1060900.xor: Marvell shared XOR driver                                                                                                                                  
[    5.584048] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )                                                                                                          
[    5.592032] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled                                                                                                                        
[    5.599536] console [ttyS0] disabled                                                                                                                                                        
[    5.603221] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a                                                                                                 16550A                                                                                                                  
[    5.612311] console [ttyS0] enabled                                                                                                                                                         
[    5.612311] console [ttyS0] enabled                                                                                                                                                         
[    5.619434] bootconsole [earlycon0] disabled                                                                                                                                                
[    5.619434] bootconsole [earlycon0] disabled                                                                                                                                                
[    5.634630] loop: module loaded                                                                                                                                                             
[    5.638259] sata_mv f1080000.sata: slots 32 ports 2                                                                                                                                         
[    5.645315] scsi host0: sata_mv                                                                                                                                                             
[    5.648808] scsi host1: sata_mv                                                                                                                                                             
[    5.652151] ata1: SATA max UDMA/133 irq 33                                                                                                                                                  
[    5.656313] ata2: SATA max UDMA/133 irq 33                                                                                                                                                  
[    5.661313] nand: Could not find valid ONFI parameter page; aborting                                                                                                                        
[    5.667787] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1                                                                                                                        
[    5.674185] nand: Hynix NAND 128MiB 3,3V 8-bit                                                                                                                                              
[    5.678651] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64                                                                                                          
[    5.686275] Scanning device for bad blocks                                                                                                                                                  
[    5.745339] Bad eraseblock 726 at 0x000005ac0000                                             
[    5.772455] 5 cmdlinepart partitions found on MTD device orion_nand                                                                                                                         
[    5.778763] Creating 5 MTD partitions on "orion_nand":                                                                                                                                      
[    5.783941] 0x000000000000-0x000000180000 : "u-boot"                                                                                                                                        
[    5.789953] 0x000000180000-0x0000001a0000 : "u-boot-env"                                                                                                                                    
[    5.796325] 0x000000200000-0x000000800000 : "uImage"                                                                                                                                        
[    5.802324] 0x000000800000-0x000001800000 : "minirootfs"                                                                                                                                    
[    5.808612] 0x000001800000-0x000008000000 : "jffs2"                                                                                                                                         
[    5.815753] libphy: Fixed MDIO Bus: probed                                                                                                                                                  
[    5.820475] libphy: orion_mdio_bus: probed                                                                                                                                                  
[    5.828518] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4                                                                                                                   
[    5.934429] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02                                                                                                :02                                                                                                         
[    5.943284] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                                                                                                                      
[    5.949896] ehci-pci: EHCI PCI platform driver                                                                                                                                              
[    5.954427] ehci-orion: EHCI orion driver                                                                                                                                                   
[    5.958636] orion-ehci f1050000.ehci: EHCI Host Controller                                                                                                                                  
[    5.964205] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1                                                                                                         
[    5.972062] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000                                                                                                                             
[    5.998311] ata1: SATA link down (SStatus 0 SControl F300)                                                                                                                                  
[    6.003846] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00                                                                                                                            
[    6.004073] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002                                                                                                                   
[    6.004079] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                                                                              
[    6.004083] usb usb1: Product: EHCI Host Controller                                                                                                                                         
[    6.004088] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd                                                                                                                    
[    6.004092] usb usb1: SerialNumber: f1050000.ehci                                                                                                                                           
[    6.004638] hub 1-0:1.0: USB hub found                                                                                                                                                      
[    6.004670] hub 1-0:1.0: 1 port detected                                                                                                                                                    
[    6.005154] xhci_hcd 0000:01:00.0: xHCI Host Controller                                                                                                                                     
[    6.005182] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2                                                                                                            
[    6.005482] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004                                                                                                 
[    6.005668] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002                                                                                                                   
[    6.005675] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                                                                              
[    6.005680] usb usb2: Product: xHCI Host Controller                                                                                                                                         
[    6.005684] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd                                                                                                                    
[    6.005688] usb usb2: SerialNumber: 0000:01:00.0                                                                                                                                            
[    6.006228] hub 2-0:1.0: USB hub found                                                                                                                                                      
[    6.006261] hub 2-0:1.0: 2 ports detected                                                                                                                                                   
[    6.006689] xhci_hcd 0000:01:00.0: xHCI Host Controller                                                                                                                                     
[    6.006703] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3                                                                                                            
[    6.014911] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.                                                                                                    
[    6.015018] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003                                                                                                                   
[    6.015024] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                                                                              
[    6.015029] usb usb3: Product: xHCI Host Controller                                                                                                                                         
[    6.015033] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd                                                                                                                    
[    6.015038] usb usb3: SerialNumber: 0000:01:00.0                                                                                                                                            
[    6.015579] hub 3-0:1.0: USB hub found                                                                                                                                                      
[    6.015611] hub 3-0:1.0: 2 ports detected                                                                                                                                                   
[    6.016232] usbcore: registered new interface driver usb-storage                                                                                                                            
[    6.016511] mousedev: PS/2 mouse device common for all mice                                                                                                                                 
[    6.363506] usb 1-1: new high-speed USB device number 2 using orion-ehci                     
[    6.524913] ata2: SATA link down (SStatus 0 SControl F300)                                                                                                                                  
[    6.621817] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[    6.628570] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.635758] usb 1-1: Product: Mass Storage
[    6.639874] usb 1-1: Manufacturer: Generic
[    6.644006] usb 1-1: SerialNumber: N20C1700001671925693
[    6.649841] usb-storage 1-1:1.0: USB Mass Storage device detected
[    6.656268] scsi host2: usb-storage 1-1:1.0
[    7.053503] rtc-mv f1010300.rtc: internal RTC not ticking
[    7.059052] i2c /dev entries driver
[    7.064577] hidraw: raw HID events driver (C) Jiri Kosina
[    7.070287] drop_monitor: Initializing network drop monitor service
[    7.076795] NET: Registered protocol family 17
[    7.081319] Key type dns_resolver registered
[    7.086219] registered taskstats version 1
[    7.090331] Loading compiled-in X.509 certificates
[    7.095211] zswap: loaded using pool lzo/zbud
[    7.107283] Key type big_key registered
[    7.118354] Key type encrypted registered
[    7.123633] hctosys: unable to open rtc device (rtc0)
[    7.131903] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    7.481325] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    7.514044] rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
[    7.529360] usbcore: registered new interface driver uas
[    7.697408] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[    7.715741] sd 2:0:0:0: [sda] 15237120 512-byte logical blocks: (7.80 GB/7.27 GiB)
[    7.729609] sd 2:0:0:0: [sda] Write Protect is off
[    7.740741] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    7.764450]  sda: sda1
[    7.770241] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file[   18.197755] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
 system
[   18.219244] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...[   20.525803] input: gpio-keys as /devices/platform/gpio-keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   20.667820] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   20.891248] marvell-cesa f1030000.crypto: CESA device successfully registered
[   20.925297] orion_wdt: Initial timeout 21 sec
[   21.017650] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   21.890927] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14459/476720 files, 173015/1904384 blocks
. ok 
[   22.141274] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[   23.904769] random: crng init done
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:43:00:02:02
Sending on   LPF/eth0/00:50:43:00:02:02
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[   86.029252] NET: Registered protocol family 10
[   86.034747] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   86.040754] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1314 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1312 (klogd)
. ok 
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Mon Feb 18 02:04:48 PST 2019 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

root@debian:~# 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@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x0 0x20000 0x20000
root@debian:~# fw_printenv
baudrate=115200
loads_echo=0
ipaddr=192.168.58.21
serverip=192.168.58.135
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=no
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200
mainlineLinux=no
CASset=min
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
ethprime=egiga0
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
bootcmd=nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000
bootargs=console=ttyS0,115200
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
bootdelay=3
disaMvPnp=no
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
enaAutoRecovery=yes
pcieTune=no
root@debian:~# ls -l u-boot-db88f6282abp_533ddr3db_nand.pached.bin
-rw-r--r--. 1 root root 474832 Feb 16 22:44 u-boot-db88f6282abp_533ddr3db_nand.pached.bin
root@debian:~# ls -lh u-boot-db88f6282abp_533ddr3db_nand.pached.bin 
-rw-r--r--. 1 root root 464K Feb 16 22:44 u-boot-db88f6282abp_533ddr3db_nand.pached.bin
root@debian:~# 
Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 04:54AM
|⇒  cat Documents/env.txt 
setenv mainlineLinux yes
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10  mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial'
setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
setenv bootcmd_stock 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'
boot

Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 05:44AM
OK so it looks all correct.

In Debian.

dd if=u-boot-db88f6282abp_533ddr3db_nand.pached.bin of=uboot-netgear-rnd2.mtd0.kwb bs=512k conv=sync
List it to make sure it is 512K exactly.
ls -l uboot-netgear-rnd2.mtd0.kwb

Erase and flash
flash_erase /dev/mtd0 0 4
nandwrite  /dev/mtd0 uboot-netgear-rnd2.mtd0.kwb
If there is error, please post the log.

Reboot and see if it starts from NAND.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 06:22AM
bodhi,

Super! I write original flash and uboot works good without kwboot. Power Button working good! Unbricked!
But, Im boot not from USB system, only from NAND.... how can I setup env and write env to flash with usb booting ?

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

U-Boot 1.1.4 (Dec 18 2018 - 17:25:25) Marvell version: 3.4.27
Netgear version: Uboot-1_1_4-NetgearDUOV3-V1008

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

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

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


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

Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 

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

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

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

Reading data from 0x17ff800 -- 100% complete.
 16777216 bytes read: OK
## Booting image at 01200000 ...
   Image Name:   Linux-2.6.31.8.duov2
   Created:      2013-04-18  10:25:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3442360 Bytes =  3.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02000000 ...
   Image Name:   initrd
   Created:      2013-04-19   3:06:56 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4382833 Bytes =  4.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux................................................................................................................................................................................................................... done, booting the kernel.
Linux version 2.6.31.8.duov2 (root@NSBU-NJ) (gcc version 4.3.2 (sdk3.2rc1-ct-ng-1.4.1) ) #1 Thu Apr 18 18:24:47 HKT 2013
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 65024
Kernel command line: console=ttyS0,115200 reason=normal mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2);
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 242176KB available (6108K code, 622K data, 128K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1599.07 BogoMIPS (lpj=7995392)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :  1454.400 MB/sec
   8regs     :  1103.200 MB/sec
   32regs    :  1237.200 MB/sec
xor: using function: arm4regs (1454.400 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB 
PEX0_IO ....base f2000000, size   1MB 
PEX1_MEM ....base e8000000, size 128MB 
PEX1_IO ....base f2100000, size   1MB 
INTER_REGS ....base f1000000, size   1MB 
NFLASH_CS ....base fa000000, size   2MB 
SPI_CS ....base f4000000, size  16MB 
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB 

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- DB-88F6282A-BP  Soc: MV88F6282 Rev 1 LE

 Detected Tclk 200000000 and SysClk 533333333 
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c8002cc0
PEX0 interface detected Link X1
PEX1 interface detected no Link.
PCI: bus0: Fast back to back transfers disabled
pci 0000:01:01.0: PME# supported from D0 D3hot D3cold
pci 0000:01:01.0: PME# disabled
PCI: bus1: Fast back to back transfers disabled
PCI: bus2: Fast back to back transfers disabled
PCI: bus3: Fast back to back transfers enabled
pci 0000:02:01.0: PCI bridge, secondary bus 0000:03
pci 0000:02:01.0:   IO window: disabled
pci 0000:02:01.0:   MEM window: disabled
pci 0000:02:01.0:   PREFETCH window: disabled
pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
pci 0000:00:01.0:   IO window: disabled
pci 0000:00:01.0:   MEM window: 0xe0000000-0xe00fffff
pci 0000:00:01.0:   PREFETCH window: disabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1    123 MB/s
raid6: int32x2    158 MB/s
raid6: int32x4    173 MB/s
raid6: int32x8    132 MB/s
raid6: using algorithm int32x4 (173 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Unpacking initramfs...
Freeing initrd memory: 4280K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
cpufreq: Init kirkwood cpufreq driver
XOR registered 4 channels
XOR 2nd invalidate WA enabled
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
msgmni has been set to 481
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 1 Giga ports supported
  o Multi RX Queue support - 4 RX queues
  o Multi TX Queue support - 2 TX Queues
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Enabled)
  o SKB Recycle supported - (Enabled)
  o Gateway support enabled
     o Using Marvell Header Mode
     o L2 IGMP support
  o Rx descripors: q0=128 q1=128 q2=128 q3=128
  o Tx descripors: q0=532 q1=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0

mvFpRuleDb (c8d54000): 2048 entries, 8192 bytes
Intel(R) PRO/1000 Network Driver - version 7.3.21-k3-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2
e1000e: Copyright (c) 1999-2008 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Using Hamming 1-bit ECC for NAND device
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 726 at 0x000005ac0000
mtd: no mtd-id
5 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 5 MTD partitions on "nand_mtd":
0x000000000000-0x000000180000 : "u-boot"
0x000000180000-0x0000001a0000 : "u-boot-env"
0x000000200000-0x000000800000 : "uImage"
0x000000800000-0x000001800000 : "minirootfs"
0x000001800000-0x000008000000 : "jffs2"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
xhci_hcd 0000:01:01.0: xHCI Host Controller
xhci_hcd 0000:01:01.0: new USB bus registered, assigned bus number 2
xhci_hcd 0000:01:01.0: irq 9, io mem 0xe0000000
xhci_hcd 0000:01:01.0: Failed to enable MSI-X
xhci_hcd 0000:01:01.0: failed to allocate MSI entry
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
xhci_hcd 0000:01:01.0: xHCI Host Controller
xhci_hcd 0000:01:01.0: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
pwrctl: dev_t_NO. = 0xdd00000, major = 221
USB 3.0 Port Power On, Waiting for 3 seconds
HDD_pwrctl_init
MPP26 Low.
MPP28 Low.
Request the irq HDDpwrctrl success.
Just power off HDD(2).
Just power off HDD(1).
Todo: mknod /dev/buttons c 253 0
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
Registered led device: backup
Registered led device: sys
Registered led device: sys_fail
Registered led device: SATA1_act
Registered led device: SATA2_act
Registered led device: power
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
IPv4 over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP bic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
tunl0: Disabled Privacy Extensions
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
rtc mv_rtc: setting system clock to 2019-02-18 15:09:00 UTC (1550502540)
Freeing init memory: 128K

Starting the boot process...
systype=12
Loading kernel modules...armvpd: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ReadyNAS Pro VPD device driver init...
Tuxera NTFS driver 3011.10.19 [Flags: R/W MODULE].
usb 1-1: new high speed USB device number 2 using ehci_marvell
eth0: started
done
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
pwrctl: dev_t_NO. = 0xdd00000, major = 221
USB 3.0 Port Power On, Waiting for 3 seconds
HDD_pwrctl_init
MPP26 Low.
MPP28 Low.
Request the irq HDDpwrctrl success.
Just power off HDD(2).
Just power off HDD(1).
Todo: mknod /dev/buttons c 253 0
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
Registered led device: backup
Registered led device: sys
Registered led device: sys_fail
Registered led device: SATA1_act
Registered led device: SATA2_act
Registered led device: power
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
IPv4 over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP bic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
tunl0: Disabled Privacy Extensions
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
rtc mv_rtc: setting system clock to 2019-02-18 15:17:07 UTC (1550503027)
Freeing init memory: 128K

Starting the boot process...
systype=12
Loading kernel modules...armvpd: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ReadyNAS Pro VPD device driver init...
Tuxera NTFS driver 3011.10.19 [Flags: R/W MODULE].
usb 1-1: new high speed USB device number 2 using ehci_marvell
eth0: started
done
ERROR: No disks detected!
Bringing up network...done
Extracting supplemental utilities...done
/bin/ash: can't access tty; job control turned off
~ # 
Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 06:38AM
Cool!

Repeat the envs you did.

Power up, interrupt serial console, and

setenv mainlineLinux yes
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10  mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2) earlyprintk=serial'
setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
setenv bootcmd_stock 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'
boot

After booting into Debian, you can set them with fw_setenv (instead of setenv) permanently.

fw_setenv mainlineLinux yes
fw_setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
fw_setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
fw_setenv set_bootargs 'setenv bootargs 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) earlyprintk=serial'
fw_setenv bootcmd_exec 'usb start; run set_bootargs; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
fw_setenv bootcmd_stock 'nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000'
fw_setenv bootcmd 'run bootcmd_exec; run bootcmd_stock; reset'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 06:46AM
bodhi,


WIN!

Many thanks!!!!
Re: How to unbrick the Netgear Ready NAS Duo v2
February 17, 2019 03:12PM
Awesome!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
July 24, 2019 04:32PM
Some time passed and I have another one problem :)

I want install wireguard vpn on my device, but I can't compile module without headers 4.12.1-kirkwood-tld-1 =(

Can you help me with this little issue ?

#  4.12.1-kirkwood-tld-1 dkms status                           
wireguard, 0.0.20190702: added
# 4.12.1-kirkwood-tld-1 dkms autoinstall                      
Error! echo
Your kernel headers for kernel 4.12.1-kirkwood-tld-1 cannot be found at
/lib/modules/4.12.1-kirkwood-tld-1/build or /lib/modules/4.12.1-kirkwood-tld-1/source.
Re: How to unbrick the Netgear Ready NAS Duo v2
July 24, 2019 11:44PM
yury_minsk,

This is something I meant to look into, but have not. Some users have reported problem with building module on the rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

Try manually create the diretory and copy the headers file to that:

mkdir  /lib/modules/4.12.1-kirkwood-tld-1/build
cp -a /boot/linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb  /lib/modules/4.12.1-kirkwood-tld-1/build/

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
July 25, 2019 01:21AM
Hello,

Iam install headers from boot dir, create symlinks to folder with builded sources for module. re-run dkms compilation, and have new throubles ;)

Maybe you know what I can fix this ?


DKMS make.log for wireguard-0.0.20190702 for kernel 4.12.1-kirkwood-tld-1 (armv5tel)
Thu Jul 25 09:15:31 +03 2019
make: Entering directory '/usr/src/linux-headers-4.12.1-kirkwood-tld-1'
  LD      /var/lib/dkms/wireguard/0.0.20190702/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190702/build/main.o
In file included from ./include/linux/netfilter.h:7:0,
                 from ./include/linux/netfilter/nf_conntrack_tuple_common.h:5,
                 from ./include/linux/netfilter/nf_conntrack_dccp.h:28,
                 from ./include/net/netns/conntrack.h:10,
                 from ./include/net/net_namespace.h:25,
                 from ./include/net/genetlink.h:6,
                 from /var/lib/dkms/wireguard/0.0.20190702/build/compat/compat.h:665,
                 from <command-line>:0:
./include/linux/if.h:27:54: fatal error: sys/socket.h: No such file or directory
 #include <sys/socket.h>   /* for struct sockaddr.  */
                                                      ^
compilation terminated.
scripts/Makefile.build:302: recipe for target '/var/lib/dkms/wireguard/0.0.20190702/build/main.o' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/main.o] Error 1
Makefile:1512: recipe for target '_module_/var/lib/dkms/wireguard/0.0.20190702/build' failed
make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.12.1-kirkwood-tld-1'/code]
Re: How to unbrick the Netgear Ready NAS Duo v2
July 25, 2019 03:29AM
yury_minsk,

Quote

./include/linux/if.h:27:54: fatal error: sys/socket.h: No such file or directory
#include <sys/socket.h> /* for struct sockaddr. */
^
compilation terminated.
scripts/Makefile.build:302: recipe for target '/var/lib/dkms/wireguard/0.0.20190702/build/main.o' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190702/build/main.o] Error 1
Makefile:1512: recipe for target '_module_/var/lib/dkms/wireguard/0.0.20190702/build' failed
make: *** [_module_/var/lib/dkms/wireguard/0.0.20190702/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.12.1-kirkwood-tld-1'/code]

That's what I've refered to above. I have not found time to look into this. Usually it is just an extra option (environment path) need to be set in the build environment.

Some users in this forum were successfully compiled modules with some extra steps. I can't recall where the post was.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
July 27, 2021 07:41PM
Added this topic to the Wiki thread

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

Quote

Unbricking with Serial Console & JTAG console

How to unbrick your box using serial console with kwboot
Repair Pogo E02 with Raspberry PI (JTAG) and OpenOCD
Serial Port connector - what are people using to make it work
Serial Console hookup - GoFlex Net (external link)
Serial Console hookup - Pogoplug E02 and Pogoplug Pro V3 (external link)
OSX Serial/Net Console
Use Phone Jack - Phone Jack Serial Console Pics
Adding serial connector to Pogoplug Mobile (external link)
WD Mycloud EX2100/4100 Serial Console pic1, also pic2, pic3
Dreamplug Serial Console
kwboot on Mac OSX 10
Unbrick a Pogoplug Pro v3 OXNAS by flashing u-boot in serial console
Unbricking Synology Diskstation DS414 - See also the working thread for this unbricking session
Unbricking the Netgear Ready NAS Duo v2
Unbricking (Restore Factory Firmware) Netgear ReadyNAS RN102/104

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 10, 2021 02:19PM
Hi folks,

Stuck in similar situation, can someone help me please?
After working ok for years with Debian on-board, my NAS stuck i boot loop after I've added 2nd disk today.
If I manually pause the boot and enter "nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000" it boots ok from disk. But after a restart it goes in bootloop again.
What to do please?
Re: How to unbrick the Netgear Ready NAS Duo v2
September 10, 2021 05:00PM
egor.tio,

> If I manually pause the boot and enter "nand
> read.e 0x1200000 0x200000 0x600000;nand read.e
> 0x2000000 0x800000 0x1000000;bootm 0x1200000
> 0x2000000" it boots ok from disk. But after a
> restart it goes in bootloop again.
> What to do please?

Power up, interrupt serial console and

printenv
boot
And post the entire log (from u-boot banner until the 1st boot loop).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 11, 2021 01:31AM
Out of luck today - restarted NAS and now it stuck even before the moment where I could stop boot sequence:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6282A-BP LE

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

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

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

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


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

Net:   egiga0 [PRIME]

I've tried to start it with Backup button pressed - same picture...
Re: How to unbrick the Netgear Ready NAS Duo v2
September 11, 2021 02:12AM
Managed to boot it with kwboot and uboot.bin image found in this forum. Here is the output of booting and printenv:
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Mar 30 2011 - 17:54:31) Marvell version: 3.4.27
USISH-SMB Ver: topkick1281p2-001-007-20101210

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

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

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=192.168.58.21
serverip=192.168.58.135
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=no
console=console=ttyS0,115200
CASset=min
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethaddr=2c:b0:5d:bf:04:50
ethact=egiga0
arcNumber=11
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2); mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2); mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2); mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2);
bootcmd=usb start;fatload usb 0:1 0x1200000 /uImage-recovery;fatload usb 0:1 0x2000000 /initrd-recovery.gz;bootm 1200000 2000000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no

Environment size: 1792/131068 bytes

Will wait patiently for your advise :-)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 11, 2021 02:18AM
egor.tio,

> Managed to boot it with kwboot and uboot.bin image
> found in this forum.

Cool!

> Here is the output of booting
> and printenv:

> Hit any key to stop autoboot: 0

> Marvell>> printenv

Go ahead and boot

boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 11, 2021 02:24AM
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 1 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found
** Can't read from device 0 **

** Unable to use usb 0:1 for fatload **
** Can't read from device 0 **

** Unable to use usb 0:1 for fatload **
## Booting image at 01200000 ...
Bad Magic Number
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done

before that I could load Debian from same point with
nand read.e 0x1200000 0x200000 0x600000;nand read.e 0x2000000 0x800000 0x1000000;bootm 0x1200000 0x2000000
Re: How to unbrick the Netgear Ready NAS Duo v2
September 11, 2021 02:26AM
printenv now has some "install_mode=true" on the last line:
baudrate=115200
loads_echo=0
ipaddr=192.168.58.21
serverip=192.168.58.135
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=no
console=console=ttyS0,115200
CASset=min
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethaddr=2c:b0:5d:bf:04:50
ethact=egiga0
arcNumber=11
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2); mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2); mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2); mtdparts=nand_mtd:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2);
bootcmd=usb start;fatload usb 0:1 0x1200000 /uImage-recovery;fatload usb 0:1 0x2000000 /initrd-recovery.gz;bootm 1200000 2000000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
install_mode=true

Environment size: 1810/131068 bytes



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

With the Debian rootfs on USB drive. kwboot, interrupt serial console and

setenv install_mode

And then set up the envs to boot Debian rootfs on USB (this instruction is inthe Wiki thread):

setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'

and
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to unbrick the Netgear Ready NAS Duo v2
September 12, 2021 12:45AM
But if I want to continue boot from NAND or this option won't work anymore?
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: