Re: [FIRMWARE] Itus Networks Shield Firmware Upgrade *WIP*
Posted by
Grommish on
May 21, 2019; 7:31am
URL: https://itus.accessinnov.com/FIRMWARE-Itus-Networks-Shield-Firmware-Upgrade-WIP-tp1726p1748.html
The Itus script only sets the "mode" based on the mmcblk0p block that is loaded as the /extroot. They went lazy about it, i guess. I was going to use the GPIOs to determine the switch position
GPIO16=0 is Gateway
GPIO16=1 and GPIO17=1 is Router
GPIO16=1 and GPIO17=0 is Bridge
For the record, GPIO9/10/11=0 are the Front "M" LED (Orange/Green/Cyan)
You can see it yourself by scripting out the following (taken from my test image rc.local - it sets the LED on at the tail end to signify boot complete):
# Set the front LED to on to show boot finished
# Orange
gpio=9
echo $gpio > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio$gpio/direction
echo 0 > /sys/class/gpio/gpio$gpio/value
echo $gpio > /sys/class/gpio/unexport
You can change the gpio= to 9/10/11 and run it

You might have to change the path as I've not tested it on the Itus image, just the OpenWrt one.
Thanks for being wiling to resend it.. no rush on it, but I'd really like to keep a copy handy. i already managed to lose the superblocks on ALL THREE of my mmcblk1pX blocks (silly me, i didn't realize Itus used ext3 and e2fs in addition to vfat for their stuff. I never though to include those filesystems in the test image until it was to late. Ah well.) I managed to extract the restore/router.tar.gz from dev/mmcblk1p1 and reset the ItusrouterImage from the original restore/router.elf file. So it will at least boot in router mode, even though I can't seem to get network running..
Running Itus Shield v2 Firmware