5,600,984 Members 44,005 Now Online
XDA Developers Android and Mobile Development Forum

RK3188 - MINIX NEOX7 mini

Tip us?
 
tryin
Old
#1  
Member - OP
Thanks Meter 6
Posts: 73
Join Date: Apr 2013
Location: Milano
Prompt RK3188 - MINIX NEOX7 mini

Hi all folks,
I have some question about the stock android system in this specific box and the format of the dumped partition.
Try to explain, I'm using rkflashtool to interact with the memory of the RK3188
This is the output of the command

rkflashtool r 0 1 | head -n 11
-------------------------------------------------------------------------------------------------
CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0
init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:
0x00002000@0x00002000(misc),
0x00008000@0x00004000(kernel),
0x00008000@0x00012000(boot),
0x00010000@0x00020000(recovery),
0x00020000@0x00030000(backup),
0x00040000@0x00050000(cache),
0x00800000@0x00090000(userdata),
0x00002000@0x00890000(kpanic),
0x00130000@0x00892000(system),
-@0x009c5000(user)
-------------------------------------------------------------------------------------------------

I guess the boot partition is something linke that:

+-------+ <--- 0x00019fe0
| boot |
+-------+ <----0x00012000

With this command i'm able to dump the entrie boot partition on my linux box in a file named b00t.img :

rkflashtool r 0x12000 0x8000 > b00t.img

Now, i have find out that with the tool rkunpack (or simply with dd) i'm able to unpack this b00t.img. The output are two file:
b00t.img-raw
b00t.img-symbol

The first file is no more than a gzip compressed data file, I'm able to extract the data in a directory with this command:

gunzip < ../b00t.img-raw | sudo cpio -i --make-directories

Now in this dir I have all the files of the / partition. I can modify for example the /init.rc.

I want to repack the entrie b00t.img in order to flash it again on the device.

NB:
In this thread this guys work at something like my problem...
http://www.freaktab.com/showthread.p...ull=1#post4055
The difference is that they work on a different partition layout, and the rkunpack of dumped boot.img return they only boot.img-raw.

Obviously I've already tried to repack the modified directory in this two ways:

mkcramfs myboot myboot-temp.img
kcrc myboot-temp.img customboot.img
or
find . ! -name "."| sort | cpio -oa -H newc | gzip -n > ../newboot.gz
kcrc newboot.gz customboot.img

Neither of these leads to obtain a file large enough to fit the boot partition on the deivice, that I want fill with:
rkflashtool w 0x12000 0x8000 < modifiedb00t.img

Has anyone ever worked with rk3188? Any idea?

Thanks in advance.

One day, the world will learn that hackers don't "break things", they "understand" them and produce "unexpected" outcomes. Eireann Leverett
"Ok, sometimes some bad guys break things, but only because they are unkind..."

 
tryin
Old
#2  
Member - OP
Thanks Meter 6
Posts: 73
Join Date: Apr 2013
Location: Milano
SOLVED!
Look at http://www.freaktab.com/showthread.p...ly-the-ramdisk.

One day, the world will learn that hackers don't "break things", they "understand" them and produce "unexpected" outcomes. Eireann Leverett
"Ok, sometimes some bad guys break things, but only because they are unkind..."

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

TasGear: A Tasker Extension for the Samsung Galaxy Gear

With wearable technology taking center stage this year, one can only expect more … more

Intelligently Place Contacts on Your Home Screen with CallWho Widget

There are plenty of ways to get your contacts to show up on your … more

Control TWRP from within Android with TWRP Coordinator

You may recall that back when TWRP2 introduced a couple of years ago, it brought with … more