Firefly Open Source Community

Title: compiled sdk not booting with update.img [Print This Page]

Author: grant2258    Time: 1/13/2015 05:29
Title: compiled sdk not booting with update.img

Hey guys I have a quick question maybe someone here can help me out. When I upload my kernel, boot,system ,misc the system works fine as it should but when I upload update.img the box doesn¡¯t boot at all.




If i replace my resource.img with the original one from the firefly? extracted from the firmware and make my new firmware the box boots no problems. Is there something special needing done with resource.img. I was debugging a little and i noticed my??resource.img unpacked fine with ? kernel/resource_tool --unpack resource.img but the firefly one didn¡¯t is there anything special we need to do to this file to make the box boot properly



Author: busybee    Time: 1/14/2015 14:51

Our resource.img can be unpacked using following instructions:


~$ mkdir /tmp/t
~$ cd /tmp/t
/tmp/t$ cp ~/proj/firefly-44/kernel/resource.img .


/tmp/t$ ~/proj/firefly-44/kernel/resource_tool --unpack .
Dump header:
partition version:0.0
header size:1
index tbl:
offset:1        entry size:1        entry num:2
Dump Index table:
entry(0):
path:rk-kernel.dtb
offset:3        size:98693
entry(1):
path:logo.bmp
offset:196        size:17184
Unack resource.img to . successed!


/tmp/t$ ls -l
total 236
-rw-r--r-- 1 djw users  17184 1Ô  14 14:45 logo.bmp
-rw-r--r-- 1 djw users 117760 1Ô  14 14:45 resource.img
-rw-r--r-- 1 djw users  98693 1Ô  14 14:45 rk-kernel.dtb


/tmp/t$ ~/proj/firefly-44/kernel/scripts/dtc/dtc  -I dtb rk-kernel.dtb -O dts -o firefly-rk3288-kernel.dts
/tmp/t$ head firefly-rk3288-kernel.dts
/dts-v1/;

/ {
#address-cells = <0x1>;
#size-cells = <0x1>;
compatible = "rockchip,rk3288";
rockchip,sram = <0x1>;
interrupt-parent = <0x2>;

chosen {



The resource.img contains a bitmap and a dtb. Please check your compiling.


Author: grant2258    Time: 1/18/2015 20:21

Hi sorry I though I posted to this earlier. I done somethign to the sdk it was my bad. Im not sure what i done but I just re downloaded it and all is well now. Thanks for the reply. Everythign is working as it should be. I have one more question though if you done mind. If i compile a new resource.dat is there any way to upload it on with Linux_Upgrade_Tool_v1.2 I dont seen any option for it. I have to flash a full firmware every time. It seems the windows AndroidTool Release v2.3 supports this only problem is its just a quick re flashing the firmware by the time you copy the files to a windows partition and reboot.
Author: busybee    Time: 1/19/2015 14:33

Please try:




sudo?upgrade_tool di resource /path/to/resource.img




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1