summaryrefslogtreecommitdiffstats
path: root/board/freescale-mx35-3-stack/env
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-07-22 05:00:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-07-23 08:35:25 +0200
commitd8c86961b333a9c88cf2aa4282a43b8382e9b810 (patch)
treecf8b39db96805a2ed876ba14f6824a96ebffc906 /board/freescale-mx35-3-stack/env
parentd879de38e8430eeb9b37b7b6a2ac3341b0b029f7 (diff)
downloadbarebox-d8c86961b333a9c88cf2aa4282a43b8382e9b810.tar.gz
barebox-d8c86961b333a9c88cf2aa4282a43b8382e9b810.tar.xz
move boards to arch/<architecure>/boards
this will allow each arch to handle the boards more simply and depending on there need the env var BOARD will refer to the current board dirent for sandbox as we have only one board the board dirent is arch/sandbox/board Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board/freescale-mx35-3-stack/env')
-rw-r--r--board/freescale-mx35-3-stack/env/bin/_update39
-rw-r--r--board/freescale-mx35-3-stack/env/bin/boot57
-rw-r--r--board/freescale-mx35-3-stack/env/bin/hush_hack1
-rw-r--r--board/freescale-mx35-3-stack/env/bin/init38
-rw-r--r--board/freescale-mx35-3-stack/env/bin/update_kernel15
-rw-r--r--board/freescale-mx35-3-stack/env/bin/update_rootfs20
-rw-r--r--board/freescale-mx35-3-stack/env/config35
7 files changed, 0 insertions, 205 deletions
diff --git a/board/freescale-mx35-3-stack/env/bin/_update b/board/freescale-mx35-3-stack/env/bin/_update
deleted file mode 100644
index ddd6b84f72..0000000000
--- a/board/freescale-mx35-3-stack/env/bin/_update
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-if [ -z "$part" -o -z "$image" ]; then
- echo "define \$part and \$image"
- exit 1
-fi
-
-if [ ! -e "$part" ]; then
- echo "Partition $part does not exist"
- exit 1
-fi
-
-if [ $# = 1 ]; then
- image=$1
-fi
-
-if [ x$ip = xdhcp ]; then
- dhcp
-fi
-
-ping $eth0.serverip
-if [ $? -ne 0 ] ; then
- echo "Server did not reply! Update aborted."
- exit 1
-fi
-
-unprotect $part
-
-echo
-echo "erasing partition $part"
-echo
-erase $part
-
-echo
-echo "flashing $image to $part"
-echo
-tftp $image $part
-
-protect $part
diff --git a/board/freescale-mx35-3-stack/env/bin/boot b/board/freescale-mx35-3-stack/env/bin/boot
deleted file mode 100644
index fb2fe614d4..0000000000
--- a/board/freescale-mx35-3-stack/env/bin/boot
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-. /env/config
-
-if [ x$1 = xnand ]; then
- rootfs_loc=nand
- kernel_loc=nand
-elif [ x$1 = xnor ]; then
- rootfs_loc=nor
- kernel_loc=nor
-elif [ x$1 = xnet ]; then
- rootfs_loc=net
- kernel_loc=net
-fi
-
-
-if [ x$ip = xdhcp ]; then
- bootargs="$bootargs ip=dhcp"
-elif [ x$ip != xno ]; then
- bootargs="$bootargs ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:$eth0.netmask:::"
-fi
-
-
-if [ $rootfs_loc != net ]; then
- if [ x$rootfs_loc = xnand ]; then
- rootfs_mtdblock=$rootfs_mtdblock_nand
- else
- rootfs_mtdblock=$rootfs_mtdblock_nor
- fi
-
-
- if [ $rootfs_type = ubifs ]; then
- bootargs="$bootargs root=ubi0:root ubi.mtd=$rootfs_mtdblock"
- else
- bootargs="$bootargs root=/dev/mtdblock$rootfs_mtdblock"
- fi
-
- bootargs="$bootargs rootfstype=$rootfs_type"
-else
- bootargs="$bootargs root=/dev/nfs nfsroot=$eth0.serverip:$nfsroot,v3,tcp"
-fi
-
-
-bootargs="$bootargs mtdparts=\"physmap-flash.0:$nor_parts;mxc_nand:$nand_parts\""
-
-if [ $kernel_loc = net ]; then
- if [ x$ip = xdhcp ]; then
- dhcp
- fi
- tftp $kernel uImage || exit 1
- bootm uImage
-elif [ $kernel_loc = nor ]; then
- bootm /dev/nor0.kernel
-else
- bootm /dev/nand0.kernel.bb
-fi
-
diff --git a/board/freescale-mx35-3-stack/env/bin/hush_hack b/board/freescale-mx35-3-stack/env/bin/hush_hack
deleted file mode 100644
index 5fffa92ecd..0000000000
--- a/board/freescale-mx35-3-stack/env/bin/hush_hack
+++ /dev/null
@@ -1 +0,0 @@
-nand -a /dev/nand0.*
diff --git a/board/freescale-mx35-3-stack/env/bin/init b/board/freescale-mx35-3-stack/env/bin/init
deleted file mode 100644
index c982f22a86..0000000000
--- a/board/freescale-mx35-3-stack/env/bin/init
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-PATH=/env/bin
-export PATH
-
-. /env/config
-if [ -e /dev/nor0 ]; then
- addpart /dev/nor0 $nor_parts
-fi
-
-if [ -e /dev/nand0 ]; then
- addpart /dev/nand0 $nand_parts
-
- # Uh, oh, hush first expands wildcards and then starts executing
- # commands. What a bug!
- source /env/bin/hush_hack
-fi
-
-if [ -z $eth0.ethaddr ]; then
- while [ -z $eth0.ethaddr ]; do
- readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr
- done
- echo -a /env/config "eth0.ethaddr=$eth0.ethaddr"
- saveenv
-fi
-
-echo
-echo -n "Hit any key to stop autoboot: "
-timeout -a $autoboot_timeout
-if [ $? != 0 ]; then
- echo
- echo "type update_kernel nand|nor [<imagename>] to update kernel into flash"
- echo "type update_rootfs nand|nor [<imagename>] to update rootfs into flash"
- echo
- exit
-fi
-
-boot
diff --git a/board/freescale-mx35-3-stack/env/bin/update_kernel b/board/freescale-mx35-3-stack/env/bin/update_kernel
deleted file mode 100644
index 63ad11aaed..0000000000
--- a/board/freescale-mx35-3-stack/env/bin/update_kernel
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-. /env/config
-image=$kernel
-
-if [ x$1 = xnand ]; then
- part=/dev/nand0.kernel.bb
-elif [ x$1 = xnor ]; then
- part=/dev/nor0.kernel
-else
- echo "usage: $0 nor|nand [imagename]"
- exit 1
-fi
-
-. /env/bin/_update $2
diff --git a/board/freescale-mx35-3-stack/env/bin/update_rootfs b/board/freescale-mx35-3-stack/env/bin/update_rootfs
deleted file mode 100644
index 53dd2ca575..0000000000
--- a/board/freescale-mx35-3-stack/env/bin/update_rootfs
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-. /env/config
-
-if [ $rootfs_type = ubifs ]; then
- image=${rootfs}.ubi
-else
- image=${rootfs}.$rootfs_type
-fi
-
-if [ x$1 = xnand ]; then
- part=/dev/nand0.root.bb
-elif [ x$1 = xnor ]; then
- part=/dev/nor0.root
-else
- echo "usage: $0 nor|nand [imagename]"
- exit 1
-fi
-
-. /env/bin/_update $2
diff --git a/board/freescale-mx35-3-stack/env/config b/board/freescale-mx35-3-stack/env/config
deleted file mode 100644
index 51195f7404..0000000000
--- a/board/freescale-mx35-3-stack/env/config
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# use 'dhcp' to do dhcp in barebox and in kernel
-# use 'no' if you don't want to pass the ip from barebox to the kernel
-#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 'net', 'nor' or 'nand''
-kernel_loc=nand
-rootfs_loc=nand
-
-# can be either 'jffs2', or 'ubifs'
-rootfs_type=ubifs
-
-kernel=uImage-mx35-3-stack
-rootfs=root-mx35-3-stack
-envimage=u-boot-v2-environment-mx35-3-stack
-
-autoboot_timeout=3
-
-nfsroot="/path/to/nfs/root"
-bootargs="console=ttymxc0,115200"
-
-bootargs="$bootargs video=mx3fb:CTP-CLAA070LC0ACW"
-
-nor_parts="256k(barebox)ro,512k(bareboxenv),2M(kernel),-(root)"
-rootfs_mtdblock_nor=3
-
-nand_parts="256k(barebox)ro,512k(bareboxenv),2M(kernel),-(root)"
-rootfs_mtdblock_nand=7