Unable to flash hAP lite RB941-2nD-TC

The patch has also been merged on openwrt-18.06, so the next stable release will have it: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=aa0aa47aa176133ff302c4a5cea785d971bc26b3

Got a new device and I'm unable to flash, regular or snapshot firmware.

After loaded initfs, and after running sysupgrade commands, I got this error:

root@OpenWrt:~# sysupgrade -v /tmp/openwrt-18.06.1-ar71xx-mikrotik-rb-nor-flash-
16M-squashfs-sysupgrade.bin
Device unknown not supported by this image
Supported devices: rb-750-r2 rb-750up-r2 rb-750p-pbr2 rb-911-2hn rb-911-5hn rb-941-2nd rb-951ui-2nd rb-952ui-5ac2nd rb-962uigs-5hact2hnt rb-lhg-5nd rb-map-2nd rb-mapl-2nd rb-wap-2nd
Image check 'fwtool_check_image' failed.

Here is dmesg output...

root@OpenWrt:~# dmesg
[    0.000000] Linux version 4.14.94 (buildbot@86563e77d0a2) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9103-45a2771)) #0 Tue Jan 22 12:29:46 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 02000000 @ 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-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 8057b940, node_mem_map 81000020
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x47c with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: RESET_MODE=caps bootimage=1 no-uart no-buzzer no-nand parts=1 boot_part_size=16777216 gpio=8537647 HZ=325000000 mem=32M kmac=B8:69:F4:E6:F4:E6 board=H951L board=H951L bver=6.42.1 hw_opt=28284001 boot=0 mlc=11 console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 24464K/32768K available (4125K kernel code, 174K rwdata, 932K rodata, 2120K init, 212K bss, 8304K 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:650.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
[    0.000009] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
[    0.008880] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
[    0.075994] pid_max: default: 32768 minimum: 301
[    0.081469] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.088979] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.099678] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.110904] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.119342] NET: Registered protocol family 16
[    0.129181] MIPS: machine is MikroTik RouterBOARD RB941-2nD
[    0.396309] clocksource: Switched to clocksource MIPS
[    0.403153] NET: Registered protocol family 2
[    0.409136] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.417134] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.424354] TCP: Hash tables configured (established 1024 bind 1024)
[    0.431756] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.438461] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.445848] NET: Registered protocol family 1
[    0.450886] PCI: CLS 0 bytes, default 32
[    2.576321] random: fast init done
[    2.703063] Crashlog allocated RAM at address 0x1f00000
[    2.710580] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    2.723238] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.729913] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.893839] io scheduler noop registered
[    2.898363] io scheduler deadline registered (default)
[    2.904645] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.914123] console [ttyS0] disabled
[    2.938350] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    2.948159] console [ttyS0] enabled
[    2.955707] bootconsole [early0] disabled
[    2.971610] m25p80 spi0.0: found w25q128jv, expected m25p80
[    2.986706] m25p80 spi0.0: w25q128jv (16384 Kbytes)
[    3.039305] Creating 6 MTD partitions on "spi0.0":
[    3.044288] 0x000000000000-0x00000000e000 : "routerboot"
[    3.075258] 0x00000000e000-0x00000000f000 : "hard_config"
[    3.106372] 0x00000000f000-0x000000010000 : "bios"
[    3.136947] 0x000000010000-0x00000001f000 : "routerboot2"
[    3.168066] 0x00000001f000-0x000000020000 : "soft_config"
[    3.199195] 0x000000020000-0x000001000000 : "firmware"
[    3.231059] libphy: Fixed MDIO Bus: probed
[    3.376587] libphy: ag71xx_mdio: probed
[    4.008667] ag71xx-mdio.1: Found an AR934X built-in switch
[    4.062122] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    4.070177] NET: Registered protocol family 10
[    4.079123] Segment Routing with IPv6
[    4.083012] NET: Registered protocol family 17
[    4.087751] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.101156] 8021q: 802.1Q VLAN Support v1.8
[    4.123853] Freeing unused kernel memory: 2120K
[    4.128575] This architecture does not have kernel memory protection.
[    4.151646] init: Console is alive
[    4.155439] init: - watchdog -
[    4.183116] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.193022] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.211070] init: - preinit -
[    4.435836] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.068796] eth0: link up (1000Mbps/Full duplex)
[    6.073613] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.611314] eth0: link down
[    7.627185] procd: - early -
[    7.630317] procd: - watchdog -
[    8.209610] procd: - watchdog -
[    8.213177] procd: - ubus -
[    8.224454] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.266579] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.273662] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.281289] procd: - init -
[    8.470691] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.481942] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.499482] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[    8.507290] Backport generated by backports.git v4.19.7-1-0-g148b072d
[    8.517632] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.532693] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    8.606403] xt_time: kernel timezone is -0000
[    8.674620] PPP generic driver version 2.4.2
[    8.681945] NET: Registered protocol family 24
[    8.735468] ath: EEPROM regdomain: 0x0
[    8.735481] ath: EEPROM indicates default country code should be used
[    8.735484] ath: doing EEPROM country->regdmn map search
[    8.735500] ath: country maps to regdmn code: 0x3a
[    8.735506] ath: Country alpha2 being used: US
[    8.735509] ath: Regpair used: 0x3a
[    8.749632] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    8.751816] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
[    8.796840] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.933012] urandom_read: 5 callbacks suppressed
[    9.933022] random: jshn: uninitialized urandom read (4 bytes read)
[   10.006284] random: jshn: uninitialized urandom read (4 bytes read)
[   18.919325] br-lan: port 1(eth0) entered blocking state
[   18.924738] br-lan: port 1(eth0) entered disabled state
[   18.930581] device eth0 entered promiscuous mode
[   19.003429] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   20.548600] eth0: link up (1000Mbps/Full duplex)
[   20.553435] br-lan: port 1(eth0) entered blocking state
[   20.558877] br-lan: port 1(eth0) entered forwarding state
[   20.616412] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   38.408039] eth0: link down
[   38.411783] br-lan: port 1(eth0) entered disabled state
[   39.938803] eth0: link up (1000Mbps/Full duplex)
[   39.943636] br-lan: port 1(eth0) entered blocking state
[   39.949074] br-lan: port 1(eth0) entered forwarding state
[  129.226371] random: crng init done
[  197.528035] eth0: link down
[  197.531772] br-lan: port 1(eth0) entered disabled state
[  199.568444] eth0: link up (1000Mbps/Full duplex)
[  199.573275] br-lan: port 1(eth0) entered blocking state
[  199.578711] br-lan: port 1(eth0) entered forwarding state
root@OpenWrt:~#

