1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Flashing a new kernal

Discussion in 'Android Hacks and Help' started by jrod2183, Feb 18, 2010.

  1. jrod2183
    Offline

    jrod2183 New Member

    Joined:
    Dec 30, 2009
    Messages:
    163
    Likes Received:
    0
    Trophy Points:
    0
    Hey guys, looking for a little help. I was wondering how I could flash a new kernal (in this case Adamz custom kernal) with a different rom (BB 7.5). Through these threads, I've become a little familiar with adb, but don't know the specific command lines. Any help is appreciated, thanks.
  2. BayouFlyFisher
    Offline

    BayouFlyFisher Rescue Squad

    Joined:
    Dec 10, 2009
    Messages:
    4,966
    Likes Received:
    17
    Trophy Points:
    38
    Location:
    Baton Rouge, LA
    There are basically two methods and the one you use is determined by the type of file your new kernal is available in. For both of these method reboot holding x key until the sprecovery menu comes up. Be sure to read the instructions in red so you'll know how to navigate the menu.

    Update.zip Installation Info & Instructions (No Data Loss):
    -You can upgrade from any rooted ROM that is 2.0.1
    -Be sure to have signed into your Google account before installing
    -Update (if available) all of your apps before installing
    -Download update.zip
    -Place update.zip on the root of sdcard
    -Reboot into recovery
    -Install
    -Allow update.zip installation
    -Install /sdcard/update.zip (deprecated)
    -Enjoy!

    Nandroid Backup Installation Instructions:
    -Update (if available) all of your apps before installing
    -Backup any files you wish to restore, this will wipe /data
    -Extract the files from the archive using WinRAR or a similar program
    -Place the extracted folder (the ROM) into the "nandroid" folder on your sdcard
    -Reboot into recovery mode
    -Backup/Restore
    -Advanced Nandroid Restore
    -Select Choose Backup
    -Choose the Nandroid backup you want to restore
    -Clear the selections from all backup sections EXCEPT BOOT (only "restore BOOT" should have an * by it)
    -Select "Perform restore"
    -Back out to Reboot
    -Reboot
  3. JhankG
    Offline

    JhankG New Member

    Joined:
    Nov 1, 2009
    Messages:
    3,098
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Summerfield, NC
    If you want to actually flash the kernel using adb, you don't need to do either of the above. Obviously the above suggestions are easier if you're not completely familiar with adb. If you are set on doing it this way, let me know and I'll try to help you with the commands. I'm on a Mac, so the paths are going to be different, but the actual commands will be the same.
  4. Signum
    Offline

    Signum Member

    Joined:
    Nov 26, 2009
    Messages:
    362
    Likes Received:
    17
    Trophy Points:
    18
    to flash the kernel:

    reboot into recovery
    backup/restore ->advanced nandroid backup
    check everything and then make a backup
    back out of that menu and then choose advanced nandroid restore
    choose the kernel you want to restore
    make sure boot is the only thing checked
    restore
    reboot
  5. Se7enLC
    Offline

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    0
    So your question was how to flash a kernel NOT how to flash a rom image, correct? The suggestions above are how to install a rom (update.zip or nandroid backup)

    Here's how to flash just the kernel:

    Assumptions:
    - you have root
    - you can use ADB
    - flash_image binary is installed
    - you have the kernel image you want to install on the phone already

    Steps:
    1). Boot phone into recovery
    2). run "adb shell" to get a root shell
    3). type "flash_image boot kernel.img" where kernel.img is the filename of the kernel image you want to flash

    Note: you can ONLY do this via adb in recovery. Any other way will result in an error (permissions).
  6. BayouFlyFisher
    Offline

    BayouFlyFisher Rescue Squad

    Joined:
    Dec 10, 2009
    Messages:
    4,966
    Likes Received:
    17
    Trophy Points:
    38
    Location:
    Baton Rouge, LA
    It could be done from Teminal Emulator? I don't do Kernels, only roms. But I'm curious and trying to learn. thanks.
  7. Se7enLC
    Offline

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    0
    Nope, it can't be done from Terminal Emulator. In fact, it's the only thing I've seen so far that can't be done from the Terminal Emulator (I do everything from the droid). The droid has two boot modes: boot and recovery. boot is what is used in normal operation. You can only flash boot when you are not in boot. This means running ADB from the recovery console or using an update.zip or rom.tgz file (since SPRecovery will do the flash for you from recovery).
  8. BayouFlyFisher
    Offline

    BayouFlyFisher Rescue Squad

    Joined:
    Dec 10, 2009
    Messages:
    4,966
    Likes Received:
    17
    Trophy Points:
    38
    Location:
    Baton Rouge, LA
    Well, there you go! I am learning because that made perfect sense to me.

    Thanks.
  9. thebowers
    Offline

    thebowers Premium Member Theme Developer Premium Member

    Joined:
    Nov 24, 2009
    Messages:
    2,548
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Iowa
    If u want the full process of using adb through recovery look @ Adamz instructions @ alldroid. U know where u got the kernel from. I would give the full detial but I am doing this from the droid. ;)
  10. jrod2183
    Offline

    jrod2183 New Member

    Joined:
    Dec 30, 2009
    Messages:
    163
    Likes Received:
    0
    Trophy Points:
    0
    Thanks everyone for your replies. I know that terminal emulator might be a bit easier (i flashed BB that way) but I just wanted to get a little familiar with adb - i think its a bit easier to send the commands on a reg. keyboard. Done simple stuff like pushing a boot animation and just wanted to give this a shot. Any other tips or anything would be great. thanks again
  11. jrod2183
    Offline

    jrod2183 New Member

    Joined:
    Dec 30, 2009
    Messages:
    163
    Likes Received:
    0
    Trophy Points:
    0
    JhankG, thanks for the offer. If you wouldn't mind posting the steps that would be great - I imagine a little adb familiarity will come in useful in the future with this phone
  12. Flomaster
    Offline

    Flomaster Premium Member Premium Member

    Joined:
    Jan 14, 2010
    Messages:
    1,073
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    East Texas
    SPrecovery is By far the easiest way to flash a kernel.

    create a folder in your sdcard called ockernel place your boot.ini kernel in there
    reboot into recovery
    advanced nandroid restore
    >>>select the ockernel folder
    make sure only Boot has a * next to it
    click restore
    when its done press the power button a couple times and reboot

    -=Jason=-
Search tags for this page
adb flash image kernel
,

adb flash kernel

,
adb flashing kernel
,
android flash kernel via terminal
,
command for flashing kernel via adb
,
extreme leap kernel with flash image binary
,
flash kernel terminal emulator
,
flash kernel using terminal emulator
,
flash kernel with terminal emulator
,
flash kernel.img via app
,
how to change kernel in terminal emulator
,
how to flash kernal boot.img via terminal amalutor
,
how to flash kernal using adb
,
how to flash kernel by adb
,
how to flash the kernel with boot.img using adb