[PATCH 02/11] defaultenv: boot: add backwards compatibility for kernel_loc=net

Wolfram Sang w.sang at pengutronix.de
Sun Sep 25 16:54:05 EDT 2011


From: Marc Kleine-Budde <mkl at pengutronix.de>

Since commit 9eac282024c55fc13970189d6ace61f884917538, the boot script
doesn't understand kernel_loc=net anymore. This patch adds backwards
compatibility so that the kernel is loaded from tftp as before.

Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
---
 defaultenv/bin/boot |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot
index c97a396..6649c57 100644
--- a/defaultenv/bin/boot
+++ b/defaultenv/bin/boot
@@ -2,6 +2,10 @@
 
 . /env/config
 
+if [ x$kernel_loc = xnet ]; then
+	kernel_loc=tftp
+fi
+
 if [ x$1 = xnand ]; then
 	rootfs_loc=nand
 	kernel_loc=nand
-- 
1.7.5.4




More information about the barebox mailing list