[WIP] Porting Mikrotik RB2011 to ath79 - testers needed

I have no idea how much more or less complicated it would be compared to this. I didn't work with DSA before.

I tried to make GPIO 14 the reset pin for NAND but it didn't help. (Really I don't know what should I do so I started trying everything.) I don't quite understand how it's handled in the old 19.07 mach file but there is some logic which sets the pin low or high.

Regarding USB, you mean AR9344 datasheet? I'll have to check the USB section too. On the first glance, GPIO20 is the only thing that controls the host/device mode.

No, I don't have any SFP at hand. I'll get one next week. The link state is on GPIO 21 and there's some mention of get_port_link in ar8327.c but I get lost there trying to figure out what does it do.

HI, I would like to join the testing/porting effort for this endeavor. I have a (currently non-booting) RB2011, I can reach and control the bootloader via serial.

I cloned your repo, and compiled with fairly default settings, selected ath79, mikrotik, RB2011. Then I got the LZMA initramfs, and the sysupgrade bins, and tried pushing both with the dnsmasq-tftpboot procedure, for both I see the transfer, but the bootloader replies: "invalid upgrade file id"

For the record, I used openwrt-ath79-mikrotik-mikrotik_routerboard-2011-initramfs-kernel.bin.

The example uses an ELF file, but in the target image option I did not see an ELF option.
Could you give me a hint, on how to proceed, please?
Thanks already for all your work so far :slight_smile:

That's weird. I use the same file. I have configured DHCP boot mode and serve the update file from another OpenWrt router (Network -> DHCP and DNS -> TFTP settings). What is the exact model of RB2011 that you use (mainly, if it has SFP, USB and PoE).

1 Like

AH, mine is still in TFTP mode. I'll switch the mode, and report back later today. I have the model with SFP (but no module), micro-USB, PoE, and display. No wifi.

I tried again with "boot protocol" set to DHCP, that worked. I started the initramfs version, then sysupgraded to the squashfs version. During flash i got this error:

[  495.242454] ubi0: attaching mtd2                                                                                                                    
[  495.246712] ubi0 error: validate_ec_hdr: bad VID header offset 2048, expected 512                                                                   
[  495.254481] ubi0 error: validate_ec_hdr: bad EC header                                                                                              
[  495.259798] Erase counter header dump:                                                                                                              
[  495.263686]  magic          0x55424923                                                                                                              
[  495.267566]  version        1                                                                                                                       
[  495.270638]  ec             1                                                                                                                       
[  495.273710]  vid_hdr_offset 2048                                                                                                                    
[  495.277042]  data_offset    4096                                                                                                                    
[  495.280378]  image_seq      1138492434                                                                                                              
[  495.284257]  hdr_crc        0xf5844283                                                                                                              
[  495.288136] erase counter header hexdump:                                                                                                           
[  495.292318] CPU: 0 PID: 2798 Comm: ubiattach Not tainted 5.4.85 #0                                                                                  
[  495.298712] Stack : 806d0000 806d4358 00000000 00000000 806d34d8 87425ccc 87dd4300 8070e0a7                                                         
[  495.307356]         806648ec 00000aee 80b532d8 00000000 55424923 00000001 87425c80 b1df358d                                                         
[  495.316003]         00000000 00000000 80b80000 000000ee 00000030 00000000 74656420 352e342e                                                         
[  495.324648]         000000ee a76258cb 00000000 000475de 80000000 87e8a000 00000000 87e8a000                                                         
[  495.333296]         55424923 00000000 55424923 87ee050c 00000001 8038d4dc 00000000 80b50000                                                         
[  495.341941]         ...                                                                                                                             
[  495.344466] Call Trace:                                                                                                                             
[  495.347030] [<8006a224>] show_stack+0x30/0x100                                                                                                      
[  495.351644] [<803f7d40>] validate_ec_hdr+0xc0/0x118                                                                                                 
[  495.356700] [<803f8b0c>] ubi_io_read_ec_hdr+0x234/0x294                                                                                             
[  495.362119] [<803fe218>] ubi_attach+0x364/0x1514                                                                                                    
[  495.366907] [<803f21c8>] ubi_attach_mtd_dev+0x5e4/0xb74                                                                                             
[  495.372317] [<803f3618>] ctrl_cdev_ioctl+0x16c/0x1c4                                                                                                
[  495.377468] [<801d8d1c>] do_vfs_ioctl+0xb8/0x784                                                                                                    
[  495.382254] [<801d9438>] ksys_ioctl+0x50/0xb4                                                                                                       
[  495.386772] [<8006ee6c>] syscall_common+0x34/0x58                                                                                                   
[  495.391656] ubi0 error: ubi_io_read_ec_hdr: validation failed for PEB 0                                                                             
[  495.398505] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd2, error -22                                                                        
ubiattach: error!: cannot attach mtd2                                                                                                                  
           error 22 (Invalid argument)

It did continue with the following though:

ubiformat: mtd2 (nand), size 130023424 bytes (124.0 MiB), 992 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes                        
libscan: scanning eraseblock 991 -- 100 % complete                                                                                                     
ubiformat: 992 eraseblocks have valid erase counter, mean value is 0                                                                                   
ubiformat: warning!: VID header and data offsets on flash are 2048 and 4096, which is different to requested offsets 512 and 2048                      
ubiformat: use new offsets 512 and 2048? yes
ubiformat: use offsets 512 and 2048
ubiformat: formatting eraseblock 952 -- 96 [  504.858786] ubi0: attaching mtd2
ubiformat: formatting eraseblock 991 -- 100 % complete  

It the rebooted normally, and loaded into openwrt. Cool, thanks!

Is it known, whether the rb2011 can act as a USB device? I have not encountered this Freescale controller before.

I ported latest yaffs2 to Mikrotik subtarget and modified the update script to mount kernel partition and replace the binary. This should fix breaking devices with bad blocks in kernel area. I'd appreciate if someone could test it on a device that actually has bad blocks there. My repository is here (pull request pending).

Another thing that should be tested is compatibility with a variant other that UiAS(-2HnD), like iLS, L, etc.

1 Like

Is there a way i can see, if my device is affected by this, and thus can be used for testing?

If you have an ath79 Mikrotik device, you're welcome to test initial flashing and sysupgrade with my modifications and check if there are any regressions (failed sysupgrade, failed boot, etc.).

You will know if you have bad blocks in the kernel area if you're unable to flash and/or boot current OpenWrt upstream - bad blocks prevent kernel from being flashed and loaded properly. You can also check it in dmesg, during boot the NAND driver will notify if there are any bad blocks. My patch should fix those devices.

Even if you don't have bad blocks, testing a build with patches from my pull request will provide a valuable feedback.

Hi there,

Danijel was so kind to post a testbuild. So maybe some of us are also intrested to test this one and post their results.

Hello,

I've tried to install OpenWrt from the link above on RB2011iLS.
I can load the initramfs but downloading openwrt-ath79-mikrotik-mikrotik_routerboard-2011uias-2hnd-squashfs-sysupgrade.bin to /tmp with scp strangely takes very long time.
Here is kernel.log :

[    0.000000] Linux version 5.4.115 (user@4c417761bab4) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16427+218-f4f4259ca1)) #0 Thu May 6 18:31:51 2021
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is MikroTik RouterBOARD 2011UiAS-2HnD
[    0.000000] SoC: Atheros AR9344 rev 3
[    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-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000]   Normal zone: 144 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    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: 16240
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 53172K/65536K available (5646K kernel code, 180K rwdata, 1244K rodata, 4376K init, 201K bss, 12364K 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] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0
[    0.000000] CPU clock: 600.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008877] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.085997] pid_max: default: 32768 minimum: 301
[    0.091423] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.099723] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.114194] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.125422] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.133284] pinctrl core: initialized pinctrl subsystem
[    0.140480] NET: Registered protocol family 16
[    0.185311] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.199980] clocksource: Switched to clocksource MIPS
[    0.207208] NET: Registered protocol family 2
[    0.213090] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.222677] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.231408] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.239424] TCP: Hash tables configured (established 1024 bind 1024)
[    0.246815] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.254306] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.262608] NET: Registered protocol family 1
[    0.267597] PCI: CLS 0 bytes, default 32
[    2.579993] random: fast init done
[    5.345245] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    5.360647] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.367263] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.394584] yaffs: yaffs Installing.
[    5.398960] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    5.406692] gpio-export gpio-export: 5 gpio(s) exported
[    5.413747] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    5.421867] printk: console [ttyS0] disabled
[    5.426769] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    5.436628] printk: console [ttyS0] enabled
[    5.445701] printk: bootconsole [early0] disabled
[    5.467685] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xf1
[    5.474317] nand: ESMT NAND 128MiB 3,3V 8-bit
[    5.478819] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 32
[    5.486667] ar934x-nand 1b000200.nand: unsupported OOB size: 32 bytes
[    5.493337] ar934x-nand 1b000200.nand: nand_scan failed, err:-6
[    5.512101] spi-nor spi0.0: w25x05 (64 Kbytes)
[    5.516741] 1 fixed-partitions partitions found on MTD device spi0.0
[    5.523343] Creating 1 MTD partitions on "spi0.0":
[    5.528322] 0x000000000000-0x000000010000 : "RouterBoot"
[    5.536479] 4 routerbootpart partitions found on MTD device RouterBoot
[    5.543292] Creating 4 MTD partitions on "RouterBoot":
[    5.548612] 0x000000000000-0x00000000c000 : "bootloader1"
[    5.555347] 0x00000000c000-0x00000000d000 : "hard_config"
[    5.562120] 0x00000000d000-0x00000000e000 : "bios"
[    5.568145] 0x00000000e000-0x00000000f000 : "soft_config"
[    5.575963] libphy: Fixed MDIO Bus: probed
[    5.587465] ag71xx 19000000.eth: invalid MAC address, using random address
[    5.931973] libphy: ag71xx_mdio: probed
[    5.966349] switch0: Atheros AR8327 rev. 4 switch registered on mdio.0
[    6.621481] mdio_bus mdio.0: MDIO device at address 6 is missing.
[    6.658602] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    6.668661] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    6.675962] ag71xx 1a000000.eth: invalid MAC address, using random address
[    7.360411] libphy: ag71xx_mdio: probed
[    7.365778] libphy: ar8xxx-mdio: probed
[    7.430999] switch1: Atheros AR8229 rev. 1 switch registered on mdio.1
[    7.507543] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    7.517615] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    7.524506] ath79-wdt 18060008.wdt: timeout value must be 0 < timeout < 10, using 10
[    7.536598] MikroTik RouterBOARD hardware configuration sysfs driver v0.06
[    7.544961] MikroTik RouterBOARD software configuration sysfs driver v0.03
[    7.553416] NET: Registered protocol family 10
[    7.561164] Segment Routing with IPv6
[    7.565096] NET: Registered protocol family 17
[    7.570143] 8021q: 802.1Q VLAN Support v1.8
[    7.609952] Freeing unused kernel memory: 4376K
[    7.614675] This architecture does not have kernel memory protection.
[    7.621334] Run /init as init process
[    8.335359] init: Console is alive
[    8.339159] init: - watchdog -
[    8.370284] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.393821] usbcore: registered new interface driver usbfs
[    8.399574] usbcore: registered new interface driver hub
[    8.405242] usbcore: registered new device driver usb
[    8.418095] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.436419] SCSI subsystem initialized
[    8.446759] ehci-fsl: Freescale EHCI Host controller driver
[    8.454878] ehci-platform: EHCI generic platform driver
[    8.460663] ehci-platform 1b000000.usb: EHCI Host Controller
[    8.466542] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    8.474825] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    8.510002] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    8.517434] hub 1-0:1.0: USB hub found
[    8.521929] hub 1-0:1.0: 1 port detected
[    8.534216] usbcore: registered new interface driver usb-storage
[    8.541438] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.551274] init: - preinit -
[    8.892423] random: jshn: uninitialized urandom read (4 bytes read)
[    8.988668] random: jshn: uninitialized urandom read (4 bytes read)
[    9.445761] random: jshn: uninitialized urandom read (4 bytes read)
[   10.654585] urandom_read: 2 callbacks suppressed
[   10.654594] random: procd: uninitialized urandom read (4 bytes read)
[   10.675420] eth0: link up (1000Mbps/Full duplex)
[   10.689429] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.705900] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   14.880507] eth0: link down
[   14.906644] procd: - early -
[   14.909743] procd: - watchdog -
[   15.473347] procd: - watchdog -
[   15.477061] procd: - ubus -
[   15.490188] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.530364] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.537472] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.547653] procd: - init -
[   16.277100] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.331666] i2c /dev entries driver
[   16.343926] i2c-gpio i2c: using lines 11 (SDA) and 21 (SCL)
[   16.362956] Loading modules backported from Linux version v5.10.34-0-g0aa66717f684
[   16.370855] Backport generated by backports.git v5.10.34-1-0-g7b5533e1
[   16.451042] xt_time: kernel timezone is -0000
[   16.605887] urngd: v1.0.2 started.
[   16.627527] PPP generic driver version 2.4.2
[   16.651096] NET: Registered protocol family 24
[   16.770995] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2
[   16.781672] ath9k 18100000.wmac: Falling back to sysfs fallback for: ath9k-eeprom-ahb-18100000.wmac.bin
[   16.935992] random: crng init done
[   16.939528] random: 1 urandom warning(s) missed due to ratelimiting
[   17.052272] ath: phy0: Unable to initialize hardware; initialization status: -5
[   17.090072] ath9k 18100000.wmac: failed to initialize device
[   17.096010] ath9k: probe of 18100000.wmac failed with error -5
[   17.130536] kmodloader: done loading kernel modules from /etc/modules.d/*
[   49.073714] eth0: link up (1000Mbps/Full duplex)
[   49.078521] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   49.091660] device eth0 entered promiscuous mode
[   49.097210] br-lan: port 1(eth0.1) entered blocking state
[   49.102886] br-lan: port 1(eth0.1) entered disabled state
[   49.108846] device eth0.1 entered promiscuous mode
[   49.137283] br-lan: port 1(eth0.1) entered blocking state
[   49.142932] br-lan: port 1(eth0.1) entered forwarding state
[   49.200265] eth1: link up (1000Mbps/Full duplex)
[   49.230430] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   49.246347] device eth1 entered promiscuous mode
[   49.260678] br-lan: port 2(eth1.1) entered blocking state
[   49.266272] br-lan: port 2(eth1.1) entered disabled state
[   49.272299] device eth1.1 entered promiscuous mode

What should be the next step ?
@stargies : thanks to lead me here !

I managed to copy sysupgrade.bin to \tmp using Fast Ethernet (Eth6). It fails using Gigabit ports.

root@OpenWrt:/tmp# sysupgrade -n -v openwrt-ath79-mikrotik-mikrotik_routerboard-2011uias-2hnd-squashfs-sysupgrade.bin
Thu May  6 19:30:15 UTC 2021 upgrade: Commencing upgrade. Closing all shell sessions.
Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.

Unfortunately, the router reboots under RouterOS.

My version is a 64M NAND RB2011LS and i wonder it if should also install this build successfully?! It does not (reboot loop, no serial access possible).

[ 5.432073] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x76
[ 5.438701] nand: Samsung NAND 64MiB 3,3V 8-bit
[ 5.443382] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16

BusyBox v1.33.0 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r16427+218-f4f4259ca1
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# dmesg 
[    0.000000] Linux version 5.4.115 (user@4c417761bab4) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16427+218-f4f4259ca1)) #0 Thu May 6 18:31:51 2021
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is MikroTik RouterBOARD 2011UiAS-2HnD
[    0.000000] SoC: Atheros AR9344 rev 2
[    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-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000]   Normal zone: 144 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    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: 16240
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 53172K/65536K available (5646K kernel code, 180K rwdata, 1244K rodata, 4376K init, 201K bss, 12364K 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] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0
[    0.000000] CPU clock: 600.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008869] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.085997] pid_max: default: 32768 minimum: 301
[    0.091416] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.099714] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.113927] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.125146] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.132991] pinctrl core: initialized pinctrl subsystem
[    0.140092] NET: Registered protocol family 16
[    0.182697] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.197064] clocksource: Switched to clocksource MIPS
[    0.204197] NET: Registered protocol family 2
[    0.210024] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.219609] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.228335] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.236346] TCP: Hash tables configured (established 1024 bind 1024)
[    0.243723] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.251207] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.259473] NET: Registered protocol family 1
[    0.264462] PCI: CLS 0 bytes, default 32
[    2.577074] random: fast init done
[    5.312774] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    5.327813] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.334434] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.360452] yaffs: yaffs Installing.
[    5.364597] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    5.372257] gpio-export gpio-export: 5 gpio(s) exported
[    5.379228] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    5.387290] printk: console [ttyS0] disabled
[    5.392189] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    5.402021] printk: console [ttyS0] enabled
[    5.411086] printk: bootconsole [early0] disabled
[    5.432073] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x76
[    5.438701] nand: Samsung NAND 64MiB 3,3V 8-bit
[    5.443382] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[    5.450999] Scanning device for bad blocks
[    5.686553] random: crng init done
[    5.745936] 3 fixed-partitions partitions found on MTD device ar934x-nand
[    5.752968] Creating 3 MTD partitions on "ar934x-nand":
[    5.758386] 0x000000000000-0x000000040000 : "booter"
[    5.764604] 0x000000040000-0x000000400000 : "kernel"
[    5.770951] 0x000000400000-0x000008000000 : "ubi"
[    5.775817] mtd: partition "ubi" extends beyond the end of device "ar934x-nand" -- size truncated to 0x3c00000
[    5.803014] spi-nor spi0.0: w25x10 (128 Kbytes)
[    5.807770] 1 fixed-partitions partitions found on MTD device spi0.0
[    5.814332] Creating 1 MTD partitions on "spi0.0":
[    5.819309] 0x000000000000-0x000000010000 : "RouterBoot"
[    5.827312] 4 routerbootpart partitions found on MTD device RouterBoot
[    5.834064] Creating 4 MTD partitions on "RouterBoot":
[    5.839413] 0x000000000000-0x00000000b000 : "bootloader1"
[    5.846077] 0x00000000b000-0x00000000c000 : "hard_config"
[    5.852757] 0x00000000c000-0x00000000d000 : "bios"
[    5.858821] 0x00000000f000-0x000000010000 : "soft_config"
[    5.866442] libphy: Fixed MDIO Bus: probed
[    5.877517] ag71xx 19000000.eth: invalid MAC address, using random address
[    6.219025] libphy: ag71xx_mdio: probed
[    6.251755] switch0: Atheros AR8327 rev. 2 switch registered on mdio.0
[    6.908228] mdio_bus mdio.0: MDIO device at address 6 is missing.
[    6.943623] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    6.953643] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    6.960919] ag71xx 1a000000.eth: invalid MAC address, using random address
[    7.647494] libphy: ag71xx_mdio: probed
[    7.652793] libphy: ar8xxx-mdio: probed
[    7.714739] switch1: Atheros AR8229 rev. 1 switch registered on mdio.1
[    7.793122] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    7.803147] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    7.813844] MikroTik RouterBOARD hardware configuration sysfs driver v0.06
[    7.822286] MikroTik RouterBOARD software configuration sysfs driver v0.03
[    7.830638] NET: Registered protocol family 10
[    7.838098] Segment Routing with IPv6
[    7.842011] NET: Registered protocol family 17
[    7.846906] 8021q: 802.1Q VLAN Support v1.8
[    7.857523] UBI error: no valid UBI magic found inside mtd2
[    7.889184] Freeing unused kernel memory: 4376K
[    7.893867] This architecture does not have kernel memory protection.
[    7.900548] Run /init as init process
[    8.572174] init: Console is alive
[    8.575941] init: - watchdog -
[    8.605264] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.627696] usbcore: registered new interface driver usbfs
[    8.633445] usbcore: registered new interface driver hub
[    8.639090] usbcore: registered new device driver usb
[    8.651483] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.668840] SCSI subsystem initialized
[    8.678495] ehci-fsl: Freescale EHCI Host controller driver
[    8.686603] ehci-platform: EHCI generic platform driver
[    8.692330] ehci-platform 1b000000.usb: EHCI Host Controller
[    8.698285] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    8.706505] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    8.737075] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    8.744429] hub 1-0:1.0: USB hub found
[    8.748846] hub 1-0:1.0: 1 port detected
[    8.760578] usbcore: registered new interface driver usb-storage
[    8.767736] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.779659] init: - preinit -
[    9.117154] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    9.367130] usb 1-1: device descriptor read/64, error -71
[    9.727135] usb 1-1: device descriptor read/64, error -71
[    9.997128] usb 1-1: new full-speed USB device number 3 using ehci-platform
[   10.247080] usb 1-1: device descriptor read/64, error -71
[   10.607072] usb 1-1: device descriptor read/64, error -71
[   10.728065] usb usb1-port1: attempt power cycle
[   10.869843] eth0: link up (1000Mbps/Full duplex)
[   10.874645] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.898769] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   11.447085] usb 1-1: new full-speed USB device number 4 using ehci-platform
[   11.947096] usb 1-1: device not accepting address 4, error -71
[   12.097079] usb 1-1: new full-speed USB device number 5 using ehci-platform
[   12.597078] usb 1-1: device not accepting address 5, error -71
[   12.603171] usb usb1-port1: unable to enumerate USB device
[   15.063392] eth0: link down
[   15.088415] procd: - early -
[   15.091508] procd: - watchdog -
[   15.663233] procd: - watchdog -
[   15.666929] procd: - ubus -
[   15.724010] procd: - init -
[   16.414933] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.470952] i2c /dev entries driver
[   16.490380] i2c-gpio i2c: using lines 11 (SDA) and 21 (SCL)
[   16.509252] Loading modules backported from Linux version v5.10.34-0-g0aa66717f684
[   16.517151] Backport generated by backports.git v5.10.34-1-0-g7b5533e1
[   16.582356] xt_time: kernel timezone is -0000
[   16.720014] urngd: v1.0.2 started.
[   16.755614] PPP generic driver version 2.4.2
[   16.778116] NET: Registered protocol family 24
[   16.888018] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2
[   16.898692] ath9k 18100000.wmac: Falling back to sysfs fallback for: ath9k-eeprom-ahb-18100000.wmac.bin
[   17.157512] ath: phy0: Unable to initialize hardware; initialization status: -5
[   17.197097] ath9k 18100000.wmac: failed to initialize device
[   17.203021] ath9k: probe of 18100000.wmac failed with error -5
[   17.237619] kmodloader: done loading kernel modules from /etc/modules.d/*
[   51.780603] eth0: link up (1000Mbps/Full duplex)
[   51.785407] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   51.807395] device eth0 entered promiscuous mode
[   51.812931] br-lan: port 1(eth0.1) entered blocking state
[   51.818731] br-lan: port 1(eth0.1) entered disabled state
[   51.824668] device eth0.1 entered promiscuous mode
[   51.850112] br-lan: port 1(eth0.1) entered blocking state
[   51.855702] br-lan: port 1(eth0.1) entered forwarding state
[   51.923046] eth1: link up (1000Mbps/Full duplex)
[   51.942740] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   51.955881] device eth1 entered promiscuous mode
[   51.977760] br-lan: port 2(eth1.1) entered blocking state
[   51.983352] br-lan: port 2(eth1.1) entered disabled state
[   51.989337] device eth1.1 entered promiscuous mode
[   51.994444] br-lan: port 2(eth1.1) entered blocking state
[   52.000082] br-lan: port 2(eth1.1) entered forwarding state
[   52.827164] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

this is the bootlog with my todays custom build from Danijels branch. tftp boots nicely but wont install. it boots for some time but then reboots.

Linux OpenWrt 5.4.121 #0 Tue May 25 14:27:48 2021 mips GNU/Linux
root@OpenWrt:/tmp# dmesg 
[    0.000000] Linux version 5.4.121 (user@b0ca5d5ea7ff) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16800+4-efee640716)) #0 Tue May 25 14:27:48 2021
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is MikroTik RouterBOARD 2011LS
[    0.000000] SoC: Atheros AR9344 rev 2
[    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-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000]   Normal zone: 144 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    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: 16240
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 52920K/65536K available (5687K kernel code, 179K rwdata, 1252K rodata, 4584K init, 201K bss, 12616K 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] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0
[    0.000000] CPU clock: 600.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000008] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008861] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.085990] pid_max: default: 32768 minimum: 301
[    0.091404] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.099699] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.113883] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.125104] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.132947] pinctrl core: initialized pinctrl subsystem
[    0.140052] NET: Registered protocol family 16
[    0.181980] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.196457] clocksource: Switched to clocksource MIPS
[    0.203593] NET: Registered protocol family 2
[    0.208778] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.217708] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.227281] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.235985] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.244010] TCP: Hash tables configured (established 1024 bind 1024)
[    0.251376] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.258854] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.267141] NET: Registered protocol family 1
[    0.272123] PCI: CLS 0 bytes, default 32
[    2.576468] random: fast init done
[    5.677235] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    5.692213] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.698899] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.724986] yaffs: yaffs Installing.
[    5.728560] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    5.735818] gpio-export gpio-export: 2 gpio(s) exported
[    5.742709] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    5.750774] printk: console [ttyS0] disabled
[    5.755674] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    5.765531] printk: console [ttyS0] enabled
[    5.774595] printk: bootconsole [early0] disabled
[    5.794573] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x76
[    5.801193] nand: Samsung NAND 64MiB 3,3V 8-bit
[    5.805870] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[    5.813495] Scanning device for bad blocks
[    6.049833] random: crng init done
[    6.107781] 3 fixed-partitions partitions found on MTD device ar934x-nand
[    6.114790] Creating 3 MTD partitions on "ar934x-nand":
[    6.120226] 0x000000000000-0x000000040000 : "booter"
[    6.126511] 0x000000040000-0x000000400000 : "kernel"
[    6.132766] 0x000000400000-0x000008000000 : "ubi"
[    6.137699] mtd: partition "ubi" extends beyond the end of device "ar934x-nand" -- size truncated to 0x3c00000
[    6.164841] spi-nor spi0.0: w25x10 (128 Kbytes)
[    6.169595] 1 fixed-partitions partitions found on MTD device spi0.0
[    6.176157] Creating 1 MTD partitions on "spi0.0":
[    6.181133] 0x000000000000-0x000000010000 : "RouterBoot"
[    6.189086] 4 routerbootpart partitions found on MTD device RouterBoot
[    6.195836] Creating 4 MTD partitions on "RouterBoot":
[    6.201209] 0x000000000000-0x00000000b000 : "bootloader1"
[    6.207873] 0x00000000b000-0x00000000c000 : "hard_config"
[    6.214443] 0x00000000c000-0x00000000d000 : "bios"
[    6.220522] 0x00000000f000-0x000000010000 : "soft_config"
[    6.228164] libphy: Fixed MDIO Bus: probed
[    6.239301] ag71xx 19000000.eth: invalid MAC address, using random address
[    6.588426] libphy: ag71xx_mdio: probed
[    6.633341] switch0: Atheros AR8327 rev. 2 switch registered on mdio.0
[    7.288056] mdio_bus mdio.0: MDIO device at address 6 is missing.
[    7.335027] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    7.345048] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    7.352332] ag71xx 1a000000.eth: invalid MAC address, using random address
[    8.036896] libphy: ag71xx_mdio: probed
[    8.042329] libphy: ar8xxx-mdio: probed
[    8.128020] switch1: Atheros AR8229 rev. 1 switch registered on mdio.1
[    8.224542] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    8.234582] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    8.245254] MikroTik RouterBOARD hardware configuration sysfs driver v0.06
[    8.253695] MikroTik RouterBOARD software configuration sysfs driver v0.03
[    8.262067] NET: Registered protocol family 10
[    8.269599] Segment Routing with IPv6
[    8.273511] NET: Registered protocol family 17
[    8.278502] 8021q: 802.1Q VLAN Support v1.8
[    8.288525] UBI error: no valid UBI magic found inside mtd2
[    8.321388] Freeing unused kernel memory: 4584K
[    8.326075] This architecture does not have kernel memory protection.
[    8.332753] Run /init as init process
[    9.092428] init: Console is alive
[    9.096205] init: - watchdog -
[    9.137503] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    9.149804] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    9.167807] init: - preinit -
[   11.243760] eth0: link up (1000Mbps/Full duplex)
[   11.257023] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   11.282293] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   15.442633] eth0: link down
[   15.467666] procd: - early -
[   15.470759] procd: - watchdog -
[   16.041530] procd: - watchdog -
[   16.045214] procd: - ubus -
[   16.102279] procd: - init -
[   16.833665] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.861668] zram: Added device: zram0
[   16.879863] tun: Universal TUN/TAP device driver, 1.6
[   16.947673] i2c /dev entries driver
[   16.955967] i2c-gpio i2c: using lines 11 (SDA) and 21 (SCL)
[   16.977557] GACT probability on
[   16.982614] Mirror/redirect action on
[   17.020745] u32 classifier
[   17.023555]     input device check on
[   17.027392]     Actions configured
[   17.114967] urngd: v1.0.2 started.
[   17.303348] Loading modules backported from Linux version v5.10.34-0-g0aa66717f684
[   17.311232] Backport generated by backports.git v5.10.34-1-0-g7b5533e1
[   17.536693] xt_time: kernel timezone is -0000
[   17.710407] PPP generic driver version 2.4.2
[   17.718209] NET: Registered protocol family 24
[   17.741840] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   17.749993] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   17.877395] kmodloader: done loading kernel modules from /etc/modules.d/*
[   24.158394] zram0: detected capacity change from 0 to 29360128
[   24.177900] Adding 28668k swap on /dev/zram0.  Priority:-2 extents:1 across:28668k SSDsc
[   64.338064] eth0: link up (1000Mbps/Full duplex)
[   64.342866] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   64.361052] br-lan: port 1(eth0.1) entered blocking state
[   64.366709] br-lan: port 1(eth0.1) entered disabled state
[   64.372620] device eth0.1 entered promiscuous mode
[   64.377772] device eth0 entered promiscuous mode
[   64.406355] br-lan: port 1(eth0.1) entered blocking state
[   64.411998] br-lan: port 1(eth0.1) entered forwarding state
[   64.739922] eth1: link up (1000Mbps/Full duplex)
[   64.745002] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   64.758508] br-lan: port 2(eth1.1) entered blocking state
[   64.764098] br-lan: port 2(eth1.1) entered disabled state
[   64.770092] device eth1.1 entered promiscuous mode
[   64.775050] device eth1 entered promiscuous mode
[   64.780202] br-lan: port 2(eth1.1) entered blocking state
[   64.785790] br-lan: port 2(eth1.1) entered forwarding state
[   65.339126] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
root@OpenWrt:/tmp# 

The NAND device on my RB2011iLS is from GigaDevices.

 nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xf1

This thread deals with this NAND :

The problem might be fixed by adding the following in nand_ids.c

{"GD9FU1G8F3A 1G 3.3V 8-bit",
    { .id = {0xc8, 0xf1, 0x80, 0x19, 0x42} },
      SZ_2K, SZ_128, SZ_128K, 0, 5, 64, NAND_ECC_INFO(0,0) },

I did it, but libubox failed to build...
Could it be possible to get a new initramfs and sysupgrade with this change ?

Thanks for your help.

My Samsung 64MB chip is Samsung k9f1208u0c (click 4 datasheet)

The issue is that I missed that some RB2011 variants actually have 64 MB of flash. I'll recheck the datasheets and send you a fixed image.

3 Likes

Attempting to sysupgrade from r0-9af30ab (Either compiled from your (@danijeltudek) sources, or from one of the links in this thread) to a freshly pulled and compiled snapshot for rb2011uias failed for me:

# sysupgrade /tmp/openwrt-ath79-mikrotik-mikrotik_routerboard-2011uias-squashfs-sysupgrade.bin                                                          
upgrade: Device mikrotik,routerboard-2011 not supported by this image                                                                   
upgrade: Supported devices: mikrotik,routerboard-2011uias rb-2011uias                                                                   
Image check failed.

I do have have a UIAS variant, but in /proc/cpuinfo my device shows simply as "MikroTik RouterBOARD 2011".
I'll try the tftp method later today or tomorrow. Any news about getting your changes upstreamed?
Thanks.

Hi, just installed this on a spare unit. Seems to work fine, although opkg update seems a bit slow. Any ideas whether this is going somewhere?

[    0.000000] Linux version 5.4.132 (teun@hpprodesk600g1twr) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r17143-0b3a12087d)) #0 Sat Jul 17 17:56:54 2021
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is MikroTik RouterBOARD 2011UAS-2HnD
[    0.000000] SoC: Atheros AR9344 rev 2
[    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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    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: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 121220K/131072K available (5651K kernel code, 175K rwdata, 1244K rodata, 1240K init, 201K bss, 9852K 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] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0
[    0.000000] CPU clock: 600.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000008] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008854] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.085991] pid_max: default: 32768 minimum: 301
[    0.091396] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.099689] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.113598] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.124812] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.132650] pinctrl core: initialized pinctrl subsystem
[    0.139646] NET: Registered protocol family 16
[    0.180884] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.195130] clocksource: Switched to clocksource MIPS
[    0.202158] NET: Registered protocol family 2
[    0.207322] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.216183] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.225744] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.234444] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.242470] TCP: Hash tables configured (established 1024 bind 1024)
[    0.249827] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.257302] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.265545] NET: Registered protocol family 1
[    0.270525] PCI: CLS 0 bytes, default 32
[    0.279196] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.293750] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.300434] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.326088] yaffs: yaffs Installing.
[    0.329505] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.336925] gpio-export gpio-export: 3 gpio(s) exported
[    0.343821] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.351857] printk: console [ttyS0] disabled
[    0.356811] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.366619] printk: console [ttyS0] enabled
[    0.375682] printk: bootconsole [early0] disabled
[    0.395917] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.402488] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.407310] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.415172] Scanning device for bad blocks
[    0.424853] random: fast init done
[    0.433321] Bad eraseblock 105 at 0x000000d20000
[    0.446553] Bad eraseblock 198 at 0x0000018c0000
[    0.510542] Bad eraseblock 849 at 0x000006a20000
[    0.531277] 3 fixed-partitions partitions found on MTD device ar934x-nand
[    0.538305] Creating 3 MTD partitions on "ar934x-nand":
[    0.543717] 0x000000000000-0x000000040000 : "booter"
[    0.549867] 0x000000040000-0x000000800000 : "kernel"
[    0.556041] 0x000000800000-0x000008000000 : "ubi"
[    0.576019] spi-nor spi0.0: w25x10 (128 Kbytes)
[    0.580737] 1 fixed-partitions partitions found on MTD device spi0.0
[    0.587326] Creating 1 MTD partitions on "spi0.0":
[    0.592280] 0x000000000000-0x000000010000 : "RouterBoot"
[    0.600019] 4 routerbootpart partitions found on MTD device RouterBoot
[    0.606818] Creating 4 MTD partitions on "RouterBoot":
[    0.612138] 0x000000000000-0x00000000b000 : "bootloader1"
[    0.618746] 0x00000000b000-0x00000000c000 : "hard_config"
[    0.625368] 0x00000000c000-0x00000000d000 : "bios"
[    0.631283] 0x00000000f000-0x000000010000 : "soft_config"
[    0.638844] libphy: Fixed MDIO Bus: probed
[    0.649663] ag71xx 19000000.eth: invalid MAC address, using random address
[    0.997037] libphy: ag71xx_mdio: probed
[    1.004492] switch0: Atheros AR8327 rev. 2 switch registered on mdio.0
[    1.667607] mdio_bus mdio.0: MDIO device at address 6 is missing.
[    1.678073] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.688024] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    1.695292] ag71xx 1a000000.eth: invalid MAC address, using random address
[    2.375536] libphy: ag71xx_mdio: probed
[    2.381066] libphy: ar8xxx-mdio: probed
[    2.394286] switch1: Atheros AR8229 rev. 1 switch registered on mdio.1
[    2.447237] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    2.457205] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    2.463946] ath79-wdt 18060008.wdt: timeout value must be 0 < timeout < 10, using 10
[    2.476590] MikroTik RouterBOARD hardware configuration sysfs driver v0.06
[    2.484849] MikroTik RouterBOARD software configuration sysfs driver v0.03
[    2.493185] NET: Registered protocol family 10
[    2.500543] Segment Routing with IPv6
[    2.504459] NET: Registered protocol family 17
[    2.509407] 8021q: 802.1Q VLAN Support v1.8
[    2.519798] UBI: auto-attach mtd2
[    2.523253] ubi0: attaching mtd2
[    3.689956] ubi0: scanning is finished
[    3.711113] ubi0: attached mtd2 (name "ubi", size 120 MiB)
[    3.716837] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.723933] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.730959] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.738154] ubi0: good PEBs: 957, bad PEBs: 3, corrupted PEBs: 0
[    3.744352] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    3.751821] ubi0: max/mean erase counter: 5/3, WL threshold: 4096, image sequence number: 1074492601
[    3.761262] ubi0: available PEBs: 0, total reserved PEBs: 957, PEBs reserved for bad PEB handling: 17
[    3.770869] ubi0: background thread "ubi_bgt0d" started, PID 396
[    3.780924] block ubiblock0_1: created from ubi0:1(rootfs)
[    3.786653] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    3.804348] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    3.817668] Freeing unused kernel memory: 1240K
[    3.822346] This architecture does not have kernel memory protection.
[    3.829027] Run /sbin/init as init process
[    4.412573] init: Console is alive
[    4.416454] init: - watchdog -
[    4.977452] random: crng init done
[    5.433679] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.586602] usbcore: registered new interface driver usbfs
[    5.592376] usbcore: registered new interface driver hub
[    5.598001] usbcore: registered new device driver usb
[    5.612936] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.621612] ehci-fsl: Freescale EHCI Host controller driver
[    5.629143] ehci-platform: EHCI generic platform driver
[    5.634840] ehci-platform 1b000000.usb: EHCI Host Controller
[    5.640774] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    5.648983] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    5.685154] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    5.692475] hub 1-0:1.0: USB hub found
[    5.696814] hub 1-0:1.0: 1 port detected
[    5.704222] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.722561] init: - preinit -
[    6.113390] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    6.520638] usb 1-1: device descriptor read/64, error -71
[    6.895202] usb 1-1: device descriptor read/64, error -71
[    7.195209] usb 1-1: new full-speed USB device number 3 using ehci-platform
[    7.445198] usb 1-1: device descriptor read/64, error -71
[    7.805194] usb 1-1: device descriptor read/64, error -71
[    7.925245] usb usb1-port1: attempt power cycle
[    8.465150] usb 1-1: new full-speed USB device number 4 using ehci-platform
[    8.965226] usb 1-1: device not accepting address 4, error -71
[    9.134824] usb 1-1: new full-speed USB device number 5 using ehci-platform
[    9.150445] eth0: link up (1000Mbps/Full duplex)
[    9.162475] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    9.175362] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[    9.655147] usb 1-1: device not accepting address 5, error -71
[    9.661238] usb usb1-port1: unable to enumerate USB device
[   13.388718] UBIFS (ubi0:2): Mounting in unauthenticated mode
[   13.394760] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 527
[   13.477411] UBIFS (ubi0:2): recovery needed
[   13.651885] UBIFS (ubi0:2): recovery completed
[   13.656633] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   13.664725] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   13.674984] UBIFS (ubi0:2): FS size: 111865856 bytes (106 MiB, 881 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[   13.685942] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   13.692773] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID 10580F1A-CB81-46A2-A87B-336B70F778F3, small LPT model
[   13.722621] mount_root: switching to ubifs overlay
[   13.750003] urandom-seed: Seeding with /etc/urandom.seed
[   13.910299] eth0: link down
[   13.940348] procd: - early -
[   13.943433] procd: - watchdog -
[   14.520867] procd: - watchdog -
[   14.524746] procd: - ubus -
[   14.617605] procd: - init -
[   15.656960] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.040668] urngd: v1.0.2 started.
[   16.052571] i2c /dev entries driver
[   16.068994] i2c-gpio i2c: using lines 11 (SDA) and 21 (SCL)
[   16.088414] Loading modules backported from Linux version v5.10.42-0-g65859eca4dff
[   16.096295] Backport generated by backports.git v5.10.42-1-0-gbee5c545
[   16.170696] xt_time: kernel timezone is -0000
[   16.338561] PPP generic driver version 2.4.2
[   16.356543] NET: Registered protocol family 24
[   16.466110] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2
[   16.476772] ath9k 18100000.wmac: Falling back to sysfs fallback for: ath9k-eeprom-ahb-18100000.wmac.bin
[   17.048627] ath: EEPROM regdomain sanitized
[   17.048639] ath: EEPROM regdomain: 0x64
[   17.048643] ath: EEPROM indicates we should expect a direct regpair map
[   17.048667] ath: Country alpha2 being used: 00
[   17.048670] ath: Regpair used: 0x64
[   17.061941] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   17.064106] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=12
[   17.135646] kmodloader: done loading kernel modules from /etc/modules.d/*
[   32.598431] eth0: link up (1000Mbps/Full duplex)
[   32.603230] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   32.615577] device eth0 entered promiscuous mode
[   32.621061] br-lan: port 1(eth0.1) entered blocking state
[   32.626718] br-lan: port 1(eth0.1) entered disabled state
[   32.632627] device eth0.1 entered promiscuous mode
[   32.665286] br-lan: port 1(eth0.1) entered blocking state
[   32.670876] br-lan: port 1(eth0.1) entered forwarding state
[   32.730697] eth1: link up (1000Mbps/Full duplex)
[   32.755055] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   32.764697] device eth1 entered promiscuous mode
[   32.785704] br-lan: port 2(eth1.1) entered blocking state
[   32.791308] br-lan: port 2(eth1.1) entered disabled state
[   32.797295] device eth1.1 entered promiscuous mode
[   32.802390] br-lan: port 2(eth1.1) entered blocking state
[   32.808022] br-lan: port 2(eth1.1) entered forwarding state
[   33.625248] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

@danijeltudek

not to hurry u, but i think you forgot me :wink:

I had 19.x installed and after upgrading it broke and I could not install it anymore or it would complain about bad sectors. I could install latest 18 series. So I guess bad sector fix works?

I can confirm it works and boots correctly, but switch init is indeed slow. It should take around 32 seconds to get the switch ready, but it takes around 45 seconds on this firmware. Also everything else seems to be somewhat slow. Webui takes around minute or so to be accessible even after switch is configured.


RouterBOOT booter 6.46.8

RB2011UiAS

CPU frequency: 750 MHz
 Memory speed: 200 MHz
  Memory size: 128 MiB
    NAND size: 128 MiB

Press any key within 2 seconds to enter setup..

loading kernel... OK
setting up elf image... OK
jumping to kernel code
[    0.000000] Linux version 5.4.115 (user@4c417761bab4) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16427+218-f4f4259ca1)) #0 Thu May 6 18:31:51 2021
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is MikroTik RouterBOARD 2011UiAS-2HnD
[    0.000000] SoC: Atheros AR9344 rev 3
[    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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 121220K/131072K available (5646K kernel code, 180K rwdata, 1244K rodata, 1240K init, 201K bss, 9852K 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] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0
[    0.000000] CPU clock: 750.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5096694524 ns
[    0.000007] sched_clock: 32 bits at 375MHz, resolution 2ns, wraps every 5726622718ns
[    0.008851] Calibrating delay loop... 373.55 BogoMIPS (lpj=1867776)
[    0.075965] pid_max: default: 32768 minimum: 301
[    0.081353] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.089644] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.102931] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.114136] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.121961] pinctrl core: initialized pinctrl subsystem
[    0.128847] NET: Registered protocol family 16
[    0.165161] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.179417] clocksource: Switched to clocksource MIPS
[    0.186279] NET: Registered protocol family 2
[    0.191956] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.201524] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.210240] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.218250] TCP: Hash tables configured (established 1024 bind 1024)
[    0.225602] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.233075] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.241277] NET: Registered protocol family 1
[    0.246248] PCI: CLS 0 bytes, default 32
[    0.254325] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.267923] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.274597] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.301864] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.309263] gpio-export gpio-export: 5 gpio(s) exported
[    0.316051] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.323966] printk: console [ttyS0] disabled
[    0.328853] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.338696] printk: console [ttyS0] enabled
[    0.338696] printk: console [ttyS0] enabled
[    0.347766] printk: bootconsole [early0] disabled
[    0.347766] printk: bootconsole [early0] disabled
[    0.367513] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.374120] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    0.379337] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.387204] Scanning device for bad blocks
[    0.397281] random: fast init done
[    0.545926] 3 fixed-partitions partitions found on MTD device ar934x-nand
[    0.552952] Creating 3 MTD partitions on "ar934x-nand":
[    0.558367] 0x000000000000-0x000000040000 : "booter"
[    0.564410] 0x000000040000-0x000000400000 : "kernel"
[    0.570449] 0x000000400000-0x000008000000 : "ubi"
[    0.581112] spi-nor spi0.0: gd25d05 (64 Kbytes)
[    0.585832] 1 fixed-partitions partitions found on MTD device spi0.0
[    0.592437] Creating 1 MTD partitions on "spi0.0":
[    0.597396] 0x000000000000-0x000000010000 : "RouterBoot"
[    0.604932] 4 routerbootpart partitions found on MTD device RouterBoot
[    0.611724] Creating 4 MTD partitions on "RouterBoot":
[    0.617037] 0x000000000000-0x00000000c000 : "bootloader1"
[    0.623548] 0x00000000c000-0x00000000d000 : "hard_config"
[    0.630051] 0x00000000d000-0x00000000e000 : "bios"
[    0.635840] 0x00000000e000-0x00000000f000 : "soft_config"
[    0.643163] libphy: Fixed MDIO Bus: probed
[    0.653114] ag71xx 19000000.eth: invalid MAC address, using random address
[    1.001225] libphy: ag71xx_mdio: probed
[    1.008556] switch0: Atheros AR8327 rev. 4 switch registered on mdio.0
[    1.671605] mdio_bus mdio.0: MDIO device at address 6 is missing.
[    1.681479] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.691333] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-rxid
[    1.698478] ag71xx 1a000000.eth: invalid MAC address, using random address
[    2.379815] libphy: ag71xx_mdio: probed
[    2.385283] libphy: ar8xxx-mdio: probed
[    2.398392] switch1: Atheros AR8229 rev. 1 switch registered on mdio.1
[    2.452227] ag71xx 1a000000.eth: connected to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    2.462121] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    2.468822] ath79-wdt 18060008.wdt: timeout value must be 0 < timeout < 10, using 10
[    2.480402] MikroTik RouterBOARD hardware configuration sysfs driver v0.06
[    2.488617] MikroTik RouterBOARD software configuration sysfs driver v0.03
[    2.496784] NET: Registered protocol family 10
[    2.503760] Segment Routing with IPv6
[    2.507649] NET: Registered protocol family 17
[    2.512576] 8021q: 802.1Q VLAN Support v1.8
[    2.522428] UBI: auto-attach mtd2
[    2.525879] ubi0: attaching mtd2
[    3.580805] random: crng init done
[    3.747884] ubi0: scanning is finished
[    3.767918] ubi0: attached mtd2 (name "ubi", size 124 MiB)
[    3.773640] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    3.780759] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    3.787674] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    3.794694] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[    3.800901] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    3.808356] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 907882770
[    3.817703] ubi0: available PEBs: 0, total reserved PEBs: 992, PEBs reserved for bad PEB handling: 20
[    3.827303] ubi0: background thread "ubi_bgt0d" started, PID 400
[    3.837201] block ubiblock0_1: created from ubi0:1(rootfs)
[    3.842923] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    3.857866] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    3.871219] Freeing unused kernel memory: 1240K
[    3.875903] This architecture does not have kernel memory protection.
[    3.882581] Run /sbin/init as init process
[    4.377016] init: Console is alive
[    4.380871] init: - watchdog -
[    5.312964] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.415895] usbcore: registered new interface driver usbfs
[    5.421680] usbcore: registered new interface driver hub
[    5.427256] usbcore: registered new device driver usb
[    5.438598] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.453862] SCSI subsystem initialized
[    5.462716] ehci-fsl: Freescale EHCI Host controller driver
[    5.470527] ehci-platform: EHCI generic platform driver
[    5.476159] ehci-platform 1b000000.usb: EHCI Host Controller
[    5.482091] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    5.490289] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    5.522249] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    5.529494] hub 1-0:1.0: USB hub found
[    5.533751] hub 1-0:1.0: 1 port detected
[    5.544038] usbcore: registered new interface driver usb-storage
[    5.551309] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.560914] init: - preinit -
[    8.487648] eth0: link up (1000Mbps/Full duplex)
[    8.499457] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.506329] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   12.712172] UBIFS (ubi0:2): default file-system created
[   12.718777] UBIFS (ubi0:2): Mounting in unauthenticated mode
[   12.724877] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 531
[   12.847435] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   12.855572] UBIFS (ubi0:2): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   12.865821] UBIFS (ubi0:2): FS size: 117411840 bytes (111 MiB, 910 LEBs), journal size 5935104 bytes (5 MiB, 46 LEBs)
[   12.876781] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   12.883623] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID 9320197C-34AD-4841-A767-82129CB0885A, small LPT model
[   12.897937] mount_root: overlay filesystem has not been fully initialized yet
[   12.905788] mount_root: switching to ubifs overlay
[   12.916600] urandom-seed: Seed file not found (/etc/urandom.seed)
[   13.004659] eth0: link down
[   13.026640] procd: - early -
[   13.030079] procd: - watchdog -
[   13.597220] procd: - watchdog -
[   13.601041] procd: - ubus -
[   13.665722] procd: - init -
Please press Enter to activate this console.
[   14.525357] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.698578] i2c /dev entries driver
[   14.712554] i2c-gpio i2c: using lines 11 (SDA) and 21 (SCL)
[   14.732478] Loading modules backported from Linux version v5.10.34-0-g0aa66717f684
[   14.740366] Backport generated by backports.git v5.10.34-1-0-g7b5533e1
[   14.812956] xt_time: kernel timezone is -0000
[   14.996391] urngd: v1.0.2 started.
[   15.052119] PPP generic driver version 2.4.2
[   15.058955] NET: Registered protocol family 24
[   15.160306] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2
[   15.170964] ath9k 18100000.wmac: Falling back to sysfs fallback for: ath9k-eeprom-ahb-18100000.wmac.bin
[   15.487715] ath: phy0: Unable to initialize hardware; initialization status: -5
[   15.529448] ath9k 18100000.wmac: failed to initialize device
[   15.535362] ath9k: probe of 18100000.wmac failed with error -5
[   15.569909] kmodloader: done loading kernel modules from /etc/modules.d/*
[   44.164210] eth0: link up (1000Mbps/Full duplex)
[   44.169003] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   44.189694] device eth0 entered promiscuous mode
[   44.210172] br-lan: port 1(eth0.1) entered blocking state
[   44.215760] br-lan: port 1(eth0.1) entered disabled state
[   44.221684] device eth0.1 entered promiscuous mode
[   44.283081] br-lan: port 1(eth0.1) entered blocking state
[   44.288670] br-lan: port 1(eth0.1) entered forwarding state
[   44.336954] eth1: link up (1000Mbps/Full duplex)
[   44.353406] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   44.367369] device eth1 entered promiscuous mode
[   44.390026] br-lan: port 2(eth1.1) entered blocking state
[   44.395606] br-lan: port 2(eth1.1) entered disabled state
[   44.401536] device eth1.1 entered promiscuous mode
[   44.406613] br-lan: port 2(eth1.1) entered blocking state
[   44.412238] br-lan: port 2(eth1.1) entered forwarding state
[   45.229536] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready