[Q] assert failed: write_raw_image("tmp/boot.img","boot")

Search This thread

rsxtypes72

Senior Member
Mar 14, 2009
224
25
Status 7 usually means you are using the wrong update-binary.

Thank you so much!!! After a lot... A LOT of failed attempts at cooking a GB rom for my G2 I finally have success!!
I created a edify_def for the g2 and I believe that solved the problem I had. I finally see what you mean yes the update-binary was wrong. I get it now!!
Thank you again!

Sent from my T-Mobile G2 using XDA App
 

3PIC

Member
Feb 28, 2012
13
24
3PIC world
hey bro i have the same problem of assert failed....can u tell me wat exactly did u do to solve ur problem....ty in advance...:)
 

gu96932

New member
Oct 11, 2012
3
0
Hi all

I'm having the same problem. I used the kitchen to modify a stock rom for the I747 and when flashing the ROM, i get the following:

assert failed: write_raw_image ("/tmp/boot.img", "/dev/block/mmcblkop7")

error in /sdcard/d2att_signed_1012.zip
(Status 7)

Any suggestions? I am new to this, so any help would be great.

Thanks
 

thonmin

New member
Sep 17, 2012
3
0
Hi all

I'm having the same problem. I used the kitchen to modify a stock rom for the I747 and when flashing the ROM, i get the following:

assert failed: write_raw_image ("/tmp/boot.img", "/dev/block/mmcblkop7")

error in /sdcard/d2att_signed_1012.zip
(Status 7)

Any suggestions? I am new to this, so any help would be great.

Thanks

me too, but I think this should be caused by a wrong boot.img.
 

AamirShamma

Member
Oct 21, 2012
8
9
Ahmedabad
Okay The Solution is Here

So I have found The Solution!!!!!!!!!!!!!!!!!!!!!!!!!!!!:cowboy:



Open the zip with winrar and find: /META-INF/com/google/android/updater-script

Open it and edit this via Notepad++ only :

assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));


To this:

assert(package_extract_file("boot.img", "/tmp/boot.img"),
ui_print("Flashing Boot.img...");
package_extract_file("boot.img", "/dev/block/mmcblk0p5");
ui_print("Kernel imaged flashed...");
ui_print(" ");
delete("/tmp/boot.img"));

And Remember if you are getting the error assert failed less_than_int(xxxxxxx, getprop("ro.build.date.utc"))); then again open in notepad++ and delete these lines. It should work just fine then!!! Hit Thanx if you like my 2 cent advise
 

lcfcant

Member
Sep 29, 2013
40
6
So I have found The Solution!!!!!!!!!!!!!!!!!!!!!!!!!!!!:cowboy:



Open the zip with winrar and find: /META-INF/com/google/android/updater-script

Open it and edit this via Notepad++ only :

assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));


To this:

assert(package_extract_file("boot.img", "/tmp/boot.img"),
ui_print("Flashing Boot.img...");
package_extract_file("boot.img", "/dev/block/mmcblk0p5");
ui_print("Kernel imaged flashed...");
ui_print(" ");
delete("/tmp/boot.img"));

And Remember if you are getting the error assert failed less_than_int(xxxxxxx, getprop("ro.build.date.utc"))); then again open in notepad++ and delete these lines. It should work just fine then!!! Hit Thanx if you like my 2 cent advise

You Sir are a Legend!
 

p605sve

Member
May 29, 2012
13
3
BUMP

Hi, okey, assert problem solved, but my Gear after successful flash stucks in Download mode :confused: any solutions for this shi* ?
 

DevelopersWork

Senior Member
Mar 16, 2016
65
17
Tadepalligudem
The same problem happened on the myTouch 4G but works with this:

package_extract_file("boot.img", "/dev/block/mmcblk0p22");

Let us know if it works...

This isn't working here is the log of the Recovery I've got
Code:
I:Switching packages (TWRP)
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:Set page: 'flash_zip'
Installing '/sdcard1/Pictures/w138_wkt_241_signed_111517_115945 - Copy.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found.
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
script aborted: assert failed: write_raw_image("/tmp/boot.img", "/dev/block/platform/sprd-sdhci.3/by-name/boot")
assert failed: write_raw_image("/tmp/boot.img", "/dev/block/platform/sprd-sdhci.3/by-name/boot")
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard1/Pictures/w138_wkt_241_signed_111517_115945 - Copy.zip'
Error flashing zip '/sdcard1/Pictures/w138_wkt_241_signed_111517_115945 - Copy.zip'
Updating partition details...
I:Unable to mount '/sdcard'
I:Actual block device: '', current file system: 'vfat'
I:Set page: 'flash_done'

After a Long break I am back for Android Custom Rom development I used to have default things as disxdas kitchen sets but now i am getting errors My bad I doesn't had backup of old projects
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Okay The Solution is Here

    So I have found The Solution!!!!!!!!!!!!!!!!!!!!!!!!!!!!:cowboy:



    Open the zip with winrar and find: /META-INF/com/google/android/updater-script

    Open it and edit this via Notepad++ only :

    assert(package_extract_file("boot.img", "/tmp/boot.img"),
    write_raw_image("/tmp/boot.img", "boot"),
    delete("/tmp/boot.img"));


    To this:

    assert(package_extract_file("boot.img", "/tmp/boot.img"),
    ui_print("Flashing Boot.img...");
    package_extract_file("boot.img", "/dev/block/mmcblk0p5");
    ui_print("Kernel imaged flashed...");
    ui_print(" ");
    delete("/tmp/boot.img"));

    And Remember if you are getting the error assert failed less_than_int(xxxxxxx, getprop("ro.build.date.utc"))); then again open in notepad++ and delete these lines. It should work just fine then!!! Hit Thanx if you like my 2 cent advise
    2
    i believe this question is asked before, but the search function is not working at the moment.

    I am using a Incredible S with S-OFF, installed with a custom recovery that confirm working with some other rom.

    i decided to make one rom my self, i setup the Kitchen enviroment, and extracted the official RUU follow the tutorial, everything goes fine.

    until i copied it to my SD card and trying to flash, i will get the following messsage

    assert failed: write_raw_image("tmp/boot.img","boot")

    can anyone help me? i had tried different setting for and make about 10 rom but all return the same message.

    thank you.

    The same problem happened on the myTouch 4G but works with this:

    package_extract_file("boot.img", "/dev/block/mmcblk0p22");

    Let us know if it works...
    1
    Or just paste it here so that it can help everyone.
    1
    For us that know little can you elaborate and what that means exactly?

    Per your previous answer I tried using an updater based on other devs work and I still get the same error on my g2.
    I just wanted to add that I do run the error check and it says the update binary fine. No errors.

    Update-binary is not the update-script.

    The update-binary file is supposed to be included with the updater-script and contains all the command implementations that are used in the script... however there are three main types of update-binary and you have to know which one to include. They are mostly differentiated by the number of parameters supported for the 'mount' command for your updater-script.