[Q] assert failed: write_raw_image("tmp/boot.img","boot") - Android Q&A, Help & Troubleshooting

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.

chchia said:
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.
Click to expand...
Click to collapse
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...

You can send the "update-script" to me,then let me give a look.
My email addrress:[email protected]

Or just paste it here so that it can help everyone.

dsixda said:
Or just paste it here so that it can help everyone.
Click to expand...
Click to collapse
Well.Take it onder in the web,let me try to download it.
So,I can take a look.

dsixda said:
Or just paste it here so that it can help everyone.
Click to expand...
Click to collapse
Maybe it is this:"write_raw_image tmp/boot.img boot"

zeaxion said:
Maybe it is this:"write_raw_image tmp/boot.img boot"
Click to expand...
Click to collapse
No .... that is wrong syntax. Won't even work in an update-script. For the Incredible S you need an updater-script (not update-script). Commands are followed by parentheses, with each parameter followed by a comma, and then a semi-colon at the very end. Run the kitchen on your ROM to get the proper syntax.
Anyways, nothing can be done at this point unless the original poster provides more detail, like at least posting his updater-script.

I'm no developer but I believe it should be write_raw_image BOOT:boot.img
Correct me if I'm wrong
Sent from my Zio using XDA App

Mattix724 said:
I'm no developer but I believe it should be write_raw_image BOOT:boot.img
Correct me if I'm wrong
Sent from my Zio using XDA App
Click to expand...
Click to collapse
That's correct syntax, but it doesn't work on newer htc devices because of the new filesystem formats. Boot.img has to be copied to /tmp folder before it can be flashed to device. You have to use updater-script to accomplish that.

dsixda said:
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...
Click to expand...
Click to collapse
That's from ADB? My MT4G is stuck at:
Flashing Kernal ...
assert failed: write_raw_image("/tmp/boot.img","boot")
E:Error in /sdcard/download/virtuous_fusion-glacier-rom-v1.0.9.zip
(Status 7)
Installation aborted
Any help is greatly appreciated. Stuck on a bootscreen in a bad way

I never had any issues using
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
in my updater-script for Incredible S.

lars.oakland said:
That's from ADB? My MT4G is stuck at:
Flashing Kernal ...
assert failed: write_raw_image("/tmp/boot.img","boot")
E:Error in /sdcard/download/virtuous_fusion-glacier-rom-v1.0.9.zip
(Status 7)
Installation aborted
Any help is greatly appreciated. Stuck on a bootscreen in a bad way
Click to expand...
Click to collapse
Status 7 usually means you are using the wrong update-binary.

dsixda said:
Status 7 usually means you are using the wrong update-binary.
Click to expand...
Click to collapse
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.

chchia said:
assert failed: write_raw_image("tmp/boot.img","boot")
Click to expand...
Click to collapse
Should tmp/boot.img be /tmp/boot.img?

Mioze7Ae said:
Should tmp/boot.img be /tmp/boot.img?
Click to expand...
Click to collapse
Good catch!

rsxtypes72 said:
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.
Click to expand...
Click to collapse
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.

All I the roms I have made have both the update and updater scripts included. That's why I'm stumped. I am using the leaked gb rom for g2. Oh well. Thank you for everything.
I'm gonna try to do and root the boot.img myself. Decompile and compile.
Sent from my T-Mobile G2 using XDA App

rsxtypes72 said:
All I the roms I have made have both the update and updater scripts included. That's why I'm stumped. I am using the leaked gb rom for g2. Oh well. Thank you for everything.
I'm gonna try to do and root the boot.img myself. Decompile and compile.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
On your G2 you should have only an update-script in the ROM, or else the two other files (updater-script and update-binary), not both at the same time. The updater-script is a more advanced script than the update-script yet very similar.
The new versions of ClockworkMod only support the updater-script + update-binary however.

dsixda said:
The new versions of ClockworkMod only support the updater-script + update-binary however.
Click to expand...
Click to collapse
This is why the roms have both. I have not come across a single htc vision rom that only has an update-binary in it. They all have both
Sent from my T-Mobile G2 using XDA App
Update.
I just wanted to add that I have tried countless times to make a rom. I check that update script has no error and still I get the same error.
The weird thing is if I use a custom rom from one of the devs that does boot and I use the kitchen to go from edify to amend and then try to
convert it back later after I have made changes using the kitchen it wont boot and results in same write error.
Has anyone been able to make a bootable vision rom using the kitchen? If you have can you tell me where I can look or can you give me some answers. Yes I have checked google. No luck. Thanks
Im almost ready to give up.
I did make one rom that booted up and worked fine. Except when i went thru the steps to make the zip I removed the updater-script and update-binary created by the kitchen and replaced them with the udpater-script and update binary from one of the dev roms I use. This is the only way I have gotten a rom to flash and boot.

Just a thought. I know you said the htc vision is supported but would adding an edify_def for it help solve the problem?
Sent from my T-Mobile G2 using XDA App

Related

CWM Error (Status 0) when flashing customized ROM

I have been cooking a customized ICS ROM using dsixda's kitchen and all I done was deodex the ROM and add some other stuff like bash, nano etc. I then built and signed it. When I attempt to flash it tells me there is an error in the .zip file and displays (status 0). I am guessing I have done something wrong when building the ROM in dsixda's kitchen.
Does anyone know what a status 0 error means in CWM and how I can fix it?
Wrong update-binary
私のEVO 3Dから送信される。
Ahh right thank you!
Sent from my Nexus S using xda premium
dastin1015 said:
Wrong update-binary
私のEVO 3Dから送信される。
Click to expand...
Click to collapse
what shoukd it be update or updater
Sent from my GT-S5670 using xda premium
Mr.Oug said:
what shoukd it be update or updater
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
update-binary, update-script and updater-script are three different things.
私のEVO 3Dから送信される。
I had faced the same problem what should i do ....?
I have the same problem!
how can i solve this problem?
same here, my galaxy note is bricked
I have the same problem.. on LG 2x
find out if your device takes update-script(Amend)or updater-script(Edify)
Sent from my HTC VLE_U using Tapatalk 2
ourcumnt THIRD
How to find out if your device takes update-script(Amend)or updater-script(Edify)?? :good:
Pranjal Joshi said:
How to find out if your device takes update-script(Amend)or updater-script(Edify)?? :good:
Click to expand...
Click to collapse
Look in the Meta-inf then com>Google > android then you will see the script one the binary and the update or updater script
If you got update-script then amend
Updater-script you got edify
Sent from my PG86100 using Tapatalk 2
try to find an update-binary from another custom rom and use that one
globula_neagra said:
try to find an update-binary from another custom rom and use that one
Click to expand...
Click to collapse
please don't try that, i just used JMP xtreme's update binary file on my custom rom, and i just CEMENTED my Micromax canvas 2.
i'm also stuck at the status 0 error.
SOMEONE HELP US !!!!!!
FirmShark said:
I have been cooking a customized ICS ROM using dsixda's kitchen and all I done was deodex the ROM and add some other stuff like bash, nano etc. I then built and signed it. When I attempt to flash it tells me there is an error in the .zip file and displays (status 0). I am guessing I have done something wrong when building the ROM in dsixda's kitchen.
Does anyone know what a status 0 error means in CWM and how I can fix it?
Click to expand...
Click to collapse
Status 0 means that you have a wrong script.Put a correct script in "/META-INF/com/google/android" floder in your rom.
quadratic_function said:
Status 0 means that you have a wrong script.Put a correct script in "/META-INF/com/google/android" floder in your rom.
Click to expand...
Click to collapse
I use dsxda and when i build the rom i use updater script, the ROM was coocked by 0, from system folder and boot.img, any solutions?
The update-binary for mtd type phones from dsixda kitchen no longer run on some new mtd phones. You may try to replace the update binary with other update binary and modify the scripts to mount using busybox and the format partition command should be removed and do the format from cwmr menu.
I´ve got update-binary, update-binary.orig, updater-script, updater-script.orig and update-script
What should i do to fix the status 0 error?
thanks for help
sgt_R04CH said:
please don't try that, i just used JMP xtreme's update binary file on my custom rom, and i just CEMENTED my Micromax canvas 2.
i'm also stuck at the status 0 error.
SOMEONE HELP US !!!!!!
Click to expand...
Click to collapse
Ofc, you have to use one, from the same phone, eg: OTA UPDATE
Instalation aborted
how to solve this problem?

Converting updater scipt to update scirpt Android Kitchen

