diff options
author | Furong Xu <xfr@outlook.com> | 2022-12-22 10:40:26 +0800 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-12-29 03:00:31 +0000 |
commit | 8bac5dc18a139e13338956e83d8dc4948824a82f (patch) | |
tree | 29b580f3f599ae0251d3aa28ed7bd12a6888ca79 /target/linux/mediatek/filogic/base-files/etc/board.d/02_network | |
parent | 045baca10b157fcc57461392cf27838d147ae5bd (diff) | |
download | upstream-8bac5dc18a139e13338956e83d8dc4948824a82f.tar.gz upstream-8bac5dc18a139e13338956e83d8dc4948824a82f.tar.bz2 upstream-8bac5dc18a139e13338956e83d8dc4948824a82f.zip |
mediatek: add new layout for Xiaomi Redmi Router AX6000 for OpenWrt U-Boot
This new layout is only bootable with OpenWrt U-Boot. It reuses the
two crash partions and expands the ubi partion to the end of whole flash.
Do not use this layout with stock U-Boot!
Signed-off-by: Furong Xu <xfr@outlook.com>
Diffstat (limited to 'target/linux/mediatek/filogic/base-files/etc/board.d/02_network')
-rw-r--r-- | target/linux/mediatek/filogic/base-files/etc/board.d/02_network | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network index 1c98dcc7cb..608161f0ad 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network @@ -17,7 +17,8 @@ mediatek_setup_interfaces() ucidef_set_interface_macaddr "wan" "$(macaddr_add $(cat /sys/class/net/eth0/address) 1)" ;; xiaomi,redmi-router-ax6000|\ - xiaomi,redmi-router-ax6000-stock) + xiaomi,redmi-router-ax6000-stock|\ + xiaomi,redmi-router-ax6000-ubootmod) ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" wan ;; *) @@ -35,7 +36,8 @@ mediatek_setup_macs() case $board in xiaomi,redmi-router-ax6000|\ - xiaomi,redmi-router-ax6000-stock) + xiaomi,redmi-router-ax6000-stock|\ + xiaomi,redmi-router-ax6000-ubootmod) wan_mac=$(mtd_get_mac_ascii Bdata ethaddr_wan) label_mac=$wan_mac ;; |