Toon firmware - update script

Forum about the Toon firmware, and its extensions

Moderator: marcelr

Re: Toon firmware - update script

Postby mAiden » Mon Sep 03, 2018 9:36 pm

TheHogNL wrote:
mAiden wrote:What happens when you say "no", when script ask you to resume?


It cancels your previous attempt and starts a new update session (redownload everything etc).


Nvm. I answer on wrong topic.
mAiden
Member
Member
 
Posts: 71
Joined: July 2017

Re: Toon firmware - update script

Postby legalr » Tue Sep 04, 2018 9:44 am

makkie2002 wrote:
legalr wrote:
marcelr wrote:Open a second shell to your toon, and run the command "top" while the update is ongoing in the other shell. Then you can see processor load, free memory etc. Probably the memory is almost full, and processor load is at an all time high (above 10).


today i had time to check it.
during Update no full disk or high processor load.

4 of 5 times the wont boot into GUI, reboots before entering GUI.
1 of 5 times boots into GUI, bus GUI becomes very slow and after a couple of minutes the GUI is not responding anymore.

all the times i checked with the "Top"command but no full load or full memory.

is there an option for a cleanup/clean install?


The symptoms sound familiar to issues I had some time ago ... check few posts above (link) ... TheHogNl found what was wrong ... it is all in the posts above !


i checked this, no weird things found.

After this i looked into the Toon with the "Top" command, and found out X11VNC has a high load at some times.
removed X11VNC helps, Toon booting nomaly and also GUI is responding again.

after Reinstalling X11VNC everything runs fine again...
legalr
Starting Member
Starting Member
 
Posts: 12
Joined: August 2018

Re: Toon firmware - update script

Postby Timeless » Tue Sep 04, 2018 7:35 pm

I tried to run the update script and it seems that my VPN certificates are fine, opkg downloads most of the packages except for busybox:

Code: Select all
/tmp/update.status.vars: Downloading 100% (151/151)
Collected errors:
* opkg_download: Failed to download http://feed.hae.orig/feeds/qb2/oe/2.6.36-base-r14-uni/busybox_1.27.2-r1_qb2.ipk: HTTP response code said error.
* opkg_install_pkg: Failed to download busybox. Perhaps you need to run 'opkg update'?
> Exit code: 255
>> 2018-09-04 18:21:59 +0000 (pid 1739) prepare-error-opkg-download-download 'opkg failed to download'

I'm currently running 3.4.4 and trying to update to 4.10.6 which is advised in the start post.
I did a manual opkg update while the VPN tunnel was active, which worked fine.After that I re-run the update script from the start. This time everything seemed to be downloaded. Is this normal behavior?

Once the update was started I got a bunch of permission denied:
Code: Select all
Starting the upgrade now! Just wait a while... It can take a few minutes.
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
./update-rooted.sh: line 620: sleep: Permission denied
Progress: 15%

Maybe because of insufficient CPU/Load resources?

EDIT:
Ok the update succeeded, now updating to 4.19.10 :) --> also succeeded. Great work, thanks!
Last edited by Timeless on Tue Sep 04, 2018 8:48 pm, edited 2 times in total.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Timeless
Starting Member
Starting Member
 
Posts: 38
Joined: January 2017

Re: Toon firmware - update script

Postby TheHogNL » Tue Sep 04, 2018 8:46 pm

The busybox/opkg update issue is probably just that Eneco's servers are having an issue at that moment. A rerun of the script would probably fix the issue also (not needing to do the opkg update).
But you already fixed it yourself. Fine :)

That "permission denied" happens with very old firmwares during the progress indicator :) Can't test it myself to fix this but it is only cosmetic.
TheHogNL
Member
Member
 
Posts: 416
Joined: August 2017

Re: Toon firmware - update script

Postby Timeless » Tue Sep 04, 2018 8:49 pm

TheHogNL wrote:Yes that "permission denied" happens with very old firmwares during the progress indicator :) Can't test it myself to fix this but it is only cosmetic.

