Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

compiled sdk not booting with update.img

20

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
20

compiled sdk not booting with update.img

Posted at 1/13/2015 05:29:07      View:5763 | Replies:3        Print      Only Author   [Copy Link] 1#

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


Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 1/14/2015 14:51:59        Only Author  2#

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.

Reply

Use props Report

20

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
20
Posted at 1/18/2015 20:21:36        Only Author  3#

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.
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 1/19/2015 14:33:41        Only Author  4#

Please try:




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

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list