- TP-Link TL-WR802N
- Wallys DR531
- Zbtlink ZBT-WE1526
- - Comfast CF-E520N/CF-E530N
+ - Comfast CF-E314N
- Comfast CF-E320N v2
+ - Comfast CF-E520N/CF-E530N
I tested this modification on most of these devices, with OpenWrt and OFW firmware. If you are not sure about the version of your device, please contact with me **before** you try to make an upgrade. Changing bootloader to a wrong version will probably damage your router and you will need special hardware to fix it, so please, **be very careful**.
| [TP-Link TL-WR802N](https://wikidevi.com/wiki/TP-LINK_TL-WR802N_v1.0) | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
| Wallys DR531 | QCA9531 | 8 MiB | 64 MiB DDR2 | 192 KiB | R/W |
| Zbtlink ZBT-WE1526 | QCA9531 | 16 MiB | 128 MiB DDR2 | 256 KiB | R/W |
-| Comfast CF-E520N/CF-E530N | QCA9531 | 8 MiB | 32 MiB DDR2 | 64 KiB, LZMA | RO |
+| Comfast CF-E314N | QCA9531 | 16 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
| Comfast CF-E320N v2 | QCA9531 | 16 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
+| Comfast CF-E520N/CF-E530N | QCA9531 | 8 MiB | 32 MiB DDR2 | 64 KiB, LZMA | RO |
*(LZMA) - U-Boot binary image is compressed with LZMA.*
*(R/W) - environment exists in separate FLASH block which allows you to save it and keep after power down.*
- TP-Link TL-WR802N
- Wallys DR531
- Zbtlink ZBT-WE1526
- - Comfast CF-E520N/CF-E530N
+ - Comfast CF-E314N
- Comfast CF-E320N v2
+ - Comfast CF-E520N/CF-E530N
Przetestowałem swoją modyfikację na większości z wymienionych powyżej urządzeń, z obrazami OpenWrt i oficjalnym firmware producenta. Jeżeli nie jesteś pewien wersji sprzętowej swojego urządzenia, proszę skontaktuj się ze mną **zanim** dokonasz wymiany obrazu bootloadera. Zmiana na niewłaściwą wersję najprawdopodobniej doprowadzi do uszkodzenia Twojego urządzenia i jedyną możliwością jego ponownego uruchomienia będzie przeprogramowanie kości FLASH w zewnętrznym programatorze.
| [TP-Link TL-WR802N](https://wikidevi.com/wiki/TP-LINK_TL-WR802N_v1.0) | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
| Wallys DR531 | QCA9531 | 8 MiB | 64 MiB DDR2 | 192 KiB | R/W |
| Zbtlink ZBT-WE1526 | QCA9531 | 16 MiB | 128 MiB DDR2 | 256 KiB | R/W |
-| Comfast CF-E520N/CF-E530N | QCA9531 | 8 MiB | 32 MiB DDR2 | 64 KiB, LZMA | RO |
+| Comfast CF-E314N | QCA9531 | 16 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
| Comfast CF-E320N v2 | QCA9531 | 16 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
+| Comfast CF-E520N/CF-E530N | QCA9531 | 8 MiB | 32 MiB DDR2 | 64 KiB, LZMA | RO |
*(LZMA) - obraz binarny U-Boot został dodatkowo skompresowany przy pomocy LZMA.*
*(R/W) - zmienne środowiskowe przechowywane są w osobnym bloku FLASH, co pozwala na ich zachowanie po odłączeniu zasilaniu.*
@$(call define_add,CONFIG_FOR_8DEVICES_CARAMBOLA2,1)
@$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+comfast_cf-e314n: qca953x_common
+ @$(call config_init,Comfast CF-E314N,cf-e314n,16,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_COMFAST_CF_E314N,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
comfast_cf-e320n_v2: qca953x_common
@$(call config_init,Comfast CF-E320N v2,cf-e320n-v2,16,17,1,QCA_QCA953X_SOC)
@$(call define_add,CONFIG_FOR_COMFAST_CF_E320N_V2,1)
* GPIO configuration
* ==================
*/
-#if defined(CONFIG_FOR_COMFAST_CF_E320N_V2)
+#if defined(CONFIG_FOR_COMFAST_CF_E314N)
+
+ #define CONFIG_QCA_GPIO_MASK_LED_ACT_H GPIO4 | GPIO11 | GPIO14 |\
+ GPIO15 | GPIO16
+ #define CONFIG_QCA_GPIO_MASK_LED_ACT_L GPIO0 | GPIO2 | GPIO3
+ #define CONFIG_QCA_GPIO_MASK_OUT CONFIG_QCA_GPIO_MASK_LED_ACT_H |\
+ CONFIG_QCA_GPIO_MASK_LED_ACT_L
+ #define CONFIG_QCA_GPIO_MASK_IN GPIO17
+ #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H CONFIG_QCA_GPIO_MASK_LED_ACT_L
+ #define CONFIG_QCA_GPIO_MASK_OUT_INIT_L CONFIG_QCA_GPIO_MASK_LED_ACT_H
+
+#elif defined(CONFIG_FOR_COMFAST_CF_E320N_V2)
#define CONFIG_QCA_GPIO_MASK_LED_ACT_H GPIO0 | GPIO2 | GPIO3
#define CONFIG_QCA_GPIO_MASK_OUT CONFIG_QCA_GPIO_MASK_LED_ACT_H
* Default bootargs
* ================
*/
-#if defined(CONFIG_FOR_COMFAST_CF_E320N_V2)
+#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2)
#define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:03 "\
"rootfstype=jffs2 init=/sbin/init "\
* Load address and boot command
* =============================
*/
-#if defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
+#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
defined(CONFIG_FOR_COMFAST_CF_E520N_CF_E530N) ||\
defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\
defined(CONFIG_FOR_TPLINK_WR802N) ||\
* Environment configuration
* =========================
*/
-#if defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
+#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
defined(CONFIG_FOR_COMFAST_CF_E520N_CF_E530N)
#define CFG_ENV_ADDR 0x9F018000
#define CFG_ENV_SIZE 0x7C00
* MAC address/es, model and WPS pin offsets in FLASH
* ==================================================
*/
-#if defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
+#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
defined(CONFIG_FOR_COMFAST_CF_E520N_CF_E530N)
#define OFFSET_MAC_DATA_BLOCK 0x10000
#define OFFSET_MAC_DATA_BLOCK_LENGTH 0x10000
* Comfast CF-E520N and E320Nv2 are limited to 64 KB only,
* disable some commands
*/
-#if defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
+#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
defined(CONFIG_FOR_COMFAST_CF_E520N_CF_E530N)
#undef CONFIG_CMD_DHCP
#undef CONFIG_CMD_LOADB
#endif
/* Firmware size limit */
-#if defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
+#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
defined(CONFIG_FOR_COMFAST_CF_E520N_CF_E530N) ||\
defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\
defined(CONFIG_FOR_TPLINK_WR802N) ||\
defined(CONFIG_FOR_TPLINK_WR802N) ||\
defined(CONFIG_FOR_TPLINK_WR841N_V9)
#define CONFIG_QCA_PLL QCA_PLL_PRESET_550_400_200
-#elif defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
+#elif defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
defined(CONFIG_FOR_COMFAST_CF_E520N_CF_E530N) ||\
defined(CONFIG_FOR_WALLYS_DR531) ||\
defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
#define CONFIG_QCA_PLL QCA_PLL_PRESET_650_400_200
#endif
-#if defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
+#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
defined(CONFIG_FOR_COMFAST_CF_E520N_CF_E530N) ||\
defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\
defined(CONFIG_FOR_TPLINK_WR802N) ||\
* For upgrade scripts in environment
* ==================================
*/
-#if !defined(CONFIG_FOR_COMFAST_CF_E320N_V2) &&\
+#if !defined(CONFIG_FOR_COMFAST_CF_E314N) &&\
+ !defined(CONFIG_FOR_COMFAST_CF_E320N_V2) &&\
!defined(CONFIG_FOR_COMFAST_CF_E520N_CF_E530N) &&\
!defined(CONFIG_FOR_WALLYS_DR531) &&\
!defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)