mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
mediatek: mt7622: convert unifi6lr-v{1,2,3}-ubootmod to fitblk
No bootloader changes needed in this case, smooth transition. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
208f6c1232
commit
41c053141e
@ -52,8 +52,10 @@ buffalo,wsr-2533dhp2)
|
||||
ruijie,rg-ew3200gx-pro)
|
||||
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x20000" "0x20000"
|
||||
;;
|
||||
ubnt,unifi-6-lr-ubootmod)
|
||||
ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x1000"
|
||||
ubnt,unifi-6-lr-v1-ubootmod|\
|
||||
ubnt,unifi-6-lr-v2-ubootmod|\
|
||||
ubnt,unifi-6-lr-v3-ubootmod)
|
||||
ubootenv_add_uci_config "/dev/mtd$(find_mtd_index "u-boot-env")" "0x0" "0x4000" "0x1000"
|
||||
;;
|
||||
xiaomi,redmi-router-ax6s)
|
||||
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x40000"
|
||||
|
@ -5,6 +5,11 @@
|
||||
/ {
|
||||
model = "Ubiquiti UniFi 6 LR v1 (U-Boot mod)";
|
||||
compatible = "ubnt,unifi-6-lr-v1-ubootmod", "mediatek,mt7622";
|
||||
|
||||
chosen {
|
||||
rootdisk = <&rootdisk>;
|
||||
bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8 root=/dev/fit0";
|
||||
};
|
||||
};
|
||||
|
||||
&nor_partitions {
|
||||
@ -54,7 +59,7 @@
|
||||
reg = <0x120000 0xee0000>;
|
||||
};
|
||||
|
||||
partition@1000000 {
|
||||
rootdisk: partition@1000000 {
|
||||
compatible = "denx,fit";
|
||||
label = "firmware";
|
||||
reg = <0x1000000 0x3000000>;
|
||||
|
@ -5,6 +5,11 @@
|
||||
/ {
|
||||
model = "Ubiquiti UniFi 6 LR v2 (U-Boot mod)";
|
||||
compatible = "ubnt,unifi-6-lr-v2-ubootmod", "mediatek,mt7622";
|
||||
|
||||
chosen {
|
||||
rootdisk = <&rootdisk>;
|
||||
bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8 root=/dev/fit0";
|
||||
};
|
||||
};
|
||||
|
||||
&nor_partitions {
|
||||
@ -54,7 +59,7 @@
|
||||
reg = <0x120000 0xee0000>;
|
||||
};
|
||||
|
||||
partition@1000000 {
|
||||
rootdisk: partition@1000000 {
|
||||
compatible = "denx,fit";
|
||||
label = "firmware";
|
||||
reg = <0x1000000 0x3000000>;
|
||||
|
@ -5,6 +5,11 @@
|
||||
/ {
|
||||
model = "Ubiquiti UniFi 6 LR v3 (U-Boot mod)";
|
||||
compatible = "ubnt,unifi-6-lr-v3-ubootmod", "mediatek,mt7622";
|
||||
|
||||
chosen {
|
||||
rootdisk = <&rootdisk>;
|
||||
bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8 root=/dev/fit0";
|
||||
};
|
||||
};
|
||||
|
||||
&nor_partitions {
|
||||
@ -54,7 +59,7 @@
|
||||
reg = <0x120000 0xee0000>;
|
||||
};
|
||||
|
||||
partition@1000000 {
|
||||
rootdisk: partition@1000000 {
|
||||
compatible = "denx,fit";
|
||||
label = "firmware";
|
||||
reg = <0x1000000 0x3000000>;
|
||||
|
@ -375,7 +375,7 @@ define Device/ubnt_unifi-6-lr-v1-ubootmod
|
||||
DEVICE_VARIANT := v1 U-Boot mod
|
||||
DEVICE_DTS := mt7622-ubnt-unifi-6-lr-v1-ubootmod
|
||||
DEVICE_DTS_DIR := ../dts
|
||||
DEVICE_PACKAGES := kmod-mt7915-firmware kmod-leds-ubnt-ledbar
|
||||
DEVICE_PACKAGES := fitblk kmod-mt7915-firmware kmod-leds-ubnt-ledbar
|
||||
KERNEL := kernel-bin | lzma
|
||||
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
||||
KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
||||
@ -405,7 +405,7 @@ define Device/ubnt_unifi-6-lr-v2-ubootmod
|
||||
DEVICE_VARIANT := v2 U-Boot mod
|
||||
DEVICE_DTS := mt7622-ubnt-unifi-6-lr-v2-ubootmod
|
||||
DEVICE_DTS_DIR := ../dts
|
||||
DEVICE_PACKAGES := kmod-mt7915-firmware
|
||||
DEVICE_PACKAGES := fitblk kmod-mt7915-firmware
|
||||
KERNEL := kernel-bin | lzma
|
||||
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
||||
KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
||||
@ -434,7 +434,7 @@ define Device/ubnt_unifi-6-lr-v3-ubootmod
|
||||
DEVICE_VARIANT := v3 U-Boot mod
|
||||
DEVICE_DTS := mt7622-ubnt-unifi-6-lr-v3-ubootmod
|
||||
DEVICE_DTS_DIR := ../dts
|
||||
DEVICE_PACKAGES := kmod-mt7915-firmware
|
||||
DEVICE_PACKAGES := fitblk kmod-mt7915-firmware
|
||||
KERNEL := kernel-bin | lzma
|
||||
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
||||
KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
||||
|
@ -21,7 +21,10 @@ platform_do_upgrade() {
|
||||
local file_type=$(identify $1)
|
||||
|
||||
case "$board" in
|
||||
bananapi,bpi-r64)
|
||||
bananapi,bpi-r64|\
|
||||
ubnt,unifi-6-lr-v1-ubootmod|\
|
||||
ubnt,unifi-6-lr-v2-ubootmod|\
|
||||
ubnt,unifi-6-lr-v3-ubootmod)
|
||||
[ -e /dev/fit0 ] && fitblk /dev/fit0
|
||||
[ -e /dev/fitrw ] && fitblk /dev/fitrw
|
||||
bootdev="$(platform_get_bootdev)"
|
||||
@ -30,6 +33,10 @@ platform_do_upgrade() {
|
||||
EMMC_KERN_DEV="/dev/$bootdev"
|
||||
emmc_do_upgrade "$1"
|
||||
;;
|
||||
mtdblock*)
|
||||
PART_NAME="/dev/mtd${bootdev:8}"
|
||||
default_do_upgrade "$1"
|
||||
;;
|
||||
ubiblock*)
|
||||
CI_KERNPART="fit"
|
||||
nand_do_upgrade "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user