Please advise.

Hi, same problem for me... and if you look at network config, it's messed up... wan is eth1, but eth1 didn't exist, and lan is bridged to eth0. If you look at other dmesg posted earlier, you can see that correct init sequence must create an eth0.1 and eth0.2. I was able also able to force flashing, but it resulted in a brick routerboard (I recovered it with NetInstall).

Yes, I also tried to force flash and I bricked it. :smile:

Any news about this problem? Tried to flash latest 18.06.2 and still won't success.

Edit: I just flashed it with -F flag and it seems to work!

Yeeeeeeeeah!

Edit:

Nope, the interface is messed up. :frowning: There is no switch configured and all ports are LAN. :frowning:

@bachi
@ema
A fix was pushed to master for this board:
can you give it a try?

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=6570f3c93aa4110efd1466a6b89742c2e11d7c11

Hi again,

I'm back because I'm trying to flash another hAP lite RB941-2nD (as well as a hAP mini RB931-2nD) and the images I've been using (including ones that handle the newer revision of flash) don't seem to work. Unlike last time, I can't get the initramfs-kernel.bin to boot up correctly on the device. It gets sent to the device, which appears to reboot but then any attempt to ssh into the device hangs. Since I can't get into the router when once the initramfs-kernel.bin is pushed to it. I'm not sure how to get info on the problem. I'd appreciate any suggestions for how to get it to boot or how to gather info on why it's failing. Thanks!

