360t7.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 := 36864k
  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
  46. --- a/package/boot/uboot-envtools/files/mediatek_filogic
  47. +++ b/package/boot/uboot-envtools/files/mediatek_filogic
  48. @@ -53,8 +53,12 @@ xiaomi,redmi-router-ax6000-stock)
  49. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x20000"
  50. ubootenv_add_uci_sys_config "/dev/mtd2" "0x0" "0x10000" "0x20000"
  51. ;;
  52. +qihoo,360t7)
  53. + ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000" "1"
  54. + ;;
  55. +h3c,magic-nx30-pro)
  56. + ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x80000" "0x20000" "4"
  57. + ;;
  58. -h3c,magic-nx30-pro|\
  59. -qihoo,360t7|\
  60. tplink,tl-xdr4288|\
  61. tplink,tl-xdr6086|\
  62. tplink,tl-xdr6088|\