From patchwork Sun May 15 21:04:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 622427 X-Patchwork-Delegate: jason.jin@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3r7GLG2j96z9t62 for ; Mon, 16 May 2016 07:04:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1910EA75F5; Sun, 15 May 2016 23:04:21 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EpwOnPHh15ti; Sun, 15 May 2016 23:04:20 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 44C73A751E; Sun, 15 May 2016 23:04:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 72B57A751E for ; Sun, 15 May 2016 23:04:17 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w9jZcm7b-b6y for ; Sun, 15 May 2016 23:04:17 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from sysam.it (sysam.it [5.39.81.93]) by theia.denx.de (Postfix) with ESMTPS id 22FA1A751B for ; Sun, 15 May 2016 23:04:15 +0200 (CEST) Received: (qmail 5111 invoked from network); 15 May 2016 21:04:59 -0000 Received: from host199-115-dynamic.116-80-r.retail.telecomitalia.it (HELO localhost.localdomain) (angelo@sysam.it@80.116.115.199) by sysam.it with ESMTPA; 15 May 2016 21:04:59 -0000 From: Angelo Dureghello To: u-boot@lists.denx.de Date: Sun, 15 May 2016 23:04:12 +0200 Message-Id: <1463346252-20305-1-git-send-email-angelo@sysam.it> X-Mailer: git-send-email 2.7.0.rc3 Cc: trini@konsulko.com, Angelo Dureghello , alison.wang@freescale.com Subject: [U-Boot] [PATCH 2/2] board: amcore: add update scripts X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add some useful update scripts. Signed-off-by: Angelo Dureghello Reviewed-by: Simon Glass --- include/configs/amcore.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/configs/amcore.h b/include/configs/amcore.h index e819185..9af2b11 100644 --- a/include/configs/amcore.h +++ b/include/configs/amcore.h @@ -1,7 +1,7 @@ /* * Sysam AMCORE board configuration * - * (C) Copyright 2015 Angelo Dureghello + * (C) Copyright 2016 Angelo Dureghello * * SPDX-License-Identifier: GPL-2.0+ */ @@ -20,6 +20,17 @@ #define CONFIG_BOOTDELAY 1 #define CONFIG_BOOTCOMMAND "bootm ffc20000" +#define CONFIG_EXTRA_ENV_SETTINGS \ + "upgrade_uboot=loady; " \ + "protect off 0xffc00000 0xffc1ffff; " \ + "erase 0xffc00000 0xffc1ffff; " \ + "cp.b 0x20000 0xffc00000 ${filesize}\0" \ + "upgrade_kernel=loady; " \ + "erase 0xffc20000 0xffefffff; " \ + "cp.b 0x20000 0xffc20000 ${filesize}\0" \ + "upgrade_jffs2=loady; " \ + "erase0xfff00000 0xffffffff; " \ + "cp.b 0x20000 0xfff00000 ${filesize}\0" #undef CONFIG_CMD_AES #define CONFIG_CMD_DIAG