I am trying to modify a aosp compile build in the Android Ktichen but when I get to the step where i have to convert from updater-script to update-script, it gets stuck at "assert". I have allowed it to run for almost an hour now. how do i resolve this issue?
bump for help..
nexxusdev said:
I am trying to modify a aosp compile build in the Android Ktichen but when I get to the step where i have to convert from updater-script to update-script, it gets stuck at "assert". I have allowed it to run for almost an hour now. how do i resolve this issue?
Click to expand...
Click to collapse
use notepad++ to modify updater script
ICS_XD said:
use notepad++ to modify updater script
Click to expand...
Click to collapse
manually convert? thats gonna take long... anyway, is the update binary still needed after converting?
nexxusdev said:
manually convert? thats gonna take long... anyway, is the update binary still needed after converting?
Click to expand...
Click to collapse
yep
Script. It's spelled "script"!!! j/k
Look up the kitchen on here. It does that as one of the features and does it very well. I believe it was called just "kitchen". I may have the name a little off but hopefully this get you going. Also, it's main purpose is building roms, etc, but it does do the feature you need!
Sent from my Super Galaxy'd SPH-D710

Need Help with update-script

Hi friends im having trouble writing the update-script for a flashable zip with deodexed system/app & system/framework. this is my first attempt at one. could anyone tell me where im going wrong please ive been trying all day with no luck. But its not for my ray its for my j theres not many devs to help me on the j forum.
heres my zip: https://dl.dropbox.com/u/90938124/deodex_xj-signed.zip
gavster26 said:
Hi friends im having trouble writing the update-script for a flashable zip with deodexed system/app & system/framework. this is my first attempt at one. could anyone tell me where im going wrong please ive been trying all day with no luck. But its not for my ray its for my j theres not many devs to help me on the j forum.
heres my zip: https://dl.dropbox.com/u/90938124/deodex_xj-signed.zip
Click to expand...
Click to collapse
just give me the updater script. file
here it is thanks
There is no mount and unmout cmd's in the script..
Well iam on phone now...
Simple solution for u is to use any any existing mod's meta-inf folder in ur mod.
Sent from my SK17i using XDA Premium HD app
Have a look at a working updater-script and you will see a huge difference
For example you need a command like
Code:
extract_dir
More set perms and mounting/unmounting system. Please check out a "real" updater-script :good:
Sent from my Nexus 7 running Android 4.2.1
sandy7 said:
There is no mount and unmout cmd's in the script..
Well iam on phone now...
Simple solution for u is to use any any existing mod's meta-inf folder in ur mod.
Sent from my SK17i using XDA Premium HD app
Click to expand...
Click to collapse
ok i'll try thanks
mihahn said:
Have a look at a working updater-script and you will see a huge difference
For example you need a command like
Code:
extract_dir
More set perms and mounting/unmounting system. Please check out a "real" updater-script :good:
Sent from my Nexus 7 running Android 4.2.1
Click to expand...
Click to collapse
i think i'll just give up i'm no dev lol
my next attempt still cant get it right please someone help me
well here what u did wrong...updater script was a txt file...and there was no updater binary script.
so next time use Notepad++ to edit these files..
here i only fixed everything...it should work now....
http://d-h.st/Gai
sandy7 said:
well here what u did wrong...updater script was a txt file...and there was no updater binary script.
so next time use Notepad++ to edit these files..
here i only fixed everything...it should work now....
http://d-h.st/Gai
Click to expand...
Click to collapse
Thankyou so much for your efforts but its not flashing error status6 i looked it up and resigning fixes the problem but then it just aborts. i'll just forget about it i'm sure you all have better things to do than help silly nooby me lol. Thanks again.
gavster26 said:
Thankyou so much for your efforts but its not flashing error status6 i looked it up and resigning fixes the problem but then it just aborts. i'll just forget about it i'm sure you all have better things to do than help silly nooby me lol. Thanks again.
Click to expand...
Click to collapse
I think the best thread you can start to learn it: How to make a flashable zip
I started here too once a time...
Wechy
Wechy77 said:
I think the best thread you can start to learn it: How to make a flashable zip
I started here too once a time...
Wechy
Click to expand...
Click to collapse
thats where iv been trying to learn from but its not really explanatory enough for a noob. im just a factory worker lol not a dev all thought id love to be able to do all this. iv read other threds aswell but none of them said anything about the update binery either. i'm probably just not smart enough. i'll keep trying though
gavster26 said:
thats where iv been trying to learn from but its not really explanatory enough for a noob. im just a factory worker lol not a dev all thought id love to be able to do all this. iv read other threds aswell but none of them said anything about the update binery either. i'm probably just not smart enough. i'll keep trying though
Click to expand...
Click to collapse
Try download some flashable zips and view updater scripts with notepad++
This is the best way to understand how it works.
If I have some time I write a little guide
Sent from my Xperia Ray using xda premium
Wechy77 said:
Try download some flashable zips and view updater scripts with notepad++
This is the best way to understand how it works.
If I have some time I write a little guide
Sent from my Xperia Ray using xda premium
Click to expand...
Click to collapse
ok thanks. i'll study up lol. how would i remove the .txt extension on notepad++ when i save it turns into a txt file.
gavster26 said:
ok thanks. i'll study up lol. how would i remove the .txt extension on notepad++ when i save it turns into a txt file.
Click to expand...
Click to collapse
delete extension
but the best way is open one of the updater-script (download any flashable zip) and edit with notepad++
(be sure you edit with notepad++ othervise you will see status6 error when flashing)

