Page 34 of 55

Re: Rooting Toon (or boxx)

Posted: Thu Jun 07, 2018 9:02 pm
by DyArt
I have rooted my Toon today who has FW 4.16.8 installed. Everything went well I thought but the Toon loading progress bar is stuck at 1/3. I can access the Toon through SSH. My running processes are:

Code: Select all

eneco-001-xxxxxx:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1600 S    init [5]
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW   [watchdog/0]
    7 root         0 SW<  [khelper]
    8 root         0 SW   [kworker/u:1]
   11 root         0 SW<  [pm]
  119 root         0 SW   [sync_supers]
  121 root         0 SW   [bdi-default]
  123 root         0 SW<  [kblockd]
  136 root         0 SW   [khubd]
  235 root         0 SW<  [rpciod]
  236 root         0 SW   [kworker/0:1]
  243 root         0 SW   [khungtaskd]
  244 root         0 SW   [kswapd0]
  245 root         0 SW   [fsnotify_mark]
  246 root         0 SW<  [nfsiod]
  247 root         0 SW<  [crypto]
  264 root         0 SW   [kworker/0:2]
  281 root         0 SW   [mtdblock0]
  286 root         0 SW   [mtdblock1]
  291 root         0 SW   [mtdblock2]
  296 root         0 SW   [mtdblock3]
  301 root         0 SW   [mtdblock4]
  309 root         0 SW   [ubi_bgt0d]
  310 root         0 SW<  [spi_imx.0]
  358 root         0 SW   [ubifs_bgt0_0]
  399 root      3124 S    /usr/bin/psplash --angle 0
  571 root         0 SW   [flush-ubifs_0_0]
  605 root         0 SW   [RTKTHREAD]
  608 root      4064 S    /usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplica
  631 root      2960 S    udhcpc -R -n -p /var/run/udhcpc.wlan0.pid -i wlan0 -
  677 root      2960 S    udhcpc -b -R -i eth0 -A 5 -p /var/run/udhcpc.eth0.pi
  684 root      2616 S    /usr/sbin/chronyd -r
  714 root      2160 S    /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_hos
  721 root      2960 S    /sbin/syslogd -n -O /var/log/messages -s 32 -b 1 -m
  724 root      2960 S    /sbin/klogd -n
  766 root      4688 S    /usr/sbin/openvpn --config /etc/openvpn/vpn.conf --v
  767 root     59896 S    /qmf/sbin/qt-gui -platform linuxfb -plugin Tslib
  769 root      2976 S    {hcb_netcon} HCBv2 hcb_netcon     [connecting] [S1|N
  770 root     11048 S    {hcb_comm} HCBv2 hcb_comm       [connecting] [S1|N1]
  771 root      3444 S    {happ_eventmgr} HCBv2 happ_eventmgr  [connecting] [S
  772 root      2928 S    {happ_kpi} HCBv2 happ_kpi       [connecting] [S1|N1]
  773 root      3672 S    {happ_pwrusage} HCBv2 happ_pwrusage  [connecting] [S
  774 root      2800 S    {happ_scsync} HCBv2 happ_scsync    [connecting] [S1|
  775 root      2828 S    {happ_smartplug} HCBv2 happ_smartplug [connecting] [
  776 root      3880 S    {happ_thermstat} HCBv2 happ_thermstat [connecting] [
  780 root      2756 S    {happ_usermsg} HCBv2 happ_usermsg   [connecting] [S1
  781 root      5728 S    {happ_weather} HCBv2 happ_weather   [connecting] [S1
  784 root      5164 S    {hcb_bxtproxy} HCBv2 hcb_bxtproxy   [connecting] [S1
  785 root      4552 S    {hcb_config} HCBv2 hcb_config     [connecting] [S1|N
  786 root      2760 S    {hcb_log} HCBv2 hcb_log        [connecting] [S1|N1]
  794 root      2812 S    {hcb_rrd} HCBv2 hcb_rrd        [connecting] [S1|N1]
  795 root      2744 S    {hcb_watchdog} HCBv2 hcb_watchdog   [connecting] [S1
  799 root      5900 S    {hdrv_hue} HCBv2 hdrv_hue       [connecting] [S1|N1]
  800 root      3012 S    {hdrv_p1} HCBv2 hdrv_p1        [connecting] [S1|N1]
  801 root      4820 S    {hdrv_zwave} HCBv2 hdrv_zwave     [connecting] [S1|N
  809 root      3692 S    /HCBv2/bin/lighttpd -D -m /HCBv2/lib/lighttpd -f /HC
  990 root      2964 S    /sbin/getty -L 115200 ttymxc0 vt102
 1117 root         0 SW   [kworker/0:0]
 1190 root      2332 S    /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_hos
 1191 root      3136 S    -sh
 1194 root      2960 S    run-parts -a leasefail /etc/udhcpc.d
 1196 root      2960 S    {60failcheck} /bin/sh /etc/udhcpc.d/60failcheck leas
 1199 root      3136 R    ps
And the last output from the serial console:

Code: Select all

Lease failing, already running in bg: udhcpc -b -R -i eth0 -A 5 -p /var/run/udhcpc.eth0.pid -H eneco-001-xxxxxx
udhcpc: no lease, forking to background
sh: bad number
stopped /usr/sbin/chronyd (pid 659)
rdate: current time matches remote time
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 unchanged, not writing /etc/inittab.

Eneco Toon by Quby

eneco-001-xxxxxx login:
It looks like that he is hanging on an process. Can anyone help me?

Re: Rooting Toon (or boxx)

Posted: Fri Jun 08, 2018 4:40 pm
by DyArt
After rooting of a Toon with FW 4.16.8 the loading screen get stuck on 1/3. I have access with SSH and when I

Code: Select all

killall qt-gui; /HCBv2/sbin/qt-gui -platform linuxfb -plugin Tslib --daemon 2>&1
then It get stuck on the following:
[hcom]Connecting to hcb_comm @ localhost:1337: 'Success'...
[qt-gui:../../src/hcbinit.c@HCBv2_refresh():110]ERROR: Disconnected
[libhcb_com:../../src/libhcb_com2.c@_hcom2_connect_int():323]connection status: 111(Connection refused)
[hcom]Connecting to hcb_comm @ localhost:1337: 'Success'...
[qt-gui:../../src/hcbinit.c@HCBv2_refresh():110]ERROR: Disconnected
[libhcb_com:../../src/libhcb_com2.c@_hcom2_connect_int():323]connection status: 111(Connection refused)
[hcom]Connecting to hcb_comm @ localhost:1337: 'Success'...
[qt-gui:../../src/hcbinit.c@HCBv2_refresh():110]ERROR: Disconnected
^C[libhcb_drv:../../src/libhcb_drv.c@_hdrv_sigIntHandler():1426]^C received: signalHandler() is shutting qt-gui down...
[libhcb_com:../../src/libhcb_com2.c@_hcom2_connect_int():323]connection status: 111(Connection refused)
[hcom]Connecting to hcb_comm @ localhost:1337: 'Success'...
[qt-gui:../../src/hcbinit.c@HCBv2_refresh():110]ERROR: Disconnected
[libhcb_com:../../src/libhcb_com2.c@_hcom2_connect_int():323]connection status: 111(Connection refused)
This is an endless loop
What should I change to get it bootying again?

Re: Rooting Toon (or boxx)

Posted: Fri Jun 08, 2018 10:12 pm
by DyArt
Problem solved to add the following line to /etc/hosts

Code: Select all

0.0.0.0 localhost

Re: Rooting Toon (or boxx)

Posted: Fri Jun 08, 2018 10:27 pm
by DyArt
Now corected on the right way with adding

Code: Select all

127.0.0.1               localhost.localdomain           localhost               eneco-001-123456
172.20.48.1             feed.hae.int            feed
to /etc/hosts

I don't know how but my hosts file was completely empty

Re: Rooting Toon (or boxx)

Posted: Fri Jun 08, 2018 10:34 pm
by TheHogNL
on that port hcb_comm is listening.. and somehow it refused the connection from the qt-gui.
Please debug hcb_comm: "killall -9 hcb_comm ; /qmf/sbin/hcb_comm -vvvv 2>&1"

And to be clear, did you root the Toon when it already had 4.16.8? Or did your root the toon on a earlier firmware and then upgraded to 4.16.8?

Re: Rooting Toon (or boxx)

Posted: Fri Jul 20, 2018 2:17 pm
by Denman
Bought your recommended cable (https://www.antratek.nl/ftdi-usb-naar-s ... l-3-3v-ttl), how do i connect it? :)

You say 11/13/14 are the pins needed (in the manual).
If i understand it right, the pins on Toon are like this:
1-2
3-4
5-6
7-8
9-10
11-12
13-14
But with this cable i can only make a straight line? Which means, 9-11-13 or 13-14 for example, how do i connect it as stated in the manual? :cry:

Re: Rooting Toon (or boxx)

Posted: Fri Jul 20, 2018 5:31 pm
by marcelr
Remove the required contacts from the plastic housing. (By lifting the black plastic clips holding the contacts and pulling the wires gently (one by one)).

Re: Rooting Toon (or boxx)

Posted: Fri Jul 20, 2018 8:46 pm
by Denman
Thanks for your quick reply, really appreciated :)

I btw just tried a few options and with the left bottom ones in it, it showed the texts printing. I only thought that input didnt work, tried the copy/paste password, maybe because it wasnt right connected. So now i'm gonna break my expensive cable and sort it out :P How do i know which colors from the cable i should pin in 11/13/14 (and how to do the switch " TxD toon aan RxD adapter, en andersom)"

Re: Rooting Toon (or boxx)

Posted: Sat Jul 21, 2018 5:58 pm
by marcelr
You can find the pinout on the FTDI website. Just checkout the manual of your serial interface lead.

Re: Rooting Toon (or boxx)

Posted: Mon Jul 23, 2018 5:51 pm
by Denman
From the rooting manual:
Bij een toon met sw versie 3.0.29 en hoger kun je deze waarschuwingen
onderdrukken door de volgende file te editen:

/HCBv2/qml/apps/internetSettings/InternetSettingsApp.qml

Lokaliseer de volgende regels (regel 365 of daar in de buurt):


onNotificationReceived : {
var statemachine = message.getArgument("statemachine");
if (statemachine) {
var prevSmStatus = smStatus;
smStatus = parseInt(statemachine);
// voeg de volgende twee regels toe:
// al_n (20151220):
if(smStatus == _ST_INTERNET) {
smStatus = _ST_TUNNEL;
}
//
// vervolg van het originele bestand:
// Trigger the internetStateChange signal, used by the internet settings overview screen
internetStateChange(smStatus);

.... etc.

NB, in qml code wordt commentaar voorafgegaan door //.

Deze aanpassing heeft als gevolg dat een werkende internetverbinding automatisch
geinterpreteerd wordt als een verbinding met het SC, en daardoor ben je van de
waarschuwingen af.
I cannot find the qml file. The dir exists, but only has a 'lang' dir containing language files. Any idea what's wrong? The internet is working correctly, but i would like to get rid of that message and yes i'm using a newer software version (4.16.8) :)

Re: Rooting Toon (or boxx)

Posted: Mon Jul 23, 2018 9:52 pm
by mAiden
Now i need you're support @marcelr..

When i go to /etc/inittab/ via u-boot. I see this:

Image

When i let Toon start normal, i got this on console:

Enter runlevel:

Re: Rooting Toon (or boxx)

Posted: Mon Jul 23, 2018 10:23 pm
by marcelr
Hmmm ... looks like a non-existing inittab.
Do you have a backup so you can put it back?

I don't have access to my equipment right now, I'm staying on a campsite in Norway, with next to zero bandwidth ...

Re: Rooting Toon (or boxx)

Posted: Tue Jul 24, 2018 12:41 am
by Ierlandfan

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.
z6:6:respawn:/sbin/sulogin

# HCBv2 static stuff
ovpn:235:respawn:/usr/sbin/openvpn --config /etc/openvpn/vpn.conf --verb 0 >/dev/null 2>&1
qtqt:245:respawn:/usr/bin/startqt >/dev/null 2>&1

#Not default stuff
gett:235:respawn:/sbin/getty -L 115200 ttymxc0 vt102

# 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
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
zwav:345:respawn:/etc/init.d/HCBv2 inittabwrap hdrv_zwave
ligh:345:respawn:/etc/init.d/HCBv2 inittabwrap lighttpd
# end of 'inittabwrap' section.

Re: Rooting Toon (or boxx)

Posted: Tue Jul 24, 2018 9:00 am
by mAiden
@marcelr ,

Marcel,

No problem. it's okay, You've already helped me a lot with your reaction. Happy holidays.

@Ierlandfan

Thank you very much.
I will try it this week, let you know how it ended.
I think it will be copy paste?
U-Boot dont support wget and mv or cp?

Re: Rooting Toon (or boxx)

Posted: Wed Jul 25, 2018 8:48 am
by mAiden
Other error i got..
Inittab is fixed, thanks guys!

Code: Select all

INIT: Id "qtqt" respawning too fast: disabled for 5 minutes