From: Piotr Dymacz Date: Thu, 17 Nov 2016 12:33:46 +0000 (+0100) Subject: Add missing ART offset for supported COMFAST devices X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55168b4aca394c6346e7a474eff38579e4304109;p=oweals%2Fu-boot_mod.git Add missing ART offset for supported COMFAST devices 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. --- diff --git a/u-boot/include/configs/ap143.h b/u-boot/include/configs/ap143.h index 72b6fcd..84e60c4 100644 --- a/u-boot/include/configs/ap143.h +++ b/u-boot/include/configs/ap143.h @@ -291,6 +291,13 @@ */ #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) ||\