SlateDroid.com: Rk29xx ImageTools V2.1 - SlateDroid.com

Jump to content


  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Rk29xx ImageTools V2.1

#21 User is offline   sstavross 

  • Member
  • PipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 15
  • Joined: 15-September 11

Posted 15 September 2011 - 11:43 AM

Hi!

I don't know if I am off topic, but I've just purchased an android tv box based on rockchip 2918(R-box says the model). Anyway I have found nothing about this box, no upgrade instructions no firmware updates or download. Is there any option to somehow "extract" the current firmware image from the device and open it with this tool? It is my first android device so excuse my ignorance...
0

#22 User is offline   Aiah 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 3
  • Posts: 106
  • Joined: 06-August 11

Posted 16 September 2011 - 06:11 AM

View Postsstavross, on 15 September 2011 - 11:43 AM, said:

Hi!

I don't know if I am off topic, but I've just purchased an android tv box based on rockchip 2918(R-box says the model). Anyway I have found nothing about this box, no upgrade instructions no firmware updates or download. Is there any option to somehow "extract" the current firmware image from the device and open it with this tool? It is my first android device so excuse my ignorance...



(1) There are way's to extract the current firmware parts from a running device
But you will need root access for that.

(2) The firmware parts extracted that way will not be the complete firmware and therefore wont be compatible with this tool.
0

#23 User is offline   TYZ 

  • Newbie
  • Pip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 4
  • Joined: 16-September 11

Posted 16 September 2011 - 07:49 AM

View PostAiah, on 17 August 2011 - 04:17 AM, said:

using the firmwaretool it extracts

boot.img
kernel.img
misc.img
recovery.img
system.img (system img is a cramfs filesystem)


boot.img and recovery.img are cpio initrd files encapsulated in a head and a footer...

contents of boot.img
bytes 0..3 KNRL (header) (?KRNL) (removed ok)
bytes 4..7 size of initrd data (header) (removed ok)
bytes 8..# initrd data (?#)
bytes #+1..#+4 4bytes check code (footer) (?#+1..#+4)


Does anyone know how to calculate the footer value ?

filling own request:
rkcrc tool from https://sites.google...let/apad-irobot seems to work.


Hi Aiah.

im am trying to make my own boot image.
could you give me some more info on how to remove the footer.
i removed the header files unpack ok.
but when i make no changes and re cpio and gzip the file and make image with rkcrc the files are not the same.
it is a little bit bigger.
i did change the header to KRNL.
its the remove footer that did not do.dont understand how to.

fview 7" pro rooted
0

#24 User is offline   Aiah 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 3
  • Posts: 106
  • Joined: 06-August 11

Posted 16 September 2011 - 09:21 AM

View PostTYZ, on 16 September 2011 - 07:49 AM, said:

Hi Aiah.

im am trying to make my own boot image.
could you give me some more info on how to remove the footer.
i removed the header files unpack ok.


[update]
ungzipping the boot.img with header removed but with the footer in place will also work.
it will only generate an warning about traling garbage
removeing the footer will create a clean gzipped initrd witch unpackes without an error
[/update]

** unpacking initrd.gz for boot.img **
1) use hexeditor to retrieve bytes 3..4 from header "3f 68 02 00" = 157759 decimal
2) dd if=boot.img of=initrd.gz skip=8 bs=1 count=157759
3) verify for errors gzip -t initrd.gz
- there should be no errors
4) mkdir root;cd root;zcat ../initrd.gz|cpio -idm

View PostTYZ, on 16 September 2011 - 07:49 AM, said:

but when i make no changes and re cpio and gzip the file and make image with rkcrc the files are not the same.
it is a little bit bigger.



Its almost impossible to recreate the exact initrd.gz
Your newly created initrd.gz is probaby also different in size then then original initrd.gz

** rebuilding (an almost exact initrd.gz) **
1) cd root
2) find . -exec touch -d "1970-01-01 01:00" {} \;
3) find . ! -name "."|sort|cpio -oa -H newc --owner=root:root|gzip -n >../newinitrd.gz
4) cd ..

P.S. if you unzip the new and the old initrd.gz and compare them you will see that the cpio headers are different an some places

View PostTYZ, on 16 September 2011 - 07:49 AM, said:

i did change the header to KRNL.
its the remove footer that did not do.dont understand how to.

fview 7" pro rooted


dont forget the -p argument

1) rkcrc -p initrd.gz newboot.img
p.s. rebuilding an unmodified initrd.gz should give identical boot.img

This post has been edited by Aiah: 16 September 2011 - 12:27 PM

0

#25 User is offline   sstavross 

  • Member
  • PipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 15
  • Joined: 15-September 11

Posted 16 September 2011 - 10:44 AM

