Installing OpenWrt on RB2011UiAS-2HnD-IN fails

Hi,
I am trying to install openwert to mikrotik RB2011UiAS-2HnD-IN, but it fails with:

root@OpenWrt:/tmp# sysupgrade -n openwrt-18.06.1-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin
Image metadata not found
Commencing upgrade. Closing all shell sessions.
Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.

Sysupgrade with option F not helping. I used openwrt-18.06.1-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf for RAM boot. I tried lede-17.01.5-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf, but I did not even boot over tftp.

https://openwrt.org/toh/hwdata/mikrotik/mikrotik_rb2011uias-2hnd-in
This page says:
Supported Since Rel: 14.07
Supported Current Rel: 18.06.1

Please have anyone some idea what to do?

EDIT:
After sysupgrade is router continuously rebooting.

Which instructions are you following?
I'm asking because the instructions on https://openwrt.org/toh/mikrotik/rb2011uias seem to be a bit old (mentioning 05/2015) and probably could need and overhaul (or confirmation that they are still up to date).

I followed common procedure. https://openwrt.org/toh/mikrotik/common
I downloaded lastest initramfs-lzma.elf and sysupgrade.bin
DHCP+TFTP on my pc -> initramfs to mikrotik -> scp sysupgrade to /tmp a then run sysupgrade -n sysupgrade.bin thru ssh.

Seeing the amount of recent changes to this page, it should be reasonably up to date (more than the RB2011 devicepage).

Why do you call this a fail?

What happens when you try to connect via browser?
What happens when you try to connect via ssh?

Because router is continuously rebooting. So ssh nor http is not possible.

I have a few of this exact model in the office.
Will check it tomorrow.

This model has a rj45 plug for uart on the front.
Any chance of checking it?

Thanks

Terminal ready


RouterBOOT booter 3.41

RouterBoard 2011UiAS-2HnD

CPU frequency: 600 MHz
 Memory speed: 200 MHz
  Memory size: 128 MiB
    NAND size: 128 MiB

Press any key within 2 seconds to enter setup..