@xback I wanted to follow up on your post. I compiled images from the snapshot of the commit you linked and after pushing the openwrt-ar71xx-mikrotik-rb-nor-flash-16M-initramfs-kernel.bin file to the router it still hangs and I'm unable to get in with ssh. Is there any information I can gather about my router that might help determine what the problem is?

@jt-moriarty
Ill take a look tomorrow.
Can you send me your .config please?

koen.vandeputte@ncentric.com

Thanks!

As an aside I found some potentially useful information, both the new hAP minis and hAP lites I got are using Winbond 25Q128JVSM for flash instead of Winbond 25Q128FVSG, which the older ones had been using. The distinction seems to be meaningful when mentioned on the wiki for a different MikroTik: https://openwrt.org/toh/mikrotik/mikrotik_rbm33g

Given that there's not a listed installation for the Winbond 25Q128JVSM, does that mean that OpenWRT isn't currently compatible?

Few days ago, I flashed latest Hap lite device with snapshot and it worked just fine, switch also is working properly.

Hello,

I wanted to build Stable, but I don't see 941-2nd in the devices list. am I missing something? any advice, please?

OK, so what's the line on this then?

Hi,

I've spent some days trying to get OpenWRT 18.06.4 to work in a Hap Lite. First I tryied to do so in a old device i had and everything went well.

My problems began when I tried to install it in a brand new device. There is a recapitulation of my tryings:

  • First I tried to install the new firmware with the recommended way sown in the devicepage, installing it in RAM and doing a sysupgrade there. But LUCI says the image is not valid.
  • Then I upgraded the firmware using ssh. Then I found all the ethernet ports are configured as LAN, and the WAN device is not present.
  • Then I tried to install the patch publised in this thread (https://drive.google.com/drive/folders/1znRoqNJ3HX6MUW2ME1sUIS2T2MblvMiU) but the result was the same: The WAN device doesn't work.
  • Then I tried to load the snapshot version and instll LUCI via SSH, and, suprise! Nowadays LUCI doesn't work on snapshot version!!!

So, my question is: Is there any gentleman (or woman) who have compiled the version 18.06.4 with a patch to solve the WAN problem.

As a second option, does anybody know any way to solve the LUCI problem on snapshots.

The third option would be locating and compiling the patch by myself, but I don't know how to do so.

Any help will be appreciated.

Hi @Axl
I guess you already know, but if you've finally managed to flash your device, you don't need to compile a special version. Any LAN port can be configured as a WAN port. Exactly the same as with the original Mikrotik firmware.

Hi @Willy,

I'm not sure I want to laugh or cry. I've been crushing my brain for two weeks trying to solve this problem. I know this can be possible with RouterOS, but I switched to OpenWRT to have a less dificult system to configure. But ease of use usually means less power, and I though this could'nt be possible.

I don't want to seem lazy, but, can you provide me any link explaining how to do so? I was so desperate that I had almost decided to switch to RouterOS again.

Thanks and regards

It was there...Here we go again:

Thanks a lot Willy

Hi
My RB-941 Hap lite already flashed with OpenWRT 18.06 from https://drive.google.com/drive/folders/1znRoqNJ3HX6MUW2ME1sUIS2T2MblvMiU?usp=sharing
first flashed openwrt-ar71xx-mikrotik-rb-nor-flash-16M-initramfs-kernel.bin -success!
and upgrade from Luci or ssh openwrt-ar71xx-mikrotik-rb-nor-flash-16M-squashfs-sysupgrade.bin -my device bricked - bootlooop

another Mikrotik hap lite RB-941 TC flashed this files works perfectly.

What's going on ?

1 Like

Something is happening.

Sadly as 19.07.10 is final, there's no chance of fixing this anymore for a 32mb device.

RouterOS7 runs really well