Newer
Older
barebox / arch / arm / boards / edb93xx / env / bin / update_kernel
@Jean-Christophe PLAGNIOL-VILLARD Jean-Christophe PLAGNIOL-VILLARD on 23 Jul 2010 201 bytes move boards to arch/<architecure>/boards
#!/bin/sh

. /env/config

if [ $# != 1 ];
then
				echo "Usage: $0 <1/2>"
				exit 1
fi

partition=/dev/nor0.kernel_$1

cd /
tftp ${board}/kernel.img || exit 1

flash_partition kernel.img ${partition}