Add support for Hak5 Packet Squirrel (AR9331 based)
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 20 Feb 2018 21:40:09 +0000 (22:40 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Thu, 22 Feb 2018 14:16:19 +0000 (15:16 +0100)
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Makefile
README.md
u-boot/Makefile
u-boot/include/configs/ap121.h

index c984aa2be7512fb6ca15627f36fdfe2ad5688cf7..1a6c8a480e999d3a748c873249805471cb2da0ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -211,6 +211,7 @@ COMMON_AR933X_TARGETS = \
        gainstrong_oolite_v1_dev \
        gl-inet_6416 \
        hak5_lan-turtle \
+       hak5_packet-squirrel \
        hak5_wifi-pineapple-nano \
        tp-link_tl-mr10u_v1 \
        tp-link_tl-mr13u_v1 \
index f4a3ad5ada4dc1d50d56938c0a162a23f1b9ae8d..c46ce9b2a96839695ac683d010096909fc5f7163 100644 (file)
--- a/README.md
+++ b/README.md
@@ -74,6 +74,7 @@ Currently supported devices:
   - GL.iNet GL-USB150
   - GS-Oolite/Elink EL-M150 module with dev board ([photos in my gallery](http://galeria.tech-blog.pl/Elink_EL-M150_Development-Board/))
   - Hak5 LAN Turtle
+  - Hak5 Packet Squirrel
   - Hak5 WiFi Pineapple NANO
   - TP-Link TL-MR10U v1 ([photos in my gallery](http://galeria.tech-blog.pl/TP-Link_TL-MR10U/))
   - TP-Link TL-MR13U v1
@@ -161,6 +162,7 @@ More information about supported devices:
 | GL.iNet GL-USB150 | AR9331 | 16 MiB | 64 MiB DDR2 | 256 KiB | R/W |
 | GS-Oolite/Elink EL-M150 module | AR9331 | 4/8/16 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
 | Hak5 LAN Turtle | AR9331 | 16 MiB | 64 MiB DDR2 | 128 KiB | R/W |
+| Hak5 Packet Squirrel | AR9331 | 16 MiB | 64 MiB DDR2 | 128 KiB | R/W |
 | Hak5 WiFi Pineapple NANO | AR9331 | 16 MiB | 64 MiB DDR2 | 128 KiB | R/W |
 | P&W CPE505N | QCA9531 | 16 MiB | 64 MiB DDR2 | 256 KiB | R/W |
 | P&W R602N | QCA9531 | 16 MiB | 64 MiB DDR2 | 256 KiB | R/W |
index 7e8eb1985e8723a02d3eec94ba3fdfd357d99223..fb9d8eeb0729fe512cd8054341716d19d3815afb 100644 (file)
@@ -526,6 +526,11 @@ hak5_lan-turtle: ar933x_common
        @$(call define_add,CONFIG_FOR_HAK5_LAN_TURTLE,1)
        @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
 
+hak5_packet-squirrel: ar933x_common
+       @$(call config_init,Hak5 Packet Squirrel,packet-squirrel,16,11,1,QCA_AR9331_SOC)
+       @$(call define_add,CONFIG_FOR_HAK5_PACKET_SQUIRREL,1)
+       @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
 hak5_wifi-pineapple-nano: ar933x_common
        @$(call config_init,Hak5 WiFi Pineapple NANO,wifi-pineapple-nano,16,12,1,QCA_AR9331_SOC)
        @$(call define_add,CONFIG_FOR_HAK5_WIFI_PINEAPPLE_NANO,1)
index e9bfd7a650a8962ec7bff298347d5ff520151e73..e2d5ee73bad0882c8727395a2a4ce8a584402ec9 100644 (file)
 
        #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO13
 
+#elif defined(CONFIG_FOR_HAK5_PACKET_SQUIRREL)
+
+       #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO19 | GPIO22 | GPIO23
+       #define CONFIG_QCA_GPIO_MASK_IN         GPIO18 | GPIO20 | GPIO21 |\
+                                               GPIO24
+
 #elif defined(CONFIG_FOR_HAK5_WIFI_PINEAPPLE_NANO)
 
        #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO18
 
 #elif defined(CONFIG_FOR_GLINET_6416)              ||\
       defined(CONFIG_FOR_HAK5_LAN_TURTLE)          ||\
+      defined(CONFIG_FOR_HAK5_PACKET_SQUIRREL)     ||\
       defined(CONFIG_FOR_HAK5_WIFI_PINEAPPLE_NANO) ||\
       defined(CONFIG_FOR_TPLINK_MR10U_V1)          ||\
       defined(CONFIG_FOR_TPLINK_MR13U_V1)          ||\
     !defined(CONFIG_FOR_GLINET_GL_USB150)            &&\
     !defined(CONFIG_FOR_GS_OOLITE_V1_DEV)            &&\
     !defined(CONFIG_FOR_HAK5_LAN_TURTLE)             &&\
+    !defined(CONFIG_FOR_HAK5_PACKET_SQUIRREL)        &&\
     !defined(CONFIG_FOR_HAK5_WIFI_PINEAPPLE_NANO)    &&\
     !defined(CONFIG_FOR_UNWIRED_DEVICES_UNWIRED_ONE) &&\
     !defined(CONFIG_FOR_VILLAGE_TELCO_MP2)