9
0
Fork 0
barebox/arch/arm/boards/phytec-som-am335x/defaultenv-gsmk-owhw/bin/prepare-ubi

15 lines
214 B
Bash

#!/bin/sh
if test -e /dev/nand0.root.ubi; then
exit 0
fi
# Linux 3.2.x needs VID header offset 2048
ubiattach -d 0 -O 2048 /dev/nand0.root
if [ $? != 0 ]; then
echo "failed to run ubiattach"
exit 1
fi
exit 0