[PATCH 3/4] i.mx53: voipac: Add barebox environment configuration file

Rostislav Lisovy lisovy at gmail.com
Tue Oct 1 17:35:21 EDT 2013


Signed-off-by: Rostislav Lisovy <lisovy at gmail.com>
---
 create mode 100644 arch/arm/boards/freescale-mx53-voipac/env/config

diff --git a/arch/arm/boards/freescale-mx53-voipac/env/config b/arch/arm/boards/freescale-mx53-voipac/env/config
new file mode 100644
index 0000000..59432d7
--- /dev/null
+++ b/arch/arm/boards/freescale-mx53-voipac/env/config
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+global.hostname=imx53-voipac
+eth0.serverip=
+user=
+
+# use 'dhcp' to do dhcp in barebox and in kernel
+# use 'none' if you want to skip kernel ip autoconfiguration
+ip=dhcp
+
+# or set your networking parameters here
+#eth0.ipaddr=a.b.c.d
+#eth0.netmask=a.b.c.d
+#eth0.gateway=a.b.c.d
+#eth0.serverip=a.b.c.d
+
+# can be either 'nfs', 'tftp', 'nor' or 'nand'
+kernel_loc=tftp
+# can be either 'net', 'nor', 'nand' or 'initrd'
+rootfs_loc=net
+
+# can be either 'jffs2' or 'ubifs'
+rootfs_type=ubifs
+rootfsimage=root-${global.hostname}.$rootfs_type
+
+kernelimage=zImage-${global.hostname}
+#kernelimage=uImage-${global.hostname}
+#kernelimage=Image-${global.hostname}
+#kernelimage=Image-${global.hostname}.lzo
+
+if [ -n $user ]; then
+	kernelimage="$user"-"$kernelimage"
+	nfsroot="$eth0.serverip:/home/$user/nfsroot/${global.hostname}"
+	rootfsimage="$user"-"$rootfsimage"
+else
+	nfsroot="$eth0.serverip:/path/to/nfs/root"
+fi
+
+autoboot_timeout=3
+
+bootargs="console=ttymxc0,115200"
+
+disk_parts="256k(barebox)ro,128k(bareboxenv),4M(kernel),-(root)"
+
+# set a fancy prompt (if support is compiled in)
+PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
-- 
1.7.10.4




More information about the barebox mailing list