I use OpenWRT on the MikroTik RB951G-2HnD.
But the recent devices I did receive do have the problem that I cannot flash them anymore. They boot as it should with the ram image but when I perform the
sysupgrade -n image-name.bin it does nothing and after a powercycle it just load RouterOS again.
I compared versions with an older original device which works as expected:
RouterOS version info on the working device is: v6.44.5 where the version on the not working device is v6.46.4 I cannot downgrade below v6.46.1 so I cannot tell if this is the cause.
When I boot the ram image and compare the both bootlogs with dmesg. Then I see a difference in the Nand Flash Controller.
The output of the working one:
... [ 4.216908] bootconsole [early0] disabled [ 4.232674] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xf1 [ 4.239292] nand: Toshiba NAND 128MiB 3,3V 8-bit [ 4.244078] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 4.251934] Scanning device for bad blocks [ 4.363426] Bad eraseblock 768 at 0x000006000000 [ 4.424183] Creating 3 MTD partitions on "ar934x-nfc": [ 4.429508] 0x000000000000-0x000000040000 : "booter" [ 4.456596] 0x000000040000-0x000000400000 : "kernel" [ 4.483654] 0x000000400000-0x000008000000 : "ubi" [ 4.513761] libphy: Fixed MDIO Bus: probed ...
The output of the failing one:
... [ 4.216765] bootconsole [early0] disabled [ 4.232570] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xf1 [ 4.239186] nand: ESMT NAND 128MiB 3,3V 8-bit [ 4.243700] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 32 [ 4.251528] ar934x-nfc ar934x-nfc: unsupported OOB size: 32 bytes [ 4.257832] ar934x-nfc ar934x-nfc: init tail failed, err:-6 [ 4.264503] libphy: Fixed MDIO Bus: probed ...
If I do a:
cat /proc/mtd on the failing device I get:
root@OpenWrt:/proc# cat /proc/mtd dev: size erasesize name root@OpenWrt:/proc#
While performing it on the working device I get:
root@OpenWrt:~# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00020000 "booter" mtd1: 003c0000 00020000 "kernel" mtd2: 07c00000 00020000 "ubi" root@OpenWrt:~#
I've got the same results with a own compiled 18.06 version and the current 19.07.03 version from the TOH page.
So I think the problem is caused because the NAND controller is changed and the current NAND controller is not supported yet?
I would like to see a confirmation that I'm on the right track and then I can use some help to get support for the changed NAND controller. Or any other direction to solve the problem would be grateful.