summaryrefslogtreecommitdiffstats
path: root/board/ipe337/defenv/bin/update_kernel
blob: a9ce158f9cf232e7a8259ca04d67301ae1e831c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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