Rooting Toon (or boxx)

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

klaphekje
Starting Member
Starting Member
Posts: 36
Joined: Sat Oct 08, 2016 10:05 pm

Re: Rooting Toon

Post by klaphekje »

I also rooted my Toon tonight withJTAG, first of all Marcelr (and others) thanks for the extensive info!

As i did not have a JTAG interface i used my Rpi with openocd. I assume i'm not the only one with a Rpi lying around so here's the wiring info:

Toon --> RPI GPIO
1 --> NC (RTCK)
2 --> 24 (TRST)
3 --> 20 (GND)
4 --> 23 (TCK)
5 --> 6 (GND)
6 --> 22 (TMS)
7 --> 18 (SRST)
8 --> 19 (TDI)
9 --> NC (Vt)
10 --> 21 (TDO)

NC = Not Connected

I stumbled on the same problem as balans but the "reset halt" after the "soft_reset_halt" also fixed the issure for me.

Unrelated question:
i can't seem to unzip the x11vnc package. combining them with "cat" also does not help. Does anyone have the complete .ipk file for me?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon

Post by marcelr »

Does anyone have the complete .ipk file for me?
I do, but please check whether your downloads are correct (look for size). It really should just work.

BTW, thanks for the pinout, will add this to the rooting manual.
Tom
Starting Member
Starting Member
Posts: 25
Joined: Mon May 23, 2016 11:16 am

Re: Rooting Toon

Post by Tom »

Klaphekje, try to rename the file

Code: Select all

x11vnc.z01.zip to x11vnc.z01
and try

Code: Select all

cat x11vnc.z01 x11vnc.zip > x11vnc_complete.zip
This worked for me both on Toon and Windows
klaphekje
Starting Member
Starting Member
Posts: 36
Joined: Sat Oct 08, 2016 10:05 pm

Re: Rooting Toon

Post by klaphekje »

Code: Select all

eneco-001:~# mv x11vnc.z01.zip x11vnc.z01
eneco-001:~# cat x11vnc.z01 x11vnc.zip > x11vnc_complete.zip
eneco-001-271875:~# ls -lah
drwxr-xr-x    3 root     root         448 Feb 23 16:26 .
drwxr-xr-x   15 root     root        1.2K Feb 22 18:43 ..
drwx------    2 root     root         232 Feb 22 18:58 .ssh
-rw-r--r--    1 root     root      256.0K Feb 23 16:21 x11vnc.z01
-rw-r--r--    1 root     root      185.2K Feb 23 16:21 x11vnc.zip
-rw-r--r--    1 root     root      441.2K Feb 23 16:26 x11vnc_complete.zip
eneco-001:~# unzip x11vnc_complete.zip
Archive:  x11vnc_complete.zip
unzip: invalid zip magic 08074B50
It's a bit weird, Toon and Windows (7-Zip) both refuse to inflate the archive but my Debian server did the job without problems.
Anyway, thanks for the help
Marijn
Starting Member
Starting Member
Posts: 40
Joined: Wed Jul 03, 2013 8:13 pm

Re: Rooting Toon

Post by Marijn »

Code: Select all

eneco-001-xxxxxx:~# opkg install dropbear_2015.71-r0_qb2.ipk
Collected errors:
 * deb_extract: dropbear_2015.71-r0_qb2.ipk: invalid magic
 * pkg_init_from_file: Failed to extract control file from dropbear_2015.71-r0_qb2.ipk.
I get this error when trying to install dropbear.
any suggestions?
Last edited by Marijn on Sat Mar 04, 2017 11:07 pm, edited 1 time in total.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon

Post by marcelr »

You could check the md5 checksum of the installer file:

Code: Select all

$ md5sum dropbear_2015.71-r0_qb2.ipk
0385737390810f2b1bca1b25977821fc  dropbear_2015.71-r0_qb2.ipk
This should be the same as above, if not, download again.
Marijn
Starting Member
Starting Member
Posts: 40
Joined: Wed Jul 03, 2013 8:13 pm

Re: Rooting Toon

Post by Marijn »

Code: Select all

# md5sum dropbear_2015.71-r0_qb2.ipk
444079a1714215ad4fe75d73e0aa6ab7  dropbear_2015.71-r0_qb2.ipk
Mine looks like above, do you mean all alphanumerics need to be the same as yours?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon

Post by marcelr »

