openwrt-pf/target/linux/mediatek
Fil Dunsky 6487cc9a1f
mediatek: add support for Hiveton H5000M
Hardware specification:
SoC: MediaTek MT7987A
Flash: 8GB eMMC
RAM: 1GB DDR4
Ethernet: 2x 2.5GbE (RTL8221B PHY + Internal PHY)
WiFi: MediaTek MT7992 / 2+3 antenna variant
Interface: M.2 USB for 5G module
LED: Power (hw-controlled), 2.5G WAN (user-definable),
5G Module (hw-controlled), LED-3 (user-definable),
LED-4 (user-definable)
Button: Reset, WPS
Power: USB Type-C PD
Other: PWM Fan control

MAC address assignment is unconventional: the board has no Factory
partition with pre-programmed MACs. Instead, all addresses are
derived from the eMMC CID at runtime:

  LAN : macaddr_generate_from_mmc_cid mmcblk0
  WAN : LAN + 1 (label_mac)
  phy0: LAN + 2
  phy1: LAN + 3

This matches the vendor firmware behaviour and ensures stable,
unique addresses across reboots without a dedicated EEPROM region
for MACs.

Flash instructions:

Factory `mmcblk0p2` partition is empty,
stock ImmortalWrt-798x-mt799x-6.6-mtwifi from PadavanOnly firmware
uses `MT7991_MT7976_EEPROM_BE5040_iPAiLNA.bin`.
Flashing this eeprom before flashing OpenWrt will make OpenWrt read eeprom:
```
dd if=/lib/firmware/MT7991_MT7976_EEPROM_BE5040_iPAiLNA.bin of=/dev/mmcblk0p2 bs=1 count=7680
sync
```
But it will have wifi issues for now. It's better to use OpenWrt fallback eeprom for now.

Power off the device.
Press and hold the Reset button.
Power on the device while keeping the Reset button pressed.
Wait for the device to enter U-Boot recovery mode.
Connect to the device via Ethernet (default IP: 192.168.1.1).
Set your PC's IP to 192.168.1.x (e.g., 192.168.1.100).
Open a web browser and navigate to http://192.168.1.1
Upload and flash the OpenWrt firmware
Wait for the flashing process to complete and the device to reboot.

Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21398
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-07-09 09:41:47 +02:00
..
base-files
dts mediatek: add support for Hiveton H5000M 2026-07-09 09:41:47 +02:00
files/drivers treewide: remove fwnode_for_each_available_child_node 2026-07-09 09:33:41 +02:00
files-6.18 mediatek: filogic: replace mtd-eeprom with nvmem 2026-06-14 23:42:52 +02:00
filogic mediatek: add support for Hiveton H5000M 2026-07-09 09:41:47 +02:00
image mediatek: add support for Hiveton H5000M 2026-07-09 09:41:47 +02:00
mt7622 mediatek: mt7622: enable CONFIG_MTD_VIRT_CONCAT 2026-06-01 00:32:38 +02:00
mt7623 mediatek: drop v6.12 and default to v6.18 2026-04-24 15:52:51 +01:00
mt7629 mediatek: drop v6.12 and default to v6.18 2026-04-24 15:52:51 +01:00
patches-6.18 kernel: bump 6.18 to 6.18.36 2026-06-23 09:05:22 +02:00
Makefile mediatek: drop v6.12 and default to v6.18 2026-04-24 15:52:51 +01:00
modules.mk mediatek: 6.18: add missing module dependency 2026-04-20 01:10:32 +01:00