Installationsverfahren für Browan Femto
Installationsanforderungen
- Das Gateway startet ein WLAN-Netzwerk; Sie müssen dieses verwenden, um sich per SSH zu verbinden, da die interne Firewall keinen externen Zugriff erlaubt.
- Sie müssen das Root-Passwort kennen, standardmäßig lautet es
browan@<last 6 MAC digits>(achten Sie darauf, die Groß- und Kleinschreibung zu beachten). - Im Problemfall müssen Sie möglicherweise ein FTDI-Kabel verwenden, um sich direkt mit der Box zu verbinden; dies erfordert jedoch das Anlöten von Pins.
- Sie benötigen einen externen USB-Stick, unsere Empfehlung ist SanDisk USB 2/USB 3, > 1 GB (bereits mit SanDisk USB 3 mit 16 GB getestet).
- Die Installation erfolgt in 2 Schritten:
- Installation einer neuen Firmware auf dem Gateway.
- Installation der ThingPark Enterprise All-in-one-Software.
- Sie müssen Folgendes haben:
- die neue Firmware: tao-gemfemto-firmware-1.2.0.bin
- den ThingPark Enterprise All-in-one-Installer: TAO_gemtek.GMTK_FMTO.1_1.3.1
Verbindung zum Gateway
-
Das Gateway erstellt ein WLAN-Netzwerk (SSID:
AP-<last 6 hexa digit of the MAC>)-
Verbinden Sie Ihren PC mit dem WLAN-Netzwerk
-
Sie sollten eine IP-Adresse wie 192.168.55.xxx erhalten, die IP-Adresse des Gateways ist 192.168.55.1
-
Stellen Sie eine SSH-Verbindung zu dieser Gateway-IP her, das Passwort lautet
browan@<last 6 hexa digit of the MAC> -
Firewall anhalten
/etc/init.d/firewall stop
-
-
Das Gateway muss über den RJ45-Port mit Ihrem LAN verbunden sein.
-
Ermitteln Sie die IP-Adresse des Gateways (auf eth0.2)
ip a | grep eth0.2
-
Vorbereitung des USB-Sticks (ext4-Dateisystem)
-
Stecken Sie den Stick in einen PC mit Linux-Betriebssystem.
-
Überprüfen Sie das Gerät, in unserem Fall /dev/sdb1.
-
Formatieren Sie den Stick (mkfs)
root@actility:/home/actility# mkfs -t ext4 /dev/sdb1
mke2fs 1.45.5 (07-Jan-2020)
/dev/sdb1 contains a ext4 file system
last mounted on /mnt/storage on Mon Jul 18 06:54:00 2022
Proceed anyway? (y,N) y
Creating filesystem with 3807744 4k blocks and 952848 inodes
Filesystem UUID: d40f76ef-64bc-4ec2-ab69-369838b9e4c3
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks):
done
Writing superblocks and filesystem accounting information: done
Firmware-Installation
-
Kopieren Sie die Firmware in den Ordner /tmp unter dem Namen firmware.img.
scp tao-gemfemto-firmware-1.2.0.bin root@<ip address of the gateway>:/tmp/firmware.img -
Installieren Sie die Firmware
ssh root@<ip address of the gateway>
BusyBox v1.22.1 (2021-05-14 16:11:19 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
d888888b d8b db d8888b. .d88b. .d88b. d8888b.
88 888o 88 88 8D .8P Y8. .8P Y8. 88 8D
88 88V8o 88 88 88 88 88 88 88 88oobY'
88 88 V8o88 88 88 88 88 88 88 888b
.88. 88 V888 88 .8D 8b d8' 8b d8' 88 88.
Y888888P VP V8P Y8888D' Y88P' Y88P 88 YD
GGGGGGGGGGGGGIIIIIIIIII OOOOOOOOO TTTTTTTTTTTTTTTTTTTTTTT
GGG::::::::::::GI::::::::I OO:::::::::OO T:::::::::::::::::::::T
GG:::::::::::::::GI::::::::I OO:::::::::::::OO T:::::::::::::::::::::T
G:::::GGGGGGGG::::GII::::::IIO:::::::OOO:::::::OT:::::TT:::::::TT:::::T
G:::::G GGGGGG I::::I O::::::O O::::::OTTTTTT T:::::T TTTTTT
G:::::G I::::I O:::::O O:::::O T:::::T
G:::::G I::::I O:::::O O:::::O T:::::T
G:::::G GGGGGGGGGG I::::I O:::::O O:::::O T:::::T
G:::::G G::::::::G I::::I O:::::O O:::::O T:::::T
G:::::G GGGGG::::G I::::I O:::::O O:::::O T:::::T
G:::::G G::::G I::::I O:::::O O:::::O T:::::T
G:::::G G::::G I::::I O::::::O O::::::O T:::::T
G:::::GGGGGGGG::::GII::::::IIO:::::::OOO:::::::O TT:::::::TT
GG:::::::::::::::GI::::::::I OO:::::::::::::OO T:::::::::T
GGG::::::GGG:::GI::::::::I OO:::::::::OO T:::::::::T
GGGGGG GGGGIIIIIIIIII OOOOOOOOO TTTTTTTTTTT
root@AP-64FD4E:~#root@AP-64FD4E:~# cd /tmproot@AP-64FD4E:/tmp# upgrade_firmware.sh
wait 1 times!
wait 2 times!
wait 3 times!
uci: Entry not found
uci: Entry not found
[debug] LED:[diag] Act:[blk] GPIO:[70]
2.4G disabled=0, 5G disabled=0
[debug] scenario: WSEC_OFF
[debug] LED:[wlan] Act:[on] GPIO:[8]
[debug] LED:[wsec] Act:[off] GPIO:[10]
ifconfig: SIOCGIFFLAGS: No such device
brctl: iface rai0: No such device
mt7612e(mt7612e): disable failed
[DEBUG] action=enable, ifcheck=0, mtime=0, htime=1
brctl: bridge br-lan: Invalid argument
mt7620(mt7620): disable failed
Unlocking firmware2 ...
Writing from /tmp/firmware.img to firmware2 ...
root@AP-64FD4E:/tmp# Connection to 10.100.30.164 closed by remote host.
Connection to 10.100.30.164 closed.
ThingPark Enterprise All-in-one Installation
-
Verbinden Sie sich erneut mit dem WLAN und deaktivieren Sie die Firewall.
-
Stecken Sie den USB-Stick ein, Sie sollten einen Einhängepunkt "/mnt/storage" erhalten.
root@AP-64FD4E:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock8 on /mnt/data type jffs2 (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/sda1 on /mnt/storage type ext4 (rw,noatime,data=ordered) -
Kopieren Sie die Datei TAO_gemtek.GMTK_FMTO.1_1.3.1 nach /mnt/storage.
scp TAO_gemtek.GMTK_FMTO.1_1.3.1 root@<ip address of the gateway>:/mnt/storage/ -
Stellen Sie per SSH eine Verbindung mit dem Gateway her.
-
Installieren Sie das Paket wie bei einer Standardinstallation:
-
cd /mnt/storage
-
chmod u+x ./TAO_gemtek.GMTK_FMTO.1_1.3.1
-
./TAO_gemtek.GMTK_FMTO.1_1.3.1
root@AP-64FD4E:/mnt/storage# ./TAO_gemtek.GMTK_FMTO.1_1.3.1
Self Extracting Installer
./
./rootfs-patch-tao-1.3.1-gemfemto.tar.gz
./install.autorun
Execute tao-install.sh
LRR custom configuration
-> TAO fresh install, add complete lrr custom folder
ipsec is in /etc, need to clean files and folder
Execute system preparation scripts if any
System characteristics: setting file not present: automatic creation ...
-----------------------------------------------------------
----------------------------------------------------------
Checking consistency of system definition
OK: SYSTEM defined: gemfemto
OK: MANUFACTURER defined: browan
OK: FIRMWARE defined: openwrt
OK: MANUFACTURER_OUI defined: 80029c
OK: SEMTECH_REFDESIGN: 1.5 in (1.0 1.5 2.1)
OK: at least one option set in [SEMTECH_V1_0 SEMTECH_V1_5 SEMTECH_V2_1]
OK: TERMINFO defined: export TERMINFO=/etc/terminfo/
OK: NETSTAT defined: netstat -an
OK: VIEW_NTP_CONF defined: cat /etc/ntp.conf
OK: TRACE_BACKUP_DIR defined: /mnt/storage/actility/traces
OK: at least one option set in [TAR_OPTION_X TAR_OPTION_EXCLUDE]
OK: NETWORK_INTERFACE_FILE: valid file /etc/config/network
OK: SYSTEM_ETC: valid directory /etc
OK: IPSEC: valid executable /usr/sbin/ipsec
OK: IPSEC_CONF: valid file /etc/ipsec.conf
OK: NTP_SERVICE: valid file /etc/init.d/sysntpd
OK: SFTP: valid executable /mnt/storage/actility/lrr/sftp/sftp
OK: IPTABLES_BIN: valid executable /usr/sbin/iptables
OK: NETWORK_INTERFACE_FILE defined: /etc/config/network
-----------------------------------------------------------
/mnt/storage/actility used as root directory
System : gemfemto
ROOTACT not present in /etc/profile : add it
New installation mechanism detected
create service checktls
create service checkvpn2
create service gwmgr_restore
create service ipfailover2
create service lrr
create service lrrplan
iptables are installed
passwd: no record of support in /etc/shadow, using /etc/passwd
Changing password for support
...
Starting lrc.x service: gemfemto
Warning: lrc.x started WITHOUT nohup !
[OK]
restart service mqtt
Stopping mosquitto service: [FAILED]
mosquitto is already stopped
Starting mosquitto service: gemfemto
Warning: mosquitto started WITHOUT nohup !
[OK]
restart service node-red
Stopping node-red service: [FAILED]
node-red is already stopped
Starting node-red service: gemfemto
Warning: node-red started WITHOUT nohup !
[OK]
restart service tao
Stopping tao-server service: [FAILED]
tao-server is already stopped
Starting tao-server service: gemfemto
Warning: tao-server started WITHOUT nohup !
[OK]
System configuration done
Stopping lrr service: [FAILED]
lrr is already stopped
Starting lrr service: gemfemto
no command to power on radio board
no AES key generation on v1.5 model
Updating /mnt/storage/actility/usr/etc/lrr/versions.ini file
/mnt/storage/actility/usr/etc/lrr/versions.ini file updated
Warning: lrr started WITHOUT nohup !
[OK]
Installation done
-
-
ThingPark Enterprise All-in-one wird neue Firewall-Regeln konfigurieren.
-
Sie sollten das Gateway nun neu starten.
-
Sie sollten sich nach 3 bis 4 Minuten verbinden können.
http://<ip address of the gateway>:1323