Quantcast
Channel: SamyGO
Viewing all articles
Browse latest Browse all 7850

[H] Software • [CHROOT] Debian Jessie armel image

$
0
0
Hello everyone,

I was looking for a way to compile programs for my H-Series TV (H6400), and first I tried to move over ubuntu binaries from a armhf system (Odroid C1) and run them on the TV. However, they didn't run (also created a minimal rootfs from ubuntu 16.04 armhf):

Code:

[root@tv apps]# cd /dtv/usb/sdc/nfs/192.168.1.5/Kits/samygo/ubuntu-base/
[root@tv ubuntu-base]# cd ..
[root@tv samygo]# chroot ubuntu-base/ /bin/bash
bash: /usr/bin/groups: cannot execute binary file: Exec format error
root@(none):/#
root@(none):/# ls -l
bash: /bin/ls: cannot execute binary file: Exec format error
root@(none):/# exit
exit


So, I reverted to using armel. The difference between armhf and armel is that armhf has "hard-float" support (a.k.a a FPU), while armel does floating-point calculations in software and thus is slower. How much slower, you ask? Well, I ran sysbench on my TV (quad core CPU, unknown frequency) and on Odroid C1 (quad core, Cortex A5 @ 1500MHz) and the tv finished calculating 20000 prime numbers in 1224 seconds, while the C1 finished in 110 seconds, so that's an order of magnitude...

Anyway, here is the link to the debian image: http://www.mediafire.com/?l7b63bv7vw9z8
The compressed image is about 170MB. Uncompressed it is about 750MB, with ~300MB used and ~400MB free.

You can download it, save it to a USB drive (or network share), extract it on your tv (

Code:

unxz /path/to/debian.img.xz
). Also, download these two helper scripts: https://github.com/mad-ady/samygo-debian and edit them to fit your needs.

prepareChroot.sh assumes your image is in /dtv/usb/sda1/debian.img, so edit it if necessary. Also you will need to create a mount point (by default it's in /mnt/debian).
To chroot into the image do:

Code:

chroot /mnt/debian /bin/bash
#/init

To clean up when you're done, run the disconnectChroot.sh script.

When inside the chroot you can use standard debian commands and install debian packages through apt (e.g. I installed htop). Alternatively, you can follow the guide here viewtopic.php?t=7898, and even start a desktop environment (did I mention it was slow)?

Image
Enjoy!

Statistics: Posted by mad_ady — Sun Nov 13, 2016 1:32 pm — Replies 0 — Views 8



Viewing all articles
Browse latest Browse all 7850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>