diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index af95cd78cac7167b7647e6e3d2c5e4793e011480..5dd0ae6fe0e052056a7733b9d30055a192a4d0a6 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -405,6 +405,10 @@ ramips-mt76x8
 
   - VoCore2
 
+* Xiaomi
+
+  - Xiaomi Mi Router 4A (100M Edition)
+
 ramips-rt305x [#deprecated]_  [#device-class-tiny]_
 ---------------------------------------------------
 
diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac b/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac
index 027239ac694b44277ee856e83d52e5a83221eb60..dae573db6ba2e83c52dc0b2a87bd05611f1f05f6 100755
--- a/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac
+++ b/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac
@@ -130,6 +130,9 @@ local primary_addrs = {
 			'tplink,c2-v1',
 			'ex3700'
 		}},
+		{'ramips', 'mt76x8', {
+			'xiaomi,mir4a-100m',
+		}},
 		{'x86'},
 	}},
 	{interface('wan'), {
diff --git a/targets/ramips-mt76x8 b/targets/ramips-mt76x8
index ccc83143f2e82f795e3f68fbc621915c98995535..1af12e5cac9613f2752b531b041697a1cfb122f5 100644
--- a/targets/ramips-mt76x8
+++ b/targets/ramips-mt76x8
@@ -74,3 +74,10 @@ device('tp-link-tl-wr902ac-v3', 'tplink_tl-wr902ac-v3', {
 device('vocore2', 'vocore2', {
 	factory = false,
 })
+
+
+-- Xiaomi
+
+device('xiaomi-mi-router-4a-100m-edition', 'xiaomi_mir4a-100m', {
+	factory = false,
+})