Rooting Toon (or boxx)

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

JacDomotica
Starting Member
Starting Member
Posts: 7
Joined: Tue Nov 07, 2017 10:12 pm

Re: Rooting Toon (or boxx)

Post by JacDomotica »

marcelr wrote:
JacDomotica wrote:

Code: Select all

...
Info : J-Link ARM V8 compiled Nov 28 2014 13:44:46
Info : Hardware version: 8.00
Info : VTarget = 3.319 V
Info : clock speed 1000 kHz
Info : JTAG tap: imx27.etb tap/device found: 0x1b900f0f (mfg: 0x787 (<unknown>), part: 0xb900, ver: 0x1)
Info : JTAG tap: imx27.cpu tap/device found: 0x07926121 (mfg: 0x090 (Chip Express), part: 0x7926, ver: 0x0)
Info : Embedded ICE version 6
Info : imx27.cpu: hardware has 2 breakpoint/watchpoint units
Info : ETM v1.3
Info : accepting 'telnet' connection on tcp/4444
requesting target halt and executing a soft reset
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
Error: timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 245
...
somebody knows whats going wrong?
The soft_reset_halt is not a very strong command for the processor. I had severe issues with it. By repeatedly trying (in excess of 10 times sometimes), I got to the point where the line

Code: Select all

cpsr: 0x000000d3 pc: 0x00000000
read slightly different:

Code: Select all

cpsr: 0x000000d3 pc: 0x324f874
(or any other non-zero hexadecimal number).
When this is the case, you can proceed to the next step, initialize memory and upload the patched bootloader.
Thanks but i tried a soft_reset_halt now for 100 times and it is not working. The stange thing i also don't understand is that the cpsr has changed is this normal?

Code: Select all

requesting target halt and executing a soft reset
Jazelle state handling is BROKEN!
target halted in Jazelle state due to debug-request, current mode: Supervisor
cpsr: 0xffffffd3 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon (or boxx)

Post by marcelr »

It was not just repeating soft_reset_halt commands.
I did something between these resets.

Check out this post:
viewtopic.php?f=87&t=8743&start=45#p74859

Fingers crossed ...

(and yes, this erratic behaviour drove me crazy as well ... :-))
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Rooting Toon (or boxx)

Post by michel30 »

marcelr wrote:There you go:

(busybox will be published on the ToonStore shortly, this is for those who can't wait):

1: separate packages: You need these if you want to install on a rooted toon.

http://files.domoticaforum.eu/uploads/T ... r2_qb2.ipk
http://files.domoticaforum.eu/uploads/T ... r2_qb2.ipk
http://files.domoticaforum.eu/uploads/T ... r2_qb2.ipk

Be sure to install them all, in one go.

.

I installed all these on my rooted toon, I had no problem before.
But sinds I install these 3 busybox package on my Toon and I want to un tar something on my Toon I received this message:

tar: invalid magic
tar: short read

When I move the file to my MAC computer I can un tar the file without any issue.
It looks like that Toon could not un tar any file, every file what I try gives me that error message.
wbmk
Starting Member
Starting Member
Posts: 24
Joined: Sun Nov 13, 2016 5:10 pm

Re: Rooting Toon (or boxx)

Post by wbmk »

Hmm. no luck rooting my Toon so far..

This is what i have done till now (manual marcelr):
1) connect my usb/serial interface to toon -->Works
2) enter the password for U-Boot 2010.09-R8 -->Works
3) command "printenv" --> Works
4) command "setenv addmisc setenv bootargs \$\{bootargs\} mem=\$\{mem\} lpj=999424 init=/bin/sh" --> Works
5) command "run boot_nand" -->Works
6) edit "/etc/inittab", because getty does not works with firmware 4.9.23 I only commented out the line so Toon does not call home. --> Done
7) edit "/etc/passwd" remove disabled to line "root::0:0:root:/root:/bin/sh" -->Done
8) no reboot toon/go to Dropbear installation with firmware 4.9.23
9) download package dropbear_2015.71-r0_qb2.ipk -->Done
10) package to ASCII with command "base64 dropbear_2015.71-r0_qb2.ipk > dropbear_2015.71-r0_qb2.ipk.b64" -->Done
11) then command "cat > dropbear_2015.71-r0_qb2.ipk.b64". Copied the b64 text to the Putty command line, finished with Ctrl+D, i see the transfer file "dropbear_2015.71-r0_qb2.ipk.b64 " in the directory of Toon. --> Done
12) after command "base64 -d dropbear_2015.71-r0_qb2.ipk.b64 > dropbear_2015.71-r0_qb2.ipk", i see the file "dropbear_2015.71-r0_qb2.ipk"in the directory of Toon.
13) Now i try install the file with "opkg install dropbear_2015.71-r0_qb2.ipk" ,but now i see the error :
Collected errors:
* pkg_run_script: package "dropbear" postinst script returned status 255.
* opkg_configure: dropbear.postinst returned 255.

14) rebooted using reset button
15) repeated steps 2 thru 5
16) Download the zipped base64 encoded file and unpack to get the base64-encoded tarball. Transfered the base64-encoded tarball to toon via the Putty command line using the cat command after accessing it through the bootloader. Closed the transfer using Ctrl+D.
17) Used the base64 -d command to get the tarball again. --> Works
18) Unpacked the tarball:

Code: Select all

tar -zxvf <whatever-name-you-gave-it>
--> Works
This decompresses into the three ipk packages of busybox.
19) Installed by issueing:

Code: Select all

opkg install busybox*.ipk
--> Works
This gives three postinstaller error messages
--> Correct

20) Then i ran the postinstallers manually:

Code: Select all

sh /usr/lib/opkg/info/busybox.postinst
--> Works

Code: Select all

sh /usr/lib/opkg/info/busybox-mountall.postinst
--> Works

Code: Select all

sh /usr/lib/opkg/info/busybox-syslog.postinst
--> Works
This creates the necessary links to applets and boot scripts. Some links are not created because of existing duplicates. You can safely ignore this.
--> Done

Edit /etc/inittab according to the rooting manual. --> Checked; changes made earlier are still present
Edit /etc/passwd according to the rooting manual. --> Checked; changes made earlier are still present

21) Reboot. --> Done using the reset button
With the serial line still connected, you should now get a login prompt.

You may now login as 'root'.
--> No luck. still no prompt. Tried 3 ways:
-Boot normal --> No prompt; endless network entries trying to connect

-Boot with password and this init string:

Code: Select all

setenv addmisc setenv bootargs \$\{bootargs\} mem=\$\{mem\} lpj=999424 init=/bin/sh
--> Prompt, but no login credential in commandline output

-Boot with password and this init string:

Code: Select all

setenv addmisc setenv bootargs \$\{bootargs\} mem=\$\{mem\} lpj=999424
--> No prompt; endless network entries trying to connect

My command-line output:

Code: Select all


U-Boot 2010.09-R8 (Dec 03 2012 - 12:50:30)

CPU:   Freescale i.MX27 at 400.168 MHz

Prodrive B.V. ED2.0
DRAM:  128 MiB
NAND:  128 MiB
LCD: Initializing LCD frambuffer at a1400000
LCD: 800x480, pbb 4
LCD: Drawing the logo...
In:    serial
Out:   serial
Err:   serial
Display-bmp: 800 x 480  with 16777216 colors
Net:   FEC
Warning: FEC MAC addresses don't match:
Address in SROM is         00:00:20:03:00:00
Address in environment is  00:0f:11:06:83:b0


Enter password - autoboot in 2 sec...

NAND read: device 0 offset 0x300000, size 0x300000
 3145728 bytes read: OK
