From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q88n2-0007B9-9G for barebox@lists.infradead.org; Fri, 08 Apr 2011 10:19:45 +0000 From: Marc Kleine-Budde Date: Fri, 8 Apr 2011 12:19:07 +0200 Message-Id: <1302257948-18174-7-git-send-email-mkl@pengutronix.de> In-Reply-To: <1302257948-18174-1-git-send-email-mkl@pengutronix.de> References: <1302257948-18174-1-git-send-email-mkl@pengutronix.de> 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 6/7] defaultenv: update: add support to update kernel on disk To: sha@pengutronix.de Cc: barebox@lists.infradead.org Signed-off-by: Marc Kleine-Budde --- defaultenv/bin/_update_help | 2 +- defaultenv/bin/update | 3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/defaultenv/bin/_update_help b/defaultenv/bin/_update_help index 5e3ca45..19e8b39 100644 --- a/defaultenv/bin/_update_help +++ b/defaultenv/bin/_update_help @@ -7,7 +7,7 @@ echo "options" echo " -c to check the crc32 for the image and flashed one" echo "" echo "default mode is tftp" -echo "type update -t kernel -d [-m tftp|xmodem] [-f imagename] to update kernel into flash" +echo "type update -t kernel -d [-m tftp|xmodem] [-f imagename] to update kernel into flash" echo "type update -t rootfs -d [-m tftp|xmodem] [-f imagename] to update rootfs into flash" echo "type update -t barebox -d [-m tftp|xmodem] [-f imagename] to update barebox into flash" echo "type update -t bareboxenv -d [-m tftp|xmodem] [-f imagename] to update bareboxenv into flash" diff --git a/defaultenv/bin/update b/defaultenv/bin/update index c78159d..ca1605a 100644 --- a/defaultenv/bin/update +++ b/defaultenv/bin/update @@ -27,6 +27,7 @@ done if [ x${type} = xkernel ]; then image=$kernelimage + disk_part=$kernel_part elif [ x${type} = xrootfs ]; then image=$rootfsimage type=root @@ -53,6 +54,8 @@ if [ x${device_type} = xnand ]; then part=/dev/nand0.${type}.bb elif [ x${device_type} = xnor ]; then part=/dev/nor0.${type} +elif [ x${device_type} = xdisk ]; then + part=/dev/${disk_part} else . /env/bin/_update_help exit 1 -- 1.7.4.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox