Toon firmware - update script

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, Toonz

makkie2002
Member
Member
Posts: 66
Joined: Fri Aug 18, 2017 3:28 pm

Re: Toon firmware - update script

Post by makkie2002 »

TheHogNL wrote:No that looks ok. If you need assistance you know where to find me :-)
Just wanted to say that I got perfect support from TheHogNL ... I let him explain what was exactly wrong ... it had something to do with a config_qt-gui.xml being fully loaded with apps (most of them the same multiple times) ...

Thanks !
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

Yes. Checking QT logs which told me that a few tiles (those 4 square buttons on the toon) where loaded a lot of times, like clock, powerusage etc. First I was wondering why this happened.
What could cause the clock (and some others) to be loaded so often? This eventually caused a out-of-memory on his Toon and eventually a reboot.

Studying the config file for his menu structure (config_qt-gui.xml, this is where your settings of your tiles is stored) showed the reason why. Somehome there where hundreds of pages with tiles of clock and other programs. So the Toon did exactly that.. try to load hundreds of pages with the same tiles. The owner didn't knew how this was created. After removing the config file, Toon created a new default confnig and his problem was solved.
Member of the Toon Software Collective
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon firmware - update script

Post by TerrorSource »

I've updated the update-rooted.sh script together with @TheHogNL so it's even easier to get things done.

Changes in 2.95:
- Busybox installation failed due to use of wrong variable. fixed now

Changed in 2.96:
- Added EditTimeServer function, will set ntp server to "0.nl.pool.ntp.org"
- EditHostfile, will block a connection to Quby Service Center
- EditActivation, will activate the Toon if it isn't already activated
- Creation of more backup files

Changed in 2.97
- Added Dropbear installation
- Added x11vnc installation by choice
- Splitted makeBackup function so only a backup will be made of the files which are about to be changed

More updated to come!
legalr
Starting Member
Starting Member
Posts: 12
Joined: Fri Aug 17, 2018 10:48 pm

Re: Toon firmware - update script

Post by legalr »

Updated the firmware on my test Toon, now very slow startup and reboots, see log whats going on?
eneco-001-342097:~# /usr/bin/startqt
Starting Qt
[hxml] libhcb_xml v0.1 r121 (Jan 29 2018 09:44:33) [master#4207cfbd9a ] (ezxml 0.8.6)
[hbxt] libhcb_boxtalk v0.1 r138 (Apr 25 2018 11:35:54) [master#56643d3bc6 ]
[hcom] libhcb_com v0.1 r144 (Apr 25 2018 13:46:25) [master#14d3fd61d5 ]
[hdrv] libhcb_drv v0.1 r381 (Jul 6 2018 13:42:18) [master#0c45e7492c ]
[hbas] libhcb_base v0.1 r339 (May 7 2018 17:05:04) [master#2b12089082 ]
QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
QTsLibMouseHandler "tslib" ""
Loading resource "../qml/drawables.rcc"
Loading resource "../qml/resources.rcc"
[hbas]Config from /qmf/etc, loading 3 files with decreasing importance.
[hbas]Config from /qmf/etc/qmf_tenant.xml priority 3
[hbas]Config from /qmf/etc/qmf_release.xml priority 2
[hbas]Config from /qmf/etc/qmf_hardware.xml priority 1
[hbas]Config '<qt-gui>ScreenOffToBlank' not found, using default '0'
[qt-gui] qt-gui v0.1 r8697 (Jul 16 2018 13:48:03) [master#57f2716924] pid(1638)
--------------------------------------------------------------------------------------------
[hbas]Config '<qt-gui>noDiscoByebye' not found, using default '0'
[hbas]Config '<qt-gui>configProvider' not found, using default '(null)'
[hbas]Config '<qt-gui>packageUuid' not found, using default 'eneco-001-342097:qt-gui'
[hdrv]Adding internal handler default'7'quit
[hdrv]Adding internal handler default'7'ping
[hdrv]Adding internal handler default'7'doInit
[hdrv]Adding internal handler ConfigProvider'8'GetPackageConfigResponse
[hdrv]Adding internal handler ConfigProvider'7'StoreConfig
[hdrv]Adding internal handler default'7'SetStdoutLvl
[hdrv]Adding internal handler default'7'SetNotifyLvl
[hdrv]Adding internal handler default'9'QueryStateVariable
[hdrv]Adding internal handler default'7'RegisterStateListener
[hdrv]Adding internal handler default'7'webRequest
[hdrv]Adding internal handler default'7'UpdateDataSetSubscription
[hdrv]Adding internal handler default'7'GetDataSet
[hdrv]Adding disco handler 0x400F3318 for hcb_log
[hdrv]Adding disco handler 0x400F5E74 for hcb_web
[hdrv]Adding disco handler 0x400E2998 for hcb_config
[hdrv]Adding disco handler 0x95DE8 for happ_kpi
[hbas]OpenProcess: `grep -h -E 'Package:|Version:' /usr/lib/ipkg/info/base-*-*.control /var/lib/opkg/info/base-*-*.control`
grep: /var/lib/opkg/info/base-*-*.control: No such file or directory
[hbas]Found FirmwareVersion: 4.19.10
[hdrv]Adding driver handler specific1'7'UpdateDataSet
[hbas]Config '<general>Tenant' is 'Eneco'
[hdrv]Adding disco handler 0x4893C for happ_thermstat
[hdrv]Adding driver handler default'7'setScreenState
[hdrv]Adding disco handler 0x4893C for happ_scsync
[hdrv]Adding disco handler 0x4893C for hcb_config
[hdrv]Adding disco handler 0x4893C for happ_kpi
[hdrv]Adding driver handler features'8'GetFeaturesResponse
[hdrv]Adding driver handler specific1'8'GetAgreementDetailsResponse
[hdrv]Adding driver handler specific1'8'GetRegistrationInfoResponse
[hdrv]Adding driver handler ConfigProvider'8'GetPackageConfigResponse
[hcom]Connecting to hcb_comm @ localhost:1337 as 'eneco-001-342097:qt-gui'...
[hcom]Connected to: Home Control Box -- hcb_comm/r194 hbas/r339 hdrv/r381 hcom/r144 hbxt/r138 hxml/r121 -- V=3 E=none A=none -- BoxTalk Hub Ready.
[hcom]Sending HBXT_DISCOVERY_ALIVE from eneco-001-342097:qt-gui:
[hdrv]Adding disco handler 0x4893C for happ_kpi
[hdrv]Adding disco handler 0x4893C for happ_usermsg
Canvas::onCompleted
Loading Open Sans font from imports
Killed
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon firmware - update script

Post by marcelr »

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).
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon firmware - update script

Post by TerrorSource »

New version of the script!

Changed in 2.98
- editVPNconnection, disables ovpn in inittab if it isn't already disabled
- edittSerialConnection, enables serial connection in inittab if it isn't already enabled
legalr
Starting Member
Starting Member
Posts: 12
Joined: Fri Aug 17, 2018 10:48 pm

Re: Toon firmware - update script

Post by legalr »

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?
makkie2002
Member
Member
Posts: 66
Joined: Fri Aug 18, 2017 3:28 pm

Re: Toon firmware - update script

Post by makkie2002 »

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 !
Timeless
Member
Member
Posts: 54
Joined: Fri Jan 06, 2017 12:51 pm

Re: Toon firmware - update script

Post by Timeless »

This seems like a great way of updating Toon! maybe it has been asked already, but does this need a active subscription with Eneco?
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon firmware - update script

Post by Toonz »

Timeless wrote:This seems like a great way of updating Toon! maybe it has been asked already, but does this need a active subscription with Eneco?
No, a subscription is not needed. But you must be able to start the VPN to Eneco.
If your toon is rooted by Quby that is not possible anymore (Quby removes the VPN keys during rooting)
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 »

What happens when you say "no", when script ask you to resume?
Member of the Toon Software Collective
Timeless
Member
Member
Posts: 54
Joined: Fri Jan 06, 2017 12:51 pm

Re: Toon firmware - update script

Post by Timeless »

Toonz wrote:
Timeless wrote:This seems like a great way of updating Toon! maybe it has been asked already, but does this need a active subscription with Eneco?
No, a subscription is not needed. But you must be able to start the VPN to Eneco.
If your toon is rooted by Quby that is not possible anymore (Quby removes the VPN keys during rooting)
Ah, I rooted Toon in 2017 myself with Marcel's manuals. So unless Quby removes the keys after a period of time I should be good to go right?
And I shouldn't undo any rooting right before I update? I see that some 'sed' commands restore things I edited when following the rooting manual.
"The greatest good you can do for another, is not to share your own riches, but to reveal to him, his own."
- Benjamin Disraeli -
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon firmware - update script

Post by Toonz »

Timeless wrote: And I shouldn't undo any rooting right before I update? I see that some 'sed' commands restore things I edited when following the rooting manual.
No, no need to unroot. Just run the script...
member of the Toon Software Collective
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon firmware - update script

Post by TerrorSource »

Timeless wrote:
Toonz wrote:
Timeless wrote:This seems like a great way of updating Toon! maybe it has been asked already, but does this need a active subscription with Eneco?
No, a subscription is not needed. But you must be able to start the VPN to Eneco.
If your toon is rooted by Quby that is not possible anymore (Quby removes the VPN keys during rooting)
Ah, I rooted Toon in 2017 myself with Marcel's manuals. So unless Quby removes the keys after a period of time I should be good to go right?
And I shouldn't undo any rooting right before I update? I see that some 'sed' commands restore things I edited when following the rooting manual.
sed command's should only set things back to normal if needed and then edit's them again so there won't be double lines in the files.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

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).
Member of the Toon Software Collective
Post Reply

Return to “Toon Firmware”