Newer
Older
barebox / arch / ppc / boards / geip-da923rc / env / bin / init
@Renaud Barbier Renaud Barbier on 30 Jan 2014 294 bytes DA923RC: enable UBI/UBIFS configuration
#!/bin/sh
export PATH=/env/bin

source /env/config

#Define a 26MB partition in flash starting at offset 0x20000
addpart -n /dev/nor0 0x1a00000@0x20000(boot)
ubiattach /dev/boot

if [ $? -ne 0 ]; then
	echo "Fail to attach UBI device"
	exit 1;
fi

mkdir /mnt
mount -t ubifs /dev/ubi0.boot /mnt