[DEV][TOOL] kernel.sin unpacker {UPDATED for Z1 and above!}

Search This thread

CtrlAltDelIrl

Senior Member
Mar 7, 2012
1,410
800
You'll have to use a hex editor to suck the ramdisk out of nAa's kernel.sin.

The issue is simply the compression used in his kernel. He changed from gz to lzo compression.

Therefore this tool is no longer compatible with .32 nAa kernels.
 

darkmash

Senior Member
Dec 16, 2012
151
14
Doom will this tool give me a loader needed for what I am trying to get to work on arc on mini pro2 , I looking for a loader to rebuild ramdisk etc for the other Xperia device as it works on play

Sent from my SK17i using xda app-developers app
 

darkmash

Senior Member
Dec 16, 2012
151
14
Or is the info I need the info flashtool shows in the sin tool window, please its working on play so im despo test a few other devices, big thank in advance,

Sent from my SK17i using Tapatalk HD
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
updated the kernel.sin unpacker script to support rhine platform onwards (dt.img extraction)!


regards,

DooMLoRD
 
  • Like
Reactions: pradhana

Top Liked Posts

  • There are no posts matching your filters.
  • 41
    THIS IS FOR ADVANCED/EXPERIENCED USERS ONLY


    [ info ]

    hello devs/users this should be a useful tool (its just a small perl script) for u guys... i have modified the popular unpack-bootimg.pl script to support the (new) kernel.sin files... so it will basically unpack kernel.sin to zImage and ramdisk, ramdisk will also be extracted...


    [ requirements ]

    1. linux machine
    2. perl


    [ supported devices ]

    • Xperia X10 (GB update, custom kernels for unlocked bootloaders)
    • Xperia 2011, 2012, 2013 H1 devices
    • Xperia 2013 H2 devices onwards with dt.img extraction support


    [ download link ]

    unpack-kernelsin.pl


    [ usage ]

    Code:
    ./unpack-kernelsin.pl kernel.sin


    icon8.gif


    Enjoy!
    7
    D
    Deleted member 3665957
    safer and proper way - parse SIN header, extract payload, parse ELF header in payload, extract program tables.

    everything other, like signature search and heuristic analyze, can work, but can fail ;)
    4
    Little correction here ;-)
    1F8B08 is the tar.gz magic number and has nothing to do with SE :p

    But you are right its safer to search for the whole magic.

    Regards

    Also, are you sure 1F 8B is enough? Because I see a lot of 1F 8B in kernel.sin, while 1F 8B 08 is the kernel magic for SE devices.



    Sent from my LT15i using Tapatalk
    2
    you are right i try it today and it worked perfectly! but how can i build boot.img from this files?:confused:

    https://github.com/freexperia/boot_tools/blob/master/build-bootimg-mogami/makeit.sh
    1
    nice work! can you make one in ms-dos batch version? :D

    aZuZu u are the expert at porting linux stuff to windows ;)