summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/edb93xx/env/bin/update_rootfs
blob: 52a3699fd06952cadba1fa6dc60122a07b71d32a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. /env/config

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

partition=/dev/nor0.rootfs_$1

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

flash_partition rootfs.img ${partition}