Newer
Older
barebox / arch / arm / boards / versatile / env / boot / nor-update
@Jean-Christophe PLAGNIOL-VILLARD Jean-Christophe PLAGNIOL-VILLARD on 5 Jan 2015 220 bytes versatilepb: switch to defaultenv-2
#!/bin/sh

if [ "$1" = menu ]; then
	boot-menu-add-entry "$0" "nor update"
	exit
fi

global.bootm.image="/dev/nor0.update"

dtb=/dev/nor0.dtb
filetype -s t ${dtb}
if [ "$t" = dtb ]; then
	global.bootm.oftree="${dtb}"
fi