loading kernel... OK
setting up elf image... OK
jumping to kernel code


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 4.9.120 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7101-a63e38b) ) #0 Wed Aug 15 20:42:39 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 3
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: lcd_ctrl=84 parts=1 boot_part_size=4194304 gpio=249403 HZ=300000000 mem=128M kmac=B8:69:F4:A0:F6:F4 board=2011r5 board=2011r5 ver=3.41 hw_opt=00718004 boot=1 mlc=11 console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124868K/131072K available (3578K kernel code, 153K rwdata, 452K rodata, 224K init, 217K bss, 6204K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:600.000MHz, DDR:400.000MHz, AHB:400.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008866] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.081949] pid_max: default: 32768 minimum: 301
[    0.087296] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094812] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105753] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116957] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.125104] NET: Registered protocol family 16
[    0.134974] MIPS: machine is Mikrotik RouterBOARD 2011UiAS-2HnD
[    0.627381] Can't analyze schedule() prologue at 803dae54
[    0.646481] clocksource: Switched to clocksource MIPS
[    0.653287] NET: Registered protocol family 2
[    0.659223] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.667194] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.674419] TCP: Hash tables configured (established 1024 bind 1024)
[    0.681732] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.688398] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.695758] NET: Registered protocol family 1
[    0.704535] Crashlog allocated RAM at address 0x3f00000
[    0.711584] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.726159] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.732818] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.753912] io scheduler noop registered
[    0.758413] io scheduler deadline registered (default)
[    0.764663] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.774603] console [ttyS0] disabled
[    0.798829] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.808633] console [ttyS0] enabled
[    0.808633] console [ttyS0] enabled
[    0.816180] bootconsole [early0] disabled
[    0.816180] bootconsole [early0] disabled
[    0.830673] m25p80 spi0.0: found w25x05, expected m25p80
[    0.846991] m25p80 spi0.0: w25x05 (64 Kbytes)
[    0.851954] Creating 4 MTD partitions on "spi0.0":
[    0.856968] 0x000000000000-0x00000000c000 : "routerboot"
[    0.864349] 0x00000000c000-0x00000000d000 : "hard_config"
[    0.872025] 0x00000000d000-0x00000000e000 : "bios"
[    0.879053] 0x00000000e000-0x00000000f000 : "soft_config"
[    0.888048] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.894618] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.899428] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.907298] Scanning device for bad blocks
[    0.911918] Bad eraseblock 2 at 0x000000040000
[    0.916606] Bad eraseblock 3 at 0x000000060000
[    0.921262] Bad eraseblock 4 at 0x000000080000
[    0.925921] Bad eraseblock 5 at 0x0000000a0000
[    0.930599] Bad eraseblock 6 at 0x0000000c0000
[    0.935258] Bad eraseblock 7 at 0x0000000e0000
[    0.939935] Bad eraseblock 8 at 0x000000100000
[    0.944594] Bad eraseblock 9 at 0x000000120000
[    0.949270] Bad eraseblock 10 at 0x000000140000
[    0.954021] Bad eraseblock 11 at 0x000000160000
[    0.958787] Bad eraseblock 12 at 0x000000180000
[    0.963536] Bad eraseblock 13 at 0x0000001a0000
[    0.972316] random: fast init done
[    1.107799] Creating 3 MTD partitions on "ar934x-nfc":
[    1.113135] 0x000000000000-0x000000040000 : "booter"
[    1.120213] 0x000000040000-0x000000400000 : "kernel"
[    1.127505] 0x000000400000-0x000008000000 : "ubi"
[    1.138016] libphy: Fixed MDIO Bus: probed
[    1.155157] libphy: ag71xx_mdio: probed
[    1.168148] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    1.884767] libphy: ag71xx_mdio: probed
[    2.517940] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    2.529649] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    3.158251] ag71xx-mdio.1: Found an AR934X built-in switch
[    3.210665] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    3.218262] NET: Registered protocol family 10
[    3.226183] NET: Registered protocol family 17
[    3.230894] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.244292] 8021q: 802.1Q VLAN Support v1.8
[    3.252362] UBI: auto-attach mtd6
[    3.255822] ubi0: attaching mtd6
[    3.667457] ubi0: fixable bit-flip detected at PEB 255
[    3.673723] __nand_correct_data: uncorrectable ECC error
[    3.679238] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 255:512, read only 64 bytes, retry
[    3.691960] __nand_correct_data: uncorrectable ECC error
[    3.697476] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 255:512, read only 64 bytes, retry
[    3.710193] __nand_correct_data: uncorrectable ECC error
[    3.715694] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 255:512, read only 64 bytes, retry
[    3.728425] __nand_correct_data: uncorrectable ECC error
[    3.733928] ubi0 error: 0x8029d150: error -77 (ECC error) while reading 64 bytes from PEB 255:512, read 64 bytes
[    3.744456] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.120 #0
[    3.750482] Stack : 804b7692 00000032 00000000 00000001 00000000 00000000 00000000 00000000
[    3.759187]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.767888]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.776588]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.785279]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.793979]         ...
[    3.796527] Call Trace:[    3.798885] [<8006b0dc>] 0x8006b0dc
[    3.802487] [<8006b0dc>] 0x8006b0dc
[    3.806087] [<8029d158>] 0x8029d158
[    3.809706] [<8029d6b4>] 0x8029d6b4
[    3.813311] [<8029ce3c>] 0x8029ce3c
[    3.816922] [<802a25c0>] 0x802a25c0
[    3.820525] [<80297834>] 0x80297834
[    3.824124] [<802a35ec>] 0x802a35ec
[    3.827738] [<80297848>] 0x80297848
[    3.831339] [<800a931c>] 0x800a931c
[    3.834938] [<80267734>] 0x80267734
[    3.838554] [<804910f8>] 0x804910f8
[    3.842153] [<80490e08>] 0x80490e08
[    3.845755] [<80478230>] 0x80478230
[    3.849365] [<800609f4>] 0x800609f4
[    3.852968] [<802698b8>] 0x802698b8
[    3.856580] [<80097b4c>] 0x80097b4c
[    3.860179] [<800a36d8>] 0x800a36d8
[    3.863784] [<80478d0c>] 0x80478d0c
[    3.867394] [<80478230>] 0x80478230
[    3.870994] [<803d91d8>] 0x803d91d8
[    3.874597] [<803d91e8>] 0x803d91e8
[    3.878208] [<803d91d8>] 0x803d91d8
[    3.881809] [<80066278>] 0x80066278
[    3.885415] 
[    3.887646] ubi0: fixable bit-flip detected at PEB 256
[    3.893905] __nand_correct_data: uncorrectable ECC error
[    3.899419] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 256:512, read only 64 bytes, retry
[    3.912143] __nand_correct_data: uncorrectable ECC error
[    3.917658] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 256:512, read only 64 bytes, retry
[    3.930375] __nand_correct_data: uncorrectable ECC error
[    3.935877] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 256:512, read only 64 bytes, retry
[    3.959469] __nand_correct_data: uncorrectable ECC error
[    3.964971] ubi0 error: 0x8029d150: error -77 (ECC error) while reading 64 bytes from PEB 256:512, read 64 bytes
[    3.975499] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.120 #0
[    3.981533] Stack : 804b7692 00000032 00000000 00000001 00000000 00000000 00000000 00000000
[    3.990238]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.998939]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.007639]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.016330]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.025030]         ...
[    4.027574] Call Trace:[    4.029927] [<8006b0dc>] 0x8006b0dc
[    4.033529] [<8006b0dc>] 0x8006b0dc
[    4.037142] [<8029d158>] 0x8029d158
[    4.040745] [<8029d6b4>] 0x8029d6b4
[    4.044343] [<8029ce3c>] 0x8029ce3c
[    4.047957] [<802a25c0>] 0x802a25c0
[    4.051558] [<80297834>] 0x80297834
[    4.055157] [<802a35ec>] 0x802a35ec
[    4.058773] [<80297848>] 0x80297848
[    4.062371] [<800a931c>] 0x800a931c
[    4.065973] [<80267734>] 0x80267734
[    4.069588] [<804910f8>] 0x804910f8
[    4.073187] [<80490e08>] 0x80490e08
[    4.076799] [<80478230>] 0x80478230
[    4.080398] [<800609f4>] 0x800609f4
[    4.084001] [<802698b8>] 0x802698b8
[    4.087614] [<80097b4c>] 0x80097b4c
[    4.091213] [<800a36d8>] 0x800a36d8
[    4.094817] [<80478d0c>] 0x80478d0c
[    4.098429] [<80478230>] 0x80478230
[    4.102027] [<803d91d8>] 0x803d91d8
[    4.105630] [<803d91e8>] 0x803d91e8
[    4.109243] [<803d91d8>] 0x803d91d8
[    4.112842] [<80066278>] 0x80066278
[    4.116448] 
[    4.130076] ubi0: fixable bit-flip detected at PEB 257
[    4.136339] __nand_correct_data: uncorrectable ECC error
[    4.141852] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 257:512, read only 64 bytes, retry
[    4.154574] __nand_correct_data: uncorrectable ECC error
[    4.160090] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 257:512, read only 64 bytes, retry
[    4.172807] __nand_correct_data: uncorrectable ECC error
[    4.178324] ubi0 warning: 0x8029d130: error -77 (ECC error) while reading 64 bytes from PEB 257:512, read only 64 bytes, retry
[    4.191040] __nand_correct_data: uncorrectable ECC error
[    4.196555] ubi0 error: 0x8029d150: error -77 (ECC error) while reading 64 bytes from PEB 257:512, read 64 bytes
[    4.207072] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.120 #0
[    4.213093] Stack : 804b7692 00000032 00000000 00000001 00000000 00000000 00000000 00000000
[    4.221792]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.230492]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.239192]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.247893]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.256593]         ...
[    4.259129] Call Trace:[    4.261480] [<8006b0dc>] 0x8006b0dc

Did you use the Erase or Format functions in the Routerboot? (DON'T)

I also have this issue on 1 of my few devices which suffers from a bad erase block in NAND.
afaik, it's not possible to recover from it as the bad PEB data on the NAND is probably lost, meaning the system has no clue which blocks on the physical flash is working properly.

Another identical device:

RouterBOOT booter 3.24

RouterBoard 2011UiAS-2HnD

CPU frequency: 600 MHz
 Memory speed: 200 MHz
  Memory size: 128 MiB
    NAND size: 128 MiB

Press any key within 2 seconds to enter setup..

loading kernel from nand... OK
setting up elf image... OK
jumping to kernel code


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 4.9.120 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7101-a63e38b) ) #0 Wed Aug 15 20:42:39 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 3
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: lcd_ctrl=84 parts=1 boot_part_size=4194304 gpio=249387 HZ=300000000 mem=128M kmac=E4:8D:8C:02:EE:7C board=2011r5 ver=3.24 hw_opt=00718004 boot=1 mlc=9 console=ttyS0,11d
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124868K/131072K available (3578K kernel code, 153K rwdata, 452K rodata, 224K init, 217K bss, 6204K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:600.000MHz, DDR:400.000MHz, AHB:400.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008867] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.081948] pid_max: default: 32768 minimum: 301
[    0.087298] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094812] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105739] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116940] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.125091] NET: Registered protocol family 16
[    0.134953] MIPS: machine is Mikrotik RouterBOARD 2011UiAS-2HnD
[    0.627475] Can't analyze schedule() prologue at 803dae54
[    0.646724] clocksource: Switched to clocksource MIPS
[    0.653535] NET: Registered protocol family 2
[    0.659480] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.667448] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.674672] TCP: Hash tables configured (established 1024 bind 1024)
[    0.681980] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.688648] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.696019] NET: Registered protocol family 1
[    0.704805] Crashlog allocated RAM at address 0x3f00000
[    0.711843] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.726417] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.733078] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.754200] io scheduler noop registered
[    0.758700] io scheduler deadline registered (default)
[    0.764949] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.774889] console [ttyS0] disabled
[    0.799119] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.808919] console [ttyS0] enabled
[    0.808919] console [ttyS0] enabled
[    0.816467] bootconsole [early0] disabled
[    0.816467] bootconsole [early0] disabled
[    0.830970] m25p80 spi0.0: found w25x05, expected m25p80
[    0.847601] m25p80 spi0.0: w25x05 (64 Kbytes)
[    0.852559] Creating 4 MTD partitions on "spi0.0":
[    0.857570] 0x000000000000-0x00000000c000 : "routerboot"
[    0.864970] 0x00000000c000-0x00000000d000 : "hard_config"
[    0.872604] 0x00000000d000-0x00000000e000 : "bios"
[    0.879624] 0x00000000e000-0x00000000f000 : "soft_config"
[    0.888614] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xf1
[    0.895183] nand: Winbond NAND 128MiB 3,3V 8-bit
[    0.899991] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.907866] Scanning device for bad blocks
[    0.916234] random: fast init done
[    0.968226] Creating 3 MTD partitions on "ar934x-nfc":
[    0.973559] 0x000000000000-0x000000040000 : "booter"
[    0.980625] 0x000000040000-0x000000400000 : "kernel"
[    0.987944] 0x000000400000-0x000008000000 : "ubi"
[    0.998496] libphy: Fixed MDIO Bus: probed
[    1.015557] libphy: ag71xx_mdio: probed
[    1.028550] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    1.744981] libphy: ag71xx_mdio: probed
[    2.378182] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    2.389890] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    3.018492] ag71xx-mdio.1: Found an AR934X built-in switch
[    3.070910] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    3.078515] NET: Registered protocol family 10
[    3.086442] NET: Registered protocol family 17
[    3.091155] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.104550] 8021q: 802.1Q VLAN Support v1.8
[    3.112575] UBI: auto-attach mtd6
[    3.116029] ubi0: attaching mtd6
[    4.641675] ubi0: scanning is finished
[    4.663350] ubi0: attached mtd6 (name "ubi", size 124 MiB)
[    4.669078] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    4.676178] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    4.683108] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    4.690130] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[    4.696329] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    4.703797] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 248002651
[    4.713149] ubi0: available PEBs: 0, total reserved PEBs: 992, PEBs reserved for bad PEB handling: 20
[    4.722734] ubi0: background thread "ubi_bgt0d" started, PID 368
[    4.730876] block ubiblock0_1: created from ubi0:1(rootfs)
[    4.736551] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    4.753277] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    4.761747] Freeing unused kernel memory: 224K
[    4.766339] This architecture does not have kernel memory protection.
[    5.414874] init: Console is alive
[    5.418697] init: - watchdog -
[    5.634778] random: crng init done
[    6.342746] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.408649] usbcore: registered new interface driver usbfs
[    6.414406] usbcore: registered new interface driver hub
[    6.420042] usbcore: registered new device driver usb
[    6.430761] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.439123] ehci-platform: EHCI generic platform driver
[    6.447275] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.454945] ohci-platform: OHCI generic platform driver
[    6.461125] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.479066] init: - preinit -
[    7.169208] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.178327] eth0: link up (1000Mbps/Full duplex)
[    8.183302] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.410243] UBIFS (ubi0:2): default file-system created
[   10.417116] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 436
[   10.548467] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   10.556569] UBIFS (ubi0:2): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.566846] UBIFS (ubi0:2): FS size: 119218176 bytes (113 MiB, 924 LEBs), journal size 5935104 bytes (5 MiB, 46 LEBs)
[   10.577810] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   10.584650] UBIFS (ubi0:2): media format: w4/r0 (latest is w4/r0), UUID EEC5D716-1CC7-48AE-95AC-D0AFE17A9B01, small LPT model
[   10.599244] mount_root: overlay filesystem has not been fully initialized yet
[   10.607355] mount_root: switching to ubifs overlay
[   10.638272] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.743256] eth0: link down
[   10.758327] procd: - early -
[   10.761411] procd: - watchdog -
[   11.482628] procd: - watchdog -
[   11.486138] procd: - ubus -
[   11.789793] procd: - init -
Please press Enter to activate this console.
[   12.064223] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.075546] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.093812] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   12.102142] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   12.112117] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.126703] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.205338] xt_time: kernel timezone is -0000
[   12.271091] PPP generic driver version 2.4.2
[   12.278016] NET: Registered protocol family 24
[   12.341656] ieee80211 phy0: Atheros AR9340 Rev:3 mem=0xb8100000, irq=47
[   12.380174] kmodloader: done loading kernel modules from /etc/modules.d/*
[   29.131980] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   29.176970] eth0: link up (1000Mbps/Full duplex)
[   29.184387] br-lan: port 1(eth0.1) entered blocking state
[   29.190035] br-lan: port 1(eth0.1) entered disabled state
[   29.196006] device eth0.1 entered promiscuous mode
[   29.201003] device eth0 entered promiscuous mode
[   29.234918] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   29.321727] br-lan: port 1(eth0.1) entered blocking state
[   29.327368] br-lan: port 1(eth0.1) entered forwarding state
[   29.333291] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   29.754417] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   29.808548] br-lan: port 2(eth1.1) entered blocking state
[   29.814143] br-lan: port 2(eth1.1) entered disabled state
[   29.820177] device eth1.1 entered promiscuous mode
[   29.825132] device eth1 entered promiscuous mode
[   30.176817] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

I tried at RouterBOOT-3.41 option e - format nand, but result is same. I guess I have a new bricked router?

So did you managed to restore the router os, or even did you get openwr to work?

Openwrt not working(probably bad NAND).
I didn't try restore mikrotik os.
I will try to send the router to the complaint.

1 Like

But is the performance good, did you tried qos on the router os?

I didn't test performance nor qos. I not intend use router os. This is the reason why I am on openwrt forum...

I'm planing to buy a mikrotek router to install openwrt on it, i don't like router os btw, also i'm not sure if
i can translate my qos script to mikrotek router os!

Is anybody have success on doing sysupgrade for RB2011UiAS-2HnD-IN for recent versions of OpenWRT? I have AR9344 v3 version, tried to build firmware from source and different stable and snapshot versions. Initframs loads well, Gbit ports works, but after sysupgrade router goes to loop reboot. I'm tried also this solution, but no luck.

yes,
It works on my rb2011's

Do you have serial access?
Can you provide a log?

Thanks

No, i don't have serial access. I'm using Tiny PXE, Putty and WinSCP

@Anantich

I notice you state that initramfs works.
Can you boot that and provide the bootlog? (dmesg)

I might have an idea .. some of these suffer from ECC read issues when accessing the nand flash.

Thanks,

Koen

yeap, you are right - ECC errors

Here is log

@Anantich

Ill add a patch in my staging tree tomorrow morning for this.
Can I ask you to test it then?

Just booting the initramfs should be enough again to see the result.

Regards,

Koen