DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Kernel Devs: Write a kernel once, and have it work on any ROM

  1. Developer
    koush's Avatar
    Member #
    49799
    Join Date
    Mar 2010
    Posts
    128
    Phone
    Enter Current Phone Model Here
    DroidForums.net Developer
    Premium Member
    #1

    Kernel Devs: Write a kernel once, and have it work on any ROM

    Here's an update.zip template that lets you flash a kernel to ANY ROM, regardless of ramdisk. How it works:

    updater-script runs and extract the boot.img from your current ROM.
    It unpacks the boot.img into kernel and ramdisk.
    It repacks newboot.img with the new kernel and the same ramdisk.
    It flashes the newly created boot image.

    If you distribute your zImage and tiwlan in this format, it will work with *any* ROM. No need to repack per ROM anymore!


    http://koush.romraid.com//motorola/sholes/anykernel.zip
  2. Master Droid
    bL33d's Avatar
    Member #
    22613
    Join Date
    Jan 2010
    Location
    illinois
    Posts
    819
    Twitter
    bL33d77
    Phone
    Galaxy Nexus
    #2
    Nice looking for diffrent kernels for diffrent rms got old.
    Galaxy nexus aokp m5 w/ Franco kernel
    iPad 16gb
    ----------------------------
    Old phones..
    Droid razr
    LG spectrum
    Thunderbolt
    Droid charge
    Droid X
    Fascinate
    og Droid
    droid eris
    iphone 3gs
  3. Master Droid
    DroidxRage's Avatar
    Member #
    5520
    Join Date
    Nov 2009
    Location
    New England - Home of Champions
    Posts
    628
    Phone
    5.0.6.2 Mod-Bekit 1.2LV-Smoked
    #3
    Damn, what else you brewing up over there Koush?
  4. Droid
    caboyzcoti's Avatar
    Member #
    30628
    Join Date
    Jan 2010
    Posts
    62
    Phone
    Moto Droid
    #4
    so we have to wait for our kernel of choice to "If you distribute your zImage and tiwlan in this format, it will work with *any* ROM" for it to work for our kernel? or what am i doing wrong all i did was boot into clockwork apply update.zip and it changed my kernel. i did this again with sprecovery with the same results, i just thot id give it a shot another way. thanks for any help you might have
  5. Developer
    koush's Avatar
    Member #
    49799
    Join Date
    Mar 2010
    Posts
    128
    Phone
    Enter Current Phone Model Here
    DroidForums.net Developer
    Premium Member
    #5
    Quote Originally Posted by caboyzcoti View Post
    so we have to wait for our kernel of choice to "If you distribute your zImage and tiwlan in this format, it will work with *any* ROM" for it to work for our kernel? or what am i doing wrong all i did was boot into clockwork apply update.zip and it changed my kernel. i did this again with sprecovery with the same results, i just thot id give it a shot another way. thanks for any help you might have
    If a kernel is distributed in this format, it will work with ANY ROM.
  6. Senior Droid
    19DroidRage84's Avatar
    Member #
    32788
    Join Date
    Jan 2010
    Location
    LC, KS
    Posts
    147
    Phone
    Motorola Droid
    #6
    Quote Originally Posted by koush View Post
    If a kernel is distributed in this format, it will work with ANY ROM.
    Is there anyway to unpack an existing boot.img to get just the kernel without the header, ramdisk, etc? I have the perl script for unpacking the boot.img but dont fully understand how to use it. Seems like the boot.img has to be flashed onto your phone?
    Motorola Droid
    Cyanogenmod 6 nightlies
    Clockwork Recovery
    cvpcs's 1.2ghz SV
  7. Developer
    koush's Avatar
    Member #
    49799
    Join Date
    Mar 2010
    Posts
    128
    Phone
    Enter Current Phone Model Here
    DroidForums.net Developer
    Premium Member
    #7
    Quote Originally Posted by 19DroidRage84 View Post
    Quote Originally Posted by koush View Post
    If a kernel is distributed in this format, it will work with ANY ROM.
    Is there anyway to unpack an existing boot.img to get just the kernel without the header, ramdisk, etc? I have the perl script for unpacking the boot.img but dont fully understand how to use it. Seems like the boot.img has to be flashed onto your phone?
    You can use that perl script to do it, or on the device, you can use the included unpackbootimg binary after you dump it using dump_image.
  8. Senior Droid
    19DroidRage84's Avatar
    Member #
    32788
    Join Date
    Jan 2010
    Location
    LC, KS
    Posts
    147
    Phone
    Motorola Droid
    #8
    Quote Originally Posted by koush View Post
    You can use that perl script to do it, or on the device, you can use the included unpackbootimg binary after you dump it using dump_image.
    What I am trying to do is use one of bekit's kernels (I dont use cyanogenmod. No offense I just never use roms. Im trying to learn as much as possible). Ive been searching and his are the only kernels that I can find that will mount the ext partitions of the sdcard as /sd-ext. But I cant use the unpackbootimg binary since my phone wont boot up with one of his boot.img's. And I dont fully understand how to use the perl scripts.
    Motorola Droid
    Cyanogenmod 6 nightlies
    Clockwork Recovery
    cvpcs's 1.2ghz SV
  9. Theme Developer
    bgill55's Avatar
    Member #
    35583
    Join Date
    Feb 2010
    Posts
    2,346
    Liked
    33 times
    Twitter
    bgill55
    Phone
    D1,DX,N1,Tbolt, Bio,10.1tab
    DroidForums.net Theme Developer
    #9
    Quote Originally Posted by koush View Post
    Here's an update.zip template that lets you flash a kernel to ANY ROM, regardless of ramdisk. How it works:

    updater-script runs and extract the boot.img from your current ROM.
    It unpacks the boot.img into kernel and ramdisk.
    It repacks newboot.img with the new kernel and the same ramdisk.
    It flashes the newly created boot image.

    If you distribute your zImage and tiwlan in this format, it will work with *any* ROM. No need to repack per ROM anymore!


    http://koush.romraid.com//motorola/sholes/anykernel.zip
    Simply Amazing!! Thank you for your work!
  10. Master Droid
    bL33d's Avatar
    Member #
    22613
    Join Date
    Jan 2010
    Location
    illinois
    Posts
    819
    Twitter
    bL33d77
    Phone
    Galaxy Nexus
    #10
    I hope p3droid starts useing this method I like his kernels.
    Galaxy nexus aokp m5 w/ Franco kernel
    iPad 16gb
    ----------------------------
    Old phones..
    Droid razr
    LG spectrum
    Thunderbolt
    Droid charge
    Droid X
    Fascinate
    og Droid
    droid eris
    iphone 3gs
Page 1 of 2 1 2 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Tun kernel module for BB.9 w/Adamz kernel
    By tkcrabtree in forum Android Roms
    Replies: 1
    Last Post: 03-20-2010, 11:27 PM
  2. OC kernel
    By alm0614 in forum Android Hacks and Help
    Replies: 11
    Last Post: 03-15-2010, 09:31 AM
  3. Which OC kernel should i use??
    By meishkov in forum Android Roms
    Replies: 4
    Last Post: 03-13-2010, 06:20 PM
  4. Which kernel
    By Razr in forum Android Hacks and Help
    Replies: 1
    Last Post: 03-11-2010, 10:29 AM
  5. How would I remove a kernel?
    By Grey Hawk in forum Android Hacks and Help
    Replies: 3
    Last Post: 03-09-2010, 02:43 PM

Search tags for this page

android extract zimage
,
extract zimage
,
extract zimage from boot.img
,
how to open a zimage
,

how to open zimage

,
how to unpack zimage
,
open zimage
,
unpack zimage
,
unpack-bootimg.pl
,

unpackbootimg

Click on a term to search our site for related topics.
Find us on Google+