what does Factory restore work?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

what does Factory restore work?

Roadrunnere42
Does anyone know what the factory reset does, I'm helping 2 people out who have trouble booting there Shield, but am at a loss as to what the Itusrestoreimage is for.

On one Shield got it backup and running, did a fw_upgrade and then reboot -f, after several minutes it rebooted and failed to boot saying  itusrouterimage was missing. On investigating i discover that all files had been deleted except for itusrestoreimage, and two bin files which are bootloader files. On doing a Factory restore does this somehow extract all three images?
itusgatewayimage
Itusrouterimage
Itusbridgeimage

roadrunnere42


what does Factory restore do to the files
Reply | Threaded
Open this post in threaded view
|

Re: what does Factory restore work?

hans2
/etc/itus/factory_reset.sh is:
if [[ `df | grep -c overlay` == "1" ]]; then
        umount /overlay
fi
sleep 1
mkdir -p /factory_reset
sleep 1
mount /dev/mmcblk0p1 /factory_reset
sleep 1
cd /factory_reset
sleep 1
rm ItusrouterImage
sleep 5
rm ItusbridgeImage
sleep 5
rm ItusgatewayImage
sleep 5
cp ItusrestoreImage ItusrouterImage
sleep 10
cp ItusrestoreImage ItusgatewayImage
sleep 10
cp ItusrestoreImage ItusbridgeImage
sleep 10
cd /
sleep 1
umount /factory_reset
sleep 1
umount -a
sleep 1
reboot -f

in other words, ItusrestoreImage is just the source of the router, gateway and bridge images.

The boot segment should look like:
-rwxr-xr-x    1 root     root      35862152 Nov 26 03:04 ItusbridgeImage
-rwxr-xr-x    1 root     root      58078856 Nov 26 03:02 ItusgatewayImage
-rwxr-xr-x    1 root     root      58144392 Nov 26 03:01 ItusrouterImage
-rwxr-xr-x    1 root     root      40859016 Nov 27 13:08 ItusrestoreImage
-rwxr-xr-x    1 root     root        470976 Mar 27  2015 octboot2.bak
-rwxr-xr-x    1 root     root        470976 Mar 27  2015 octboot2.bin
-rwxr-xr-x    1 root     root       1138416 May 27  2015 u-boot-octeon_rhino_itus7x.bin
No more: Shield Pro v1, Chaos Calmer, FW 1.51 SP1
Reply | Threaded
Open this post in threaded view
|

Re: what does Factory restore work?

hans2
In http://itus.accessinnov.com/How-do-I-completely-reset-td131.html I've put an updated script of the /etc/factory_reset.sh

Hans
No more: Shield Pro v1, Chaos Calmer, FW 1.51 SP1