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

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Wed Nov 25 13:12:01 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,

// - Device problem occurs on tftpboot openwrt-ath79-mikrotik-mikrotik_routerboard-sxt-5nd-r2-initramfs-kernel.bin
// 

=> In the legacy ar71xx target, OpenWrt would "autodetect" the device based on what the RouterBoot bootloader was pasing. This is no longer valid for the ath79 target, so images are available on a per-supported-device basis and the device name is "hardcoded" in the image. This particular initramfs image you are using is for the  MikroTik RouterBOARD SXT 5nD r2 (SXT Lite5), and so you get. This is as expected.


// - this is the hardware: https://openwrt.org/toh/hwdata/mikrotik/mikrotik_rb911-5hn_911_lite5 //

=> I can't really understand why but, when booting the ar71xx initramfs, the RouterBoot bootloader is reporting the hardware **is** an sxt5n (instead of 911L) and the kernel **is detecting** a 128 MB Toshiba NAND flash chip:

dmesg-19_07_4.txt

[    0.000000] Kernel command line: no-uart parts=1 boot_part_size=4194304 gpio=216619 HZ=300000000 mem=64M kmac=4C:5E:0C:4A:9E:E2 board=sxt5n boot=0 mlc=5 rootfstype=squashfs noinitrd
...
[    4.450139] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xf1
[    4.526221] nand: Toshiba NAND 128MiB 3,3V 8-bit
[    4.581416] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64



dmesg-ar71xx-trunk-routeros-format.txt

Kernel command line: no-uart parts=1 boot_part_size=4194304 gpio=216619 HZ=300000000 mem=64M kmac=4C:5E:0C:40:C2:11 board=sxt5n boot=0 mlc=5
...
nand: device found, Manufacturer ID: 0x98, Chip ID: 0xf1
nand: Toshiba NAND 128MiB 3,3V 8-bit
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64


This is strange, but it could well be that MikroTik was producing these devices with NAND flash and then switched to NOR, or the other way round. Is it a recent purchase?


You can do a couple of things:

1) In RouterOS, can you check what are the values for "System -> RouterBOARD -> Model", "System -> Resources -> Board Name", "System -> Resources -> Total HDD Size"?
2) If you boot the ath79-sxt5n initramfs image, there should be the directory /sys/firmware/mikrotik/hard_config with some info about the device (the info the bootloader would pass, and some others). Can you please paste the content of the text files (i.e., not the wlan_data calibration, just plain text).


----------

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

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