09-jcg_q30-pro.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- a/target/linux/mediatek/image/filogic.mk
  2. +++ b/target/linux/mediatek/image/filogic.mk
  3. @@ -381,19 +381,12 @@ define Device/jcg_q30-pro
  4. UBINIZE_OPTS := -E 5
  5. BLOCKSIZE := 128k
  6. PAGESIZE := 2048
  7. + IMAGE_SIZE := 114816k
  8. KERNEL_IN_UBI := 1
  9. - UBOOTENV_IN_UBI := 1
  10. - IMAGES := sysupgrade.itb
  11. - KERNEL_INITRAMFS_SUFFIX := -recovery.itb
  12. - KERNEL := kernel-bin | gzip
  13. - KERNEL_INITRAMFS := kernel-bin | lzma | \
  14. - fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
  15. - IMAGE/sysupgrade.itb := append-kernel | \
  16. - fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
  17. DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
  18. - ARTIFACTS := preloader.bin bl31-uboot.fip
  19. - ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3
  20. - ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot jcg_q30-pro
  21. + IMAGES += factory.bin
  22. + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
  23. + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  24. endef
  25. TARGET_DEVICES += jcg_q30-pro
  26. --- a/target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
  27. +++ b/target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
  28. @@ -98,6 +98,10 @@
  29. spi-tx-bus-width = <4>;
  30. spi-rx-bus-width = <4>;
  31. + mediatek,nmbm;
  32. + mediatek,bmt-max-ratio = <1>;
  33. + mediatek,bmt-max-reserved-blocks = <64>;
  34. +
  35. partitions {
  36. compatible = "fixed-partitions";
  37. #address-cells = <1>;