Ok no issue, maybe add a side node for now? It can scare people if they don't exactly know what the sleep function normally does and that it is harmless in a way.

I also saw that Toonstore could not be installed:
Code: Select all
FIXING: Now installing latest toonstore app. This fixes some files also.
Downloading http://files.domoticaforum.eu/uploads/Toon/apps//toonstore-1.1.5/toonstore_1.1.5-r0_qb2.ipk.
Installing toonstore (1.1.5-r0) to root...
Executing pre-install script for toonstore-1.1.5
New installation of toonstore.
Collected errors:
* pkg_run_script: package "toonstore" preinst script returned status 1.
* preinst_configure: Aborting installation of toonstore.
* opkg_install_cmd: Cannot install package toonstore.


Something else:
Just a quick observation, it maybe something in my network but a wired update does not work because Toon has no gateway configured, it's able to ping my gateway though. But with WiFi everything works fine.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Timeless
Starting Member
Starting Member
 
Posts: 38
Joined: January 2017

Re: Toon firmware - update script

Postby TheHogNL » Tue Sep 04, 2018 8:54 pm

Ok try to install toonstore manually. That's not that big deal. Not really necessary for the update itself.

The update should work over LAN port also.. the Toon prefers the LAN port over any wifi connection and with proper DHCP on the LAN port it should work fine. But then again, who uses the LAN port of the toon anyways :)
TheHogNL
Member
Member
 
Posts: 416
Joined: August 2017

Re: Toon firmware - update script

Postby Timeless » Tue Sep 04, 2018 9:00 pm

TheHogNL wrote:Ok try to install toonstore manually. That's not that big deal. Not really necessary for the update itself.

The update should work over LAN port also.. the Toon prefers the LAN port over any wifi connection and with proper DHCP on the LAN port it should work fine. But then again, who uses the LAN port of the toon anyways :)

I have no real need for toonstore right now, since I don't really need any apps other than my patched DomoticzBoard, so I'm fine by not having Toonstore. Was just curious though.

Yeah I normally have some firewall rules setup in my gateway restricting Toon from contacting the internet (wearing my "Tin foil hat" here :) ), I disabled them for the purpose of this update which worked fine during the first update, but 2nd time Toon did not have a default gateway setup even though it does DHCP. So I went with a Wireless connection instead. This worked fine so that fine by me. I do use Toon on wired since the WPA2 Krack hack came out (again wearing my "Tin foil hat" ). At that time I was not planning my 3.4.4 installation to be updated. Still curious though does 4.19.10 include a patched wpa_supplicant with krack fixes?

Note on the script itself:
I think the VNC install is wrong in the script:
Code: Select all
if [ $STEP -lt 7 ]
then
   STEP=7;
   #some other fixing needs to be done after an upgrade
   echo "Do you want to install x11vnc? cmd 'x11vnc' needs to be run after each reboot to start the x11vnc server. x11vnc password can be set while starting x11vnc for the first time"
   read QUESTION
   if [ "$QUESTION" == "yes" ]
   then
   installX11vnc
   fi
fi;

Since the fixup step set the current_step to 7, the VNC if is never executed.
Code: Select all
if [ $STEP -lt 7 ]
then
   STEP=7;
   #some other fixing needs to be done after an upgrade
   echo "Upgrade is done. However each firmware upgrade will revert the changes to some files needed for a working rooted Toon. Do you want me me to try and fix a few well known issue's for you right now?"
   read QUESTION
   if [ "$QUESTION" == "yes" ]
   then
   makeBackupFixFiles
   fixFiles
   fi
   echo "$STEP;$VERSION;$FLAV" > $STATUSFILE
fi
Last edited by Timeless on Tue Sep 04, 2018 9:07 pm, edited 1 time in total.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Timeless
Starting Member
Starting Member
 
Posts: 38
Joined: January 2017

Re: Toon firmware - update script

Postby marcelr » Tue Sep 04, 2018 9:04 pm

Timeless wrote:Still curious though does 4.19.10 include a patched wpa_supplicant with krack fixes?

