[FS#3471] Mikrotik RB911-5Hn propper nand detection failed

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Fri Nov 27 07:16:40 EST 2020


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#3471 - Mikrotik RB911-5Hn propper nand detection failed
User who did this - rogerpueyo (rogerpueyo)

----------
Hi Alexandros,

Thanks for testing that.

MikroTik devices with NAND flash also have a tiny NOR flash where the bootloader, the calibration data and the device information are stored.

For example, my SXTLite5 has a 128 kbytes NOR flash chip:

[    0.594784] spi-nor spi0.0: w25x10 (128 Kbytes)
[    0.599528] 1 fixed-partitions partitions found on MTD device spi0.0
[    0.606109] Creating 1 MTD partitions on "spi0.0":
[    0.611096] 0x000000000000-0x000000020000 : "RouterBoot"
[    0.619637] 5 routerbootpart partitions found on MTD device RouterBoot
[    0.626447] Creating 5 MTD partitions on "RouterBoot":
[    0.631791] 0x000000000000-0x00000000c000 : "bootloader1"
[    0.638514] 0x00000000c000-0x00000000d000 : "hard_config"
[    0.645267] 0x00000000d000-0x00000000e000 : "bios"
[    0.651435] 0x00000000e000-0x00000000f000 : "soft_config"
[    0.658220] 0x000000010000-0x000000020000 : "bootloader2"


but your NAND-RB911Lite5 has (surprise!) a 64 kbytes chip:

[    4.534025] spi-nor spi0.0: mx25l512e (64 Kbytes)
[    4.538906] 1 fixed-partitions partitions found on MTD device spi0.0
[    4.545368] Creating 1 MTD partitions on "spi0.0":
[    4.550250] 0x000000000000-0x000000020000 : "RouterBoot"
[    4.555650] mtd: partition "RouterBoot" extends beyond the end of device "spi0.0" -- size truncated to 0x10000
[    4.568564] RouterBoot: routerboot partition /ahb/spi at 1f000000/flash at 0/partitions/partition at 0/partition at 10000 (/ahb/spi at 1f000000/flash at 0/partitions/partition at 0) "bootloader2" extends past end of segment.
[    4.586958] RouterBoot: error parsing routerboot partition /ahb/spi at 1f000000/flash at 0/partitions/partition at 0/partition at 10000 (/ahb/spi at 1f000000/flash at 0/partitions/partition at 0)
[    4.602778] 2 fixed-partitions partitions found on MTD device RouterBoot
[    4.609582] Creating 2 MTD partitions on "RouterBoot":
[    4.614816] 0x000000000000-0x000000010000 : "bootloader1"
[    4.621413] 0x000000010000-0x000000020000 : "bootloader2"
[    4.626971] mtd: partition "bootloader2" is out of reach -- disabled


This is why there's nothing at /sys/firmware/mikrotik, because the partitions layout is different and the driver can not get the right calibration data.

I've compiled an **ath79** image for your NAND-RB911Lite5 based on the SXTLite5, which is available here. I wonder if you could give it a try. Specifically, could you tell me what is in the /proc/mtd file (or just paste the dmesg output, as you want)?

Please find the new images here: https://we.tl/t-hb7qbpHX9n

Cheers!
----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3471#comment9047

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list