yes, the checksum should be the same, not just the number of bytes in the checksum (that's always the same)
Like this:
0385737390810f2b1bca1b25977821fc
... yours is different.
Not sure which software you used to download the code, the file size (after unZipping) should be: 125704 bytes
Marijn
Starting Member
Starting Member
Posts: 40
Joined: Wed Jul 03, 2013 8:13 pm

Re: Rooting Toon

Post by Marijn »

Tried again, unfortunalty same error for opkg install.

Checksum is the same now:

Code: Select all

md5sum dropbear_2015.71-r0_qb2.ipk
444079a1714215ad4fe75d73e0aa6ab7  dropbear_2015.71-r0_qb2.ipk
Also the file size, download is done via IE tot NAS.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon

Post by marcelr »

Try another browser; chrome, firefox, whatever.
Marijn
Starting Member
Starting Member
Posts: 40
Joined: Wed Jul 03, 2013 8:13 pm

Rooting Toon

Post by Marijn »

So far no joy.. :(

Tried Chrome, Firefox, raspberry pi browser...
Also tried some other packages, older dropbear and openssh-sftp-server_7.3p1-r10.0_qb2.zip
These files gave the same error when opkg install.

Code: Select all

# opkg install dropbear_0.51-r7.0_qb2.ipk
Collected errors:
 * deb_extract: dropbear_0.51-r7.0_qb2.ipk: invalid magic
 * pkg_init_from_file: Failed to extract control file from dropbear_0.51-r7.0_qb2.ipk.

Code: Select all

# opkg install dropbear_2015.71-r0_qb2.ipk
Collected errors:
 * deb_extract: dropbear_2015.71-r0_qb2.ipk: invalid magic
 * pkg_init_from_file: Failed to extract control file from dropbear_2015.71-r0_qb2.ipk.
Strange thing I noticed, all downloads to toon take 5 minutes.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon

Post by marcelr »

Can you send me those files?
Marijn
Starting Member
Starting Member
Posts: 40
Joined: Wed Jul 03, 2013 8:13 pm

Re: Rooting Toon

Post by Marijn »

Marcelr see attachement.
thanks for the help so far!
Attachments
dropbear-openssh.rar
(266.16 KiB) Downloaded 465 times
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Rooting Toon

Post by marcelr »

Hmm....

I get the same md5sum (as the one I posted yesterday), after transfer to my toon (3.2.18) it just installs.

What firmware version is your toon?
How do you transfer the packages to toon?
Does the installer work at all?

When you type

Code: Select all

opkg -h
or

Code: Select all

opkg list
on your toon, does that render something sensible?
Marijn
Starting Member
Starting Member
Posts: 40
Joined: Wed Jul 03, 2013 8:13 pm

Re: Rooting Toon

Post by Marijn »

* Kernel 2.6.36-R10-h25 (print_boot_msg)
* Firmware qb2/ene/3.6.3-1022-0
Transfering from Nas via: wget http://ip nas:21/public/dropbear_2015.71-r0_qb2.ipk

Code: Select all

eneco-001-xxxxxx:~# opkg -h
opkg: unrecognized option '-h'
opkg must have one sub-command argument
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
        update                  Update list of available packages
        upgrade                 Upgrade installed packages
        install <pkgs>          Install package(s)
        configure <pkgs>        Configure unpacked package(s)
        remove <pkgs|regexp>    Remove package(s)
        flag <flag> <pkgs>      Flag package(s)
         <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
        list                    List available packages
        list-installed          List installed packages
        list-upgradable         List installed and upgradable packages
        list-changed-conffiles  List user modified configuration files
        files <pkg>             List files belonging to <pkg>
        search <file|regexp>    List package providing <file>
        info [pkg|regexp]       Display all info for <pkg>
        status [pkg|regexp]     Display all status for <pkg>
        download <pkg>          Download <pkg> to current directory
        compare-versions <v1> <op> <v2>
                            compare versions using <= < > >= = << >>
        print-architecture      List installable package architectures
        depends [-A] [pkgname|pat]+
        whatdepends [-A] [pkgname|pat]+
        whatdependsrec [-A] [pkgname|pat]+
        whatrecommends[-A] [pkgname|pat]+
        whatsuggests[-A] [pkgname|pat]+
        whatprovides [-A] [pkgname|pat]+
        whatconflicts [-A] [pkgname|pat]+
        whatreplaces [-A] [pkgname|pat]+

Options:
        -A                      Query all packages not just those installed
        -V[<level>]             Set verbosity level to <level>.
        --verbosity[=<level>]   Verbosity levels:
                                        0 errors only
                                        1 normal messages (default)
                                        2 informative messages
                                        3 debug
                                        4 debug level 2
        -f <conf_file>          Use <conf_file> as the opkg configuration file
        --conf <conf_file>
        --cache <directory>     Use a package cache
        -d <dest_name>          Use <dest_name> as the the root directory for
        --dest <dest_name>      package installation, removal, upgrading.
                                <dest_name> should be a defined dest name from
                                the configuration file, (but can also be a
                                directory name in a pinch).
        -o <dir>                Use <dir> as the root directory for
        --offline-root <dir>    offline installation of packages.
        --add-arch <arch>:<prio>        Register architecture with given priority
        --add-dest <name>:<path>        Register destination with given path

Force Options:
        --force-depends         Install/remove despite failed dependencies
        --force-maintainer      Overwrite preexisting config files
        --force-reinstall       Reinstall package(s)
        --force-overwrite       Overwrite files from other package(s)
        --force-downgrade       Allow opkg to downgrade packages
        --force-space           Disable free space checks
        --force-postinstall     Run postinstall scripts even in offline mode
        --force-remove  Remove package even if prerm script fails
        --noaction              No action -- test only
        --download-only No action -- download only
        --nodeps                Do not follow dependencies
        --force-removal-of-dependent-packages
                                Remove package and all dependencies
        --autoremove            Remove packages that were installed
                                automatically to satisfy dependencies
        -t                      Specify tmp-dir.
        --tmp-dir               Specify tmp-dir.

 regexp could be something like 'pkgname*' '*file*' or similar
 e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'

Code: Select all

eneco-001-xxxxxx:~# opkg list
base-files - 3.0.14-r100
base-passwd - 3.5.20-r1
base-qb2-ene - 3.6.3-1022-0
boot-logos - 1.64-ene
busybox - 1.18.3-r42.1
busybox-mountall - 1.18.3-r42.1
busybox-syslog - 1.18.3-r42.1
chrony - 1.27-r1
curl - 7.21.2-r5.0
directfb - 1.2.8-r1.0
firmware-ba - 1.40
firmware-ma - 1.88
firmware-zwave-ctrlr - 1.8-4.55-NrNfNm-noeep
flash-gui - 1.651-ene-qeio
flash-lite-adobe - 4.0.3-54-fb0
flash-qwidget-diy - 1.161-qeio
freetype - 2.4.3-r1
glibc - 2.10.1-r37.1
glibc-binary-localedata-de-de - 2.10.1-r37.1
glibc-binary-localedata-en-gb - 2.10.1-r37.1
glibc-binary-localedata-en-us - 2.10.1-r37.1
glibc-binary-localedata-es-es - 2.10.1-r37.1
glibc-binary-localedata-fr-fr - 2.10.1-r37.1
glibc-binary-localedata-it-it - 2.10.1-r37.1
glibc-binary-localedata-nl-nl - 2.10.1-r37.1
glibc-gconv - 2.10.1-r37.1
glibc-gconv-iso8859-1 - 2.10.1-r37.1
glibc-localedata-i18n - 2.10.1-r37.1
glibc-localedata-iso14651-t1 - 2.10.1-r37.1
glibc-localedata-iso14651-t1-common - 2.10.1-r37.1
glibc-localedata-translit-circle - 2.10.1-r37.1
glibc-localedata-translit-cjk-compat - 2.10.1-r37.1
glibc-localedata-translit-compat - 2.10.1-r37.1
glibc-localedata-translit-font - 2.10.1-r37.1
glibc-localedata-translit-fraction - 2.10.1-r37.1
glibc-localedata-translit-narrow - 2.10.1-r37.1
glibc-localedata-translit-neutral - 2.10.1-r37.1
glibc-localedata-translit-small - 2.10.1-r37.1
glibc-localedata-translit-wide - 2.10.1-r37.1
glibc-patch-dns - 2.10.1-r37.2
gnupg - 1.4.10-r3
gnutls - 2.10.4-r11.0
gpgme - 1.1.4-r5
gpgv - 1.4.10-r3
happ-eventmgr - 1.164-master
happ-kpi - 1.295-master
happ-pwrusage - 1.553-ene-master
happ-scsync - 1.196-ene-master
happ-smartplug - 1.146-master
happ-thermstat - 1.852-ene-master
happ-usermsg - 1.48-master
happ-weather - 1.111-master
hcb-bxtproxy - 1.107-master
hcb-comm - 1.165-TN-master
hcb-config - 1.264-master
hcb-log - 1.65-master
hcb-netcon - 1.246
hcb-rrd - 2.138-master
hcb-upnp - 1.87-master
hcb-watchdog - 1.44-master
hdrv-hue - 1.86-master
hdrv-p1 - 1.479-master
hdrv-zwave - 1.850-master
i2c-tools - 3.0.3-r0
initscripts - 1.2-r6-runlvls
iptables - 1.4.9.1-r7.1
jansson - 1.3-r1.0
joe - 3.1-r3
jpeg - 8b-r1
kernel - 2.6.36-R10-h25
kernel-image - 2.6.36-R10-h25
kernel-module-fat - 2.6.36-R10-h25
kernel-module-ftdi-sio - 2.6.36-R10-h25
kernel-module-msdos - 2.6.36-R10-h25
kernel-module-pl2303 - 2.6.36-R10-h25
kernel-module-rt5370sta - 2.6.36-R10-h25
kernel-module-rt5370sta-cfg - 2.6.36-R10-h25
kernel-module-rtl8191su - 2.6.36-R10-h25
kernel-module-vfat - 2.6.36-R10-h25
kernel-module-zwave300 - 2.6.36-R10-h25
less - 436-r1
libbz2 - 1.0.6-r0
libcrypto - 0.9.8m-r14.1
libcurl - 7.21.2-r5.0
libgcc - 4.5-r33.1+svnr170443
libgcrypt - 1.4.1-r0
libgpg-error - 1.4-r7.1
libhcb-base - 1.232-master
libhcb-boxtalk - 1.107-master
libhcb-com - 1.108-TN-master
libhcb-drv - 1.295-master
libhcb-xml - 1.93-master
libnetfilter-conntrack - 0.0.101-r0
libnfnetlink - 1.0.0-r0.0
libopkg - 0.1.8+svns635-r7-gcv
libpcre - 7.6-r8
libpng12 - 1.2.44-r3.0
libssl - 0.9.8m-r14.1
libstdc++ - 4.5-r33.1+svnr170443
libsysfs - 2.1.0-r3
libuuid - 2.18-r36.0
lighttpd - 1.4.33-17
lighttpd-mod-hcb-web - 1.4.33-26
locale-base-de-de - 2.10.1-r37.1
locale-base-en-gb - 2.10.1-r37.1
locale-base-en-us - 2.10.1-r37.1
locale-base-es-es - 2.10.1-r37.1
locale-base-fr-fr - 2.10.1-r37.1
locale-base-it-it - 2.10.1-r37.1
locale-base-nl-nl - 2.10.1-r37.1
lzo2 - 2.03-r0
makedevs - 1.0.0-r10
module-init-tools - 3.12-r6
module-init-tools-depmod - 3.12-r6
modutils-initscripts - 1.0-r3
mtd-utils - 1.4.1-r0
ncurses - 5.7+20110115-r16
ncurses-libncurses - 5.7+20110115-r16
ncurses-libtinfo - 5.7+20110115-r16
ncurses-terminfo - 5.7+20110115-r16
ncurses-terminfo-base - 5.7+20110115-r16
netbase - 4.21-r50
openssl - 0.9.8m-r14.1
openssl-conf - 0.9.8m-r14.1
openvpn - 2.3.6-r2.1
opkg - 0.1.8+svns635-r7-gcv
opkg-collateral - 1.0-r3
pointercal - 0.0-r22
pth - 2.0.2-r2
qt-gui - 1.6144-ene-develop
qt-libs - 5.3.1-06-setpos
readline - 5.2-r8
samba-nmbd - 3.0.20-r8
sysvinit - 2.86-r63
sysvinit-inittab - 2.86-r63
sysvinit-pidof - 2.86-r63
sysvinit-utils - 2.86-r63
tslib - 1.0-r28.7hae
tslib-calibrate - 1.0-r28.7hae
tslib-conf - 1.0-r28.7hae
tzdata-americas - 2011b-r8.0
tzdata-europe - 2011b-r8.0
update-modules - 1.0-r10
update-rc.d - 0.7-r2
wget - 1.12-r8.2
wireless-tools - 29-r5
wpa-supplicant - 2.0-r3
wpa-supplicant-cli - 2.0-r3
wpa-supplicant-passphrase - 2.0-r3
www-jquery-ui - 1.8.21-16
www-resources - 1.16
zlib - 1.2.3-r7.0
Not that experienced but looks sensible tot me...
Post Reply

Return to “Toon Rooting”