Table of Contents

MikroTik LHG5 Board Based Devices

LHG2-LHG5 mikrotik_sxtsq-lite2-front.jpg

Under Construction!
This page is currently under construction. You can edit the article to help completing it.

LHG 5 Based devices platform is based on the CPU AR9344 MIPSBE, used in various MikroTik wireless devices with 802.11a/n radio, 1x 10/100 Mbps Fast Ethernet port, 16 MB SPI NOR flash and 64 MB RAM DDR2. It comprises the following Mikrotik devices:

* LHG 5 (RBLHG-5nD)

* LHG XL HP5 (RBLHG-5HPnD-XL) NOT SUPPORTED YET OFFICIALLY BY OPENWRT!!!

* SXTsq lite5 (RBSXTsq5nD) NOT SUPPORTED YET OFFICIALLY BY OPENWRT!!!

* Disc Lite5 (RBDisc-5nD) NOT SUPPORTED YET OFFICIALLY BY OPENWRT!!!

* LDF5 (RBLDF-5nD) NOT SUPPORTED YET OFFICIALLY BY OPENWRT!!!

They all share the same PCB, just the hardware name changes. Although some of these devices do not have official OpenWRT image support, since they are using the same PCB, it is possible that you can use only the LHG5 initramfs image to test if OpenWRT works well on those devices that do not yet have support.

Experimental Versions

None at this time.

Hardware Highlights

Installation

Install OpenWrt (common Mikrotik procedure)

OpenWrt is not compatible with the bootloader of RouterOS v7. If is possible, downgrade RouterOS and RouterBoot to version 6.49.x or lower. Tested on versions of RouterOS with routerboot version 6.49.15. ,so in previous versions of RouterOS it will work.

Easy way to install OpenWrt using Windows and Tiny PXE Server

On this video https://www.youtube.com/watch?v=48mcR4oGn_0 , you will see how to use Tiny PXE Server on Windows to easily install Open WRT. Although it applies to a different device, the steps are exactly the same for the most Mikrotik Devices.

Flash Layout

root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "RouterBoot"
mtd1: 0000e000 00010000 "bootloader1"
mtd2: 00001000 00010000 "hard_config"
mtd3: 00001000 00010000 "bios"
mtd4: 0000f000 00010000 "bootloader2"
mtd5: 00001000 00010000 "soft_config"
mtd6: 00fe0000 00010000 "firmware"

OEM easy installation

FIXME The instructions below are for Broadcom devices and only serve as an example.
Remove / modify them if they do not apply to this particular device!

This section deals with

  • How you install OpenWrt from a device freshly opened
  • The steps required such as reset to factory defaults if the device has already been configured

Note: Reset router to factory defaults if it has been previously configured.

  • Browse to http://192.168.1.1/Upgrade.asp
  • Upload .bin file to router
  • Wait for it to reboot
  • Telnet to 192.168.1.1 and set a root password, or browse to http://192.168.1.1 if LuCI is installed.

OEM installation using the TFTP method

generic.flashing.tftp

Specific values needed for tftp

FIXME Enter values for “FILL-IN” below

Bootloader tftp server IPv4 address FILL-IN
Bootloader MAC address (special) FILL-IN
Firmware tftp image Latest OpenWrt release (NOTE: Name must contain “tftp”)
TFTP transfer window FILL-IN seconds
TFTP window start approximately FILL-IN seconds after power on
TFTP client required IP address FILL-IN

Upgrading OpenWrt

generic.sysupgrade

FIXME These are generic instructions. Update with your router's specifics.

LuCI Web Upgrade Process

  • Browse to http://192.168.1.1/cgi-bin/luci/mini/system/upgrade/ LuCI Upgrade URL
  • Upload image file for sysupgrade to LuCI
  • Wait for reboot

Terminal Upgrade Process

If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line. There are two command line methods for upgrading:

  • sysupgrade
  • mtd

Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.

sysupgrade

  • Login as root via SSH on 192.168.1.1, then enter the following commands:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
sysupgrade /tmp/xxx.abc

