Following up on my post explaining how to build Android for RK3288 TV box, I’ve generated a firmware image, and flashed it to Tronsmart Orion R28 Meta TV box to see if it could boot properly. There’s basically no information in the Andoird SDK explaining how to do basic things like building from source, and generating and flashing the resulting image, so I’d like to thanks Linuxium, Droidmote and Naobsd for their various tips.
Since I’ve built everything from source, I’m using a Linux machine, but you should be able to create and flash the Android image in Windows using tools in RKTools/windows folder.
First let’s copy the required, and freshly built, files to create the firmware:
1 2 3 4 |
cp rockdev/Image-rk3288/* RKTools/linux/Linux_Upgrade_Tool_v1.2/rockdev/Image/ cp RKTools/rk3288-3.10-uboot-data1G.parameter.txt RKTools/linux/Linux_Upgrade_Tool_v1.2/rockdev/parameter cp RKTools/bootloader/uboot-emmc/RK3288Loader_uboot_Apr212014_134842.bin RKTools/linux/Linux_Upgrade_Tool_v1.2/rockdev/ cd RKTools/linux/Linux_Upgrade_Tool_v1.2/rockdev/ |
We’ll also need to edit package-file follows (I only had to change the bootloader field):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# NAME Relative path # #HWDEF HWDEF package-file package-file bootloader RK3288Loader_uboot_Apr212014_134842.bin parameter parameter misc Image/misc.img kernel Image/kernel.img boot Image/boot.img recovery Image/recovery.img system Image/system.img backup RESERVED #update-script update-script #recover-script recover-script |
And now create the firmware file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
./mkupdate start to make update.img... Android Firmware Package Tool v1.0 ------ PACKAGE ------ Add file: ./package-file Add file: ./RK3288Loader_uboot_Apr212014_134842.bin Add file: ./parameter Add file: ./Image/misc.img Add file: ./Image/kernel.img Add file: ./Image/boot.img Add file: ./Image/recovery.img Add file: ./Image/system.img Add CRC... Make firmware OK! ------ OK ------ ********RKImageMaker ver 1.61******** Generating new image, please wait... Writing head info... Writing boot file... Writing firmware... Generating MD5 data... MD5 data generated successfully! New image generated successfully! Making update.img OK. Press any key to quit: |
The firmware file update.img can be flashed with upgrade_tool in Linux, or AndroidTool in Windows. Orion R28 also supports updates from SD card, but I don’t know how to generate such images (yet).
First you need to enter recovery mode. Connect the USB OTG port of your device to your PC, insert a toothpick in the AV port of your device to press the recovery push button (location of recovery button will differ between products), turn on the device, and release the button after a few seconds.
The first time I used upgrade_tool, I got the error “Creating Comm Object failed!”, changing udev rules in Ubuntu will fix the issue (Source Radxa website):
1 2 3 |
sudo sh -c 'echo SUBSYSTEM==\"usb\", ATTR{idVendor}==\"2207\", MODE=\"0666\", GROUP=\"plugdev\" > /etc/udev/rules.d/51-android.rules' sudo udevadm control --reload-rules sudo udevadm trigger |
Finally flash the firmware:
1 2 3 4 5 |
./upgrade_tool uf rockdev/update.img Loading firmware... Support Type:RK32 FW Ver:4.4.02 FW Time:2014-09-17 14:55:05 Loader ver:0.02 Loader Time:2014-04-21 15:36:59 Upgrade firmware ok. |
Now cross your fingers, and restart your TV box: Google TV logo… Android animation… and after asking a few questions about Google Play, the system asks you which launcher you want to select: stock Android, or a custom launcher as shown in the top of this post. That means it works! Great!
Unfortunately, I quickly realized Ethernet does not work, as the MAC Address is 00:00:00:00:00:00, and the firmware version of the SDK (106k4) does not match with the firmware version originally flashed into Orion R28 Meta (108k4), and they’ve now updated it to 109k4. Wi-Fi did work fine however, I could login to Google Play, and install ES File Explorer. XBMC 13.1 Gotham is also part of that firmware, but won’t work that well based on testing from other RK3288 TV boxes.
I had initially planned to test Tronsmart Orion R28 Meta with the firmware built from the SDK, but unfortunately the SDK and actual released firmware are out of sync, which means the SDK is not really useful, and I don’t think the manufacturers are interested in released up-to-date source code. So instead I’ll do some hardware testing using the provided firmware.
If you want to play around Rockchip RK3288, including testing Ubuntu on your device, you may want to checkout Firefly-RK3288 Wiki, now updated with English instructions partially inspired from Radxa and Androtab websites.
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 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
Why didn’t you include your resource.img?
Can we use the launcher apk ?
@linuxium
resource.img is copied to rockdev/Image-RK3288 directory during the build, so it’s included.
@Ze’ev
The launcher is called LigntHome. Here’s the apk from the SDK: https://dl.dropboxusercontent.com/u/45842273/LigntHome100.apk
@cnxsoft
I mean why didn’t you include it in your update image!
@linuxium
Ahhh OK. I see now… package-file is missing it… It was not listed in the original file, and I forgot to include it.
if anybody iterated how RK overclock gpu/cpu
https://bitbucket.org/T-Firefly/firefly-rk3288/src/56368e4ff90aaee3efa3929a1d0ad1a2254f4f9a/device/rockchip/common/gpu/gpu_performance/?at=master
performance_info.xml
I saw similar stuff in Amlogic SDK
OpenMAX binary
https://bitbucket.org/T-Firefly/firefly-rk3288/src/56368e4ff90aaee3efa3929a1d0ad1a2254f4f9a/device/rockchip/common/vpu/lib/?at=master
so libhybrid workaround is possible
I saw the dual boot image on firefly but it’s for a different Wi-Fi module ap 6335 not 6330 so don’t know of it will boot,
@Paul t.
The different Wi-Fi module should not prevent the device from booting, but you may lose Wi-Fi and Bluetooth connectivity.
@cnxsoft
Thanks !!!!
Well I really appreciate what you have shared with us all … I note the date is quite old and there are no drivers for the Rockchip Batch tool just windows 7 and 8 and most of the world is now on Win 10.
I have tried to do it the recommended way but the box was never “seen” and after fiddling now only boots to recovery.
I guess if I get the right file I can flash it in through recovery ..ie rkimage.
Any advice would be appreciated to save the device.
Oh btw .I have a cs918 plus that after an ota update the wifi stopped otherwise I wouldnt be fiddling around as I dont find this much fun but still a challenge is good for ones senility.
Thanks for reading
@Trevor Wuoti
Provided you just want to reinstall the firmware, you can use the Driver Assistant instead @ http://www.cnx-software.com/2013/11/08/simplified-method-to-install-rockchip-usb-drivers-in-windows-xp78/
Hello;
Can you creat an img firmware to the receiver KII pro combo. here this is the last firmware
http://www.mediafire.com/download/wtc84g0s3p2n2x2/20160715_KII_Pro.rar
Best Regards.