how to flash a zimage

Search This thread

pseudoremora

Senior Member
Nov 28, 2009
1,214
70
please if some one knows how to flash a zimage kernel with adb shell????
To flash a zImage:

1. Place the zImage you want to flash inside your AndroidSDK\tools folder
2. Reboot your phone into FASTBOOT/bootloader mode
3. Run the following commands (from your AndroidSDK\tools PATH):
Code:
fastboot devices  -- Should pull up serial #
Code:
fastboot boot zImage -- Your phone will automatically reboot
The command above will only temporarily boot the new zImage, meaning you can test and do whatever you want, but after you reboot your phone again -- your previous zImage will be reloaded, removing the current one you were testing (Recommended method for testing, until you're sure you want to permanently flash).

If you want to make the new zImage you're trying to flash permanent, enter this command instead:
Code:
fastboot flash zimage zImage
Fastboot might hang so just turn the power off on your Evo then put it back into “fastboot” mode by pressing on the Power button WHILE holding down the Volume down button. Then press Power button once more to enter “fastboot” mode. You should see the image flashing now. Just reboot after that.
 
Last edited:

_MetalHead_

Senior Member
Jun 30, 2010
6,763
2,747
Portland
I'm trying to flash a zImage and I first got this error with the 0.97 bootloader

Code:
writing 'zImage'... FAILED (remote: not allowed)

And with the eng bootloader the error says

Code:
writing 'zImage'... FAILED (remote: unknown fail)

Anybody have any ideas to fix this? I searched for a while and turned up nothing.
 

dkdude36

Senior Member
Aug 5, 2010
3,924
705
los angeles
do you have eng .76 bootloader? it is the one needed for clockworkmod. also, instead of the second zimage, type the name of your file. are you on a mac or a pc? if you are on a mac, you will need the mac fastboot file. pm me if you need it.
 

_MetalHead_

Senior Member
Jun 30, 2010
6,763
2,747
Portland
do you have eng .76 bootloader? it is the one needed for clockworkmod. also, instead of the second zimage, type the name of your file. are you on a mac or a pc? if you are on a mac, you will need the mac fastboot file. pm me if you need it.

I flashed the eng bootloader and that's when I started getting the "remote: unknown fail" error when trying to flashe the zimage.

The file IS named zImage so that's right.

Plot thickens- now it will only boot into fastboot. I tried restoring my nandroid and it will still only boot into fastboot. I can get into the bootloader and recovery no problem but the phone reboots into fastboot every time.

I tried to flash a stock PC36IMG file and during the install process next to boot it says Fail-PU.

Now it says "Partition update fail!"

Please tell me I didn't just brick my phone.

EDIT: Ok, I flashed the PC36IMG file again and now it's booting again. My question is this- is the kernel stored on the boot partition? Would wiping the boot partiton and then flashing the zImage work? What commands would I use to do that?
 
Last edited:

Murakuchi

Member
Dec 9, 2012
27
7
Replay

****tinypic****/r/2q9ifir/7

dont know what to do...

I am a ubuntu user,
but you need root permissions,
Try what you get when you type : fastboot devices
When you get an error with no permissions. Get root acces (in ubuntu sudo -s)
try export the fastboot directory path and run fastboot devices again.
Then when that is working, try your thing again. There will be no errors
 
  • Like
Reactions: copperdawgnc

Evilone69tmg

Senior Member
Jan 8, 2012
565
423
Chicago
I am a ubuntu user,
but you need root permissions,
Try what you get when you type : fastboot devices
When you get an error with no permissions. Get root acces (in ubuntu sudo -s)
try export the fastboot directory path and run fastboot devices again.
Then when that is working, try your thing again. There will be no errors

I'm pretty sure he figured this out already as his question is close to 2 years old. :rolleyes:
 
  • Like
Reactions: HipKat

spencerjang

Member
Apr 23, 2014
22
0
Seoul
haha :p bless him he actually thought he was helping rofl hehe :D xx

Hello, another post added to a year old thread.

I am getting trouble trying to flash a custom compiled HTC amaze x715e. (unbranded, S-off, unlocked, SuperCID)
I cross-compiled the kernel source and now have the zImage in my /arch/arm/boot folder.

fastboot flash zimage zImage
results in 'FAILED (remote: not allowed)'

fastboot boot zImage
results in 'FAILED (remote: reproduce boot image with on-flash ramdisk error)'

How am I suppose to flash this?
Is there a thread for this?

Thanks in advance.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    please if some one knows how to flash a zimage kernel with adb shell????
    To flash a zImage:

    1. Place the zImage you want to flash inside your AndroidSDK\tools folder
    2. Reboot your phone into FASTBOOT/bootloader mode
    3. Run the following commands (from your AndroidSDK\tools PATH):
    Code:
    fastboot devices  -- Should pull up serial #
    Code:
    fastboot boot zImage -- Your phone will automatically reboot
    The command above will only temporarily boot the new zImage, meaning you can test and do whatever you want, but after you reboot your phone again -- your previous zImage will be reloaded, removing the current one you were testing (Recommended method for testing, until you're sure you want to permanently flash).

    If you want to make the new zImage you're trying to flash permanent, enter this command instead:
    Code:
    fastboot flash zimage zImage
    Fastboot might hang so just turn the power off on your Evo then put it back into “fastboot” mode by pressing on the Power button WHILE holding down the Volume down button. Then press Power button once more to enter “fastboot” mode. You should see the image flashing now. Just reboot after that.
    2
    I'm pretty sure he figured this out already as his question is close to 2 years old. :rolleyes:

    +1 lolz
    1
    please if some one knows how to flash a zimage kernel with adb shell????
    1
    please if some one knows how to flash a zimage kernel with adb shell????

    You can't do it with adb. The only way is to use fastboot from the android sdk (same folder that adb is located in) and use:

    Code:
    fastboot flash zimage zImage (where the second zImage is the filename)
    1
    Replay

    ****tinypic****/r/2q9ifir/7

    dont know what to do...

    I am a ubuntu user,
    but you need root permissions,
    Try what you get when you type : fastboot devices
    When you get an error with no permissions. Get root acces (in ubuntu sudo -s)
    try export the fastboot directory path and run fastboot devices again.
    Then when that is working, try your thing again. There will be no errors