diff --git a/arch/blackfin/configs/ipe337_defconfig b/arch/blackfin/configs/ipe337_defconfig index 9b564c7..4c273aa 100644 --- a/arch/blackfin/configs/ipe337_defconfig +++ b/arch/blackfin/configs/ipe337_defconfig @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # U-Boot version: 2.0.0-git -# Wed Oct 24 10:04:52 2007 +# Thu Oct 4 13:24:51 2007 # CONFIG_BLACKFIN=y CONFIG_BF561=y @@ -34,14 +34,11 @@ CONFIG_CONSOLE_ACTIVATE_FIRST=y # CONFIG_OF_FLAT_TREE is not set CONFIG_DEFAULT_ENVIRONMENT=y -CONFIG_DEFAULT_ENVIRONMENT_PATH="board/ipe337/defenv" +CONFIG_DEFAULT_ENVIRONMENT_PATH="board/ipe337/env" # # Debugging # -# CONFIG_ENABLE_FLASH_NOISE is not set -# CONFIG_ENABLE_PARTITION_NOISE is not set -# CONFIG_ENABLE_DEVICE_NOISE is not set # # Commands @@ -54,7 +51,6 @@ CONFIG_CMD_SLEEP=y CONFIG_CMD_ENVIRONMENT=y CONFIG_CMD_HELP=y -# CONFIG_CMD_READLINE is not set # # file commands @@ -132,7 +128,6 @@ CONFIG_DRIVER_CFI=y # CONFIG_DRIVER_CFI_NEW is not set CONFIG_CFI_BUFFER_WRITE=y -# CONFIG_NAND is not set # # Filesystem support diff --git a/board/ipe337/defenv/bin/boot b/board/ipe337/defenv/bin/boot deleted file mode 100644 index b10ab73..0000000 --- a/board/ipe337/defenv/bin/boot +++ /dev/null @@ -1,35 +0,0 @@ - -. /env/config - -if [ x$1 = "xflash" ]; then - root=flash - kernel=flash -fi - -if [ x$1 = "xnet" ]; then - root=net - kernel=net -fi - -if [ "$root" = flash ]; then - bootargs="$bootargs root=/dev/mtdblock4 rootfstype=jffs2" -else - if [ "$ip" = dhcp ]; then - bootargs="$bootargs ip=dhcp" - else - bootargs="$bootargs ip=$eth0.ip:$eth0.serverip:$eth0.gateway:$eth0.netmask:::" - fi - bootargs="$bootargs root=/dev/nfs nfsroot=$eth0.serverip:$nfsroot,v3,tcp" -fi - -bootargs="$bootargs mtdparts=physmap-flash.0:$mtdparts" - -if [ "$kernel" = net ]; then - if [ $ip = dhcp ]; then - dhcp - fi - tftp $uimage uImage - bootm uImage -else - bootm /dev/nor0.kernel -fi diff --git a/board/ipe337/defenv/bin/init b/board/ipe337/defenv/bin/init deleted file mode 100644 index 93eef1c..0000000 --- a/board/ipe337/defenv/bin/init +++ /dev/null @@ -1,14 +0,0 @@ -PATH=/env/bin -export PATH - -. /env/config - -echo -n "Hit any key to stop autoboot: " -timeout -a 1 -if [ $? != 0 ]; then - echo "type update_kernel to update kernel into flash" - echo "type udate_root to update rootfs into flash" - exit -fi - -boot diff --git a/board/ipe337/defenv/bin/update_kernel b/board/ipe337/defenv/bin/update_kernel deleted file mode 100644 index a9ce158..0000000 --- a/board/ipe337/defenv/bin/update_kernel +++ /dev/null @@ -1,20 +0,0 @@ -. /env/config - -if [ -z /dev/nor0.kernel ]; then - echo "Please add a partition /dev/nor0.kernel containing the kernel image" - exit 1 -fi - -image=uImage-ipe337 - -if [ $# = 1 ]; then - image=$1 -fi - -if [ x$ip = xdhcp ]; then - dhcp -fi - -unprotect /dev/nor0.kernel -erase /dev/nor0.kernel -tftp "$image" /dev/nor0.kernel diff --git a/board/ipe337/defenv/bin/update_root b/board/ipe337/defenv/bin/update_root deleted file mode 100644 index 7d0a21d..0000000 --- a/board/ipe337/defenv/bin/update_root +++ /dev/null @@ -1,20 +0,0 @@ -. /env/config - -if [ -z $rootdev ]; then - echo "$rootdev not set. Please set to your device containing the root image" - exit 1 -fi - -image=root-ipe337.jffs2 - -if [ $# = 1 ]; then - image=$1 -fi - -if [ x$ip = xdhcp ]; then - dhcp -fi - -unprotect "$rootdev" -erase "$rootdev" -tftp $image "$rootdev" diff --git a/board/ipe337/defenv/config b/board/ipe337/defenv/config deleted file mode 100644 index c7d6368..0000000 --- a/board/ipe337/defenv/config +++ /dev/null @@ -1,25 +0,0 @@ -echo /env/config - -eth0.serverip=192.168.23.2 -eth0.ethaddr=80:87:78:74:73:63 - -mtdparts="128k(uboot)ro,128k(ubootenv),128k(alternate),1536k(kernel),-(root)" - -ip=dhcp -eth0.ip=192.168.25.2 -eth0.netmask=255.255.255.0 -eth0.gateway=192.168.25.1 - -nfsroot="/home/sha/octopus/blackfin/OSELAS.BSP-Pipetronix-ipe337-trunk/root" -uimage=uImage-bfin -jffs2=root-bfin.jffs2 - -bootargs="console=ttyBF0,115200" - -# can be either 'net' or 'flash' -kernel=flash -root=flash - -if [ ! -e dev/nor0.0 ]; then - addpart /dev/nor0 $mtdparts -fi diff --git a/board/ipe337/env/bin/boot b/board/ipe337/env/bin/boot new file mode 100644 index 0000000..b10ab73 --- /dev/null +++ b/board/ipe337/env/bin/boot @@ -0,0 +1,35 @@ + +. /env/config + +if [ x$1 = "xflash" ]; then + root=flash + kernel=flash +fi + +if [ x$1 = "xnet" ]; then + root=net + kernel=net +fi + +if [ "$root" = flash ]; then + bootargs="$bootargs root=/dev/mtdblock4 rootfstype=jffs2" +else + if [ "$ip" = dhcp ]; then + bootargs="$bootargs ip=dhcp" + else + bootargs="$bootargs ip=$eth0.ip:$eth0.serverip:$eth0.gateway:$eth0.netmask:::" + fi + bootargs="$bootargs root=/dev/nfs nfsroot=$eth0.serverip:$nfsroot,v3,tcp" +fi + +bootargs="$bootargs mtdparts=physmap-flash.0:$mtdparts" + +if [ "$kernel" = net ]; then + if [ $ip = dhcp ]; then + dhcp + fi + tftp $uimage uImage + bootm uImage +else + bootm /dev/nor0.kernel +fi diff --git a/board/ipe337/env/bin/init b/board/ipe337/env/bin/init new file mode 100644 index 0000000..93eef1c --- /dev/null +++ b/board/ipe337/env/bin/init @@ -0,0 +1,14 @@ +PATH=/env/bin +export PATH + +. /env/config + +echo -n "Hit any key to stop autoboot: " +timeout -a 1 +if [ $? != 0 ]; then + echo "type update_kernel to update kernel into flash" + echo "type udate_root to update rootfs into flash" + exit +fi + +boot diff --git a/board/ipe337/env/bin/update_kernel b/board/ipe337/env/bin/update_kernel new file mode 100644 index 0000000..a9ce158 --- /dev/null +++ b/board/ipe337/env/bin/update_kernel @@ -0,0 +1,20 @@ +. /env/config + +if [ -z /dev/nor0.kernel ]; then + echo "Please add a partition /dev/nor0.kernel containing the kernel image" + exit 1 +fi + +image=uImage-ipe337 + +if [ $# = 1 ]; then + image=$1 +fi + +if [ x$ip = xdhcp ]; then + dhcp +fi + +unprotect /dev/nor0.kernel +erase /dev/nor0.kernel +tftp "$image" /dev/nor0.kernel diff --git a/board/ipe337/env/bin/update_root b/board/ipe337/env/bin/update_root new file mode 100644 index 0000000..7d0a21d --- /dev/null +++ b/board/ipe337/env/bin/update_root @@ -0,0 +1,20 @@ +. /env/config + +if [ -z $rootdev ]; then + echo "$rootdev not set. Please set to your device containing the root image" + exit 1 +fi + +image=root-ipe337.jffs2 + +if [ $# = 1 ]; then + image=$1 +fi + +if [ x$ip = xdhcp ]; then + dhcp +fi + +unprotect "$rootdev" +erase "$rootdev" +tftp $image "$rootdev" diff --git a/board/ipe337/env/config b/board/ipe337/env/config new file mode 100644 index 0000000..cf0fcb1 --- /dev/null +++ b/board/ipe337/env/config @@ -0,0 +1,21 @@ +echo /env/config + +eth0.serverip=192.168.23.2 +eth0.ethaddr=80:87:78:74:73:63 + +mtdparts="128k(uboot)ro,128k(ubootenv),128k(alternate),1536k(kernel),-(root)" + +ip=dhcp +eth0.ip=192.168.25.2 +eth0.netmask=255.255.255.0 +eth0.gateway=192.168.25.1 + +nfsroot="/home/sha/octopus/blackfin/OSELAS.BSP-Pipetronix-ipe337-trunk/root" +uimage=uImage-bfin +jffs2=root-bfin.jffs2 + +bootargs="console=ttyBF0,115200" + +# can be either 'net' or 'flash' +kernel=flash +root=flash