View PostAiah, on 16 September 2011 - 06:11 AM, said:

(1) There are way's to extract the current firmware parts from a running device
But you will need root access for that.

(2) The firmware parts extracted that way will not be the complete firmware and therefore wont be compatible with this tool.


Dear Aiah,

Thank you for your detail answer! So I'll have to wait until I'll find an updated firmware for download.
0

#26 User is offline   fun_ 

  • Advanced Member
  • PipPipPip
  • Group: Hero Member
  • Topics: 14
  • Posts: 525
  • Joined: 28-June 10

Posted 16 September 2011 - 09:14 PM

View PostAiah, on 16 September 2011 - 06:11 AM, said:

(2) The firmware parts extracted that way will not be the complete firmware and therefore wont be compatible with this tool.


hi

I'm guessing RKDeviceManage.exe can also handle update.img, but I'm not sure some things about new rom format/tool for RK2918.

I checked T760 official ROM. as you know it contains 2 file, bootloader and update.img. but update.img also contains bootloader inside in it. these 2 bootloaders are different (at least in 2.03 rom for T760), 1st one says 400MHz and 2nd one says 333MHz(probably DDR2 speed). probably 1st one is actually used/flashed. and, comparing to rk28x8, HWDEF file is missing.

if RKDeviceManage can flash update.img, all we need is prepare update.img properly.
does someone try to load update.img into RKDeviceManage.exe?
(for now, I don't say about flashing update.img into tablet, just loading it to windows program)

----
btw someone has interest about cyanogenmod on RK2918? I don't have any RK2918 tablet(I want T760 but bit expensive in local shop), but probably I can help a little someone who want to make it.
0

#27 User is offline   jkpjj 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 6
  • Posts: 131
  • Joined: 08-September 11

Posted 17 September 2011 - 04:47 PM

I have some interest for cyanogenmod (I've been using it on a couple of android phones), but might be hard to get it to build as cyanogenmod doesn't seem to have the rk2918 stuff. But hopefully they or at least part of them will show up at git://gitorious.org/archos/archos-gpl-gen9-kernel.git

View Postfun_, on 16 September 2011 - 09:14 PM, said:

btw someone has interest about cyanogenmod on RK2918? I don't have any RK2918 tablet(I want T760 but bit expensive in local shop), but probably I can help a little someone who want to make it.

0

#28 User is offline   fun_ 

  • Advanced Member
  • PipPipPip
  • Group: Hero Member
  • Topics: 14
  • Posts: 525
  • Joined: 28-June 10

Posted 19 September 2011 - 03:52 AM

View Postjkpjj, on 17 September 2011 - 04:47 PM, said:

I have some interest for cyanogenmod (I've been using it on a couple of android phones), but might be hard to get it to build as cyanogenmod doesn't seem to have the rk2918 stuff. But hopefully they or at least part of them will show up at git://gitorious.org/archos/archos-gpl-gen9-kernel.git


I'm not sure how that repo helps to make CM. if kernel source for target tablet is available(I don't think so), it's very nice. but CM can be made without it. it may not be "perfect", but I don't think I can make perfect ROM with or without it. it's really hard work.

what I said is I think I can make CM7 for RK2918 as (hopefully)same level as I made/am making it for RK2818 and Telechips tablets. anyway, I don't have any RK2918 tablet, and no answer yet. I can do it without real tablet (as I did) but there is no reason to do it without real user :(

sorry for noise.
0

#29 User is offline   extraterrestrial 

  • Newbie
  • Pip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 1
  • Joined: 21-September 11

Posted 21 September 2011 - 01:52 PM

Dear Aiah thank you!
I long time seek how extract boot.img and recovery.img.

And can extract kernel.img?
I want try boot android in QEMU and debugging my firmware in QEMU
0

#30 User is offline   Aiah 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 3
  • Posts: 106
  • Joined: 06-August 11

Posted 22 September 2011 - 02:07 PM

View Postextraterrestrial, on 21 September 2011 - 01:52 PM, said:

Dear Aiah thank you!
I long time seek how extract boot.img and recovery.img.

And can extract kernel.img?
I want try boot android in QEMU and debugging my firmware in QEMU



check entry #24 boot.img kernel.img work the same way.
i dont know about recovery.img (but i'm guesing its the same as hot system.img works)

This post has been edited by Aiah: 22 September 2011 - 02:08 PM

0

#31 User is offline   jkpjj 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 6
  • Posts: 131
  • Joined: 08-September 11

Posted 27 September 2011 - 05:08 AM

Ah, sorry, my mistake - yes, of course kernel is not a requirement, I was talking nonsense.

I installed cyanogenmod on the Motorola Milestone, seems to work OK, though there was one android reboot so far in a couple of days.

If you put together a cyanogen distribution for rk2918, I'm willing to test it, and perhaps start using it as a regular - there are advantages to having similar setups on different devices.

View Postfun_, on 19 September 2011 - 03:52 AM, said:

I'm not sure how that repo helps to make CM. if kernel source for target tablet is available(I don't think so), it's very nice. but CM can be made without it. it may not be "perfect", but I don't think I can make perfect ROM with or without it. it's really hard work.

what I said is I think I can make CM7 for RK2918 as (hopefully)same level as I made/am making it for RK2818 and Telechips tablets. anyway, I don't have any RK2918 tablet, and no answer yet. I can do it without real tablet (as I did) but there is no reason to do it without real user :(

0

#32 User is offline   sstavross 

  • Member
  • PipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 15
  • Joined: 15-September 11

Posted 30 September 2011 - 11:11 AM

View PostAiah, on 23 August 2011 - 09:19 AM, said:

I tried to unpack a P71 rom i found somewhere on the www.teclast.com bbs board. [teclast-P71-V2.08-026F.rar]

Your tools unpack the firmware.img
but fails to extract the system.img cramfs [cramfsck: bad root offset (0)]
The file header does look like a valid cramfs

Any idea's. on how to unpack (and repack) this cramfs type ?


Hi Aiah!

I tried also to unpack a firmware I found for my google tv box and I get the same message [cramfsck: bad root offset (0)]. Did you find a solution for this?
0

#33 User is offline   Aiah 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 3
  • Posts: 106
  • Joined: 06-August 11

Posted 01 October 2011 - 10:58 AM

View Postsstavross, on 30 September 2011 - 11:11 AM, said:

Hi Aiah!

I tried also to unpack a firmware I found for my google tv box and I get the same message [cramfsck: bad root offset (0)]. Did you find a solution for this?


Sorry no.
Looks like the cramfs of the new roms are incompatible with the scandard linux cramfs tools
0

#34 User is offline   fun_ 

  • Advanced Member
  • PipPipPip
  • Group: Hero Member
  • Topics: 14
  • Posts: 525
  • Joined: 28-June 10

Posted 01 October 2011 - 06:45 PM

View PostAiah, on 01 October 2011 - 10:58 AM, said:

Sorry no.
Looks like the cramfs of the new roms are incompatible with the scandard linux cramfs tools


did you try decrypt it like as rk2818 system.img?
0

#35 User is offline   sstavross 

  • Member
  • PipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 15
  • Joined: 15-September 11

Posted 03 October 2011 - 03:24 AM

View Postfun_, on 01 October 2011 - 06:45 PM, said:

did you try decrypt it like as rk2818 system.img?


Hi Fun_!

How to do it? Is there any tool to try it? Please give me some links...
0

#36 User is offline   fun_ 

  • Advanced Member
  • PipPipPip
  • Group: Hero Member
  • Topics: 14
  • Posts: 525
  • Joined: 28-June 10

Posted 03 October 2011 - 08:06 AM

View Postsstavross, on 03 October 2011 - 03:24 AM, said:

Hi Fun_!

How to do it? Is there any tool to try it? Please give me some links...


rkDecrypt.exe will do it. but sorry, I think cramfsck will say "superblock magic not found" if it's encrypted cramfs. so it may not help you...
0

#37 User is offline   sstavross 

  • Member
  • PipPip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 15
  • Joined: 15-September 11

Posted 03 October 2011 - 09:31 AM

So no luck... Any other ideas? the firmwareupdate is in this link if anyone is interested:
http://www.maxq.com....gory/16-maxq-r7
1

#38 User is offline   SpoinkyNL 

  • Newbie
  • Pip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 3
  • Joined: 05-October 11

Posted 05 October 2011 - 02:20 AM

Using the tools provided in this topic helped me and a friend a great lot on getting a custom ROM on the Xiron ATP7483, thank you very much!
0

#39 User is offline   gretlz 

  • Newbie
  • Pip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 1
  • Joined: 19-October 11

Posted 19 October 2011 - 09:39 PM

Hi Mr.Wendal, please help us to solve this prob. I got same problem, [cramfsck: bad root offset (0)] in system.img unpacking. I've successfully unpack update.img using AFPTool.exe. But I can't unpack the system.img, I've tried using rkDecrypt.exe, but it says no crypted file. so what am I gonna do now?
1

#40 User is offline   dicksoft 

  • Newbie
  • Pip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 1
  • Joined: 06-September 11

Posted 20 October 2011 - 02:46 AM

View Postsstavross, on 03 October 2011 - 09:31 AM, said:

So no luck... Any other ideas? the firmwareupdate is in this link if anyone is interested:
http://www.maxq.com....gory/16-maxq-r7



The link doesn't work..
0

Share this topic:


  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users