In most devices, last sector is used for storing ART
data. It's true also for COMFAST devices, as it looks
that they have two copies of ART data, inside second
and last FLASH sector (named 'nvram' in OFW).
ART in second sector is (will be) used in OpenWrt/LEDE,
so we will also use it as default one.
*/
#define WEBFAILSAFE_UPLOAD_KERNEL_ADDRESS CFG_LOAD_ADDR
+#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E520N) ||\
+ defined(CONFIG_FOR_COMFAST_CF_E530N)
+ #define WEBFAILSAFE_UPLOAD_ART_ADDRESS (CFG_FLASH_BASE + 0x10000)
+#endif
+
/* Firmware size limit */
#if defined(CONFIG_FOR_COMFAST_CF_E314N) ||\
defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\