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