03-nx30.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --- a/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
  2. +++ b/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
  3. @@ -107,6 +107,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. --- a/target/linux/mediatek/image/filogic.mk
  14. +++ b/target/linux/mediatek/image/filogic.mk
  15. @@ -208,19 +208,9 @@ define Device/h3c_magic-nx30-pro
  16. BLOCKSIZE := 128k
  17. PAGESIZE := 2048
  18. KERNEL_IN_UBI := 1
  19. - UBOOTENV_IN_UBI := 1
  20. IMAGE_SIZE := 65536k
  21. - IMAGES := sysupgrade.itb
  22. - KERNEL_INITRAMFS_SUFFIX := -recovery.itb
  23. - KERNEL := kernel-bin | gzip
  24. - KERNEL_INITRAMFS := kernel-bin | lzma | \
  25. - fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
  26. - IMAGE/sysupgrade.itb := append-kernel | \
  27. - fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
  28. + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  29. DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
  30. - ARTIFACTS := preloader.bin bl31-uboot.fip
  31. - ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3
  32. - ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot h3c_magic-nx30-pro
  33. endef
  34. TARGET_DEVICES += h3c_magic-nx30-pro