From 55168b4aca394c6346e7a474eff38579e4304109 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Thu, 17 Nov 2016 13:33:46 +0100 Subject: [PATCH] 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. --- u-boot/include/configs/ap143.h | 7 +++++++ 1 file changed, 7 insertions(+) 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) ||\ -- 2.25.1