HM-MIFIB Flashing Guide: Linux, LCD Drivers & Battery Setup
Flashing the HM-MIFIB is very similar to standard OpenStick dongles, with the added benefit that lk2nd and Linux can initialize the onboard color LCD display and battery fuel gauge!
Prerequisites
Section titled “Prerequisites”- An authentic HM-MIFIB (MSM8916 with eMMC) router.
- A fully charged battery (at least 3.8V; never flash on an empty battery!).
- Host computer with
fastboot,adb, andpython3-serial. - Safety backups of your calibration data (
fsg,modemst1,modemst2) — see Safety & Backups. - Download the HM-MIFIB OpenStick firmware package (
lk2nd.imganddebian-rootfs.img).
Step 1: Boot into Fastboot Mode
Section titled “Step 1: Boot into Fastboot Mode”- Power on the HM-MIFIB by holding the Power button for 3 seconds until the boot logo appears on the LCD.
- Connect the router to your computer with a Micro-USB or USB-C data cable.
- Check ADB detection:
Terminal window adb devices - Reboot into Fastboot:
Terminal window adb reboot bootloader
Alternative: If the device is powered off, hold the WPS button while inserting the USB cable to enter fastboot directly on supported bootloader revisions.
Confirm fastboot sees the device:
fastboot devicesStep 2: Flash the lk2nd Secondary Bootloader
Section titled “Step 2: Flash the lk2nd Secondary Bootloader”lk2nd includes built-in panel drivers for the HM-MIFIB’s ST7735S display:
# Flash lk2nd into the boot partitionfastboot flash boot lk2nd.img
# Reboot into lk2ndfastboot rebootThe LCD Screen Comes Alive!
Section titled “The LCD Screen Comes Alive!”Unlike headless dongles, the HM-MIFIB will display the lk2nd graphical fastboot screen directly on the 1.44” color LCD, rendering:
- Fastboot mode indicator
- Battery voltage and charge percentage
- Current device tree target (
msm8916-hm-mifib)
Step 3: Flash the Debian Root Filesystem
Section titled “Step 3: Flash the Debian Root Filesystem”Once in the lk2nd fastboot interface:
# Flash the root filesystem into the system partitionfastboot flash rootfs debian-rootfs.img
# Erase old Android userdatafastboot erase userdata
# Reboot into Debian!fastboot rebootStep 4: First Boot & SSH Access over USB
Section titled “Step 4: First Boot & SSH Access over USB”- Allow roughly 45 seconds for the first boot.
- The router will start up and configure a USB Ethernet adapter on your PC.
- The router’s default IP is
192.168.68.1.
Log in via SSH:
ssh user@192.168.68.1- Username:
user - Password:
1 - Root access:
sudo su(password1)
Step 5: Enabling the LCD Screen & Framebuffer in Linux
Section titled “Step 5: Enabling the LCD Screen & Framebuffer in Linux”If your image does not have the console on the display enabled by default, verify the framebuffer:
# Check if fb0 existsls -l /dev/fb0
# Enable text console on the LCDsudo sh -c 'echo 1 > /sys/class/graphics/fbcon/cursor_blink'Running an OLED / LCD System Monitor Widget
Section titled “Running an OLED / LCD System Monitor Widget”You can run a lightweight Python script or daemon that reads /sys/class/power_supply/battery/ and displays live system health on the screen:
# Quick battery monitor testwith open('/sys/class/power_supply/battery/capacity', 'r') as f: capacity = f.read().strip()with open('/sys/class/power_supply/battery/voltage_now', 'r') as f: voltage = int(f.read().strip()) / 1000000
print(f"Battery: {capacity}% ({voltage:.2f}V)")Step 6: 4G LTE Modem Initialization
Section titled “Step 6: 4G LTE Modem Initialization”# Enable modemmmcli -m 0 --enable
# Add your cellular connection profilesudo nmcli connection add type gsm ifname cdc-wdm0 con-name "Cellular4G" apn "internet"sudo nmcli connection up "Cellular4G"Frequently Asked Questions — HM-MIFIB (MIFIB)
Does OpenStick Debian support the HM-MIFIB LCD screen and battery?
Yes. With lk2nd and the HM-MIFIB mainline device tree, Linux initializes both the 1.44-inch SPI color LCD display and the PM8916 battery fuel gauge.
👉 Ready to flash? Download the 1-Click OpenStick Debian Installer or browse Verified Store Links.