The patch has been introduced in 4.9-something, IIRC. When you update to the latest FW version, you should be OK.
marcelr
Advanced Member
Advanced Member
 
Posts: 909
Joined: May 2012
Location: Ehv

Re: Toon firmware - update script

Postby Timeless » Tue Sep 04, 2018 9:11 pm

marcelr wrote:
Timeless wrote:Still curious though does 4.19.10 include a patched wpa_supplicant with krack fixes?

The patch has been introduced in 4.9-something, IIRC. When you update to the latest FW version, you should be OK.

Ah you're indeed correct, it's in the 4.9 release notes: Software update 4.9: wat is nieuw?
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Timeless
Starting Member
Starting Member
 
Posts: 38
Joined: January 2017

Re: Toon firmware - update script

Postby TheHogNL » Wed Sep 05, 2018 7:11 am

Timeless wrote:Note on the script itself:
I think the VNC install is wrong in the script:


Thanks. Terrorsouce added that part lately. We will fix this :) or you can send in a pull request ofcourse :-)
TheHogNL
Member
Member
 
Posts: 416
Joined: August 2017

Re: Toon firmware - update script

Postby TerrorSource » Wed Sep 05, 2018 8:09 am

TheHogNL wrote:
Timeless wrote:Note on the script itself:
I think the VNC install is wrong in the script:


Thanks. Terrorsouce added that part lately. We will fix this :) or you can send in a pull request ofcourse :-)


That is correct. Noticed it yesterday.
Will upload a new version soon.
Option 7 needs to be 8, there's already an option 7 before the x11vnc part.
TerrorSource
Member
Member
 
Posts: 154
Joined: May 2017

Re: Toon firmware - update script

Postby TheHogNL » Wed Sep 12, 2018 6:26 pm

A new version (version 3.0) has been published which now support the new Toon 2.
It will not run the 'fix' routine yet after a update. I will need to check that a bit more. Also we haven't published resources files yet. Expect that soon.
TheHogNL
Member
Member
 
Posts: 416
Joined: August 2017

Re: Toon firmware - update script

Postby DyArt » Tue Sep 18, 2018 6:25 pm

I get the following when I try to upgrade:

Code: Select all
You are currently running version 4.16.8 on a qb2 with flavour uni

Available versions:  1.9.10 2.1.0 2.2.24 2.3.17 2.3.29 2.3.36 2.4.7 2.4.12 2.5.11 2.5.14 2.5.18 2.6.24 2.6.33 2.8.16 2.8.21 2.9.15 2.9.26 3.0.29 3.0.32 3.1.22 3.2.14 3.2.18 3.2.21 3.3.8 3.4.4 3.5.4 3.6.3 3.7.8 3.7.9 4.3.20 4.4.21 4.7.23 4.8.25 4.9.23 4.9.124 4.10.6 4.11.6 4.12.0 4.13.6 4.13.7 4.15.2 4.15.6 4.16.8 4.18.8 4.19.10

Which version do you want to upgrade to?
4.19.10
Alright, I will try to upgrade to 4.19.10
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.
Warning: upgrade script from source server is changed. Do you want to continue downloading the files (if not sure, type no and report in the forums)?
no
Quitting the upgrade. It was a nice try tho...


Is it save to upgrade?
DyArt
Starting Member
Starting Member
 
Posts: 11
Joined: June 2018

Re: Toon firmware - update script

Postby TheHogNL » Tue Sep 18, 2018 7:01 pm

Just checked the eneco script and it is not changed. Are you using the newest script (https://raw.githubusercontent.com/IgorY ... -rooted.sh)?

Thinking about it,.. I should create a routing which automatically updates the script if there is a new version :-)
TheHogNL
Member
Member
 
Posts: 416
Joined: August 2017

Re: Toon firmware - update script

Postby DyArt » Tue Sep 18, 2018 7:21 pm

Yes just downloaded from github 3.02
DyArt
Starting Member
Starting Member
 
Posts: 11
Joined: June 2018

PreviousNext

Return to Toon Firmware

Who is online

Users browsing this forum: No registered users and 1 guest