Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Angry [DEV][TOOL] kernel.sin and FTF creator (v1.0)

OP DooMLoRD

26th November 2011, 11:03 AM   |  #1  
DooMLoRD's Avatar
OP Recognized Developer
Flag Noida
Thanks Meter: 39,213
 
13,127 posts
Join Date:Joined: Jul 2010
THIS IS FOR ADVANCED/EXPERIENCED USERS ONLY


[ info ]

hello devs/users this should be a useful tool (its just a small CMD/batch script) for u guys...

so it will basically pack zImage and ramdisk into kernel.sin and then create an FTF which can be flashed via FlashTool...


[ requirements ]
  1. windows
  2. may be Java installed


[ supported devices ]
  • Xperia X10 ONLY


[ usage ]
  1. place the compiled kernel zImage & compressed ramdisk (cpio.gz) in the same folder as these files
  2. rename zImage to "image" (without quotes)
  3. rename compressed ramdisk to "ramdisk" (without quotes)
  4. edit the BUILD-IT.bat file and modify the following entries:
    Code:
    echo branding: DooMKernel-v06-BootManager-v1.4 >>  manifest.mf
    echo Created-By: DooMLoRD >>  manifest.mf
    echo version: 2.3.3 >>  manifest.mf
    ren kernel.jar X10_2.3.3_DooMKernel-v06-BootManager-v1.4.ftf
    to whatever you want, as this is what will be displayed in FlashTool FTF window
  5. once you are done editing that file save it
  6. now double click on BUILD-IT.bat to launch kernel.sin & FTF build process
  7. at end you will get a FTF which can be flashed via FlashTool


[ download link ]
kernel.sin and FTF creator v1.0


[ other useful links ]

[DEV][TOOL] kernel.sin unpacker
[How-To] Make custom bootscreen/bootlogo (image to rle)/(rle to image)





Enjoy!
Attached Files
File Type: rar kernel.sin-and-FTF-creator-v1.0.rar - [Click for QR Code] (181.7 KB, 4491 views)
Last edited by DooMLoRD; 26th November 2011 at 11:05 AM.
The Following 29 Users Say Thank You to DooMLoRD For This Useful Post: [ View ]
26th November 2011, 01:48 PM   |  #2  
Senior Member
Flag Florianópolis
Thanks Meter: 686
 
303 posts
Join Date:Joined: Oct 2011
Donate to Me
DoomLord,

Very nice...

In theory this method work to all sin files (partition), right? I only need to have the partition attributes, right?

You know how to get the attributes for all partition?
26th November 2011, 02:03 PM   |  #3  
DooMLoRD's Avatar
OP Recognized Developer
Flag Noida
Thanks Meter: 39,213
 
13,127 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by adrianom

DoomLord,

Very nice...

In theory this method work to all sin files (partition), right? I only need to have the partition attributes, right?

You know how to get the attributes for all partition?

yes

check the_laser's thread for info related to partition table...

BUT DO SO AT UR OWN RISK
26th November 2011, 02:12 PM   |  #4  
Senior Member
Flag Florianópolis
Thanks Meter: 686
 
303 posts
Join Date:Joined: Oct 2011
Donate to Me
Quote:
Originally Posted by DooMLoRD

yes

check the_laser's thread for info related to partition table...

BUT DO SO AT UR OWN RISK

Thanks, I found.
The Following User Says Thank You to adrianom For This Useful Post: [ View ]
27th November 2011, 08:15 AM   |  #5  
Senior Member
Flag Sydney
Thanks Meter: 95
 
479 posts
Join Date:Joined: Mar 2011
More
Quote:
Originally Posted by adrianom

Thanks, I found.

but I can't found....

anyways... DooM does this compile the kernel? or does I just combine zimage + ramdisk?

thanks.

Sent from my X10i using xda premium
27th November 2011, 08:44 AM   |  #6  
Senior Member
Flag Bhubaneswar
Thanks Meter: 200
 
1,013 posts
Join Date:Joined: Jun 2010
More
Quote:
Originally Posted by pheel

but I can't found....

anyways... DooM does this compile the kernel? or does I just combine zimage + ramdisk?

thanks.

Sent from my X10i using xda premium

Just combines zimage + ramdisk.
The Following User Says Thank You to realunited123 For This Useful Post: [ View ]
27th November 2011, 01:19 PM   |  #7  
Senior Member
Flag Florianópolis
Thanks Meter: 686
 
303 posts
Join Date:Joined: Oct 2011
Donate to Me
Quote:
Originally Posted by pheel

but I can't found....

anyways... DooM does this compile the kernel? or does I just combine zimage + ramdisk?

thanks.

Sent from my X10i using xda premium

http://forum.xda-developers.com/show....php?t=1253277
The Following User Says Thank You to adrianom For This Useful Post: [ View ]
30th November 2011, 01:28 AM   |  #8  
CosmicDan's Avatar
Senior Member
Flag Central Coast
Thanks Meter: 3,817
 
3,970 posts
Join Date:Joined: Jun 2009
Donate to Me
More
How is the Bin2Elf and Bin2Sin different to mkbootimg? I ask because mkbootimg gives us some more options that we don't have with the tools by the_laser e.g. specifying the kernel commandline.

EDIT: Basically I want to learn more about the differences between boot.img and kernel.sin, I've crawled XDA for days but I don't think I can piece it all together. From what I understand boot.img is for fastboot/bootloader phones which the X10 isn't, though I am trying to figure out how to convert a boot.img to kernel.sin while retaining the command-line.

Boot.img seems to have only minor differences, the header starts with ANDROID and some other text such as the kernel command-line but I can't find any plain text in kernel.sin or loader.sin so I'm not sure where I can inject/remove some bytes to make the boot.img work with flashtool. Apart from the header the only other difference is random machine code two-thirds or so down, my guess is that's were the init.rd has been strapped on the end of the kernel.

Anyway, I tried flashing a boot.img in flashtool which I built based on the way custombootimg.mk does, but the flashtool freezes when it gets to kernel, I know that's probably silly but I hope there is some more material on the web or buried in XDA about the work you and the_laser have done that I could read up on.
Last edited by CosmicDan; 30th November 2011 at 03:04 AM.
30th November 2011, 08:12 AM   |  #9  
DooMLoRD's Avatar
OP Recognized Developer
Flag Noida
Thanks Meter: 39,213
 
13,127 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by jonusc

How is the Bin2Elf and Bin2Sin different to mkbootimg? I ask because mkbootimg gives us some more options that we don't have with the tools by the_laser e.g. specifying the kernel commandline.

EDIT: Basically I want to learn more about the differences between boot.img and kernel.sin, I've crawled XDA for days but I don't think I can piece it all together. From what I understand boot.img is for fastboot/bootloader phones which the X10 isn't, though I am trying to figure out how to convert a boot.img to kernel.sin while retaining the command-line.

Boot.img seems to have only minor differences, the header starts with ANDROID and some other text such as the kernel command-line but I can't find any plain text in kernel.sin or loader.sin so I'm not sure where I can inject/remove some bytes to make the boot.img work with flashtool. Apart from the header the only other difference is random machine code two-thirds or so down, my guess is that's were the init.rd has been strapped on the end of the kernel.

Anyway, I tried flashing a boot.img in flashtool which I built based on the way custombootimg.mk does, but the flashtool freezes when it gets to kernel, I know that's probably silly but I hope there is some more material on the web or buried in XDA about the work you and the_laser have done that I could read up on.

If u just want kernel command-line u can define it in defconfig whole compiling kernel...

Refer to the_laser's thread to get more info on SIN files...

Sent from my R800i using XDA App
2nd December 2011, 04:53 AM   |  #10  
Member
Thanks Meter: 14
 
45 posts
Join Date:Joined: Oct 2011
i try change bootlog image..

it's work!! but not root...

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes