How to extract kernel.img with mkboot script

As I tried instructions to install Linux on Amlogic S905 Android TV boxes yesterday, I wanted to extract kernel.img file found in Android firmware, but Google did not help that much until I found mkboot part of mkbootimg_tools scripts. But first let’s see how kernel.img is created… Google provide a Python script called mkbootimg that combine the kernel image (e,.g. zImage), a rootfs/ramdisk and the device tree (DTB) file with a command line that looks like:

However, AFAIK the company does not provide a “unmkbootimg” script, and mkbootimg can only be used to create kernel.img, not decompile it. But that’s what mkboot does, and it works for kernel.img and recovery.img. Let’s retrieve the necessary files first:

mkboot is a bash script so we can use it right away:

So it can be used both for unpacking and repacking kernel.img to/from the output directory. Let’s run the command […]

How to Run Headless Linux on Amlogic S905 Devices Such as MINI MX or K1 Plus

A few week ago, I had been informed that Amlogic S905 U-boot and Linux source code was released, and one person use the code and other resources to load a minimal Ubuntu 14.04 image to his K1 Plus TV box and released the installation instructions and the image (Thanks olin!). I also have K1 Plus here, but since I’ve just finished reviewing Beelink MINI MX, I decided to use the latter instead. The instructions below boot Linux from the (micro) SD card, and can still boot Android if you remove the SD card. Modifying U-boot environment The instructions include opening the box, and connecting or soldering a USB to TTL debug board to access U-boot and change some parameters. But later once an image with network is working, you could also build and load fw_setenv and fw_saveenv, and do the same steps with an Android shell and without the need […]

Review of Beelink MINI MX TV Box with MX Player

Beelink MINI MX Amlogic S905 Android media player has similar features, and costs about the same as K1 Plus TV box I reviewed last week, so it would be interesting to compare both. While specifications are similar there are some differences. For example, MINI MX lacks AV output, and only features two USB ports against four for K1 Plus, but it supports Gigabit Ethernet which could be an advantage while playing high bitrate 4K videos, as well a Bluetooth 4.0. I’ve already provided pictures and torn down MINI MX, so today is time for the full review and a comparison with K1 plus. First Boot, Settings and First Impressions I connected my USB 3.0 hard drive to one of the USB port, and a USB hub to tghe other port with a USB webcam, a USB keyboard, and two RF dongles for a gamepad and an air mouse. I also […]

iMX6 TinyRex Module and Development Board Support HDMI Input in Linux (Video Demo)

A couple of years ago, I wrote about iMX6 Rex open source hardware project combining a Freescale i.MX6 SoM and baseboard that aimed a teaching hardware design (schematics and PCB layout). I had not followed the project very closely since then, until I watched a video showcasing HDMI input capabilities in Linux using the new version of the module and baseboard called i.MX6 TinyRex. i.MX6 Tiny Rex module specifications: SoC – Freescale iMX6 processor up to 1.2GHz and 4 cores System Memory – Up to 4GB DDR3-1066 (533MHz) Storage – EEPROM Connectivity – 10/100/1000 Mbps Ethernet PHY I/Os via 3 board to board connectors: Display / Video Output 1x HDMI (up to QXGA 2048×1536) 1x LVDS (up to WUXGA 1920×1200) 1x 20-bit parallel LCD display (up to WXGA 1366×768) or 1x Video Input (CSI) 1x MIPI DSI differential display output (up to XVGA 1024×768) Video Input 1x 20-bit parallel video input […]

Quick Start Guide for LinkIt Smart 7688 (Duo) Board

Mediatek Labs has announced LinkIt Smart 7688 development boards powered by Mediatek MT7688 WiSoC earlier today, but I was selected for a close beta several weeks before the launch, and I’ve had time to play a little with the boards, so today I’ll report my experience getting started with LinkIt Smart 7688 amd 7688 Duo by writing a Quick Start Guide showing how to setup the boards, upgrade firmware, access the serial console, run “Blink LED” sample applications with Python and JavaScript, as well as the Arduino IDE, and connect to the Internet. Initial Setup You’ll only need a micro USB cable and a computer with WiFi and USB ports to get started with the board. The green LED (top) for the MCU will turn on immediately, while the red LED (bottom) for WiFI will blink once, and only turn on continuously after 5 seconds, and within 30 seconds after […]

Intel Atom x5-Z8300 vs x5-Z8500 Benchmarks Comparison

We’ve previously seen there’s not that much difference in benchmarks between Intel Atom Z3735F and the newer Atom x5-Z8300 processor, except when it comes to 3D graphics performance where the latter can be up to twice as fast. The same benchmarks have been run in Windows 10 on an Atom x5-Z8500 based device, namely Kangaroo Mobile Desktop computer, and the difference seemed large enough that I decided to make a comparison against the Atom x5-Z8300 processor used in Tronsmart Ara X5. The three benchmarks – PCMark 8 (Accelerated 3.0), Passmark 8, and 3DMark – were run in Windows 10 64-bit Home in both devices. A Ratio greater than one indicates Kangaroo (x5-Z8500) is the faster device. Benchmark Tronsmart Ara X5 Intel Atom x5-Z8300 @ 1.44 GHz / 1.84 GHz (Turbo) Kangaroo Mobile Desktop Intel Atom x5-Z8500 @ 1.44 GHz / 2.24 GHz (Turbo) Ratio PCMark8 Overall Score 1,354 1,597 1.18 […]

K1 Plus Amlogic S905 TV Box Review

Videostrong KI Plus is one of the first Amlogic S905 TV boxes to be launched on the market, and it also happens to be one of cheapest model selling for around $45 on various sites, and it’s even available for $39.99 on GearBest for Black Friday / Cyber Monday. I’ve posted the specifications and pictures of the device previously, and after updating the firmware, I’ve finally completed the review. First Boot, Settings and First Impressions As usual, I’ve connected a whole bunch of cables and peripherals to the device to make the power supply can handle it, including a USB hard drive, a USB webcam, a USB keyboard, a USB hub with two RF dongles for Tronsmart Mars G01 gamepad and MeLE F10 Deluxe air mouse, as well as a HDMI, optical audio and Ethernet cables, and a speaker connected to the 3.5mm AV jack and powered by one of […]

How to Update Firmware on Amlogic S905 TV Boxes

Videostrong has just sent me a new firmware for K1 Plus mini PC based on Amlogic S905 processor. The procedure is basically the same as for previous Amlogic devices, but I’ve still documented the step to follow an update. Please note that devices from decent brands should have OTA updates implemented, so it may not be needed, except for the cheapest devices, or in case of network issues. The firmware update procedure below can be done in any computer, including the Android TV box itself. The firmware is specific to K1 Plus, so if you have another TV box, you’ll need to change the download link to the firmware for your device. Download the firmware file (e.g. K1 Plus 2015-11-23.rar) Extract the compressed file to the root of a micro SD card, or on any other external storage. You should have a few files as shown above, including a zip […]