From patchwork Fri Jan 3 10:11:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 306545 X-Patchwork-Delegate: albert.aribaud@free.fr 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 C73FE2C0082 for ; Fri, 3 Jan 2014 21:15:01 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 471D94AF78; Fri, 3 Jan 2014 11:14:59 +0100 (CET) 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 CwxHdUHD7LbN; Fri, 3 Jan 2014 11:14:59 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CD1074AF31; Fri, 3 Jan 2014 11:13:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5E32E4AF33 for ; Fri, 3 Jan 2014 11:12:58 +0100 (CET) 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 9+xeqF3O7kVH for ; Fri, 3 Jan 2014 11:12:53 +0100 (CET) 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 mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by theia.denx.de (Postfix) with ESMTPS id 1DC574AB38 for ; Fri, 3 Jan 2014 11:12:01 +0100 (CET) Received: by mail-ea0-f177.google.com with SMTP id n15so6690009ead.36 for ; Fri, 03 Jan 2014 02:12:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=Q79GgKX++oj2xM8ZI5HadZt/wf0tWV6nxF4BMXrpMVg=; b=UoWMGeDoEYONv5Snfxbs5V12v51sGoKh49ptwDz5q+RA3a30X+ewSYHmSKZbg3h8qC vLeXRX/ICMWSaJD1UwNp+p7vlZ38qHSr9ktYjXhz77fD6IpgLaT4wwMeyTedhdT+Flgt jubRRO/5mq/Tb32qokzu9xesmunwPvbOVQiwxl96jGzFS56esoVpXw5DOjcGBn250Hgi QMstlYyfBLskgDQCrdyKjcrzyVAR34sZ1KDuRrwq1MNr6GER7oPOJXIt19yNOEhVnXcq wy6waQlhEdUEATdfS/0F1gtA1TVBqmudzw2r7SD9prfPUiuPaUgR4dlah1WBEvPoaqOi i4Bw== X-Gm-Message-State: ALoCoQkrF/KW0DSf4aVOSUKHu2yRthk2Y72EteF8274FmlFTmdOtzq4VDTagCLh1My34kRa2cuyR X-Received: by 10.14.107.3 with SMTP id n3mr1452434eeg.67.1388743921271; Fri, 03 Jan 2014 02:12:01 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id 4sm143603232eed.14.2014.01.03.02.11.59 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 03 Jan 2014 02:11:59 -0800 (PST) From: Michal Simek To: Michal Simek , u-boot@lists.denx.de, Joe Hershberger , linux-arm-kernel@lists.infradead.org, Albert Aribaud , Tom Rini Date: Fri, 3 Jan 2014 11:11:02 +0100 Message-Id: <7c5314edd479185e912dacf89ce9540c425b42d0.1388743861.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: Cc: Jagannadha Sutradharudu Teki Subject: [U-Boot] [PATCH v1 17/24] zynq-common: Define default environment 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 From: Jagannadha Sutradharudu Teki Defined default env. for autoboot FIT image from respective boot devices. Default settings: fit_image=fit.itb load_addr=0x2000000 fit_size=0x800000 flash_off=0x100000 nor_flash_off=0xE2100000 Signed-off-by: Jagannadha Sutradharudu Teki Signed-off-by: Michal Simek --- Changes in v1: None include/configs/zynq.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) -- 1.8.2.3 diff --git a/include/configs/zynq.h b/include/configs/zynq.h index 2ea5d3f..5a33e15 100644 --- a/include/configs/zynq.h +++ b/include/configs/zynq.h @@ -109,7 +109,28 @@ /* Environment */ #define CONFIG_ENV_SIZE 0x10000 /* Env. sector size */ #define CONFIG_ENV_IS_NOWHERE -#define CONFIG_SYS_LOAD_ADDR 0 + +/* Default environment */ +#define CONFIG_EXTRA_ENV_SETTINGS \ + "fit_image=fit.itb\0" \ + "load_addr=0x2000000\0" \ + "fit_size=0x800000\0" \ + "flash_off=0x100000\0" \ + "nor_flash_off=0xE2100000\0" \ + "fdt_high=0x20000000\0" \ + "initrd_high=0x20000000\0" \ + "norboot=echo Copying FIT from NOR flash to RAM... && " \ + "cp.b ${nor_flash_off} ${load_addr} ${fit_size} && " \ + "bootm ${load_addr}\0" \ + "sdboot=echo Copying FIT from SD to RAM... && " \ + "fatload mmc 0 ${load_addr} ${fit_image} && " \ + "bootm ${load_addr}\0" \ + "jtagboot=echo TFTPing FIT to RAM... && " \ + "tftp ${load_addr} ${fit_image} && " \ + "bootm ${load_addr}\0" +#define CONFIG_BOOTCOMMAND "run $modeboot" +#define CONFIG_BOOTDELAY 3 /* -1 to Disable autoboot */ +#define CONFIG_SYS_LOAD_ADDR 0 /* default? */ /* Miscellaneous configurable options */ #define CONFIG_SYS_PROMPT "zynq-uboot> "