Toon stuck in load screen

If your (rooted) Toon doesn't do what it's supposed to, post here. Dutch allowed / Posten in 't Nederlands toegestaan.

Moderators: marcelr, TheHogNL, Toonz

rolinck
Starting Member
Starting Member
Posts: 15
Joined: Tue Mar 05, 2019 9:46 pm

Toon stuck in load screen

Post by rolinck »

By accident i removed the inittab and hosts file from my rooted Toon. After this my Toon was not able to bootup. I managed to put a new inittab and hosts file on the Toon. The Toon is now coming further in the bootprocess ( arill aruck at 1/3 of the loading screen) and i have ssh access again.

I suspect that i don't have the correct inittab and hosts file.

Can someone share their inittab en hosts file with me. So that i can compare them?

I'm on FW version 5.0.4.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon stuck in load screen

Post by marcelr »

inittab from a toon2:
(you may need to remove the happ_hvac line, since that's not available on toon1).

If you haven't installed the toonstore yet, remove the tsc line as well.

Code: Select all

# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:5:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#


qtqt:245:respawn:/usr/bin/startqt >/dev/null 2>&1
tscs:245:respawn:/usr/bin/tsc >/var/log/tsc 2>&1
#ovpn:235:respawn:/usr/sbin/openvpn --config /etc/openvpn/vpn.conf --verb 0 >/dev/null 2>&1

# WARNING: auto-managed by '/etc/init.d/HCBv2 inittabwrap' with '/HCBv2/etc/start.d/*'
#          lines containing 'inittabwrap' will be removed automagically.
netc:235:respawn:/etc/init.d/HCBv2 inittabwrap hcb_netcon
comm:345:respawn:/etc/init.d/HCBv2 inittabwrap hcb_comm
even:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_eventmgr
hvac:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_hvac
kpik:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_kpi
pwru:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_pwrusage
scsy:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_scsync
smar:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_smartplug
ther:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_thermstat
user:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_usermsg
weat:345:respawn:/etc/init.d/HCBv2 inittabwrap happ_weather
bxtp:345:respawn:/etc/init.d/HCBv2 inittabwrap hcb_bxtproxy
conf:345:respawn:/etc/init.d/HCBv2 inittabwrap hcb_config
logl:345:respawn:/etc/init.d/HCBv2 inittabwrap hcb_log
rrdr:345:respawn:/etc/init.d/HCBv2 inittabwrap hcb_rrd
watc:345:respawn:/etc/init.d/HCBv2 inittabwrap hcb_watchdog
hueh:345:respawn:/etc/init.d/HCBv2 inittabwrap hdrv_hue
p1p1:345:respawn:/etc/init.d/HCBv2 inittabwrap hdrv_p1
sens:345:respawn:/etc/init.d/HCBv2 inittabwrap hdrv_sensory
zwav:345:respawn:/etc/init.d/HCBv2 inittabwrap hdrv_zwave
ligh:345:respawn:/etc/init.d/HCBv2 inittabwrap lighttpd
# end of 'inittabwrap' section.
hosts (also from a toon2, but essentially the same, just put your toon's hostname where it belongs in the file):

Code: Select all

# <persistent /etc/hosts content can be added to /etc/hosts.template file>
127.0.0.1		localhost.localdomain		localhost		eneco-001<replace with your hostname>
172.22.32.1		feed.hae.int		feed
rolinck
Starting Member
Starting Member
Posts: 15
Joined: Tue Mar 05, 2019 9:46 pm

Re: Toon stuck in load screen

Post by rolinck »

Thank you for your files. Too bad it still hangs at 1/3. When i browse the files qt-gui seems to be missing. Is there a way to reinstall this?
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon stuck in load screen

Post by TheHogNL »

rolinck wrote:Thank you for your files. Too bad it still hangs at 1/3. When i browse the files qt-gui seems to be missing. Is there a way to reinstall this?
First of all,.. how did you accidentally remove the hosts file, the inittab and now probably als he qt-gui files?
Member of the Toon Software Collective
rolinck
Starting Member
Starting Member
Posts: 15
Joined: Tue Mar 05, 2019 9:46 pm

Re: Toon stuck in load screen

Post by rolinck »

First steps
- I got an unrooted toon. Did an firmware update and factory reset.
- After that i used toonrooter to root the toon.

I was looking in the toon and the HCBv2/qml folder seems empty (only the directory structure is there). So i
- edited the inittab using winscp to enable the ovpn.
After that i did
- opkg upgrade (nothing happend)
- opkg install of qt-gui (not more 100% sure) This resulted in the removal some programs. Next it t tried to install. Without succes (errors).
- next is edited the inittab again to disable ovpn. But somehow it was saved blank by winscp.


At the moment i can login using ssh and the /hdrv_zwave?action=getDevices.json call is working. (is see the p4 readings)
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon stuck in load screen

Post by TheHogNL »

rolinck wrote:First steps
- I got an unrooted toon. Did an firmware update and factory reset.
- After that i used toonrooter to root the toon.

I was looking in the toon and the HCBv2/qml folder seems empty (only the directory structure is there). So i
- edited the inittab using winscp to enable the ovpn.
After that i did
- opkg upgrade (nothing happend)
- opkg install of qt-gui (not more 100% sure) This resulted in the removal some programs. Next it t tried to install. Without succes (errors).
- next is edited the inittab again to disable ovpn. But somehow it was saved blank by winscp.


At the moment i can login using ssh and the /hdrv_zwave?action=getDevices.json call is working. (is see the p4 readings)
The /HCBv2/qml (or actually /qmf/qml) should not be empty. But I'm curious if your firmware update prior to the rooting process maybe failed.
Using winscp to update only a few lines of inittab file is somewhat... lets say.. cruel. Just use 'vi' and learn how to use that.

To get qt-gui back, just run 'opkg install --force-reinstall qt-gui' when your vpn is up.
Member of the Toon Software Collective
rolinck
Starting Member
Starting Member
Posts: 15
Joined: Tue Mar 05, 2019 9:46 pm

Re: Toon stuck in load screen

Post by rolinck »

I'm not able to activate the ovpn. When i do this i don't have ssh access.

Below i have some logging. The message "qtqt" respawning too fast: disabled for 5 minutes is repeating every 5 min.

Does anyone has any clue?

Code: Select all

* Wireless (wlan0)  74:c6:3b:50:0e:67  [No IP from DHCP Server] (print_boot_msg)
Setting up IP spoofing protection: rp_filter.
INIT: Entering runlevel: 5
Starting Dropbear SSH server: dropbear.
Starting syslogd/klogd: done
HCBv2 apps started via runlevels, performing 'addstartables && reload && init 5 or 5'.
HCBv2 adding: comm eventmgr kpi pwrusage scsync smartplug thermstat usermsg weather bxtproxy config log rrd watchdog hue p1 zwave lighttpd.
HCBv2 startables changed, writing /etc/inittab.
udhcpc: sending discover
INIT: Id "qtqt" respawning too fast: disabled for 5 minutes
udhcpc: sending discover
Lease failing, already running in bg: udhcpc -b -R -i wlan0 -A 5 -p /var/run/udhcpc.wlan0.pid -H eneco-001-285110
udhcpc: no lease, forking to background
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:10, irq=-1)
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
INIT: Id "qtqt" respawning too fast: disabled for 5 minutes
rolinck
Starting Member
Starting Member
Posts: 15
Joined: Tue Mar 05, 2019 9:46 pm

Re: Toon stuck in load screen

Post by rolinck »

When i try to install qt-gui without vpn i got the folowing output. Is it possible to install the qt-gui without ovpn?

Code: Select all

 opkg install --force-reinstall qt-gui
No packages removed.
Installing qt-gui (1.9133-master) to root...
Configuring dropbear.
update-alternatives: Linking //usr/bin/scp to /usr/sbin/dropbearmulti
update-alternatives: Linking //usr/bin/ssh to /usr/sbin/dropbearmulti
 System startup links for /etc/init.d/dropbear already exist.
Collected errors:
 * opkg_download_pkg: Package qt-gui is not available from any configured src.
 * opkg_install_pkg: Failed to download qt-gui. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package qt-gui.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon stuck in load screen

Post by marcelr »

Can't you just upload the update-rooted.sh script to your toon and reinstall the firmware?
This will open the vpn connection for you and do all the hard work.
rolinck
Starting Member
Starting Member
Posts: 15
Joined: Tue Mar 05, 2019 9:46 pm

Re: Toon stuck in load screen

Post by rolinck »

I just did the update-rooted script. But no succes..

Code: Select all

sh /root/update-rooted.sh -v 5.0.4
===================================================================================================================================================================
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

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

Forcing version: 5.0.4
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.
Upgrade script downloaded. We need to download the upgrade files first. No upgrade is done yet. Do you want me to download the files (yes) or quit (anything else)?
yes
Starting the upgrade prepare option which downloads all necessary files. No upgrade is done yet.
Progress: 100% ...
Done preparing.
Are your sure you want to upgrade to 5.0.4 (yes)? This is the last moment you can stop the upgrade. Answer with 'yes' will start the upgrade.
yes
Starting the upgrade now! Just wait a while... It can take a few minutes.
Waiting to finish. Sometimes this takes a minute or two    .
Upgrade done!
Restoring your iptables and passwd files so you can login again after rebooting.
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?
yes
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
New installation of toonstore.
Backing up public keyring ...
Backing up /etc/hosts ...
Editing /etc/hosts to enable toonstore ...
hcb_config process ID now:
Restarting hcb_config ...
killall: hcb_config: no process killed
Waiting for 3 seconds ...
hcb_config process ID now:
Creating backup for /qmf/etc/qmf_release.xml ...
Patching /qmf/etc/qmf_release.xml for 403-forbidden error ...
Restarting http server ...
killall: lighttpd: no process killed
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
rm: can't remove '/HCBv2/qml/apps/toonstore/*.txt': 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
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
Everything done! You should reboot now!
It is still stuck at 1/3 of the loading screen

When is use the serial console i see

Code: Select all

getty: applet not found
getty: applet not found
getty: applet not found
getty: applet not found
INIT: Id "gett" respawning too fast: disabled for 5 minutes
INIT: Id "qtqt" respawning too fast: disabled for 5 minutes
ERROR!!! RTMPSetTimer failed, Halt in Progress!
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
NVM is Efuse and its size =2d[2d0-2fc]
phy mode> Error! The chip does not support 5G band 15!
RTMPSetPhyMode: channel is out of range, use first channel=1
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
AntCfgInit: primary/secondary ant 0/1
0x1300 = 00064300
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
Any clue someone?
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon stuck in load screen

Post by TheHogNL »

rolinck wrote:

Code: Select all

getty: applet not found
getty: applet not found
getty: applet not found
getty: applet not found
INIT: Id "gett" respawning too fast: disabled for 5 minutes
INIT: Id "qtqt" respawning too fast: disabled for 5 minutes
ERROR!!! RTMPSetTimer failed, Halt in Progress!
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
NVM is Efuse and its size =2d[2d0-2fc]
phy mode> Error! The chip does not support 5G band 15!
RTMPSetPhyMode: channel is out of range, use first channel=1
(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
AntCfgInit: primary/secondary ant 0/1
0x1300 = 00064300
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
Rcv Wcid(1) AddBAReq
Start Seq = 00000000
Any clue someone?
This console output is ok, no weird things in that.
Try to output the qt-gui log and see what is going on there. Change your /etc/inittab where this line:

Code: Select all

qtqt:245:respawn:/usr/bin/startqt >/dev/null 2>&1
shoud read
qtqt:245:respawn:/usr/bin/startqt >/var/log/qt 2>&1
And then reboot. After reboot check the log file /var/log/qt (at the end) what is going wrong.

Dont forget to change the line back later. As creating the log file will fill up your disk soon.
Member of the Toon Software Collective
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon stuck in load screen

Post by TerrorSource »

Got another possible solution.

Re-run "sh update-rooted.sh -v 5.0.4" on the Toon via SSH.
It will re-install firmware 5.0.4 so it will install all missing packages.

update-rooted.sh script will open VPN when needed.
rolinck
Starting Member
Starting Member
Posts: 15
Joined: Tue Mar 05, 2019 9:46 pm

Re: Toon stuck in load screen

Post by rolinck »

First i tried to edit the inittab for qtqt:245:respawn:/usr/bin/startqt >/var/log/qt 2>&1 the log says startqt has no permissions. i did an chmod 777 for startqt and rebooted. The log is now empty. But it still hangs at 1/3

the boot log is now

Code: Select all

getty: applet not found
getty: applet not found
getty: applet not found
getty: applet not found
getty: applet not found
getty: applet not found
getty: applet not found
getty: applet not found
getty: applet not found
INIT: Id "gett" respawning too fast: disabled for 5 minutes
INIT: Id "qtqt" respawning too fast: disabled for 5 minutes

Code: Select all

 sh update-rooted.sh -v 5.0.4
===================================================================================================================================================================
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

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

Forcing version: 5.0.4
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.
Upgrade script downloaded. We need to download the upgrade files first. No upgrade is done yet. Do you want me to download the files (yes) or quit (anything else)?
yes
Starting the upgrade prepare option which downloads all necessary files. No upgrade is done yet.
Waiting to finish. Sometimes this takes a minute or two  ...
Done preparing.
Are your sure you want to upgrade to 5.0.4 (yes)? This is the last moment you can stop the upgrade. Answer with 'yes' will start the upgrade.
yes
Starting the upgrade now! Just wait a while... It can take a few minutes.
Waiting to finish. Sometimes this takes a minute or two
Upgrade done!
Restoring your iptables and passwd files so you can login again after rebooting.
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?
yes
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 ...
killall: lighttpd: no process killed
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
Everything done! You should reboot now!
I guess there is something wrong with the qt-gui
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon stuck in load screen

Post by TheHogNL »

What if you run /usr/bin/startqt itself?
And check the content of /usr/bin/startqt (with 'cat /usr/bin/startqt')
Member of the Toon Software Collective
rolinck
Starting Member
Starting Member
Posts: 15
Joined: Tue Mar 05, 2019 9:46 pm

Re: Toon stuck in load screen

Post by rolinck »

The startqt seemed empty? Strange. I added the right code and started startqt. And finally succes.

Thanks all for your support!!! :D
Post Reply

Return to “Toon issues and support (Nederlands toegestaan)”