Toon firmware - update script

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, Toonz

stijnpeeters
Starting Member
Starting Member
Posts: 5
Joined: Fri Mar 01, 2019 8:37 pm

Re: Toon firmware - update script

Post by stijnpeeters »

With your help i got it to work again:

perhaps my steps wil help someone else aswell:

created a VPN manually as informed by theHognl:

Code: Select all

eneco-001-064929:~# /usr/sbin/openvpn --config /etc/openvpn/vpn.conf
Tue Mar 12 20:29:22 2019 DEPRECATED OPTION: --tls-remote, please update your configuration
Tue Mar 12 20:29:22 2019 OpenVPN 2.3.11 arm-hae-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Nov 30 2016
Tue Mar 12 20:29:22 2019 library versions: OpenSSL 1.0.2h  3 May 2016, LZO 1.08
Tue Mar 12 20:29:22 2019 Control Channel Authentication: using '/etc/openvpn/vpn/ta.key' as a OpenVPN static key file
Tue Mar 12 20:29:22 2019 Attempting to establish TCP connection with [AF_INET]34.253.116.121:443 [nonblock]
Tue Mar 12 20:29:23 2019 TCP connection established with [AF_INET]34.253.116.121:443
Tue Mar 12 20:29:23 2019 TCPv4_CLIENT link local: [undef]
Tue Mar 12 20:29:23 2019 TCPv4_CLIENT link remote: [AF_INET]34.253.116.121:443
Tue Mar 12 20:29:25 2019 [VPN-Eneco] Peer Connection Initiated with [AF_INET]34.253.116.121:443
Tue Mar 12 20:29:27 2019 TUN/TAP device tap0 opened
Tue Mar 12 20:29:27 2019 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Mar 12 20:29:27 2019 /sbin/ifconfig tap0 172.28.143.153 netmask 255.255.240.0 mtu 1500 broadcast 172.28.143.255
Tue Mar 12 20:29:27 2019 Initialization Sequence Completed
Run the script, kinda didn't work, or i don't use it correct

Code: Select all

