From patchwork Sun Aug 25 12:46:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Metz X-Patchwork-Id: 269864 X-Patchwork-Delegate: trini@ti.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 876302C009F for ; Mon, 26 Aug 2013 21:23:17 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8F01A4A023; Mon, 26 Aug 2013 13:23:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 AUa92OAOJPQS; Mon, 26 Aug 2013 13:23:14 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 553814A066; Mon, 26 Aug 2013 13:23:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 61C074A09D for ; Sun, 25 Aug 2013 14:55:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 OJgn41RqzquE for ; Sun, 25 Aug 2013 14:55:05 +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 dd12814.kasserver.com (dd12814.kasserver.com [85.13.134.252]) by theia.denx.de (Postfix) with ESMTPS id 717D94A09E for ; Sun, 25 Aug 2013 14:54:58 +0200 (CEST) Received: from nb8.fritz.box (unknown [85.232.18.125]) by dd12814.kasserver.com (Postfix) with ESMTPA id BCB9B11C0953; Sun, 25 Aug 2013 14:46:54 +0200 (CEST) From: Oliver Metz To: u-boot@lists.denx.de Date: Sun, 25 Aug 2013 14:46:50 +0200 Message-Id: <1377434811-25662-1-git-send-email-oliver@freetz.org> X-Mailer: git-send-email 1.8.3.4 X-Mailman-Approved-At: Mon, 26 Aug 2013 13:23:01 +0200 Cc: luka@openwrt.org Subject: [U-Boot] [PATCH 1/2] fw_env: add redundand env support for MTD_ABSENT X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Oliver Metz --- tools/env/fw_env.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 44607b1..65be5f3 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -1136,6 +1136,9 @@ int fw_env_open(void) } else if (DEVTYPE(dev_current) == MTD_UBIVOLUME && DEVTYPE(!dev_current) == MTD_UBIVOLUME) { environment.flag_scheme = FLAG_INCREMENTAL; + } else if (DEVTYPE(dev_current) == MTD_ABSENT && + DEVTYPE(!dev_current) == MTD_ABSENT) { + environment.flag_scheme = FLAG_INCREMENTAL; } else { fprintf (stderr, "Incompatible flash types!\n"); return -1;