[Q] Help!!! how to add new device in dsixda kitchen

How to add new device in dsxida kitchen?
what do you mean by that ?
we just add new rom as a base in it
in kitchen there is a folder called
original_update
copy the zip file in that folder, open kitchen and select first option of setup working folder
Sent from my GT-S5670 using xda premium
soham jambhekar said:
what do you mean by that ?
we just add new rom as a base in it
in kitchen there is a folder called
original_update
copy the zip file in that folder, open kitchen and select first option of setup working folder
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
You can't just put the zip file in original_update. Kitchen has to be configured for your device, or it will not work. I'd like to know how to do that as well.
klembo1957 said:
You can't just put the zip file in original_update. Kitchen has to be configured for your device, or it will not work. I'd like to know how to do that as well.
Click to expand...
Click to collapse
Nope, there is no such necessity
OK
iamareebjamal said:
Nope, there is no such necessity
Click to expand...
Click to collapse
OK then, if it isn't necessary to configure the kitchen for your device, then how can you make it work with your device? I am just a NOOB, let's make that perfectly clear. However, I followed the directions to the letter, and read up on the kitchen before trying it. I had no success using the kitchen to create a rom that I could successfully flash.
I thought that I would have to do something with the edify defs files first, adding my device before it would work. I just never got that far yet (I only play with this part time, when I have a chance to do so.) If I don't have to add my device, and you have some idea what I may have done wrong, please enlighten me. I obviously need the help. Thanks!
klembo1957 said:
OK then, if it isn't necessary to configure the kitchen for your device, then how can you make it work with your device? I am just a NOOB, let's make that perfectly clear. However, I followed the directions to the letter, and read up on the kitchen before trying it. I had no success using the kitchen to create a rom that I could successfully flash.
I thought that I would have to do something with the edify defs files first, adding my device before it would work. I just never got that far yet (I only play with this part time, when I have a chance to do so.) If I don't have to add my device, and you have some idea what I may have done wrong, please enlighten me. I obviously need the help. Thanks!
Click to expand...
Click to collapse
You put any custom ROM for your device in there, configure it for that file (meaning that show it the file you're working on), replace it's system folder with the stock deodexed system folder.
Now, you're ready. Do your modifications. Add features. Build. Zip
Now, the important part.
Kitchen updater-script doesn't work on our device in some case. Use any custom ROM updater-script (with permission and credit), and voila!
There is a complete guide on it in Development section too.
iamareebjamal said:
Nope, there is no such necessity
Click to expand...
Click to collapse
I have tried the kitchen with my phone before, (LG Spectrum/VS920), and the ROMS generated by it will not work. It has something to do with the "edify defs" file I believe. I read it somewhere before in these forums. If your device isn't supported, it has to be added, or at least that's what I've come to understand. If someone can point me in the right directrion (adding my phone so it is supported by the kitchen), I'd appreciate it greatly.
klembo1957 said:
I have tried the kitchen with my phone before, (LG Spectrum/VS920), and the ROMS generated by it will not work. It has something to do with the "edify defs" file I believe. I read it somewhere before in these forums. If your device isn't supported, it has to be added, or at least that's what I've come to understand. If someone can point me in the right directrion (adding my phone so it is supported by the kitchen), I'd appreciate it greatly.
Click to expand...
Click to collapse
Only thing is that it's updater-script doesn't work
You have to add yours
iamareebjamal said:
Only thing is that it's updater-script doesn't work
You have to add yours
Click to expand...
Click to collapse
That's all? Just add that and it will work? OK, I'll give it a try. Thanks.
klembo1957 said:
That's all? Just add that and it will work? OK, I'll give it a try. Thanks.
Click to expand...
Click to collapse
did it work ?

Error installing custom rom TWRP and CWM

Hei guys i've deodex my stock ROM through kitchen, but when i flash the zip file trough TWRP it say no MD5 found. I already check option and make sure no option checked about md5 verify. When i try flash again through cwm i got status 0. Anyone can help my problem
I am using 9152 btw.
I am no t sure on this as there is no TWRP for the mega 6.3..but is there not an option in TWRP to skip the md5 check..or maybe add the extension .md5 to the file and see if that will work.
Sent from my SGH-I527M using xda app-developers app
starmaster10 said:
I am no t sure on this as there is no TWRP for the mega 6.3..but is there not an option in TWRP to skip the md5 check..or maybe add the extension .md5 to the file and see if that will work.
Sent from my SGH-I527M using xda app-developers app
Click to expand...
Click to collapse
I couldnt find any option to skip verify md5 in TWRP. Im using mega 5.8, and i got TWRP from goo manager. I'll try to add md5 extension, i'll give a report.
starmaster10 said:
I am no t sure on this as there is no TWRP for the mega 6.3..but is there not an option in TWRP to skip the md5 check..or maybe add the extension .md5 to the file and see if that will work.
Sent from my SGH-I527M using xda app-developers app
Click to expand...
Click to collapse
When i read the log TWRP is already skip the md5, sorry my bad. But the problem is 'error execute updater binary'.
In the other thread someone mention to delete assert in updater script, but still no go.
jusho said:
When i read the log TWRP is already skip the md5, sorry my bad. But the problem is 'error execute updater binary'.
In the other thread someone mention to delete assert in updater script, but still no go.
Click to expand...
Click to collapse
Hmm..then I am at a lost also on this at this time.
Sent from my SGH-I527M using xda app-developers app
I've read something about updater script that miss place the mounted directory because natively kitchen doesnt support mega yet. I'll try the solution to add plugin to kitchen tomorow.
Sent from my GT-I9152 using XDA Premium 4 mobile app
starmaster10 said:
Hmm..then I am at a lost also on this at this time.
Sent from my SGH-I527M using xda app-developers app
Click to expand...
Click to collapse
Sir my problem error execute already pass with edify witch correct mount.
But my problem now it stuck at boot screen, 1st boot screen before samsung splash screen.
Her my updater script, and recovery.fstab.
Can you help me sir.
I do not know enough on this TWRP and this is for the i9152 mega 5.8 which is different to my version which is the i527m mega 6.3, and i am not very good in scripts as i really never worked with them yet..sorry but i just do not know enough on this and i would not want to give wrong advise and it turns out to make your phone worse..sorry.
starmaster10 said:
I do not know enough on this TWRP and this is for the i9152 mega 5.8 which is different to my version which is the i527m mega 6.3, and i am not very good in scripts as i really never worked with them yet..sorry but i just do not know enough on this and i would not want to give wrong advise and it turns out to make your phone worse..sorry.
Click to expand...
Click to collapse
No problem sir, i'll figure it out. I think my kernel is the problem.
jusho said:
No problem sir, i'll figure it out. I think my kernel is the problem.
Click to expand...
Click to collapse
@jusho I am also interested in cooking rom using kitchen. May I know what you inserted on the kitchen for the Galaxy Mega 5.8 compatibility file?
bongski55 said:
@jusho I am also interested in cooking rom using kitchen. May I know what you inserted on the kitchen for the Galaxy Mega 5.8 compatibility file?
Click to expand...
Click to collapse
Did you mean the edify file? I make it and name it crater as the ro.product in build prop. For the mounted directory i took from recovery.fstab but til now my working progress rom is without kernel. I dont know why if i include the kernel it alway stuck in boot screen.
jusho said:
Did you mean the edify file? I make it and name it crater as the ro.product in build prop. For the mounted directory i took from recovery.fstab but til now my working progress rom is without kernel. I dont know why if i include the kernel it alway stuck in boot screen.
Click to expand...
Click to collapse
Problem could be on the edify since our crater device is still not officially supported on the kitchen. Would you mind sharing that file here?
bongski55 said:
Problem could be on the edify since our crater device is still not officially supported on the kitchen. Would you mind sharing that file here?
Click to expand...
Click to collapse
Okay, this is my crater edify. But somehow it still doesnt work the kernel, so the solution remove boot.img from original_update folder before you set up working folder. Hope this help

Categories

Resources