A Clean Linux Installation For An Android TV Box

Although Android technically runs on top of Linux, generally most Android devices abstract away the underlying Linux-ness of these machines. In theory this is a good thing; we wouldn’t necessarily want to live in a world where we have to log in to a command-line interface just to make a phone call. But too much abstraction often needlessly restricts the capabilities of the underlying hardware. [Murray] a.k.a [Green Bug-Eyed Monster] has an Android TV box with just such a problem, as the Android OS included with it allows for watching TV just fine, but with a few tweaks it can run a full Linux installation instead, turning it into a much more versatile machine.

This specific Android TV box is based on the Rockchip 3566, a popular single-board computer used in a wide array of products. As such it is one of the easier targets for transforming a limited TV machine into a fully capable desktop computer. The first step is to compile an Armbian image for the machine, in this case using an x86 installation of Ubuntu to cross-compile for the ARM-based machine. With a viable image in hand, there’s an option to either solder on a microSD slot to the included pins on the computer’s PCB or to flash the image directly to the on-board eMMC storage by tricking the machine into thinking that the eMMC is missing. Either option will bring you into a full-fledged Linux environment, with just a few configuration steps to take to get it running like any other computer.

[Murray] began this process as an alternative to paying the inflated prices of Raspberry Pis over the past few years, and for anyone in a similar predicament any computer with the Rockchip 3566 processor in it could be a potential target for a project like this. You might need to make a few tweaks to the compile options and hardware, but overall the process should be similar. And if you don’t have an RK3566, don’t fret too much. We’ve seen plenty of other Android TV boxes turned into similar devices like this one which runs RetroPie instead.

22 thoughts on “A Clean Linux Installation For An Android TV Box

  1. I really like how the article explains concepts of installing Linux on a consumer TV device, and also digs into practical details and shows how to get things done. Good hack value :-)

    1. @Gösta said: “I really like how the article explains concepts of installing Linux on a consumer TV device, and also digs into practical details and shows how to get things done. Good hack value :-)”

      Yeah, that’s all well and good if you already have an extra RK3566 based TV box laying around. Otherwise I think you would be better off starting with a fresh new RK3566 board:

      Pine64.com has several small single board computers (SBCs) in their Quartz64 line that are based on the Rockchip RK3566 Quad-Core ARM Cortex A55 64-Bit Processor with a MALI G-52 GPU.[1][2] The Quartz64 with the RK3566 comes with either 4 GB or 8 GB LPDDR4 RAM. There are various versions of Linux and BSD distributions, Android 11, and a Linux BSP/SDK available for the Quartz64.[3] There is even the $14.00 USD Quartz64 Zero SBC that has a Quad 64-bit ARM Cortex-A55 CPU, and an embedded 32-bit RISC-V CPU, but it only has 1GB of LPDDR4 system memory.[4]

      References:

      [One] Pine64 Quartz64

      https://pine64.com/product-category/quartz64/

      [Two] Pine64 Quartz64 Wiki

      https://wiki.pine64.org/wiki/Quartz64

      [Three] Pine64 Quartz64 Wiki Software Releases

      https://wiki.pine64.org/wiki/Quartz64_Software_Releases

      [Four] Quartz64 Zero SBC

      https://pine64.com/product/quartz64-zero-single-board-computer/

    1. Because they and many of us here (probably anyway as it is HAD) would far rather have a more fully fledged Linux computer behind our TV, which being a ‘real’ computer operating system will bring the potential to add many features the AndroidTV box will never have, and probably while being just as good or even better than the AndroidTV box at being a TVbox if that is all you need.

      However if you like what you have, great, roll with it and keep enjoying it. No real judgement from me there, and don’t let any more judgemental folks get you down either.

      Personally I do think you are kinda crazy to want all 3 of those at once, I just can’t see any reason to want such a mixed bag myself. But as I actively hated the last androidTV thing I experienced, as it was at best barely useable and have grown to loathe the ever growing bloat of Windows too, and all while really not being an Apple fan either. But there at least I can see some reasons to like their products. So it seems we are just too different in what we want out of our technology.

    2. Even if you want Android there’s often reason to want to run screaming from the default install on the cheap android STBs.

      Not all of them come preinstalled with malware; but it’s pretty common. Some real hardware deals to be had; but the state of the firmware is the worst sort of race to the bottom.

    3. Why change it?

      “Discoveries are made by not following instructions.”

      What the device manufacturer wants is usually a much smaller subset of what the device and a power user could really do or want to do with it.
      Repurposing old devices with new (read also as free, unlimited, unlocked) firmware often makes them better than the newer device you’d be forced to buy and gives immense satisfaction, let alone that you saved some electronics from trash.

    4. ah. I forgot: This is Standard Hackaday Comment #3 “why do this”

      so
      SHC #1 “could have done this with a 555”
      SHC #2 “not a hack”
      SHC #3 “why do this”

      the list keeps on growing. let’s include
      SHC #4 “this is dangerous”
      SHC #5 is a generic trolling comment.
      SHC #6 refer to propiate xkcd.

      of course you can mix and match.
      any more I forgot?

      1. It might be nice to list and use most common replies. I’ll start with mine to simply justify why this site is still here and why grandma should go back to the bingo instead of posting here.

        Standard Reply #1 “Because I can”

    5. Why not?

      Those settop boxes are usually horrible. It’s like running Windows on a computer, it’s something you should never be doing.

      Now you can turn these devices into something useful.

      1. You’d think, but I prefer to assume a degree of earnest ignorance just in case they are not. At worst for me I’ve wasted a tiny bit of my time, at best perhaps helped provide another Point of view. Afterall even the smartest person will have blindspots where they don’t know why/how.

        It is to fill in those blindspots and the details in the comments that I find HAD most interesting – number of things that turn up here I’d not have known about at all otherwise. So while sure the cyberdeck or yet another way to build a radio antenna without the neighbors moaning and the like of fun projects are great too every now and then a real gem of ‘oh why didn’t I know…’ or ‘that is a really novel use of something I did’..

  2. RK3566 itself is $10, in stock on JLCPCB by the way. It’s pretty capable, with DRAM controller, USB 3.0, USB 2.0, GLAN, video I/O, four cores, DMAs… The list goes on.

    Very tempting.

  3. Many of these small android boxes are supported directly by the works by ophub: https://github.com/ophub/amlogic-s9xxx-armbian

    I have used the above with great success on multiple s905x boxes. It’s great to have a way to use them for something useful, when they are otherwise e-waste when the bloated (and somewhat suspicious) android release is outdated.

    It looks like the specific box is not supported, but it’s likely that it can be added based ok one of the other boxes similar to H96 MAX V56

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.