mtd

If sysupgrade does not support this router, use mtd.

  • Login as root via SSH on 192.168.1.1, then enter the following commands:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
mtd write /tmp/xxx.abc linux && reboot

Debricking and / or back to RouterOS

Mikrotik Devices can be reverted to stock firmeware / be debricked in an easy way. Follow the instructions here: https://wiki.mikrotik.com/wiki/Manual:Reset and here https://wiki.mikrotik.com/wiki/Manual:Netinstall

Reset Button, the Mikrotik Netinstall tool and the right firmware file do the job. As Mikrotik uses different plattforms, be sure to get the right package. LHG5 Boards is based on Router OS 6, MIPSBE Plattform (32Bit)

Beware: After you flashed the stock firmware, the device has NO configuration. You must connect to the device with the help of Mikrotik “Winbox” software which uses the MAC Address (as the device has no IP) . After Connecting, restore the default configuration and reboot. Then you are ready to start all over again

Failsafe mode

failsafe_and_factory_reset

Basic configuration

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

Specific Configuration

FIXME Please fill in real values for this device, then remove the EXAMPLEs

Network interfaces

The default network configuration is:

Interface Name Description Default configuration
br-lan EXAMPLE LAN & WiFi EXAMPLE 192.168.1.1/24
vlan0 (eth0.0) EXAMPLE LAN ports (1 to 4) EXAMPLE None
vlan1 (eth0.1) EXAMPLE WAN port EXAMPLE DHCP
wl0 EXAMPLE WiFi EXAMPLE Disabled

Switch Ports (for VLANs)

FIXME Please fill in real values for this device, then remove the EXAMPLEs

Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on.

Port Switch port
Internet (WAN) EXAMPLE 4
LAN 1 EXAMPLE 3
LAN 2 EXAMPLE 2
LAN 3 EXAMPLE 1
LAN 4 EXAMPLE 0

Buttons

hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.

FIXME Please fill in real values for this device, then remove the EXAMPLEs

The MikroTik LHG5 Board Based Devices has the following buttons:

BUTTON Event
EXAMPLE Reset reset
EXAMPLE Secure Easy Setup ses
EXAMPLE No buttons at all. -

Hardware

Info

FIXME

  1. This table is automatically generated, once the correct filters for Brand and Model are set.
  2. If you see “Nothing.” instead of a table, please edit this section and adjust the filters with the proper Brand and Model. Just try, it's easy.
  3. If you still don't see a table here, or a table filled with '¿': Is there already a Techdata page available for MikroTik LHG5 Board Based Devices ? If not: Create one.
  4. If you see a table with the desired device data, everything is OK and you can delete this text and the <WRAP> that encloses it.
  5. If it still doesn't work: Don't panic, calm down, take a deep breath and contact a wiki admin (tmomas) for help.

Photos

Front:
Insert photo of front of the casing

Back:
Insert photo of back of the casing

Backside label:
Insert photo of backside label

Opening the case

Note: This will void your warranty!

FIXME Describe what needs to be done to open the device, e.g. remove rubber feet, adhesive labels, screws, ...

  • To remove the cover and open the device, do a/b/c

Main PCB:
Insert photo of PCB

Serial

port.serial general information about the serial port, serial port cable, etc.

How to connect to the Serial Port of this specific device:
Insert photo of PCB with markings for serial port

FIXME Replace EXAMPLE by real values.

Serial connection parameters
for MikroTik LHG5 Board Based Devices @@Version@@
EXAMPLE 115200, 8N1, 3.3V

JTAG

port.jtag general information about the JTAG port, JTAG cable, etc.

How to connect to the JTAG Port of this specific device:
Insert photo of PCB with markings for JTAG port

Bootloader mods

bootloader

Hardware mods

None so far.

Bootlogs

OEM bootlog

COPY HERE THE BOOTLOG WITH THE ORIGINAL FIRMWARE


OpenWrt bootlog


Notes

Space for additional notes, links to forum threads or other resources.

Tags

FIXME Add tags below, then remove this fixme.

How to add tags