--- a/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts +++ b/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts @@ -100,6 +100,10 @@ spi-tx-buswidth = <4>; spi-rx-buswidth = <4>; + mediatek,nmbm; + mediatek,bmt-max-ratio = <1>; + mediatek,bmt-max-reserved-blocks = <64>; + partitions { compatible = "fixed-partitions"; #address-cells = <1>; @@ -147,7 +151,7 @@ partition@7300000 { label = "log"; - reg = <0x7300000 0x0700000>; + reg = <0x7300000 0x0400000>; read-only; }; }; --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -320,19 +320,12 @@ define Device/qihoo_360t7 UBINIZE_OPTS := -E 5 BLOCKSIZE := 128k PAGESIZE := 2048 + IMAGE_SIZE := 112640k KERNEL_IN_UBI := 1 - UBOOTENV_IN_UBI := 1 - IMAGES := sysupgrade.itb - KERNEL_INITRAMFS_SUFFIX := -recovery.itb - KERNEL := kernel-bin | gzip - KERNEL_INITRAMFS := kernel-bin | lzma | \ - fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k - IMAGE/sysupgrade.itb := append-kernel | \ - fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata + IMAGES += factory.bin + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE) + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware - ARTIFACTS := preloader.bin bl31-uboot.fip - ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3 - ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot qihoo_360t7 endef TARGET_DEVICES += qihoo_360t7