Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2025
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.70 KB | None | 0 0
  1. diff --git a/target/linux/lantiq/image/tp-link.mk b/target/linux/lantiq/image/tp-link.mk
  2. index c2f5b95dd6..b5c36bcfa5 100644
  3. --- a/target/linux/lantiq/image/tp-link.mk
  4. +++ b/target/linux/lantiq/image/tp-link.mk
  5. @@ -44,3 +44,31 @@ define Device/tplink_vr200v
  6.    SUPPORTED_DEVICES += VR200v
  7.  endef
  8.  TARGET_DEVICES += tplink_vr200v
  9. +define Device/tplink_tdw8970_16
  10. +  $(Device/dsa-migration)
  11. +  $(Device/lantiqTpLink)
  12. +  IMAGE_SIZE := 15808k
  13. +  DEVICE_TITLE := TP-LINK TD-W8970 16M Flash
  14. +  DEVICE_PACKAGES:= kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
  15. +  DEVICE_MODEL := TD-W8970v1-16m
  16. +  DEVICE_VARIANT := v1
  17. +  TPLINK_FLASHLAYOUT := 16Mltq-8Mflsh
  18. +  TPLINK_HWID := 0x89700001
  19. +  TPLINK_HWREV := 1
  20. +
  21. +endef
  22. +TARGET_DEVICES +=tplink_tdw8970_16
  23. +define Device/tplink_tdw8980_16
  24. +  $(Device/dsa-migration)
  25. +  $(Device/lantiqTpLink)
  26. +  IMAGE_SIZE := 15808k
  27. +  DEVICE_TITLE := TP-LINK TD-W8980 16M Flash
  28. +  DEVICE_PACKAGES:= kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
  29. +  DEVICE_MODEL := TD-W8980v1-16m
  30. +  DEVICE_VARIANT := v1
  31. +  TPLINK_FLASHLAYOUT := 16Mltq-8Mflsh
  32. +  TPLINK_HWID := 0x89800001
  33. +  TPLINK_HWREV := 14
  34. +
  35. +endef
  36. +TARGET_DEVICES +=tplink_tdw8980_16
  37. \ No newline at end of file
  38. diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
  39. index 6c35c7a4de..f1274002aa 100644
  40. --- a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
  41. +++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
  42. @@ -43,6 +43,10 @@ lantiq_setup_interfaces()
  43.     avm,fritz7490-micron|\
  44.     buffalo,wbmr-300hpd|\
  45.     tplink,vr200|\
  46. +   tplink,tdw8970_16|\
  47. +   tplink,tdw8980_16|\
  48. +   tplink,tdw8970|\
  49. +   tplink,tdw8980|\
  50.     tplink,vr200v)
  51.         ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
  52.         ;;
  53. @@ -136,6 +140,13 @@ lantiq_setup_macs()
  54.         lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
  55.         wan_mac="$lan_mac"
  56.         ;;
  57. +   tplink,tdw8970_16|\
  58. +   tplink,tdw8980_16|\
  59. +   tplink,tdw8970|\
  60. +   tplink,tdw8980|\
  61. +       wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 0xf100)" 1)
  62. +       ;;
  63. +  
  64.     tplink,vr200|\
  65.     tplink,vr200v)
  66.         wan_mac=$(macaddr_add "$(mtd_get_mac_binary romfile 0xf100)" 1)
  67. diff --git a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
  68. index 936181c693..abed8fb69a 100644
  69. --- a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
  70. +++ b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
  71. @@ -28,7 +28,13 @@ case "$FIRMWARE" in
  72.                 caldata_extract_ubi "caldata" 0x1000 0x1000
  73.                 ath9k_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary_ubi caldata 0x110c) 2) 0x10c
  74.                 ;;
  75. -           *)
  76. +           tplink,tdw8970_16|\
  77. +           tplink,tdw8980_16|\
  78. +           tplink,tdw8970|\
  79. +           tplink,tdw8980)
  80. +               ath9k_eeprom_extract "boardconfig" 135168 0
  81. +               ;;
  82. +           *)
  83.                 caldata_die "board $board is not supported yet"
  84.                 ;;
  85.         esac
  86. diff --git a/tools/firmware-utils/Makefile b/tools/firmware-utils/Makefile
  87. index 62222b6daf..17b9b21d6c 100644
  88. --- a/tools/firmware-utils/Makefile
  89. +++ b/tools/firmware-utils/Makefile
  90. @@ -10,10 +10,9 @@ PKG_NAME:=firmware-utils
  91.  PKG_RELEASE:=1
  92.  
  93.  PKG_SOURCE_PROTO:=git
  94. -PKG_SOURCE_URL=$(PROJECT_GIT)/project/firmware-utils.git
  95. +PKG_SOURCE_URL=https://github.com/Notupus/firmware-utils.git
  96.  PKG_SOURCE_DATE:=2024-10-20
  97. -PKG_SOURCE_VERSION:=4b7638925d3eac03e614e40bc30cb49f5877c46d
  98. -PKG_MIRROR_HASH:=ea0e30f2b20211e4153704019ebb3f8789269893a4af6d853a85fae7c091802c
  99. +PKG_SOURCE_VERSION:=5835a3f7abe55fe0fedf37f030a973eb4a186fd2
  100.  
  101.  include $(INCLUDE_DIR)/host-build.mk
  102.  include $(INCLUDE_DIR)/cmake.mk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement