Nvm. I answer on wrong topic.TheHogNL wrote:It cancels your previous attempt and starts a new update session (redownload everything etc).mAiden wrote:What happens when you say "no", when script ask you to resume?
Toon firmware - update script
Moderators: marcelr, TheHogNL, Toonz
Re: Toon firmware - update script
Member of the Toon Software Collective
Re: Toon firmware - update script
i checked this, no weird things found.makkie2002 wrote: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 !legalr wrote:today i had time to check it.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).
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?
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...
Re: Toon firmware - update script
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:
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:
Maybe because of insufficient CPU/Load resources?
EDIT:
Ok the update succeeded, now updating to 4.19.10 --> also succeeded. Great work, thanks!
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 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%
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 9: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 -
- Benjamin Disraeli -
Re: Toon firmware - update script
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.
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.
Member of the Toon Software Collective
Re: Toon firmware - update script
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.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.
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.
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 -
- Benjamin Disraeli -
Re: Toon firmware - update script
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
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
Member of the Toon Software Collective
Re: Toon firmware - update script
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.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
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;
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 10: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 -
- Benjamin Disraeli -
Re: Toon firmware - update script
The patch has been introduced in 4.9-something, IIRC. When you update to the latest FW version, you should be OK.Timeless wrote:Still curious though does 4.19.10 include a patched wpa_supplicant with krack fixes?
Re: Toon firmware - update script
Ah you're indeed correct, it's in the 4.9 release notes: Software update 4.9: wat is nieuw?marcelr wrote:The patch has been introduced in 4.9-something, IIRC. When you update to the latest FW version, you should be OK.Timeless wrote:Still curious though does 4.19.10 include a patched wpa_supplicant with krack fixes?
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
- Benjamin Disraeli -
Re: Toon firmware - update script
Thanks. Terrorsouce added that part lately. We will fix this or you can send in a pull request ofcourseTimeless wrote: Note on the script itself:
I think the VNC install is wrong in the script:
Member of the Toon Software Collective
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Toon firmware - update script
That is correct. Noticed it yesterday.TheHogNL wrote:Thanks. Terrorsouce added that part lately. We will fix this or you can send in a pull request ofcourseTimeless wrote: Note on the script itself:
I think the VNC install is wrong in the script:
Will upload a new version soon.
Option 7 needs to be 8, there's already an option 7 before the x11vnc part.
Re: Toon firmware - update script
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.
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.
Member of the Toon Software Collective
Re: Toon firmware - update script
I get the following when I try to upgrade:
Is it save 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...
Re: Toon firmware - update script
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
Thinking about it,.. I should create a routing which automatically updates the script if there is a new version
Member of the Toon Software Collective
Re: Toon firmware - update script
Yes just downloaded from github 3.02