Posted by
Grommish on
Jul 31, 2020; 11:43pm
URL: https://itus.accessinnov.com/FIRMWARE-Itus-Shield-v2-tp2014p2141.html
Roadrunnere42 wrote
Are these switches correct using version 2
ROUTER:
dev/mmcblk1p2
BRIDGE:
/dev/mmcblk1p4
Gateway:
/dev/mmcblk1p3
Correct.
Roadrunnere42 wrote
Should I be using
mount /dev/mmcblk1p? /overlay
or
mount /dev/mmcblk1p? /mnt
mount /dev/mmcblk1p? /mnt
This is because under the new filesystem, /overlay actually is used (unlike before)
Roadrunnere42 wrote
Do I need to mkfs.f2fs /dev/mmcblk1p? after each time I copy over a new
initramfs-kernel.bin file or is it a one time format?
No. I'm not entirely sure it's even needed, but if you do, it would only need to be one once..
Roadrunnere42 wrote
When doing a system upgrade via flash firmware I get the below message,
even when Ive downloaded both initramfs and system upgrade files from the
web site at the same.
OpenWrt had issues with the way I had the naming convention (of all things) for the device. When that changes, the sysupgrade system changes and the previous versions can't read the file (or rather, the directory names change and make it unable to FIND it).
Download the Gateway Initramfs file:
https://github.com/Itus-Shield/opkgs/raw/kernel-5.4/targets/octeon/generic/openwrt-octeon-itus_shield-gateway-initramfs-kernel.binInstall it to your ItusgatewayImage:
mount /dev/mmcblk1p1 /mnt
cp openwrt-octeon-itus_shield-gateway-initramfs-kernel.bin /mnt/ItusgatewayImage
umount /mnt
Because you aren't sure about it, setup the filesystem:
mkfs.f2fs /dev/mmcblk1p3
reboot
Download the Gateway sysupgrade:
https://github.com/Itus-Shield/opkgs/raw/kernel-5.4/targets/octeon/generic/openwrt-octeon-itus_shield-gateway-squashfs-sysupgrade.tarFlash the sysupgrade via luCi or CLI:
When running from the Initramfs image, nothing can be saved. You can leave the "Save Configuration" checked, it won't matter.
It'll reboot and then come back up.
Your mount should look something like this:
root@Shield:/# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup on /sys/fs/cgroup type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,net_prio,pids)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/loop0 on /overlay type f2fs (rw,lazytime,noatime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
Notice that overlayfs:/overlay is set..
You can then set your device password and set the SSH key.
Running Itus Shield v2 Firmware