Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

RK3188 - MINIX NEOX7mini - Unpack and repack boot.img

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    RK3188 - MINIX NEOX7mini - Unpack and repack boot.img

    Hi all folks,
    I have some question about the partition dumped from NEO X7mini.
    Try to explain, I'm using rkflashtool.
    This is the output of:

    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 like:

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

    With the same tool I'm able to dump the entrie boot partition on my linux box, so:

    rkflashtool r 0x12000 0x8000 > b00t.img

    Now, I have find out that with rkunpack we can 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.
    I've already tried to repack the modified directory in this two ways:

    mkcramfs myboot myboot-temp.img # myboot is the dir in which I unpacked b00t.img-raw
    kcrc myboot-temp.img customboot.img

    or

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

    None 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

    NB:
    In this thread some guys talking about something similar to my problem:

    But rkunpack of dumped boot.img return they only boot.img-raw.

    Can someone help me?

    Thanks in advance.
    Last edited by tryin; 04-14-2014, 19:54.

    #2
    I need to learn boot unpack repack

    I used for boot unpack/repack RK3xxx_firmware_tools_4.1.22.00. tools. seem to be work. I am not expert or guru only beginer. I need to create for boot var and tmp folder in root folder. If you find truely method for unpack/repack. pls share us

    Comment


      #3
      Sure! Give me some time...
      Have you already done something?

      Comment


        #4
        Originally posted by taki View Post
        I need to create for boot var and tmp folder in root folder.
        You could start by dumping your boot partition...
        Last edited by tryin; 04-16-2014, 18:26.

        Comment

        Working...
        X