Toon bricked? No SSH

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

Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Toon bricked? No SSH

Post by Heronimo »

In an attempt to get ToonStore working on my freshly rooted Toon I uploaded the resource files. From that point onwards my Toon would hang during boot, but SSH was still available. As described in other topics I thought this was due to a problem in the /etc/inittab file. But after editing my Toon now directly hangs on the screen with the big 'T' without connecting to my wifi network.

Does anyone have suggestions on what steps I can take to restore my Toon to a working state? Would rerunning the ToonRooter with my Rasperry Pi help?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon bricked? No SSH

Post by marcelr »

Not sure what you edited in /etc/inittab.
In general, if you don't have network access to your Toon, there's no way you can start up anything on it manually, without opening it. You can try and hook it up to your network through the ethernet port. If that fails, you might need to open it up and connect through the serial port.
Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Re: Toon bricked? No SSH

Post by Heronimo »

I hooked it up using the serial port to my Raspberry Pi. Then I use this command:

Code: Select all

screen /dev/ttyAMA0 115200
It shows that it has indeed problems with the inittab file:

Code: Select all

INIT: /etc/inittab[6]: missing action field
INIT: /etc/inittab[10]: missing action field
INIT: /etc/inittab[12]: missing action field
INIT: /etc/inittab[20]: missing action field
INIT: /etc/inittab[30]: missing action field
INIT: /etc/inittab[39]: missing action field
After that the console gets spammed with this message:

Code: Select all

 sed: /proc/1/cmdline: No such file or directory
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon bricked? No SSH

Post by marcelr »

Can you log in at all?
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon bricked? No SSH

Post by TerrorSource »

Can you login via U-boot? If so, you can edit the inittab via the U-boot.
Can you post the content of the inittab file here?
mAiden
Member
Member
Posts: 330
Joined: Mon Jul 10, 2017 10:22 am

Re: Toon bricked? No SSH

Post by mAiden »

Think that your inittab is damaged. Maybe you have something to do with this?

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.
For the resource files it is important that you do the right thing. Ex: Resource file 4.18.8 wil not work on 4.19.10 ;)
Member of the Toon Software Collective
Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Re: Toon bricked? No SSH

Post by Heronimo »

Yes, I'm able to get into u-boot via serial connection to my Raspberry Pi. What would be the way forward from there to fix the inittab file?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon bricked? No SSH

Post by marcelr »

Try and get access to the serial console, fix inittab and reboot.
Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Re: Toon bricked? No SSH

Post by Heronimo »

marcelr wrote:Try and get access to the serial console, fix inittab and reboot.
How do I get from u-boot to a serial console?
Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Re: Toon bricked? No SSH

Post by Heronimo »

I can get to the u-boot via the serial connection from my Raspberry Pi. Preferably I would be able to mount the rootfs and use a vi like tool to eddit the file. Would this be possible?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon bricked? No SSH

Post by marcelr »

Yes, that's possible, see the rooting manual, look for the part where the u-boot environment is edited. (adding init=/bin/sh to the boot command).
Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Re: Toon bricked? No SSH

Post by Heronimo »

marcelr wrote:Yes, that's possible, see the rooting manual, look for the part where the u-boot environment is edited. (adding init=/bin/sh to the boot command).
Yes, that did the trick! Now I'm back to a Toon that stops loading halfway with this in the console:

Code: Select all

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.
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
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
ERROR!!! RTMPSetTimer failed, Halt in Progress!
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon bricked? No SSH

Post by marcelr »

So, you still have the original busybox installed. No getty support.
Plus, there's something wrong with the qt-gui. Did you edit anything in the qml directory?

Won't be able to answer anything until late this evening ...
Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Re: Toon bricked? No SSH

Post by Heronimo »

marcelr wrote:So, you still have the original busybox installed. No getty support.
Plus, there's something wrong with the qt-gui. Did you edit anything in the qml directory?

Won't be able to answer anything until late this evening ...
Yes, I put in the resources files. I will update busybox.
Heronimo
Starting Member
Starting Member
Posts: 12
Joined: Tue Sep 25, 2018 9:25 pm

Re: Toon bricked? No SSH

Post by Heronimo »

I can however now SSH into the Toon.

BTW, could you disable the message checking by admin for me?
Post Reply

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