Mikrotik installation instructions (SXT Lite 2)

Hi

I have a Mikrotik SXT Lite 2. It appears as supported by openwrt 18.06.1.
https://openwrt.org/toh/hwdata/mikrotik/mikrotik_rbsxt2ndr3_sxt_lite_2

However I can't find up to date installation instructions. The following page is marked as outdated:
https://openwrt.org/toh/mikrotik/common

Does anyone know what should be changed?

thanks

The device page tells you:

Since Introduce sysupgrade + 64MB/Large NAND sysupgrade images there is no tar.gz image any more, but two sysupgrade.bin images instead.
This documentation needs to be adapted to the new firmware image names.

So, when you look for the firmware, just look for the adapted firmware file names.

That simple.

On the Tech Page you linked - you find:

Firmware OpenWrt Install URL:
http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/mikrotik/openwrt-18.06.1-ar71xx-mikrotik-vmlinux-initramfs.elf
Firmware OpenWrt Upgrade URL:
http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/mikrotik/openwrt-18.06.1-ar71xx-mikrotik-rb-nor-flash-16M-squashfs-sysupgrade.bin

2 Likes

OK so if I understand correctly, I first load the elf file over DHCP/TFTP boot. And then I perform a sysupgrade as I would on a device already running OpenWRT?

I don't need to use wget2nand or flash the kernel + rootfs separately? And I don't need any other file than these 2?

That's what I did on my MikroTik. In addition, I formatted in the bootloader prior to booting the ELF to flash the BIN.

I did not use wget2nand on my install. I simply booted the ELF and then performed a sysupgrade.

I wouldn't think so, they're the only ones listed as compatible.

1 Like

Hi

when I try to make the sysupgrade, I get the following error:

Device unknown not supported by this image
Supported devices: rb-750-r2 rb-750up-r2 rb-750p-pbr2 rb-911-2hn rb-911-5hn rb-941-2nd rb-951ui-2nd rb-952ui-5ac2nd rb-962uigs-5hact2hnt rb-lhg-5nd rb-map-2nd rb-mapl-2nd rb-wap-2nd
Image check 'fwtool_check_image' failed.

Should I install by forcing the installation? Or am I doing something wrong?

[    0.000000] Linux version 4.9.120 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7101-a63e38b) ) #0 Wed Aug 15 20:42:39 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 3
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    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] free_area_init_node: node 0, pgdat 804757d4, node_mem_map 81000020
[    0.000000]   Normal zone: 128 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 in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: no-uart no-nand parts=1 boot_part_size=16777216 gpio=261691 HZ=300000000 mem=64M kmac=64:D1:54:2D:79:C4 board=911L board=911L ver=3.35 hw_opt=00204001 boot=1 mlc=10 console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 57716K/65536K available (3578K kernel code, 153K rwdata, 452K rodata, 2400K init, 217K bss, 7820K 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] Clocks: CPU:600.000MHz, DDR:450.000MHz, AHB:450.000MHz, Ref:25.000MHz
[    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.008871] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.081948] pid_max: default: 32768 minimum: 301
[    0.087302] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094822] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.105975] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.117175] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.125395] NET: Registered protocol family 16
[    0.133694] MIPS: machine is MikroTik RouterBOARD SXT 2nD r3
[    0.372142] Can't analyze schedule() prologue at 803dae54
[    0.392343] clocksource: Switched to clocksource MIPS
[    0.399224] NET: Registered protocol family 2
[    0.405207] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.413186] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.420405] TCP: Hash tables configured (established 1024 bind 1024)
[    0.427722] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.434394] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.441779] NET: Registered protocol family 1
[    0.446805] PCI: CLS 0 bytes, default 32
[    2.572357] random: fast init done
[    3.160180] Crashlog allocated RAM at address 0x3f00000
[    3.167414] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    3.182245] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.188910] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    3.292880] io scheduler noop registered
[    3.297334] io scheduler deadline registered (default)
[    3.303656] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    3.313738] console [ttyS0] disabled
[    3.337964] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    3.347762] console [ttyS0] enabled
[    3.355318] bootconsole [early0] disabled
[    3.370226] m25p80 spi0.0: found w25q128, expected m25p80
[    3.386650] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    3.432833] Creating 6 MTD partitions on "spi0.0":
[    3.437807] 0x000000000000-0x00000000e000 : "routerboot"
[    3.465934] 0x00000000e000-0x00000000f000 : "hard_config"
[    3.494124] 0x00000000f000-0x000000010000 : "bios"
[    3.521673] 0x000000010000-0x00000001f000 : "routerboot2"
[    3.549907] 0x00000001f000-0x000000020000 : "soft_config"
[    3.578118] 0x000000020000-0x000001000000 : "firmware"
[    3.607165] libphy: Fixed MDIO Bus: probed
[    3.727243] libphy: ag71xx_mdio: probed
[    4.354101] ag71xx-mdio.1: Found an AR934X built-in switch
[    4.406574] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    4.415065] NET: Registered protocol family 10
[    4.424231] NET: Registered protocol family 17
[    4.428894] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.442319] 8021q: 802.1Q VLAN Support v1.8
[    4.464341] Freeing unused kernel memory: 2400K
[    4.469027] This architecture does not have kernel memory protection.
[    4.491053] init: Console is alive
[    4.494975] init: - watchdog -
[    4.519454] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.529047] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.539396] init: - preinit -
[    4.767599] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.403580] eth0: link up (1000Mbps/Full duplex)
[    6.408392] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.922695] eth0: link down
[    7.937559] procd: - early -
[    7.940647] procd: - watchdog -
[    8.512494] procd: - watchdog -
[    8.516031] procd: - ubus -
[    8.526961] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.569792] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.576924] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.584514] procd: - init -
[    8.775860] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.786617] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.802845] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    8.811116] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    8.821085] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.835166] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    8.894614] xt_time: kernel timezone is -0000
[    8.954423] PPP generic driver version 2.4.2
[    8.961398] NET: Registered protocol family 24
[    9.008049] ath: EEPROM regdomain: 0x0
[    9.008058] ath: EEPROM indicates default country code should be used
[    9.008061] ath: doing EEPROM country->regdmn map search
[    9.008077] ath: country maps to regdmn code: 0x3a
[    9.008082] ath: Country alpha2 being used: US
[    9.008086] ath: Regpair used: 0x3a
[    9.021079] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.025423] ieee80211 phy0: Atheros AR9340 Rev:3 mem=0xb8100000, irq=47
[    9.072796] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.212480] urandom_read: 5 callbacks suppressed
[   10.212487] random: jshn: uninitialized urandom read (4 bytes read)
[   10.287229] random: jshn: uninitialized urandom read (4 bytes read)
[   20.998700] br-lan: port 1(eth0) entered blocking state
[   21.004170] br-lan: port 1(eth0) entered disabled state
[   21.009956] device eth0 entered promiscuous mode
[   21.108255] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   22.633642] eth0: link up (1000Mbps/Full duplex)
[   22.638461] br-lan: port 1(eth0) entered blocking state
[   22.643898] br-lan: port 1(eth0) entered forwarding state
[   22.722602] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  102.690641] random: crng init done
[  213.865301] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

this device has NOR flash, not NAND, right?

By looking at the code, I think there might be a bug.

I found the following file refering to the SXT Lite (both 2 and 5 GHz versions):

target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c

however this file assumes the device uses NAND flash. Perhaps an older revision used NAND flash?

I also found this file, which includes support for RouterBOARD 911-2Hn. I appears to be exactly the same thing as the SXT Lite 2, but is a bare board only (no case, no antenna):

target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c

OK, I forced the installation and it worked. Well at first it didn't. Then I erased the flash, and forced the installation again and it did work. I created a wiki page for the device. And will try to get the device officially supported.

Question for those more experienced. the goal is to put openwrt. I have three devices, 2 sxt lite 5 and one sxt lite 2, all rev2, 5k with different flash drives, the ramdisk starts up everywhere, on the Toshiba flash drive it boots successfully after sysupgrade, the one with the Samsung flash drive after power up squeaks, power goes out and shines only userled. sxt lite 2 reacts in the same way, the flash drive is also Samsung. maybe someone has firmware for this micro. successful boot rom with toshiba fe6178 TC58BVG0S3HTA00, failed to boot with samsung 531 K9F1G08U0E SB0
all devices with nand 128mb not NOR

Make a new thread, this is 4 years old.

1 Like