How to Write Andoid Firmware for a Stb

How to Write Andoid Firmware for a Stb

I
reviewed Rikomagic MK22 TV box
about two weeks ago, and with the firmware I had, online firmware update was not enabled, and the visitor only released .IMG firmware for
Amlogic USB Burning Tool, a windows-just tool that’s not well designed, and requires some process that vary slightly from boxes to boxes which in some cases forces to buy a male to male USB cable.

I’ve at present started
reviewing R-Box Pro Television receiver box
also based on Amlogic S912 processor, online firmware update is not working either, and again I simply managed to detect
.IMG firmware
for the box on GeekBuying. Notwithstanding, I’ve been informed that “USB Burning Tool” firmware can now be flashed through a micro SD card, or USB flash drive with all recent Amlogic Idiot box boxes, and so I’ve tried this method instead of R-Box Pro, and decided to study my experience in this post
following some instructions on Freaktab
made by user Calc. I’ll show instructions in Linux (which could be further streamlined), and so Windows.

Linux Method

Afterwards downloading and extracting the rar’ed firmware file (twice), I concluded up with a single img firmware files (aml_s912_q6330-R-BOX-PRO-3gddr-mac-20161015.img).

Kickoff we’ll need to have a tool to extract some files from the firmware. Create aml-upgrade-package-excerpt.c with the lawmaking beneath which
I found on Freaktab besides
and slightly modified it to parse the firmware filename:

Read:  Firmware KingWear KW88 SmartWatch MT6580


Now compile the tool with gcc:


and run the thing on the firmware file:


It will extract a bunch of files:


You lot’ll just need aml_sdc_burn.ini and aml_sdc_burn.UBOOT, plus the IMG file itself to create a bootable mass storage device.

Now find the device for your micro SD card (formatted with FAT32) with lsblk:

Read:  Sprint Note 5 Stock Firmware Download Qc5


In my case, it’due south /dev/sdd, but I’ll use /dev/sdX in the instructions below, merely change the command with yours.


and finally, re-mount the SD card/flash drive, copy the firmware file and aml_sdc_burn.ini to the root of the device, and rename the firmware to aml_upgrade_package.img to friction match the cord in aml_sdc_burn.ini:


Now make certain no other USB devices or SD cards are inserted in the TV box, and insert your bootable (micro) SD card or USB wink bulldoze into the TV box. If your Tv box is fully bricked, you take zip to do, and the update should start straight away, but if information technology is partially bricked or just working fine, you still demand to press the recovery push, utilise power, and release the button in order to enter recovery mode. The upgrade should then get-go automatically as shown below.


micro-sd-card-firmware-update

Patiently expect for the update to complete and y’all should be all good. Please note that I first tried with a USB wink drive, and the method did not work. In one case the update is complete, y’all’ll see the “Android success” logo.

Read:  Combination Firmware for Sprint Samsung Galaxy S6


amlogic-firmware-update-success
At this signal, remove the micro SD menu, and ability bicycle the board to complete the final steps of the update, and within 1 or two minutes yous should become the Android launcher. If instead, the firmware ends with “Android failure” logo showing a red cross, verify your firmware MD5 (east.1000. with md5sum in Linux) to make sure it’s not corrupted. If information technology is, re-download the file and/or re-copy the file to the micro SD bill of fare.

Windows Method: Burn Carte Maker

If you lot are a Windows user it’s much easier as you just need to use Burn_Card_Marker tool (bootcardmaker.exe), which yous tin can download
here
or
there. The documentation shows the interface as shown beneath.


burn_card-maker-english

Just subsequently starting the plan in Windows 7, and changing the language with the summit carte du jour, second option to English language, it stayed in Chinese language and looked like the screenshot below instead.

burn_card_maker_v2-0-2

[Update: After changing the language to English, select the 3rd choice in the peak menu to apply the alter…
amlogic-card-maker-menu

…restart the app, and it will be in English.]

It’s not actually a large result, but you can still select your SD card device (F: drive in my case), load the file, and press “Make” push to start creating a bootable recovery (micro) SD menu.
amlogic-create-bootable-card

You’ll get a “Success!” pop-upwardly window and the end, and the content of the SD carte du jour will show the firmware and the 2 aml_sdc_burn files.


burn-card-maker-files

Now you lot can insert the micro SD card in the TV box, enter the recovery card with the pinhole or other method for your TV box, and the firmware update volition first automatically.

Expert Luck!

How to Write Andoid Firmware for a Stb

You May Also Like