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 […]

Android 5.1 Firmware for Rockchip RK3288 TV Boxes by Ugoos and CloudNetgo

There are times when you are happy to have spend a little extra for a device to get better software support, and while most Rockchip RK3288 TV boxes are still running Android 4.4, a few companies have been porting Android 5.1 Lollipop to their products, including Ugoos and CloudNetgo. Ugoos has been working on Android 5.1 for RK3288 for while, releasing several beta firmware in the process, and the latest beta firmware (3.0.2b) includes Light Biz OS (aka Multiwindow) support to provide a better Android desktop experience, OTA firmware updates, and several bug fixes. One new small-yet-neat option is to customize the use of the power LED on the devices (WiFi, Ethernet, IR, CPU usage….), or if you don’t like it turn it off. The Android 5.1.1 firmware (still beta) is available for three devices: Beta Firmware v 3.0.2  for Ugoos UT3 – See Ugoos UT3 specs Beta Firmware v […]

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 […]

DragonBoard 410c Development Board Quick Start Guide and Android Benchmarks

Linaro’s 96Boards initiative was announced in February with the introduction of Hikey board, and while progress has been rather slow, there are now two boards available for sale: Lemaker Hikey and Qualcomm Dragonboard 410c. The main advantage of these board is that 96Boards is not only an hardware specification, but also a software specifications that mandate most code to be open source, with recent versions of Linux and U-boot, and in the case of Dragonboard 410c work is being done with Freedreno open source GPU drivers. Now that I’ve got a board I’ll explain my experience with the purchasing process, take a few pictures, and show how to get started with Android, and install the latest version, before running a few benchmarks. Ordering DragonBoard 410c Development Board I normally don’t like purchasing from North American and European distributors, because of the potential documentation involved to comply with silly laws, high […]

How to Reduce SD Card Firmware Images Download Size

So I’ve just received a Roseapple Pi board, and I finally managed to download Debian and Android images from Roseapple pi download page. It took me nearly 24 hours to be successful, as the Debian 8.1 image is nearly 2GB large and neither download links from Google Drive nor Baidu were reliable, so I had to try a few times, and after several failed attempt it work (morning is usually better). One way is to use better servers like Mega, at least in my experience, but another way to reduce download time and possibly bandwidth costs is to provide a smaller image, in this case not a minimal image, but an image with the same exact files and functionalities, but optimized for compression. I followed three main steps to reduce the firmware size from 2GB to 1.5GB in a computer running Ubuntu 14.04, but other Linux operating systems should also […]

Google Releases Android 6.0 Source Code and Factory Images for Nexus Devices

Google has pushed Android 6.0 source code to AOSP (Android Open Source Project), and released factory images (MRA58K) for Nexus 6 & Nexus 5 smartphones, Nexus Player, as well as Nexus 9 and Nexus 7 (2013) tablets. You can retrieve the code with the usual repo tool:

Some of keys changes are listed on Android Source microsite and include Doze and App Standby to save battery, new authentication interface sich as Fingerprint, Gatekeeper, and Keymaster, adoptable storage, Bluetooth stylus support, and more. If you want a more detailed changelog at the source code, Opersys got you covered by listing all differences between 5.1.1_r24 (LMY48W) to 6.0.0_r1 (MRA58K) with newly added components,  removed components, and modified components. Jean-Luc Aufranc (CNXSoft)Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in […]

Beelink i68 (Rockchip RK3368) TV Box Review

Beelink i68 is one of the first 64-bit ARM Android mini PCs available on the market, and could offer an update to Rockchip RK3288 TV boxes thanks to its eight Cortex A53 cores and support for HDMI 2.0 up to 4K2K @ 60Hz. I’ve already taken a few pictures of the device and RK68 board, so today I’ll report about performance, stability, features and video playback capabilities in the full review. First Boot, Settings and First Impressions The box has three USB 2.0 host ports and a micro USB OTG port, so for once I did not have to use a USB hub to connect all my devices and cables. I’ve inserted an Ethernet cable, an HDMI cable, an optical cable to the S/PDIF output, a Class 10 micro SD card, a USB hard drive, a USB webcam, an RF dongle for Tronsmart Mars G01 wireless gamepad, and finally MeLE […]

Zidoo X1 Android Firmware 1.0.7 Fixes Critical Kodi Playback Issues

I was quite disappointed when I wrote Zidoo X1 review, as Zidoo provided decent firmware with their Zidoo X9 recorder (albeit with some caveats), but Zidoo X1 with firmware 1.05 was a disaster while playing videos in Kodi either from the network or a USB hard drive, as even most H.264 videos could not play smoothly…  I recommended prospective buyers to skip the box for now, as Kodi was not acceptable when Zidoo’s ZDCodec hardware decoding implementation was enabled. But the developers have quickly worked to fix critical bugs in Kodi, and provided a test APK that indeed fixed H.265, H.264, and MPEG2 videos, and improved greatly 4K video playback in Kodi with ZDcodec implementation. Since then, they’ve also fixed some other playback issues for video using VC1 codec, and released firmware 1.0.7 with the following changes: Kodi Fixed choppy video problems with online videos, such as YouTube Fixed choppy […]

Memfault IoT and embedded debugging platform