Hi there,
I have a problem with a mikrotik RB 2011 UiAS-IN v3. The strange thing is, that I have multiple of these devices and it seems, that there are multiple nand controllers out there within the same serial number.
The Problem is, that the second NAND Controller is not recognized in in any version of openWRT.
I did a tftp boot of the device, it starts just fine, but when i logged in, dmesg says:
OpenWrt 19.07.10, r11427-9ce6aa9d8d
[ 4.480677] bootconsole [early0] disabled
[ 4.495941] m25p80 spi0.0: found gd25d05, expected m25p80
[ 4.503442] m25p80 spi0.0: gd25d05 (64 Kbytes)
[ 4.548895] Creating 4 MTD partitions on "spi0.0":
[ 4.553862] 0x000000000000-0x00000000c000 : "routerboot"
[ 4.581228] 0x00000000c000-0x00000000d000 : "hard_config"
[ 4.608663] 0x00000000d000-0x00000000e000 : "bios"
[ 4.635603] 0x00000000e000-0x00000000f000 : "soft_config"
[ 4.664361] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xf1
[ 4.670974] nand: ESMT NAND 128MiB 3,3V 8-bit
[ 4.675491] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 32
**[ 4.683316] ar934x-nfc ar934x-nfc: unsupported OOB size: 32 bytes**
**[ 4.689632] ar934x-nfc ar934x-nfc: init tail failed, err:-6**
[ 4.842029] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
So, there is no sensible mtd config:
cat /proc/mtd
dev: size erasesize name
mtd0: 0000c000 00001000 "routerboot"
mtd1: 00001000 00001000 "hard_config"
mtd2: 00001000 00001000 "bios"
mtd3: 00001000 00001000 "soft_config"
Consequently, a sysupgrade fail (silently) potentially due to missing NAND support and UBI mtd config.
On my RB2011UiAS-2HnD things work just fine with Atheros AR9344 rev 3, but not with my RB 2011 UiAS-IN v3.
But within 2HnD model, the NAND could be configured correctly, so I think that is the problem.
OpenWrt 19.07.10, r11427-9ce6aa9d8d
[ 0.834830] m25p80 spi0.0: found w25x05, expected m25p80
[ 0.851610] m25p80 spi0.0: w25x05 (64 Kbytes)
[ 0.856635] Creating 4 MTD partitions on "spi0.0":
[ 0.861608] 0x000000000000-0x00000000c000 : "routerboot"
[ 0.868846] 0x00000000c000-0x00000000d000 : "hard_config"
[ 0.875831] 0x00000000d000-0x00000000e000 : "bios"
[ 0.882800] 0x00000000e000-0x00000000f000 : "soft_config"
[ 0.891276] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xf1
[ 0.897897] nand: Toshiba NAND 128MiB 3,3V 8-bit
[ 0.902671] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.910539] Scanning device for bad blocks
[ 0.920530] random: fast init done
[ 1.023438] Bad eraseblock 768 at 0x000006000000
[ 1.063306] Creating 3 MTD partitions on "ar934x-nfc":
[ 1.068684] 0x000000000000-0x000000040000 : "booter"
[ 1.075477] 0x000000040000-0x000000400000 : "kernel"
[ 1.082093] 0x000000400000-0x000008000000 : "ubi"
[ 1.092377] libphy: Fixed MDIO Bus: probed
So, is there anything that could be done to get the NAND mtd setup right in my mikrotik RB 2011 UiAS-IN model ? It seems that there are differnt NAND controllers out there and not all are supported by openWRT Thank you for any advice.