Advertisement
brpr

diff

Aug 21st, 2021
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. diff --git a/target/linux/ath79/image/nand.mk b/target/linux/ath79/image/nand.mk
  2. index 20cb2f60fa..038cfb3bad 100644
  3. --- a/target/linux/ath79/image/nand.mk
  4. +++ b/target/linux/ath79/image/nand.mk
  5. @@ -258,3 +258,27 @@ define Device/zyxel_nbg6716
  6. DEFAULT := n
  7. endef
  8. TARGET_DEVICES += zyxel_nbg6716
  9. +
  10. +define Device/asus_rt_ac55u
  11. + SOC := qca9557
  12. + DEVICE_VENDOR := ASUS
  13. + DEVICE_MODEL := RT-AC55U
  14. + DEVICE_PACKAGES := kmod-usb2 kmod-usb3 kmod-usb-ledtrig-usbport kmod-ath10k-ct \
  15. + ath10k-firmware-qca988x-ct
  16. + RAS_BOARD := RT-AC55U
  17. + RAS_ROOTFS_SIZE := 29696k
  18. + RAS_VERSION := "OpenWrt Linux-$(LINUX_VERSION)"
  19. + KERNEL := kernel-bin | append-dtb | uImage none | zyxel-buildkerneljffs | \
  20. + check-size 4096k
  21. + IMAGES := sysupgrade.tar sysupgrade-4M-Kernel.bin factory.bin
  22. + IMAGE/sysupgrade.tar/squashfs := append-rootfs | pad-to $$$$(BLOCKSIZE) | \
  23. + sysupgrade-tar rootfs=$$$$@ | append-metadata
  24. + IMAGE/sysupgrade-4M-Kernel.bin/squashfs := append-kernel | \
  25. + pad-to $$$$(KERNEL_SIZE) | append-ubi | pad-to 263192576 | gzip
  26. + IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
  27. + zyxel-factory
  28. + UBINIZE_OPTS := -E 5
  29.  
  30. DEFAULT := n
  31. endef
  32. TARGET_DEVICES += zyxel_nbg6716
  33. +
  34. +define Device/asus_rt_ac55u
  35. + SOC := qca9557
  36. + DEVICE_VENDOR := ASUS
  37. + DEVICE_MODEL := RT-AC55U
  38. + DEVICE_PACKAGES := kmod-usb2 kmod-usb3 kmod-usb-ledtrig-usbport kmod-ath10k-ct \
  39. + ath10k-firmware-qca988x-ct
  40. + RAS_BOARD := RT-AC55U
  41. + RAS_ROOTFS_SIZE := 29696k
  42. + RAS_VERSION := "OpenWrt Linux-$(LINUX_VERSION)"
  43. + KERNEL := kernel-bin | append-dtb | uImage none | zyxel-buildkerneljffs | \
  44. + check-size 4096k
  45. + IMAGES := sysupgrade.tar sysupgrade-4M-Kernel.bin factory.bin
  46. + IMAGE/sysupgrade.tar/squashfs := append-rootfs | pad-to $$$$(BLOCKSIZE) | \
  47. + sysupgrade-tar rootfs=$$$$@ | append-metadata
  48. + IMAGE/sysupgrade-4M-Kernel.bin/squashfs := append-kernel | \
  49. + pad-to $$$$(KERNEL_SIZE) | append-ubi | pad-to 263192576 | gzip
  50. + IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
  51. + zyxel-factory
  52. + UBINIZE_OPTS := -E 5
  53. + DEFAULT := n
  54. +endef
  55. +TARGET_DEVICES += asus_rt_ac55u
  56. +
  57. diff --git a/target/linux/ath79/nand/base-files/etc/board.d/02_network b/target/linux/ath79/nand/base-files/etc/board.d/02_network
  58. index 7402fc067a..95468661cf 100644
  59. --- a/target/linux/ath79/nand/base-files/etc/board.d/02_network
  60. +++ b/target/linux/ath79/nand/base-files/etc/board.d/02_network
  61. @@ -54,8 +54,10 @@ ath79_setup_macs()
  62. netgear,wndr4500-v3)
  63. wan_mac=$(mtd_get_mac_binary caldata 0x6)
  64. ;;
  65. + asus,rt-ac55u)
  66. + wan_mac=$(mtd_get_mac_binary_ubi "factory" 0x1002)
  67. + ;;
  68. esac
  69. -
  70. [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
  71. [ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac
  72. [ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac
  73. diff --git a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  74. index f8cc8f1a2b..def0c55b30 100644
  75. --- a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  76. +++ b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  77. @@ -9,6 +9,10 @@ board=$(board_name)
  78. case "$FIRMWARE" in
  79. "ath10k/cal-pci-0000:00:00.0.bin")
  80. case $board in
  81. + asus,rt-ac55u)
  82. + caldata_extract "caldata" 0x5000 0x844
  83. + ath10k_patch_mac $(mtf_get_mac_binary_ubi factory 0x1002)
  84. + ;;
  85. domywifi,dw33d)
  86. caldata_extract "art" 0x5000 0x844
  87. ath10k_patch_mac $(mtd_get_mac_binary art 0x12)
  88.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement