Commit 9a3d176a authored by Alessandro Rubini's avatar Alessandro Rubini

wrs-boot-procedure: trivial details

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 03e1f4de
......@@ -85,22 +85,22 @@ if $install; then
cd /; umount /update
echo " done" | busybox tee /dev/ttyGS0
else
# Not installing, access existing UBI volumes
ubiattach -p /dev/mtd1
mkdev_sh "/sys/devices/virtual/ubi/ubi0"
mkdev_sh "/sys/devices/virtual/ubi/ubi0/ubi0_0"
mkdev_sh "/sys/devices/virtual/ubi/ubi0/ubi0_1"
mkdev_sh "/sys/devices/virtual/ubi/ubi0/ubi0_2"
fi
# We have volumes, so create their devices
ubiattach -p /dev/mtd1
mkdev_sh "/sys/devices/virtual/ubi/ubi0"
mkdev_sh "/sys/devices/virtual/ubi/ubi0/ubi0_0"
mkdev_sh "/sys/devices/virtual/ubi/ubi0/ubi0_1"
mkdev_sh "/sys/devices/virtual/ubi/ubi0/ubi0_2"
# Now, whether installing or not, mount /update and check what is there
mkdir -p /update
mount -t ubifs ubi0:update /update
if [ -f /update/$WRS_FW ]; then
# FIXME: save configuration somewhere, and recover it later
echo "Extracting filesystem" | busybox tee /dev/ttyGS0
echo -n "Extracting filesystem..." | busybox tee /dev/ttyGS0
# since we are upgrading, we'd better remove and recreate the volume
ubirmvol /dev/ubi0 --name=usr
ubimkvol /dev/ubi0 -s 150MiB -N usr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment