FORUMS

Nexus & Cookies: A More Focused Direction?

It is that time of the year again, and we are approaching the day where Android fans all over … more

LG G4 US Carrier Release Dates

The LG G4 was announced on April 29th with its Snapdragon 808 SoC, a welcomed change from its higher-end … more

Microsoft Reaches Pre-Install Agreement With New OEMs

As of late, Microsoft has been making a subtle but widespread play into the … more

Discover XDA: Discover Greater

We’ve all been there at some point in our XDA lives; we used to spend hours browsing over the … more
Post Reply Subscribe to Thread Email Thread

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

26th November 2011, 10:03 AM |#1  
DooMLoRD's Avatar
OP Recognized Developer
Flag Gurgaon
Thanks Meter: 39,445
 
More
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, 5131 views)
Last edited by DooMLoRD; 26th November 2011 at 10:05 AM.
The Following 29 Users Say Thank You to DooMLoRD For This Useful Post: [ View ]
 
 
26th November 2011, 12:48 PM |#2  
Senior Member
Flag Florianópolis
Thanks Meter: 823
 
Donate to Me
More
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, 01:03 PM |#3  
DooMLoRD's Avatar
OP Recognized Developer
Flag Gurgaon
Thanks Meter: 39,445
 
More
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, 01:12 PM |#4  
Senior Member
Flag Florianópolis
Thanks Meter: 823
 
Donate to Me
More
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, 07:15 AM |#5  
Senior Member
Flag Sydney
Thanks Meter: 95
 
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, 07:44 AM |#6  
Senior Member
Flag Bhubaneswar
Thanks Meter: 200
 
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, 12:19 PM |#7  
Senior Member
Flag Florianópolis
Thanks Meter: 823
 
Donate to Me
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

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, 12:28 AM |#8  
CosmicDan's Avatar
Senior Member
Flag Central Coast
Thanks Meter: 3,840
 
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 02:04 AM.
30th November 2011, 07:12 AM |#9  
DooMLoRD's Avatar
OP Recognized Developer
Flag Gurgaon
Thanks Meter: 39,445
 
More
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, 03:53 AM |#10  
Member
Thanks Meter: 14
 
More
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