Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,290 Members 46,560 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
rsxtypes72
Old
#21  
Senior Member
Thanks Meter 26
Posts: 224
Join Date: Mar 2009
Quote:
Originally Posted by dsixda View Post
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

GOODBYE T-Mo
Hello Verizon LTE

Rocking the Samsung
Galaxy Nexus 32 GB w/ AOSP JRO03L compiled by me

Nexus 7 16 GB w/ AOSP JRO03L compiled by me
JRO03L Nexus 7

(retired)
HTC G2

Dropbox

 
3PIC
Old
#22  
Account currently disabled
Thanks Meter 24
Posts: 12
Join Date: Feb 2012
Location: 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...
 
CallMeVentus
Old
#23  
CallMeVentus's Avatar
Recognized Contributor
Thanks Meter 2,867
Posts: 9,969
Join Date: Jul 2011
Location: Singapore

 
DONATE TO ME
Quote:
Originally Posted by 3PIC View Post
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...
You can change your update-binary with Android Kitchen by dsixda

Herpderp Defy.
Current phone: Sony Xperia SP LTE (C5303), Samsung Galaxy S Advance NFC (GT-I9070P)
Here's my Twitter. Follow me, block me, suit yourself.
Old phones: Galaxy R, Motorola Defy, Samsung Galaxy Ace, Motorola Backflip

Galaxy Ace newbie guide: http://forum.xda-developers.com/show....php?t=1225493

 
"The unholy offspring of lightning and death itself"
 
gu96932
Old
#24  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Oct 2012
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
Old
#25  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Sep 2012
Quote:
Originally Posted by gu96932 View Post
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
Old
#26  
Junior Member
Thanks Meter 6
Posts: 8
Join Date: Oct 2012
Location: Ahmedabad
Wink Okay The Solution is Here

So I have found The Solution!!!!!!!!!!!!!!!!!!!!!!!!!!!!



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
The Following 5 Users Say Thank You to AamirShamma For This Useful Post: [ Click to Expand ]
 
lcfcant
Old
#27  
Member
Thanks Meter 6
Posts: 40
Join Date: Sep 2013
Quote:
Originally Posted by AamirShamma View Post
So I have found The Solution!!!!!!!!!!!!!!!!!!!!!!!!!!!!



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!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes