Skip to contentSkip to conversation

PCM038: choose boot device by parsing barebox_loc magic variable

PATCH New Alexander Shiyan 1 participant 1 message May 6, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCM038: choose boot device by parsing barebox_loc magic variable

---
 arch/arm/boards/pcm038/env/config |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
arch/arm/boards/pcm038/env/config +10 -2
index 32be5ec..59f3e89 100644
@@ -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
Signature · 7 lines
1.7.3.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox