MikroTik LHG-HB platform
The LHG-HB platform is the board design based on the Qualcomm Atheros QCA9533 used in various MikroTik wireless devices with 802.11b/g/n radio, 1x 10/100 Mbps Ethernet port, 16 MB SPI NOR flash and 64 MB RAM:
- LHG 2 (RBLHG-2nD)
- SXTsq Lite2 (RBSXTsq2nD)
and possibly also (untested):
MikroTik LHG 2 (RBLHG-2nD)
The LHG 2 (Light Head Grid) is a compact and light 802.11b/g/n outdoor wireless device with an integrated dual polarisation 18 dBi grid antenna and one 10/100 Mbps Ethernet port for point to point links or for use as a CPE.
MikroTik SXTsq Lite 2 (RBSXTsq2nD)
The SXTsq Lite2 is a compact and lightweight 802.11b/g/n outdoor wireless device with an integrated 10 dBi antenna for point-to-point links or as a CPE unit, compact, weatherproof and easy to mount.
Supported Versions
NB: The SXTsq Lite2 is the exact same hardware has the LHG 2, with a different case and antenna: it can run the LHG 2nD image just fine.
Experimental Versions
None at this time.
Hardware Highlights
Installation
Upgrading OpenWrt
Debricking
Failsafe mode
Basic configuration
→ Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.
Specific Configuration
Network interfaces
The default network configuration is:
Interface Name | Description | Default configuration |
---|---|---|
br-lan | LAN & WiFi | 192.168.1.1/24 |
wlan0 | WiFi | Disabled |
Buttons
The MikroTik LHG-HB platform has the following buttons:
BUTTON | Event |
---|---|
Reset | reset |
Note: the reset button shares GPIO 16 with the disabled rssihigh LED. To avoid conflicting behaviour, only the button is registered.
The hardware.button page contains information on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.
Bootlogs
OEM bootlog
N/A (OEM bootlog is disabled).
OpenWrt bootlog
[ 0.000000] Linux version 5.15.167 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Mon Sep 23 12:34:46 2024 [ 0.000000] printk: bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc) [ 0.000000] MIPS: machine is MikroTik RouterBOARD LHG 2nD [ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0 [ 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] 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,115200n8 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: 55200K/65536K available (6746K kernel code, 592K rwdata, 856K rodata, 1204K init, 221K bss, 10336K 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] CPU clock: 650.000 MHz [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns [ 0.000002] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns [ 0.008948] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688) [ 0.076049] pid_max: default: 32768 minimum: 301 [ 0.082329] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.090643] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.106188] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.117424] futex hash table entries: 256 (order: -1, 3072 bytes, linear) [ 0.125392] pinctrl core: initialized pinctrl subsystem [ 0.133357] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.140673] thermal_sys: Registered thermal governor 'step_wise' [ 0.155534] clocksource: Switched to clocksource MIPS [ 0.169713] NET: Registered PF_INET protocol family [ 0.175516] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.184795] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.194487] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.203296] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.212011] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.220037] TCP: Hash tables configured (established 1024 bind 1024) [ 0.227430] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.234887] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.243302] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.249835] PCI: CLS 0 bytes, default 32 [ 0.258185] workingset: timestamp_bits=14 max_order=14 bucket_order=0 [ 0.271517] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.278230] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc. [ 0.290965] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.304100] pinctrl-single 1804002c.pinmux: 576 pins, size 72 [ 0.312112] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.322326] printk: console [ttyS0] disabled [ 0.327334] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A [ 0.337169] printk: console [ttyS0] enabled [ 0.346231] printk: bootconsole [early0] disabled [ 0.378847] spi-nor spi0.0: w25q128jv (16384 Kbytes) [ 0.384057] 2 fixed-partitions partitions found on MTD device spi0.0 [ 0.390707] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 0.397618] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 0.404789] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 0.411699] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 0.418789] Creating 2 MTD partitions on “spi0.0”: [ 0.423749] 0x000000000000-0x000000020000 : “RouterBoot” [ 0.436103] 5 routerbootpart partitions found on MTD device RouterBoot [ 0.442880] Creating 5 MTD partitions on “RouterBoot”: [ 0.448228] 0x000000000000-0x00000000e000 : “bootloader1” [ 0.456116] 0x00000000e000-0x00000000f000 : “hard_config” [ 0.462890] 0x00000000f000-0x000000010000 : “bios” [ 0.470914] 0x000000010000-0x00000001f000 : “bootloader2” [ 0.477807] 0x00000001f000-0x000000020000 : “soft_config” [ 0.486432] 0x000000020000-0x000001000000 : “firmware” [ 0.493695] 2 minor-fw partitions found on MTD device firmware [ 0.499812] Creating 2 MTD partitions on “firmware”: [ 0.504947] 0x000000000000-0x0000002a0000 : “kernel” [ 0.512917] 0x0000002a0000-0x000000fe0000 : “rootfs” [ 0.519192] mtd: setting mtd8 (rootfs) as root device [ 0.525466] 1 squashfs-split partitions found on MTD device rootfs [ 0.531962] 0x000000620000-0x000000fe0000 : “rootfs_data” [ 0.899626] switch0: Atheros AR8229 rev. 1 switch registered on mdio.0 [ 0.957178] ag71xx 19000000.eth: invalid MAC address, using random address [ 1.297641] ag71xx 19000000.eth: connected to PHY at mdio.0:1f:00 [uid=004dd042, driver=Generic PHY] [ 1.307828] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: mii [ 1.314544] ath79-wdt 18060008.wdt: timeout value must be 0 < timeout < 14, using 14 [ 1.334884] MikroTik RouterBOARD hardware configuration sysfs driver v0.07 [ 1.343847] MikroTik RouterBOARD software configuration sysfs driver v0.05 [ 1.352308] NET: Registered PF_INET6 protocol family [ 1.360479] Segment Routing with IPv6 [ 1.364373] In-situ OAM (IOAM) with IPv6 [ 1.368638] NET: Registered PF_PACKET protocol family [ 1.373975] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 1.387872] 8021q: 802.1Q VLAN Support v1.8 [ 1.398438] clk: Disabling unused clocks [ 1.410087] VFS: Mounted root (squashfs filesystem) readonly on device 31:8. [ 1.423988] Freeing unused kernel image (initmem) memory: 1204K [ 1.430152] This architecture does not have kernel memory protection. [ 1.436825] Run /sbin/init as init process [ 1.441051] with arguments: [ 1.441056] /sbin/init [ 1.441061] with environment: [ 1.441066] HOME=/ [ 1.441071] TERM=linux [ 2.049423] init: Console is alive [ 2.053557] init: - watchdog - [ 3.034222] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 3.095350] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 3.113476] init: - preinit - [ 4.350652] random: jshn: uninitialized urandom read (4 bytes read) [ 4.494336] random: jshn: uninitialized urandom read (4 bytes read) [ 4.560270] random: jshn: uninitialized urandom read (4 bytes read) [ 6.828439] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 6.835161] eth0: link up (100Mbps/Full duplex) [ 7.013364] mount_root: jffs2 not ready yet, using temporary tmpfs overlay [ 7.025415] urandom-seed: Seed file not found (/etc/urandom.seed) [ 7.140529] eth0: link down [ 7.158709] procd: - early - [ 7.162078] procd: - watchdog - [ 7.919459] procd: - watchdog - [ 7.923370] procd: - ubus - [ 8.045270] random: ubusd: uninitialized urandom read (4 bytes read) [ 8.081674] random: ubusd: uninitialized urandom read (4 bytes read) [ 8.094605] random: ubusd: uninitialized urandom read (4 bytes read) [ 8.109050] procd: - init - [ 9.082423] random: jshn: uninitialized urandom read (4 bytes read) [ 9.124106] random: ubusd: uninitialized urandom read (4 bytes read) [ 9.156778] random: ubus: uninitialized urandom read (4 bytes read) [ 9.276880] kmodloader: loading kernel modules from /etc/modules.d/* [ 9.839976] Loading modules backported from Linux version v6.1.110-0-g5f55cad62cc9d [ 9.847968] Backport generated by backports.git v6.1.110-1-0-g965f73fc [ 10.454281] PPP generic driver version 2.4.2 [ 10.476602] NET: Registered PF_PPPOX protocol family [ 10.554085] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2 [ 10.564772] ath9k 18100000.wmac: Falling back to sysfs fallback for: ath9k-eeprom-ahb-18100000.wmac.bin [ 11.009914] ath: EEPROM regdomain: 0x0 [ 11.009945] ath: EEPROM indicates default country code should be used [ 11.009951] ath: doing EEPROM country→regdmn map search [ 11.009967] ath: country maps to regdmn code: 0x3a [ 11.009976] ath: Country alpha2 being used: US [ 11.009984] ath: Regpair used: 0x3a [ 11.022541] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' [ 11.025153] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0x(ptrval), irq=12 [ 11.096062] kmodloader: done loading kernel modules from /etc/modules.d/* [ 12.842755] random: jshn: uninitialized urandom read (4 bytes read) [ 13.486208] urngd: v1.0.2 started. [ 16.797300] random: crng init done [ 16.800842] random: 30 urandom warning(s) missed due to ratelimiting [ 42.487933] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0 [ 42.495101] jffs2_build_filesystem(): unlocking the mtd device... [ 42.505588] done. [ 42.513979] jffs2_build_filesystem(): erasing all blocks after the end marker... [ 44.216498] br-lan: port 1(eth0) entered blocking state [ 44.229734] br-lan: port 1(eth0) entered disabled state [ 44.235455] device eth0 entered promiscuous mode [ 46.268536] eth0: link up (100Mbps/Full duplex) [ 46.273273] br-lan: port 1(eth0) entered blocking state [ 46.278727] br-lan: port 1(eth0) entered forwarding state [ 46.321129] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 86.729487] done. [ 86.731520] jffs2: notice: (1822) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 86.917466] overlayfs: upper fs does not support tmpfile.
Notes
Space for additional notes, links to forum threads or other resources.
- ...