eneco-001-064929:~# echo `/sbin/ip route | /bin/grep ^172.*via.*tap0 | /usr/bin/
awk '{print $1}'| /usr/bin/awk 'BEGIN {FS="."}; {print $1"."$2"."$3}'`.1
-sh: /sbin/ip: not found
.1
eneco-001-064929:~# cd /sbin/
... but... the same commands manually gave the correct info from tap0:
manually looking for the grep it seems that is would be: 172.28.128.1

Code: Select all

eneco-001-064929:/sbin# ip route
192.168.1.0/24 dev eth0 scope link  src 192.168.1.120
172.28.128.0/20 via 172.28.128.1 dev tap0
172.28.128.0/20 dev tap0 scope link  src 172.28.143.153
default via 192.168.1.254 dev eth0  metric 10

eneco-001-064929:/sbin# ping 172.28.128.1
PING 172.28.128.1 (172.28.128.1): 56 data bytes
64 bytes from 172.28.128.1: seq=0 ttl=64 time=77.141 ms
64 bytes from 172.28.128.1: seq=1 ttl=64 time=33.743 ms


so put that into etc/hosts file for .int

127.0.0.1     localhost.localdomain           localhost
172.23.16.1   feed.hae.orig           feed
172.28.128.1  feed.hae.int  feed
127.0.0.1     ping.quby.nl

test:
eneco-001-064929:/etc# ping feed.hae.int
PING feed.hae.int (172.28.128.1): 56 data bytes
64 bytes from 172.28.128.1: seq=0 ttl=64 time=36.642 ms
64 bytes from 172.28.128.1: seq=1 ttl=64 time=38.864 ms
but eventually it seemd that not .int has to be this ip address but feed.hae.orig.
after setting the ip to .orig; the command opkg update worked.

however: command opkg install base-qb2-uni gave an error:

so also tried opkg upgrade and let it run.
after this the command shows it;s up 2 date:

Code: Select all

 eneco-001-064929:~# opkg install base-qb2-uni
Package base-qb2-uni (5.0.4-1286-0) installed in root is up to date.
rebooted; no toon yet so rerun the update script:

Code: Select all


eneco-001-064929:~# sh /root/update-rooted.sh -f
===================================================================================================================================================================
Welcome to the rooted Toon upgrade script. This script will try to upgrade your Toon using your original connection with Eneco. It will start the VPN if necessary.
Please be advised that running this script is at your own risk!

Version: 3.71  - TheHogNL & TerrorSource & yjb - 5-3-2019

If you like the update script for rooted toons you can support me. Any donation is welcome and helps me developing the script even more.
https://paypal.me/pools/c/8bU3eQp1Jt

===================================================================================================================================================================

Only fixing files.
creating backup of inittab...
creating backup of chrony.conf...
creating backup of hosts...
creating backup of config_happ_scsync.xml...
creating backup of qmf_tenant.xml.save ...
FIXING: Downloading resources.rcc TSC mod for this version 5.0.4.
FIXING: Now updating all toonstore installed apps
Downloading http://files.domoticaforum.eu/uploads/Toon/apps/toonstore-2.1.2/toonstore_2.1.2-r0_qb2.ipk.
Installing toonstore (2.1.2-r0) to root...
Executing pre-install script for toonstore-2.1.2
Previous installation detected.
Creating backup for /qmf/etc/qmf_release.xml ...
Patching /qmf/etc/qmf_release.xml for 403-forbidden error ...
Restarting http server ...
Cleaning garbage....
rm: can't remove '/HCBv2/qml/apps/toonstore/*.qmlc': No such file or directory
rm: can't remove '/HCBv2/qml/apps/toonstore/*.jsc': No such file or directory
ToonStore pre-install script completed ...
Configuring toonstore.
Executing post-install script for toonstore-2.1.2 ...
Writing app version number to /HCBv2/qml/apps/toonstore-2.1.2/version.txt ...
Adding toonstore key to opkg keyring ...
OK
This is a Toon QB2, checking to Globals.qml
No settings to be restored
Removing stale link /HCBv2/qml/apps/toonstore ...
Creating symbolic link /HCBv2/qml/apps/toonstore to /HCBv2/qml/apps/toonstore-2.1.2
Firmware version 5 or greater detected, changing app for firmware compatibility...
Posting message ...

EDITING: Time server, removes unnecessary link to Quby
EDITING: Hosts file, removes unnecessary link to Quby
EDITING: disable ovpn connection to quby
EDITING: Adding serial connection
EDITING: Activating Toon, enabling ElectricityDisplay and GasDisplay
EDITING: removing data gathering by Quby and whitelisting web services
TOON is alive again!
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

Ok great! The "opkg upgrade" fixed the missing files for you. As you where in the middle of a previous update.
But I recommend others not to run this to soon. Only in specific circumstances this can fix your toon.

Good work!
Member of the Toon Software Collective
Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Re: Toon firmware - update script

Post by Heronimo »

Trying to upgrade, but run in to a libssl missing error:

Code: Select all

Which version do you want to upgrade to?
5.2.11
Alright, I will try to upgrade to 5.2.11
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Tunnel is alive and configured.
/usr/bin/wget: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
Could not download the upgrade script from the source.
Quitting the upgrade. It was a nice try tho...
Already ran a 'opkg upgrade', but that doesn't fix it.
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon firmware - update script

Post by TerrorSource »

Heronimo wrote:Trying to upgrade, but run in to a libssl missing error:

Code: Select all

Which version do you want to upgrade to?
5.2.11
Alright, I will try to upgrade to 5.2.11
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Tunnel is alive and configured.
/usr/bin/wget: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
Could not download the upgrade script from the source.
Quitting the upgrade. It was a nice try tho...
Already ran a 'opkg upgrade', but that doesn't fix it.
Try installing the libssl from http://files.domoticaforum.eu/index.php ... on/ipk/qb2 and try again
ams123
Member
Member
Posts: 73
Joined: Thu Aug 31, 2017 5:27 pm
Location: Amersfoort

Re: Toon firmware - update script

Post by ams123 »

After update from 4.16.8 to 4.19.10 my toon keep going on loading in the black screen whit the logo whte line goin up for hrs now
Toon solarpannels
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

try to update to 5.0.4 or 5.2.11. This probably will fix it because I think you are missing some files
Member of the Toon Software Collective
ams123
Member
Member
Posts: 73
Joined: Thu Aug 31, 2017 5:27 pm
Location: Amersfoort

Re: Toon firmware - update script

Post by ams123 »

ok wil do
Toon solarpannels
ams123
Member
Member
Posts: 73
Joined: Thu Aug 31, 2017 5:27 pm
Location: Amersfoort

Re: Toon firmware - update script

Post by ams123 »

ok now all works
i have update to 5.0.4 and all prroblems are gone

user and password input work now to

thanks for help
Toon solarpannels
RichardGorter
Starting Member
Starting Member
Posts: 9
Joined: Sun Apr 14, 2019 2:19 pm

Re: Toon firmware - update script

Post by RichardGorter »

I'm trying to update my rooted toon, version 4.2 something. but when I run te script I get this:
  • pi@raspberrypi:~ $ sudo sh /root/update-rooted.sh
    ===================================================================================================================================================================
    Welcome to the rooted Toon upgrade script. This script will try to upgrade your Toon using your original connection with Eneco. It will start the VPN if necessary.
    Please be advised that running this script is at your own risk!

    Version: 3.81 - TheHogNL & TerrorSource & yjb - 22-3-2019

    If you like the update script for rooted toons you can support me. Any donation is welcome and helps me developing the script even more.
    https://paypal.me/pools/c/8bU3eQp1Jt

    ===================================================================================================================================================================

    /root/update-rooted.sh: 41: [: f911981092daafcd453018267a7ed53b: unexpected operator
    strings: '/HCBv2/sbin/hcb_config': No such file
    grep: /etc/opkg/arch.conf: Bestand of map bestaat niet
    /root/update-rooted.sh: 1: /root/update-rooted.sh: opkg: not found
    /root/update-rooted.sh: 854: [: unexpected operator
    /root/update-rooted.sh: 324: /root/update-rooted.sh: /usr/sbin/iptables-save: not found
    /root/update-rooted.sh: 389: /root/update-rooted.sh: /usr/sbin/iptables: not found
    /root/update-rooted.sh: 390: /root/update-rooted.sh: /usr/sbin/iptables: not found
    /root/update-rooted.sh: 393: /root/update-rooted.sh: /usr/sbin/iptables: not found
    /root/update-rooted.sh: 395: /root/update-rooted.sh: /usr/sbin/iptables: not found
    /root/update-rooted.sh: 396: /root/update-rooted.sh: /usr/sbin/iptables: not found
    /root/update-rooted.sh: 405: [: unexpected operator
    Now starting the VPN tunnel and waiting for it to be alive and configured...
    /root/update-rooted.sh: 417: /root/update-rooted.sh: /usr/sbin/openvpn: not found
    /root/update-rooted.sh: 405: [: unexpected operator
    Now starting the VPN tunnel and waiting for it to be alive and configured...
    /root/update-rooted.sh: 417: /root/update-rooted.sh: /usr/sbin/openvpn: not found
    /root/update-rooted.sh: 405: [: unexpected operator
    Now starting the VPN tunnel and waiting for it to be alive and configured...
    /root/update-rooted.sh: 417: /root/update-rooted.sh: /usr/sbin/openvpn: not found
    /root/update-rooted.sh: 405: [: unexpected operator
    Now starting the VPN tunnel and waiting for it to be alive and configured...
    /root/update-rooted.sh: 417: /root/update-rooted.sh: /usr/sbin/openvpn: not found
    /root/update-rooted.sh: 405: [: unexpected operator
    Now starting the VPN tunnel and waiting for it to be alive and configured...
    /root/update-rooted.sh: 417: /root/update-rooted.sh: /usr/sbin/openvpn: not found
    /root/update-rooted.sh: 405: [: unexpected operator
    Now starting the VPN tunnel and waiting for it to be alive and configured...
    /root/update-rooted.sh: 417: /root/update-rooted.sh: /usr/sbin/openvpn: not found
    /root/update-rooted.sh: 405: [: unexpected operator
    Could not enable VPN in a normal reasonable time!
    DEBUG information:
    default via 192.168.178.1 dev eth0 src 192.168.178.234 metric 202
    192.168.178.0/24 dev eth0 proto kernel scope link src 192.168.178.234 metric 202
    127.0.0.1 localhost
    ::1 localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

    127.0.1.1 raspberrypi
    END DEBUG information
    Quitting the upgrade. It was a nice try tho...
    openvpn: geen proces gevonden
    /root/update-rooted.sh: 595: /root/update-rooted.sh: /usr/sbin/iptables-restore: not found
[/list]

Can somebody help me?
_Arjen_
Starting Member
Starting Member
Posts: 12
Joined: Sun Aug 27, 2017 7:22 pm

Re: Toon firmware - update script

Post by _Arjen_ »

You need to run the script on Toon itself ;)
yjb
Member
Member
Posts: 211
Joined: Fri Apr 17, 2009 1:15 pm
Location: Venhuizen, Netherlands

Re: Toon firmware - update script

Post by yjb »

Hi,

It looks like you are running the script on your raspberry pi:
pi@raspberrypi:~ $ sudo sh /root/update-rooted.sh
===================================================================================================================================================================
Welcome to the rooted Toon upgrade script. This script will try to upgrade your Toon using your original connection with Eneco. It will start the VPN if necessary.
Please be advised that running this script is at your own risk!
The script should run on the toon. Also, the current version is 3.85 and normally it will ask you to update the version at the start of the script.

Just copy the script to your Toon and run it from there as root.
RichardGorter
Starting Member
Starting Member
Posts: 9
Joined: Sun Apr 14, 2019 2:19 pm

Re: Toon firmware - update script

Post by RichardGorter »

How do i put the script on the toon? :$

I'm sorry just a mega rooky
yjb
Member
Member
Posts: 211
Joined: Fri Apr 17, 2009 1:15 pm
Location: Venhuizen, Netherlands

Re: Toon firmware - update script

Post by yjb »

No problem:

Code: Select all

scp -p update-rooted.sh <ip of your toon>:/root
Then login to your toon as root and make the script executable:

Code: Select all

chmod 700 update-rooted.sh
The you can run it:

Code: Select all

./update-rooted.sh
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

RichardGorter wrote:How do i put the script on the toon? :$

I'm sorry just a mega rooky
Did you read the readme? https://github.com/IgorYbema/update-rooted
Member of the Toon Software Collective
mAiden
Member
Member
Posts: 330
Joined: Mon Jul 10, 2017 10:22 am

Re: Toon firmware - update script

Post by mAiden »

RichardGorter wrote:How do i put the script on the toon? :$

I'm sorry just a mega rooky

Code: Select all

curl -Nks https://raw.githubusercontent.com/IgorYbema/update-rooted/master/update-rooted.sh -o /root/update-rooted.sh
It stands also in the readme.... Just read it, before you ask.
Member of the Toon Software Collective
Post Reply

Return to “Toon Firmware”