## Booting kernel from Legacy Image at a1000000 ...
   Image Name:   Linux-2.6.36-R10-h27
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1944336 Bytes = 1.9 MiB
   Load Address: a0008000
   Entry Point:  a0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.36-R10-h27 (jbraam@dvl) (gcc version 4.5.3 20110223 (prerelease) (GCC) ) #1 PREEMPT Tue Oct 25 20:03:05 CEST 2016
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Prodrive B.V ED2.0
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: ubi.mtd=4 root=ubi0:rootfs rw rootfstype=ubifs mtdparts=mxc_nand:512K@0x00100000(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(rootfs) console=ttymxc0,115200 mem=128M lpj=999424
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126092k/126092k available, 4980k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffa00000 - 0xffe00000   (   4 MB)
    vmalloc : 0xc8800000 - 0xf4000000   ( 696 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0022000   ( 104 kB)
      .text : 0xc0022000 - 0xc0367000   (3348 kB)
      .data : 0xc037e000 - 0xc03a17a0   ( 142 kB)
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop (skipped) preset value.. 199.88 BogoMIPS (lpj=999424)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Configured for LCD: TM070RDH11
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 246
io scheduler noop registered (default)
imx-fb imx-fb.0: PreserveUBootFramebuffer(1): xres=800, yres=480 [skip _update_lcdc]
imx-fb imx-fb.0: PreserveUBootFramebuffer(2): xres=800, yres=480 [skip _update_lcdc]
Console: switching to colour frame buffer device 100x30
imx-fb imx-fb.0: fb0: DISP0 BG fb device registered successfully.
imx-fb imx-fb.0: PreserveUBootFramebuffer(3): xres=800, yres=480 [skip _update_lcdc]
imx-fb imx-fb.0: fb1: DISP0 FG fb device registered successfully.
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX
imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX
NAND device: K9F1G08U0E detected, disabling sub-page writes
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
RedBoot partition parsing not available
5 cmdlinepart partitions found on MTD device mxc_nand
Creating 5 MTD partitions on "mxc_nand":
0x000000100000-0x000000180000 : "u-boot-env"
0x000000180000-0x000000300000 : "splash-image"
0x000000300000-0x000000600000 : "kernel"
0x000000600000-0x000000900000 : "kernel-backup"
0x000000900000-0x000008000000 : "rootfs"
UBI: attaching mtd4 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       179887
UBI: attached mtd4 to ubi0
UBI: MTD device name:            "rootfs"
UBI: MTD device size:            119 MiB
UBI: number of good PEBs:        952
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 952
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 524/188
UBI: image sequence number:  468129398
UBI: background thread "ubi_bgt0d" started, PID 309
at25 spi0.0: 32 KByte at25640B eeprom, pagesize 64
spi_imx spi_imx.0: probed
FEC Ethernet Driver
fec_enet_mii_bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
mxc-ehci mxc-ehci.0: initializing i.MX USB Controller
mxc-ehci mxc-ehci.0: portsc setup 1: 0x80000000
mxc-ehci mxc-ehci.0: Work around for USB enabled
ULPI transceiver vendor/product ID 0x0424/0x000d
mxc-ehci mxc-ehci.0: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.0: new USB bus registered, assigned bus number 1
mxc-ehci mxc-ehci.0: irq 56, io mem 0x10024000
mxc-ehci mxc-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Freescale On-Chip EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.36-R10-h27 ehci_hcd
usb usb1: SerialNumber: mxc-ehci.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mxc-ehci mxc-ehci.2: initializing i.MX USB Controller
mxc-ehci mxc-ehci.2: portsc setup 1: 0x80000000
mxc-ehci mxc-ehci.2: Work around for USB enabled
mxc-ehci mxc-ehci.2: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.2: new USB bus registered, assigned bus number 2
mxc-ehci mxc-ehci.2: irq 55, io mem 0x10024400
mxc-ehci mxc-ehci.2: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: Freescale On-Chip EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.36-R10-h27 ehci_hcd
usb usb2: SerialNumber: mxc-ehci.2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
input: TSC2007 Touchscreen as /devices/virtual/input/input0
rtc-isl1208 1-006f: chip found, driver version 0.3
rtc-isl1208 1-006f: rtc core: registered rtc-isl1208 as rtc0
i2c /dev entries driver
tmp431 0-004c: Could not read configuration register (-5)
imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
adt7410 0-0048: adt7410 temperature sensor registered.
adt7410 0-0049: adt7410 temperature sensor registered.
nf_conntrack version 0.5.0 (1970 buckets, 7880 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
Bridge firewalling registered
rtc-isl1208 1-006f: setting system clock to 2017-12-31 09:06:22 UTC (1514711182)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   117833728 bytes (115072 KiB, 112 MiB, 928 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  0 bytes (0 KiB)
usb 2-1: new high speed USB device using mxc-ehci and address 2
VFS: Mounted root (ubifs filesystem) on device 0:13.
Freeing init memory: 104K
usb 2-1: New USB device found, idVendor=148f, idProduct=5370
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: 802.11 n WLAN
usb 2-1: Manufacturer: Ralink
usb 2-1: SerialNumber: 1.0
INIT: version 2.86 booting
 (print_boot_msg)
Please wait: booting... (print_boot_msg)
* Kernel            2.6.36-R10-h27 (print_boot_msg)
* Firmware          qb2/ene/4.9.23-1183-1 (print_boot_msg)
* Hostname          eneco-001-243843 (print_boot_msg)
usbcore: registered new interface driver r871x_usb_drv
usbcore: registered new interface driver rt2870
Loading iptables settings: iptables.
 (print_boot_msg)
Configuring network interfaces...  (print_boot_msg)
Configuring network interfaces...
Running 'ifup -a' in the foreground (ifup-fg)
ifup: interface lo already configured
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:10, irq=-1)
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
Lease failing, starting in bg: udhcpc -b -R -i eth0 -A 5 -p /var/run/udhcpc.eth0.pid -H eneco-001-243843
udhcpc: option -h NAME is deprecated, use -x hostname:NAME
udhcpc: started, v1.27.2
udhcpc: no lease, failing
udhcpc: sending discover
Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy informa(Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
tion
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
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
Lease failing, starting in bg: udhcpc -b -R -i wlan0 -A 5 -p /var/run/udhcpc.wlan0.pid -H eneco-001-243843
udhcpc: option -h NAME is deprecated, use -x hostname:NAME
udhcpc: started, v1.27.2
udhcpc: no lease, failing
* Wired (eth0)      00:0f:11:06:83:b0  [No IP from DHCP Server] (print_boot_msg)
udhcpc: sending discover
* Wireless (wlan0)  28:c2:dd:e5:37:02  [No IP from DHCP Server] (print_boot_msg)
Setting up IP spoofing protection: rp_filter.
Lease failing, already running in bg: udhcpc -b -R -i eth0 -A 5 -p /var/run/udhcpc.eth0.pid -H eneco-001-243843
udhcpc: no lease, forking to background
INIT: Entering runlevel: 5
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.
udhcpc: sending discover
imx-fb imx-fb.0: PreserveUBootFramebuffer(4): xres=800, yres=480 [do _update_lcdc]
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-243843
udhcpc: no lease, forking to background
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:10, irq=-1)
(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
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:10, irq=-1)
My inittab:

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
#id serial console access: (added, MR!):

# 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.
My passwd:

Code: Select all

root::0:0:root:/root:/bin/sh
daemon:*:1:1:daemon:/usr/sbin:/bin/sh
bin:*:2:2:bin:/bin:/bin/sh
sys:*:3:3:sys:/dev:/bin/sh
sync:*:4:65534:sync:/bin:/bin/sync
games:*:5:60:games:/usr/games:/bin/sh
man:*:6:12:man:/var/cache/man:/bin/sh
lp:*:7:7:lp:/var/spool/lpd:/bin/sh
mail:*:8:8:mail:/var/mail:/bin/sh
News:*:9:9:News:/var/spool/News:/bin/sh
uucp:*:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:*:13:13:proxy:/bin:/bin/sh
www-data:*:33:33:www-data:/var/www:/bin/sh
backup:*:34:34:backup:/var/backups:/bin/sh
list:*:38:38:Mailing List Manager:/var/list:/bin/sh
irc:*:39:39:ircd:/var/run/ircd:/bin/sh
gnats:*:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:*:65534:65534:nobody:/nonexistent:/bin/sh
~
Any ideas what to try next?

Anyway.. have a great New Year’s Eve!

Regards, Wbmk
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon (or boxx)

Post by marcelr »

marcelr wrote: Reinstall all busybox packages by issueing:

Code: Select all

opkg install busybox*.ipk
This time, the full OS is up and running, and installation will finish normally, without errors.
Did you take this step as well?
If not, please do and report the console messages from the install.
(The whole litany of links being created)

If all else fails, try to reboot into the bootloader (adding init=/bin/sh) and test

Code: Select all

busybox login
busybox passwd
to see if the links to these applets exist at all. If not, please report, and I'll try and figure out what went wrong. It will be 2018 by then, though :-).
wbmk
Starting Member
Starting Member
Posts: 24
Joined: Sun Nov 13, 2016 5:10 pm

Re: Rooting Toon (or boxx)

Post by wbmk »

Hi marcelr,

Thanx for your fast reply.

Still getting errors on the install, see output:

Code: Select all

U-Boot 2010.09-R8 (Dec 03 2012 - 12:50:30)

CPU:   Freescale i.MX27 at 400.168 MHz

Prodrive B.V. ED2.0
DRAM:  128 MiB
NAND:  128 MiB
LCD: Initializing LCD frambuffer at a1400000
LCD: 800x480, pbb 4
LCD: Drawing the logo...
In:    serial
Out:   serial
Err:   serial
Display-bmp: 800 x 480  with 16777216 colors
Net:   FEC
Warning: FEC MAC addresses don't match:
Address in SROM is         00:00:20:03:00:00
Address in environment is  00:0f:11:06:83:b0


Enter password - autoboot in 2 sec...
U-Boot> setenv addmisc setenv bootargs \$\{bootargs\} mem=\$\{mem\} lpj=999424 init=/bin/sh
U-Boot> run boot_nand

NAND read: device 0 offset 0x300000, size 0x300000
 3145728 bytes read: OK
## Booting kernel from Legacy Image at a1000000 ...
   Image Name:   Linux-2.6.36-R10-h27
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1944336 Bytes = 1.9 MiB
   Load Address: a0008000
   Entry Point:  a0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.36-R10-h27 (jbraam@dvl) (gcc version 4.5.3 20110223 (prerelease) (GCC) ) #1 PREEMPT Tue Oct 25 20:03:05 CEST 2016
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Prodrive B.V ED2.0
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: ubi.mtd=4 root=ubi0:rootfs rw rootfstype=ubifs mtdparts=mxc_nand:512K@0x00100000(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(rootfs) console=ttymxc0,115200 mem=128M lpj=999424 init=/bin/sh
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126092k/126092k available, 4980k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffa00000 - 0xffe00000   (   4 MB)
    vmalloc : 0xc8800000 - 0xf4000000   ( 696 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0022000   ( 104 kB)
      .text : 0xc0022000 - 0xc0367000   (3348 kB)
      .data : 0xc037e000 - 0xc03a17a0   ( 142 kB)
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop (skipped) preset value.. 199.88 BogoMIPS (lpj=999424)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Configured for LCD: TM070RDH11
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 246
io scheduler noop registered (default)
imx-fb imx-fb.0: PreserveUBootFramebuffer(1): xres=800, yres=480 [skip _update_lcdc]
imx-fb imx-fb.0: PreserveUBootFramebuffer(2): xres=800, yres=480 [skip _update_lcdc]
Console: switching to colour frame buffer device 100x30
imx-fb imx-fb.0: fb0: DISP0 BG fb device registered successfully.
imx-fb imx-fb.0: PreserveUBootFramebuffer(3): xres=800, yres=480 [skip _update_lcdc]
imx-fb imx-fb.0: fb1: DISP0 FG fb device registered successfully.
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX
imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX
NAND device: K9F1G08U0E detected, disabling sub-page writes
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
RedBoot partition parsing not available
5 cmdlinepart partitions found on MTD device mxc_nand
Creating 5 MTD partitions on "mxc_nand":
0x000000100000-0x000000180000 : "u-boot-env"
0x000000180000-0x000000300000 : "splash-image"
0x000000300000-0x000000600000 : "kernel"
0x000000600000-0x000000900000 : "kernel-backup"
0x000000900000-0x000008000000 : "rootfs"
UBI: attaching mtd4 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       179896
UBI: attached mtd4 to ubi0
UBI: MTD device name:            "rootfs"
UBI: MTD device size:            119 MiB
UBI: number of good PEBs:        952
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 952
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 524/188
UBI: image sequence number:  468129398
UBI: background thread "ubi_bgt0d" started, PID 309
at25 spi0.0: 32 KByte at25640B eeprom, pagesize 64
spi_imx spi_imx.0: probed
FEC Ethernet Driver
fec_enet_mii_bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
mxc-ehci mxc-ehci.0: initializing i.MX USB Controller
mxc-ehci mxc-ehci.0: portsc setup 1: 0x80000000
mxc-ehci mxc-ehci.0: Work around for USB enabled
ULPI transceiver vendor/product ID 0x0424/0x000d
mxc-ehci mxc-ehci.0: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.0: new USB bus registered, assigned bus number 1
mxc-ehci mxc-ehci.0: irq 56, io mem 0x10024000
mxc-ehci mxc-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Freescale On-Chip EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.36-R10-h27 ehci_hcd
usb usb1: SerialNumber: mxc-ehci.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mxc-ehci mxc-ehci.2: initializing i.MX USB Controller
mxc-ehci mxc-ehci.2: portsc setup 1: 0x80000000
mxc-ehci mxc-ehci.2: Work around for USB enabled
mxc-ehci mxc-ehci.2: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.2: new USB bus registered, assigned bus number 2
mxc-ehci mxc-ehci.2: irq 55, io mem 0x10024400
mxc-ehci mxc-ehci.2: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: Freescale On-Chip EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.36-R10-h27 ehci_hcd
usb usb2: SerialNumber: mxc-ehci.2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
input: TSC2007 Touchscreen as /devices/virtual/input/input0
rtc-isl1208 1-006f: chip found, driver version 0.3
rtc-isl1208 1-006f: rtc core: registered rtc-isl1208 as rtc0
i2c /dev entries driver
tmp431 0-004c: Could not read configuration register (-5)
imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
adt7410 0-0048: adt7410 temperature sensor registered.
adt7410 0-0049: adt7410 temperature sensor registered.
nf_conntrack version 0.5.0 (1970 buckets, 7880 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
Bridge firewalling registered
rtc-isl1208 1-006f: setting system clock to 2017-12-31 11:07:11 UTC (1514718431)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   117833728 bytes (115072 KiB, 112 MiB, 928 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  0 bytes (0 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:13.
Freeing init memory: 104K
usb 2-1: new high speed USB device using mxc-ehci and address 2
usb 2-1: New USB device found, idVendor=148f, idProduct=5370
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: 802.11 n WLAN
usb 2-1: Manufacturer: Ralink
usb 2-1: SerialNumber: 1.0
/bin/sh: can't access tty; job control turned off
/ # ls
HCBv2                               etc
bin                                 lib
boot                                linuxrc
busybox-mountall_1.27.2-r2_qb2.ipk  mnt
busybox-syslog_1.27.2-r2_qb2.ipk    proc
busybox.b64                         qmf
busybox.ipk.tar.gz                  root
busybox_1.27.2-r2_qb2.ipk           sbin
configured                          sys
dev                                 tmp
dropbear_2015.71-r0_qb2.ipk         usr
dropbear_2015.71-r0_qb2.ipk.b64     var
/ # opkg install busybox*.ipk
Installing busybox-mountall (1.27.2-r2) to root...
Installing busybox-syslog (1.27.2-r2) to root...
Installing busybox (1.27.2-r2) to root...
Installing busybox-syslog (1.27.2-r2) to root...
Package busybox (1.27.2-r2) installed in root is up to date.
Configuring busybox-mountall.
Configuring busybox.
Configuring busybox-syslog.
Configuring dropbear.
Collected errors:
 * pkg_run_script: package "busybox-mountall" postinst script returned status 255.
 * opkg_configure: busybox-mountall.postinst returned 255.
 * pkg_run_script: package "busybox" postinst script returned status 255.
 * opkg_configure: busybox.postinst returned 255.
 * pkg_run_script: package "busybox-syslog" postinst script returned status 255.
 * opkg_configure: busybox-syslog.postinst returned 255.
 * pkg_run_script: package "dropbear" postinst script returned status 255.
 * opkg_configure: dropbear.postinst returned 255.
/ #
/ # sh /usr/lib/opkg/info/busybox.postinst
ln: /usr/sbin/i2cget: File exists
ln: /usr/sbin/i2cset: File exists
ln: /usr/sbin/i2cdump: File exists
ln: /usr/sbin/i2cdetect: File exists
update-alternatives: Linking //usr/bin/ar to ../../bin/busybox
update-alternatives: Linking //bin/gunzip to busybox
update-alternatives: Linking //bin/zcat to busybox
update-alternatives: Linking //usr/bin/bunzip2 to ../../bin/busybox
update-alternatives: Linking //usr/bin/bzcat to ../../bin/busybox
update-alternatives: Linking //usr/bin/unlzma to ../../bin/busybox
update-alternatives: Linking //usr/bin/lzcat to ../../bin/busybox
update-alternatives: Linking //usr/bin/lzma to ../../bin/busybox
update-alternatives: Linking //usr/bin/unxz to ../../bin/busybox
update-alternatives: Linking //usr/bin/xzcat to ../../bin/busybox
update-alternatives: Linking //usr/bin/xz to ../../bin/busybox
update-alternatives: Linking //bin/cpio to busybox
update-alternatives: Linking //bin/gzip to busybox
update-alternatives: Linking //bin/lzop to busybox
update-alternatives: Linking //usr/bin/unlzop to ../../bin/busybox
update-alternatives: Linking //usr/bin/lzopcat to ../../bin/busybox
update-alternatives: Linking //bin/tar to busybox
update-alternatives: Linking //usr/bin/unzip to ../../bin/busybox
update-alternatives: Linking //usr/bin/chvt to ../../bin/busybox
update-alternatives: Linking //usr/bin/clear to ../../bin/busybox
update-alternatives: Linking //usr/bin/deallocvt to ../../bin/busybox
update-alternatives: Linking //bin/dumpkmap to busybox
update-alternatives: Linking //usr/bin/fgconsole to ../../bin/busybox
update-alternatives: Linking //bin/kbd_mode to busybox
update-alternatives: Linking //usr/sbin/loadfont to ../../bin/busybox
update-alternatives: Linking //usr/sbin/setfont to ../../bin/busybox
update-alternatives: Linking //sbin/loadkmap to ../bin/busybox
update-alternatives: Linking //usr/bin/openvt to ../../bin/busybox
update-alternatives: Linking //usr/bin/reset to ../../bin/busybox
update-alternatives: Linking //sbin/setconsole to ../bin/busybox
update-alternatives: Linking //usr/bin/showkey to ../../bin/busybox
update-alternatives: Linking //usr/bin/basename to ../../bin/busybox
update-alternatives: Linking //bin/cat to busybox
update-alternatives: Linking //bin/chgrp to busybox
update-alternatives: Linking //bin/chmod to busybox
update-alternatives: Linking //bin/chown to busybox
update-alternatives: Linking //usr/sbin/chroot to ../../bin/busybox
update-alternatives: Linking //bin/cp to busybox
update-alternatives: Linking //usr/bin/cut to ../../bin/busybox
update-alternatives: Linking //bin/date to busybox
update-alternatives: Linking //bin/dd to busybox
update-alternatives: Linking //bin/df to busybox
update-alternatives: Linking //usr/bin/dirname to ../../bin/busybox
update-alternatives: Linking //usr/bin/dos2unix to ../../bin/busybox
update-alternatives: Linking //usr/bin/unix2dos to ../../bin/busybox
update-alternatives: Linking //usr/bin/du to ../../bin/busybox
update-alternatives: Linking //bin/echo to busybox
update-alternatives: Linking //usr/bin/env to ../../bin/busybox
update-alternatives: Linking //usr/bin/expr to ../../bin/busybox
update-alternatives: Linking //bin/false to busybox
update-alternatives: Linking //bin/fsync to busybox
update-alternatives: Linking //usr/bin/head to ../../bin/busybox
update-alternatives: Linking //usr/bin/groups to ../../bin/busybox
update-alternatives: Linking //usr/bin/id to ../../bin/busybox
update-alternatives: Linking //bin/link to busybox
update-alternatives: Linking //bin/ln to busybox
update-alternatives: Linking //usr/bin/logname to ../../bin/busybox
update-alternatives: Linking //bin/ls to busybox
update-alternatives: Linking //usr/bin/md5sum to ../../bin/busybox
update-alternatives: Linking //usr/bin/sha3sum to ../../bin/busybox
update-alternatives: Linking //usr/bin/sha256sum to ../../bin/busybox
update-alternatives: Linking //usr/bin/sha512sum to ../../bin/busybox
update-alternatives: Linking //bin/mkdir to busybox
update-alternatives: Linking //usr/bin/mkfifo to ../../bin/busybox
update-alternatives: Linking //bin/mknod to busybox
update-alternatives: Linking //bin/mktemp to busybox
update-alternatives: Linking //bin/mv to busybox
update-alternatives: Linking //bin/nice to busybox
update-alternatives: Linking //usr/bin/nl to ../../bin/busybox
update-alternatives: Linking //usr/bin/nohup to ../../bin/busybox
update-alternatives: Linking //usr/bin/nproc to ../../bin/busybox
update-alternatives: Linking //usr/bin/od to ../../bin/busybox
update-alternatives: Linking //usr/bin/paste to ../../bin/busybox
update-alternatives: Linking //usr/bin/printf to ../../bin/busybox
update-alternatives: Linking //bin/pwd to busybox
update-alternatives: Linking //usr/bin/readlink to ../../bin/busybox
update-alternatives: Linking //usr/bin/realpath to ../../bin/busybox
update-alternatives: Linking //bin/rm to busybox
update-alternatives: Linking //bin/rmdir to busybox
update-alternatives: Linking //usr/bin/seq to ../../bin/busybox
update-alternatives: Linking //usr/bin/shred to ../../bin/busybox
update-alternatives: Linking //usr/bin/shuf to ../../bin/busybox
update-alternatives: Linking //bin/sleep to busybox
update-alternatives: Linking //usr/bin/sort to ../../bin/busybox
update-alternatives: Linking //bin/stty to busybox
update-alternatives: Linking //bin/sync to busybox
update-alternatives: Linking //usr/bin/tail to ../../bin/busybox
update-alternatives: Linking //usr/bin/tee to ../../bin/busybox
update-alternatives: Linking //usr/bin/test to ../../bin/busybox
update-alternatives: Linking //usr/bin/[ to ../../bin/busybox
update-alternatives: Linking //usr/bin/[[ to ../../bin/busybox
update-alternatives: Linking //usr/bin/timeout to ../../bin/busybox
update-alternatives: Linking //bin/touch to busybox
update-alternatives: Linking //usr/bin/tr to ../../bin/busybox
update-alternatives: Linking //bin/true to busybox
update-alternatives: Linking //usr/bin/truncate to ../../bin/busybox
update-alternatives: Linking //usr/bin/tty to ../../bin/busybox
update-alternatives: Linking //bin/uname to busybox
update-alternatives: Linking //usr/bin/uniq to ../../bin/busybox
update-alternatives: Linking //usr/bin/unlink to ../../bin/busybox
update-alternatives: Linking //bin/usleep to busybox
update-alternatives: Linking //usr/bin/uudecode to ../../bin/busybox
update-alternatives: Linking //bin/base64 to busybox
update-alternatives: Linking //usr/bin/uuencode to ../../bin/busybox
update-alternatives: Linking //usr/bin/wc to ../../bin/busybox
update-alternatives: Linking //usr/bin/who to ../../bin/busybox
update-alternatives: Linking //usr/bin/whoami to ../../bin/busybox
update-alternatives: Linking //usr/bin/yes to ../../bin/busybox
update-alternatives: Linking //bin/run-parts to busybox
update-alternatives: Linking //sbin/start-stop-daemon to ../bin/busybox
update-alternatives: Linking //usr/bin/which to ../../bin/busybox
update-alternatives: Linking //bin/chattr to busybox
update-alternatives: Linking //sbin/fsck to ../bin/busybox
update-alternatives: Linking //usr/bin/awk to ../../bin/busybox
update-alternatives: Linking //usr/bin/cmp to ../../bin/busybox
update-alternatives: Linking //usr/bin/diff to ../../bin/busybox
update-alternatives: Linking //usr/bin/patch to ../../bin/busybox
update-alternatives: Linking //bin/sed to busybox
update-alternatives: Linking //bin/vi to busybox
update-alternatives: Linking //usr/bin/find to ../../bin/busybox
update-alternatives: Linking //bin/grep to busybox
update-alternatives: Linking //bin/egrep to busybox
update-alternatives: Linking //bin/fgrep to busybox
update-alternatives: Linking //usr/bin/xargs to ../../bin/busybox
update-alternatives: Linking //sbin/bootchartd to ../bin/busybox
update-alternatives: Linking //sbin/halt to halt.sysvinit
update-alternatives: Linking //sbin/poweroff to poweroff.sysvinit
update-alternatives: Linking //sbin/reboot to reboot.sysvinit
update-alternatives: Linking //sbin/init to /sbin/init.sysvinit
update-alternatives: Linking //linuxrc to /bin/busybox
update-alternatives: Error: cannot register alternative addgroup to /usr/sbin/addgroup since it is already registered to /bin/addgroup
update-alternatives: Error: cannot register alternative adduser to /usr/sbin/adduser since it is already registered to /bin/adduser
update-alternatives: Linking //usr/sbin/chpasswd to ../../bin/busybox
update-alternatives: Linking //usr/bin/cryptpw to ../../bin/busybox
update-alternatives: Linking //usr/bin/mkpasswd to ../../bin/busybox
update-alternatives: Error: cannot register alternative deluser to /usr/sbin/deluser since it is already registered to /bin/deluser
update-alternatives: Error: cannot register alternative delgroup to /usr/sbin/delgroup since it is already registered to /bin/delgroup
update-alternatives: Linking //sbin/getty to ../bin/busybox
update-alternatives: Linking //bin/login to busybox
update-alternatives: Linking //usr/bin/passwd to ../../bin/busybox
update-alternatives: Linking //bin/su to busybox
update-alternatives: Linking //sbin/sulogin to ../bin/busybox
update-alternatives: Linking //usr/bin/vlock to ../../bin/busybox
update-alternatives: Linking //usr/bin/beep to ../../bin/busybox
update-alternatives: Linking //usr/bin/dc to ../../bin/busybox
update-alternatives: Linking //sbin/fbsplash to ../bin/busybox
update-alternatives: Error: not linking //usr/sbin/i2cget to ../../bin/busybox since //usr/sbin/i2cget exists and is not a link
update-alternatives: Error: not linking //usr/sbin/i2cset to ../../bin/busybox since //usr/sbin/i2cset exists and is not a link
update-alternatives: Error: not linking //usr/sbin/i2cdump to ../../bin/busybox since //usr/sbin/i2cdump exists and is not a link
update-alternatives: Error: not linking //usr/sbin/i2cdetect to ../../bin/busybox since //usr/sbin/i2cdetect exists and is not a link
update-alternatives: Linking //usr/bin/less to /usr/bin/less.less
update-alternatives: Linking //usr/bin/lsscsi to ../../bin/busybox
update-alternatives: Linking //sbin/makedevs to /sbin/makedevs.makedevs
update-alternatives: Linking //usr/bin/microcom to ../../bin/busybox
update-alternatives: Linking //usr/sbin/partprobe to ../../bin/busybox
update-alternatives: Linking //bin/setserial to busybox
update-alternatives: Linking //usr/bin/strings to ../../bin/busybox
update-alternatives: Linking //usr/bin/time to ../../bin/busybox
update-alternatives: Linking //usr/sbin/ubiattach to ../../bin/busybox
update-alternatives: Linking //usr/sbin/ubidetach to ../../bin/busybox
update-alternatives: Linking //usr/sbin/ubimkvol to ../../bin/busybox
update-alternatives: Linking //usr/sbin/ubirmvol to ../../bin/busybox
update-alternatives: Linking //usr/sbin/ubirsvol to ../../bin/busybox
update-alternatives: Linking //usr/sbin/ubiupdatevol to ../../bin/busybox
update-alternatives: Linking //usr/sbin/ubirename to ../../bin/busybox
update-alternatives: Linking //usr/bin/volname to ../../bin/busybox
update-alternatives: Linking //sbin/modinfo to /sbin/modinfo.26
update-alternatives: Linking //usr/sbin/ftpd to ../../bin/busybox
update-alternatives: Linking //bin/dnsdomainname to busybox
update-alternatives: Linking //bin/hostname to busybox
update-alternatives: Linking //sbin/ifconfig to ../bin/busybox
update-alternatives: Error: cannot register alternative ifplugd to /usr/sbin/ifplugd since it is already registered to /usr/bin/ifplugd
update-alternatives: Linking //sbin/ifup to ../bin/busybox
update-alternatives: Linking //sbin/ifdown to ../bin/busybox
update-alternatives: Error: cannot register alternative ip to /sbin/ip since it is already registered to /bin/ip
update-alternatives: Linking //sbin/ipneigh to ../bin/busybox
update-alternatives: Linking //usr/sbin/nbd-client to ../../bin/busybox
update-alternatives: Linking //usr/bin/nc to ../../bin/busybox
update-alternatives: Linking //bin/netstat to busybox
update-alternatives: Linking //usr/bin/nslookup to ../../bin/busybox
update-alternatives: Linking //usr/sbin/ntpd to ../../bin/busybox
update-alternatives: Linking //bin/ping to busybox
update-alternatives: Linking //bin/ping6 to busybox
update-alternatives: Linking //usr/bin/pscan to ../../bin/busybox
update-alternatives: Linking //sbin/route to ../bin/busybox
update-alternatives: Linking //usr/bin/ssl_client to ../../bin/busybox
update-alternatives: Linking //usr/bin/telnet to ../../bin/busybox
update-alternatives: Linking //usr/bin/tftp to ../../bin/busybox
update-alternatives: Linking //usr/bin/traceroute to ../../bin/busybox
update-alternatives: Linking //usr/bin/traceroute6 to ../../bin/busybox
update-alternatives: Linking //sbin/tunctl to ../bin/busybox
update-alternatives: Linking //usr/bin/whois to ../../bin/busybox
update-alternatives: Linking //usr/bin/free to ../../bin/busybox
update-alternatives: Linking //usr/bin/fuser to ../../bin/busybox
update-alternatives: Linking //bin/iostat to busybox
update-alternatives: Linking //bin/kill to busybox
update-alternatives: Linking //usr/bin/killall to ../../bin/busybox
update-alternatives: Linking //usr/bin/lsof to ../../bin/busybox
update-alternatives: Linking //bin/mpstat to busybox
update-alternatives: Linking //usr/bin/pgrep to ../../bin/busybox
update-alternatives: Linking //usr/bin/pkill to ../../bin/busybox
update-alternatives: Linking //bin/pidof to pidof.sysvinit
update-alternatives: Linking //usr/bin/pmap to ../../bin/busybox
update-alternatives: Error: cannot register alternative powertop to /usr/sbin/powertop since it is already registered to /bin/powertop
update-alternatives: Linking //bin/ps to busybox
update-alternatives: Linking //usr/bin/pstree to ../../bin/busybox
update-alternatives: Linking //usr/bin/pwdx to ../../bin/busybox
update-alternatives: Linking //usr/bin/smemcap to ../../bin/busybox
update-alternatives: Linking //sbin/sysctl to ../bin/busybox
update-alternatives: Linking //usr/bin/top to ../../bin/busybox
update-alternatives: Linking //usr/bin/uptime to ../../bin/busybox
update-alternatives: Linking //bin/watch to busybox
update-alternatives: Linking //usr/bin/svc to ../../bin/busybox
update-alternatives: Linking //bin/ash to busybox
update-alternatives: Linking //bin/sh to busybox
update-alternatives: Linking //bin/bash to busybox
update-alternatives: Linking //sbin/klogd to ../bin/busybox
update-alternatives: Linking //usr/bin/logger to ../../bin/busybox
update-alternatives: Linking //sbin/logread to ../bin/busybox
update-alternatives: Linking //sbin/syslogd to ../bin/busybox
update-alternatives: Linking //sbin/acpid to ../bin/busybox
update-alternatives: Linking //sbin/blockdev to ../bin/busybox
update-alternatives: Linking //bin/dmesg to busybox
update-alternatives: Linking //usr/bin/eject to ../../bin/busybox
update-alternatives: Linking //usr/bin/fallocate to ../../bin/busybox
update-alternatives: Linking //bin/fatattr to busybox
update-alternatives: Linking //usr/sbin/fbset to ../../bin/busybox
update-alternatives: Linking //sbin/fdisk to ../bin/busybox
update-alternatives: Linking //usr/bin/flock to ../../bin/busybox
update-alternatives: Linking //sbin/freeramdisk to ../bin/busybox
update-alternatives: Linking //sbin/fsck.minix to ../bin/busybox
update-alternatives: Linking //usr/sbin/fsfreeze to ../../bin/busybox
update-alternatives: Linking //sbin/fstrim to ../bin/busybox
update-alternatives: Linking //bin/getopt to busybox
update-alternatives: Linking //usr/bin/hexdump to ../../bin/busybox
update-alternatives: Linking //usr/bin/xxd to ../../bin/busybox
update-alternatives: Linking //sbin/hwclock to ../bin/busybox
update-alternatives: Linking //bin/ionice to busybox
update-alternatives: Linking //usr/bin/last to last.sysvinit
update-alternatives: Linking //sbin/losetup to ../bin/busybox
update-alternatives: Linking //usr/bin/lspci to ../../bin/busybox
update-alternatives: Linking //usr/bin/lsusb to ../../bin/busybox
update-alternatives: Linking //sbin/mdev to ../bin/busybox
update-alternatives: Linking //sbin/mke2fs to ../bin/busybox
update-alternatives: Linking //sbin/mkfs.ext2 to ../bin/busybox
update-alternatives: Linking //sbin/mkfs.minix to ../bin/busybox
update-alternatives: Linking //sbin/mkdosfs to ../bin/busybox
update-alternatives: Linking //sbin/mkfs.vfat to ../bin/busybox
update-alternatives: Linking //sbin/mkswap to ../bin/busybox
update-alternatives: Linking //bin/more to busybox
update-alternatives: Linking //bin/mount to busybox
update-alternatives: Linking //sbin/pivot_root to ../bin/busybox
update-alternatives: Linking //usr/sbin/rdate to ../../bin/busybox
update-alternatives: Linking //usr/sbin/rdev to ../../bin/busybox
update-alternatives: Linking //usr/sbin/readprofile to ../../bin/busybox
update-alternatives: Linking //usr/bin/renice to ../../bin/busybox
update-alternatives: Linking //bin/rev to busybox
update-alternatives: Error: cannot register alternative rtcwake to /usr/sbin/rtcwake since it is already registered to /usr/bin/rtcwake
update-alternatives: Linking //bin/scriptreplay to busybox
update-alternatives: Linking //bin/linux32 to busybox
update-alternatives: Linking //bin/linux64 to busybox
update-alternatives: Linking //bin/setpriv to busybox
update-alternatives: Linking //sbin/swapon to ../bin/busybox
update-alternatives: Linking //sbin/swapoff to ../bin/busybox
update-alternatives: Linking //sbin/switch_root to ../bin/busybox
update-alternatives: Linking //sbin/uevent to ../bin/busybox
update-alternatives: Linking //bin/umount to busybox
update-alternatives: Linking //usr/bin/unshare to ../../bin/busybox
update-alternatives: Linking //usr/bin/wall to wall.sysvinit
update-alternatives: Linking //sbin/udhcpc to ../bin/busybox
update-alternatives: Linking //usr/sbin/udhcpd to ../../bin/busybox
update-alternatives: Linking //usr/sbin/dhcprelay to ../../bin/busybox
update-alternatives: Linking //usr/bin/dumpleases to ../../bin/busybox
/ # sh /usr/lib/opkg/info/busybox-mountall.postinst
update-alternatives: Linking //etc/default/mountall to mountall.busybox
/ # sh /usr/lib/opkg/info/busybox-syslog.postinst
update-alternatives: Linking //etc/init.d/syslog to syslog.busybox
update-rc.d: /etc/init.d/syslog exists during rc.d purge (continuing)
 Removing any system startup links for syslog ...
  /etc/rc0.d/K90syslog
  /etc/rc1.d/K90syslog
  /etc/rc2.d/S20syslog
  /etc/rc3.d/S20syslog
  /etc/rc4.d/S20syslog
  /etc/rc5.d/S20syslog
  /etc/rc6.d/K90syslog
 Adding system startup for /etc/init.d/syslog.
/ # opkg install busybox*.ipk
Installing busybox-mountall (1.27.2-r2) to root...
Installing busybox-syslog (1.27.2-r2) to root...
Installing busybox (1.27.2-r2) to root...
Installing busybox-syslog (1.27.2-r2) to root...
Package busybox (1.27.2-r2) installed in root is up to date.
Configuring busybox-mountall.
Configuring busybox.
Configuring busybox-syslog.
Configuring dropbear.
Collected errors:
 * pkg_run_script: package "busybox-mountall" postinst script returned status 255.
 * opkg_configure: busybox-mountall.postinst returned 255.
 * pkg_run_script: package "busybox" postinst script returned status 255.
 * opkg_configure: busybox.postinst returned 255.
 * pkg_run_script: package "busybox-syslog" postinst script returned status 255.
 * opkg_configure: busybox-syslog.postinst returned 255.
 * pkg_run_script: package "dropbear" postinst script returned status 255.
 * opkg_configure: dropbear.postinst returned 255.
/ #
Tried your last resolve:

Code: Select all

busybox login
--> input 'root'

Code: Select all

busybox passwd
--> entered password (twice)

seems ok.. but is it? (see output):

Code: Select all

/ # busybox login
(none) login: root
login[7256]: root login on 'UNKNOWN'
-sh: can't access tty; job control turned off
(none):~# busybox passwd
Changing password for root
New password:
Bad password: too weak
Retype password:
passwd: password for root changed by root
(none):~#
Thanx, Wbmk
fkruis
Starting Member
Starting Member
Posts: 20
Joined: Sun May 01, 2016 7:44 pm

Re: Rooting Toon (or boxx)

Post by fkruis »

hi wbmk,

in the inittab you posted i miss gett:235:respawn:/sbin/getty -L 115200 ttymxc0 vt102.
wbmk
Starting Member
Starting Member
Posts: 24
Joined: Sun Nov 13, 2016 5:10 pm

Re: Rooting Toon (or boxx)

Post by wbmk »

Hi fkruis,

I did not add that line because i have new firmware installed.

I am a bit confused, should or shouldnt i add that line?

Thanx, Wbmk
fkruis
Starting Member
Starting Member
Posts: 20
Joined: Sun May 01, 2016 7:44 pm

Re: Rooting Toon (or boxx)

Post by fkruis »

@wbmk,

you will need this line in inittab for the serial telnet connection after the first reboot.
after the installation of the busybox version from Marcelr (great work btw ) getty wil works again. i see no reason to remove it.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon (or boxx)

Post by marcelr »

Sorry, missed that one. I've been too busy with "oliebollen" and the likes ;-). But fkruis is absolutely right, with getty again available in the new busybox, the line for starting it in inittab needs to be there. So, when you add it, all should be well.
wbmk
Starting Member
Starting Member
Posts: 24
Joined: Sun Nov 13, 2016 5:10 pm

Re: Rooting Toon (or boxx)

Post by wbmk »

Thanx all,

Succes, i managed to install dropbear and openssh..

I am now able to get in.

Just the rerouting ping.quby.nl is not yet going well.. but hey.. i got this far.. with a little help :wink:

Thanx a lot guys!!
rubyan
Starting Member
Starting Member
Posts: 10
Joined: Sat Nov 11, 2017 12:09 am

Re: Rooting Toon (or boxx)

Post by rubyan »

Hi all,

After my first rooting attempt on domoticaforum.eu/viewtopic.php?f=87& ... 225#p83922 and having problems with missing functions in busybox, i finally managed to install the new busybox using the post from marcelr on domoticaforum.eu/viewtopic.php?f=87& ... 315#p84518

Toon is already working with Home Assistant https://home-assistant.io/ so finally I can remotely control the temperature in house and also see the actual gas and electricity usage. Thanks a lot for the support everyone!
iMars
Starting Member
Starting Member
Posts: 17
Joined: Tue Nov 17, 2015 10:47 pm

Re: Rooting Toon (or boxx)

Post by iMars »

Hi all,

I got myself a 2nd hand Toon via a colleague. What/where is the best way to start to root it?
I see many different developments in this topic (23 pages).

This weekend I'd like to work on it, I haven't opened it yet, so I don't know the currect software version and so on.
Is it wise to update it to the newest software/firmware version? Or stay with current (which I don't know which that is at this moment)?

Marcel
iMars
Starting Member
Starting Member
Posts: 17
Joined: Tue Nov 17, 2015 10:47 pm

Re: Rooting Toon (or boxx)

Post by iMars »

Is this the best way to root a Toon? viewtopic.php?p=82533#p82533
I'd like to start this weekend and doing some pre-homework :D
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon (or boxx)

Post by marcelr »

@iMars:

You point at a document that comprehensively describes the steps to take to get into a Toon. So yes, this is the way to go.
Post Reply

Return to “Toon Rooting”