03-nx30.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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,11 @@ 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. + IMAGES += factory.bin
  29. + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
  30. + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  31. DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware
  32. - ARTIFACTS := preloader.bin bl31-uboot.fip
  33. - ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3
  34. - ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot h3c_magic-nx30-pro
  35. endef
  36. TARGET_DEVICES += h3c_magic-nx30-pro