01-360t7.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- a/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts
  2. +++ b/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts
  3. @@ -100,6 +100,10 @@
  4. spi-tx-buswidth = <4>;
  5. spi-rx-buswidth = <4>;
  6. + mediatek,nmbm;
  7. + mediatek,bmt-max-ratio = <1>;
  8. + mediatek,bmt-max-reserved-blocks = <64>;
  9. +
  10. partitions {
  11. compatible = "fixed-partitions";
  12. #address-cells = <1>;
  13. @@ -147,7 +151,7 @@
  14. partition@7300000 {
  15. label = "log";
  16. - reg = <0x7300000 0x0700000>;
  17. + reg = <0x7300000 0x0400000>;
  18. read-only;
  19. };
  20. };
  21. --- a/target/linux/mediatek/image/filogic.mk
  22. +++ b/target/linux/mediatek/image/filogic.mk
  23. @@ -320,19 +320,12 @@ define Device/qihoo_360t7
  24. UBINIZE_OPTS := -E 5
  25. BLOCKSIZE := 128k
  26. PAGESIZE := 2048
  27. + IMAGE_SIZE := 112640k
  28. KERNEL_IN_UBI := 1
  29. - UBOOTENV_IN_UBI := 1
  30. - IMAGES := sysupgrade.itb
  31. - KERNEL_INITRAMFS_SUFFIX := -recovery.itb
  32. - KERNEL := kernel-bin | gzip
  33. - KERNEL_INITRAMFS := kernel-bin | lzma | \
  34. - fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
  35. - IMAGE/sysupgrade.itb := append-kernel | \
  36. - fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
  37. + IMAGES += factory.bin
  38. + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
  39. + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  40. DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
  41. - ARTIFACTS := preloader.bin bl31-uboot.fip
  42. - ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3
  43. - ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot qihoo_360t7
  44. endef
  45. TARGET_DEVICES += qihoo_360t7