From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp24.mail.ru ([94.100.176.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SNS4G-0004Yp-3M for barebox@lists.infradead.org; Thu, 26 Apr 2012 17:01:21 +0000 From: Alexander Shiyan Date: Thu, 26 Apr 2012 21:02:04 +0400 Message-Id: <1335459724-25546-2-git-send-email-shc_work@mail.ru> In-Reply-To: <1335459724-25546-1-git-send-email-shc_work@mail.ru> References: <1335459724-25546-1-git-send-email-shc_work@mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/2] PCM038: choose boot device by parsing barebox_loc magic variable To: barebox@lists.infradead.org Signed-off-by: Alexander Shiyan --- arch/arm/boards/pcm038/env/config | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/pcm038/env/config b/arch/arm/boards/pcm038/env/config index 32be5ec..59f3e89 100644 --- a/arch/arm/boards/pcm038/env/config +++ b/arch/arm/boards/pcm038/env/config @@ -14,10 +14,18 @@ ip=dhcp #eth0.gateway=a.b.c.d #eth0.serverip=a.b.c.d +if [ x$barebox_loc = xnand ]; then + kernel_loc=nand + rootfs_loc=nand +elif [ x$barebox_loc = xnor ]; then + kernel_loc=nor + rootfs_loc=nor +else # can be either 'nfs', 'tftp', 'nor' or 'nand' -kernel_loc=tftp + kernel_loc=tftp # can be either 'net', 'nor', 'nand' or 'initrd' -rootfs_loc=net + rootfs_loc=net +fi # can be either 'jffs2' or 'ubifs' rootfs_type=ubifs -- 1.7.3.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox