Related
I am trying to build a flashable zip that i compile from the stock system.img and boot.img files from 2.00.405.3 using dsixda's HTC Android Kitchen...
When i go to flash the rom that it creates (even if i dont mod anything else ...) i get a status 0 error..
I edited the update script so that every line could be identified so i could find the last error...
and the last print was "package_extract_dir"...
script follows:
Code:
...
ui_print("format");
format("MTD", "system");
ui_print("mount");
mount("MTD", "system", "/system");
ui_print("package_extract_dir");
package_extract_dir("system", "/system");
ui_print("symlinks");
....
The really interesting thing is that a few lines above this (as can be seen) i format the system partition and upon re-boot the stuff from the old device rom (before my flash attempt) is still on there! ...
What the heck is going on?
Thanks
Kris
Because the flyer/view doesn't use mtd partitions...it uses emmc.
The dsixda kitchen does some conversions on the updater-script that requires some device specific information about mounts. He created a definition folder where you drop device specific definitions for the common mount points.
Go into the kitchen folder > tools/edify_defs
Inside of that folder there are various device definitions. Create one for the flyer. There's also a template in there, but I didn't have much luck editing the template. I just looked at some of the newer defs and plugged in the View mount points.
Here's the one I used for the View, but I'm not sure if the mount points are the same on the Flyer. Also, I'm not sure what the boot mount point for the View is, but writing the boot doesn't seem to require the specific mount.
Code:
change_mnt=yes
param1=ext4
param2=EMMC
param1_sdcard=vfat
param2_sdcard=MTD
sys_mnt=\/dev\/block\/mmcblk0p26
cache_mnt=\/dev\/block\/mmcblk0p31
boot_mnt=???
data_mnt=\/dev\/block\/mmcblk0p30
sdcard_mnt=\/dev\/block\/mmcblk1p1
Ahh that explains it ... i looked through my procs/mounts and found the info
sys_mnt=\/dev\/block\/mmcblk0p25
cache_mnt=\/dev\/block\/mmcblk0p30
boot_mnt=???
data_mnt=\/dev\/block\/mmcblk0p29
Kris
I put in:
Code:
format("ext3", "EMMC", "/dev/block/mcblk0p25");
mount("ext3", "EMMC", "/dev/block/mcblk0p25", "/system");
This causes the status 0 error still when i copy over the files tho with package_extract_dir
Also tried ext4 ... this produces the same issue as above (status 0)
Thanks
Kris
I tried using what was listed about for the View but it doesn't work on the wifi Flyer. How do you find out what they should be? I get a Status 1 error when trying to flash.
Try cat /proc/emmc. Boot is mmcblk0p22 on the view. Thanks to IEF for the pointer
Sent from my SPH-D700 using XDA App
Hi... I am trying to cook my rom with DSIXDA cygwin
but when I Build Rom and try flashing it with CWM:
first try flashing
1. ROM I get the error "mount expects 4 args got 3
ok I know what it means...
so I copy 'mtd-update-binary' to /META-INF/com/google/android as "update-binary".
2nd try flashing
I got Error Status 0
so I copy 'emmc-update-binary' to /META-INF/com/google/android as "update-binary".
3rd try flashing
I got error status 7
try copy another file and rename it to update binary
4th try flashing
error status 7
or maybe my updater scipt is wrong
I really dont have a clue right now...
Rebuild your updater script....and if you cooking a stock rom.....
U shouldn't need to change the updater-script.....oh and if your using the kitchen....use the check for update-script errors (you need to convert edify to amend first)
Edit: and if your getting status 7....that is an issue with system/build.prop and status 0 is you didn't sign correctly
mdfaisal said:
Hi... I am trying to cook my rom with DSIXDA cygwin
but when I Build Rom and try flashing it with CWM:
first try flashing
1. ROM I get the error "mount expects 4 args got 3
ok I know what it means...
so I copy 'mtd-update-binary' to /META-INF/com/google/android as "update-binary".
..
Click to expand...
Click to collapse
I think you got the first thing itself wrong.
Btw, which device?
Checking the updater-script:
You neee to input four arguments here perhaps:
mount("MTD", "userdata", "/data");
akshaybz said:
I think you got the first thing itself wrong.
Btw, which device?
Checking the updater-script:
You neee to input four arguments here perhaps:
mount("MTD", "userdata", "/data");
Click to expand...
Click to collapse
Maybe
mount("ext4", "EMMC", "userdata", "/data");
Herpderp Defy.
Holding on to what I haven't gooooooooooooooooooot
xmc wildchild22 said:
Rebuild your updater script....and if you cooking a stock rom.....
U shouldn't need to change the updater-script.....oh and if your using the kitchen....use the check for update-script errors (you need to convert edify to amend first)
Edit: and if your getting status 7....that is an issue with system/build.prop and status 0 is you didn't sign correctly
Click to expand...
Click to collapse
Yeah I am trying to cook a stock rom... usually I used the stockrom updater script... but now I am trying to add /data/app functionality and add /etc/init.d script support... I guess my stockrom updater scrpt is no longer valid... isn't it
EmoBoiix3 said:
Maybe
mount("ext4", "EMMC", "userdata", "/data");
Herpderp Defy.
Holding on to what I haven't gooooooooooooooooooot
Click to expand...
Click to collapse
Already add it... but when I flash again, i got "mount expects 4 args got 3
and error status 7
mdfaisal said:
Yeah I am trying to cook a stock rom... usually I used the stockrom updater script... but now I am trying to add /data/app functionality and add /etc/init.d script support... I guess my stockrom updater scrpt is no longer valid... isn't it
Already add it... but when I flash again, i got "mount expects 4 args got 3
and error status 7
Click to expand...
Click to collapse
What device do you have and is it emmc or mtd?
私のEVO 3Dから送信される。
dastin1015 said:
What device do you have and is it emmc or mtd?
私のEVO 3Dから送信される。
Click to expand...
Click to collapse
LG optimus black...
in previous (that works) updater script i thinks it's an EMMC
Maybe not "userdata" , but probably "dev/block/*insert data partition number code here*"
Herpderp Defy.
guys I think I solved the problems
I change this following script:
from:
mount("MTD", "userdata", "/data");
to:
mount("ext4", "EMMC", "userdata", "/data");
and from:
mount("MTD", "system", "/system");
to
mount("ext4", "EMMC", "system", "/system");
and delete
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
I hope it works fine...
mdfaisal said:
Yeah I am trying to cook a stock rom... usually I used the stockrom updater script... but now I am trying to add /data/app functionality and add /etc/init.d script support... I guess my stockrom updater scrpt is no longer valid... isn't it
Already add it... but when I flash again, i got "mount expects 4 args got 3
and error status 7
Click to expand...
Click to collapse
Ha I got "mount expects 3 args got 2" back to the drawing board.
Sent from my powered Shooter E3D with Infection of AnthraX Jamz by wolf.
Hey Ace Users,
I am going to provide you all the guide to create your own CWM Flashable zip file.
The Best Part of this guide is that you wont need your computer to create the CWM Flashable zip file as this guide will teach you all how to create the CWM Flashable Zip file with the help of the Root Explorer App.
The things you will need for this guide are:-
1.Root Explorer App.
2.Your Ace.
3.A little patience.
So without much ado,Lets start the guide.
STEPS:-
1.Download and install the Root Explorer App.
2.Open the Root Explorer App and Navigate to the Root of your SD Card.
3.Create a Folder and name it whatever you like or whatever name you want to give to your Zip File(I will be reffering to the folder as "Main Folder" throughout this guide)
4.In the Main Folder,you will need to have Two Sub-Folders which are as "META-INF" And "system".
5.The META-INF Folder consists of various files and they should be untouched(The only file in the META-INF folder which we are going to edit is the updater-script).
6.The system folder which you put in the Main Folder contains the apps or various other mods which you want to apply to your ace.
Steps on How to Edit the updater-script:-
1.Go to the META-INF Sub-Folder in the Main Folder.
2.open the com folder which you will find in the META-INF Sub-Folder.
3.Then you will see google folder as soon as you enter "com" folder,enter the google folder,now you will see "android" folder,open it.
4.In the android folder,you wll see two files named as update-binary and updater-script.
5.Open the updater-script file by selecting it.
6.You will see various options.
7.Select the Text Editor option and then the updater-script will open in the text editor.
8.Now we need to type some code so as to have the following functions.
Editing the updater-script:-
So once the updater-script is opened in the text editor,you will need to type some code so as to have the following functions.
CODE:-
Case 1:-
To Display the information of the particular Mod when you select to flash it in CWM Recovery(It is the display you see when you flash a particular Flashable zip file. For Example:- if you are flashing beats mod then when you select to flash the zip file and when the flashing starts you see some infomation like "Beats For Ace" and when the flashing is over you can see that the display shows flashing is done and it tells to reboot phone and stuff)
CODE:-
ui_print("The Text you want to display");
For Example if you want to display "beats Mod for Ace" then you must enter the code as ui_print("Beats Mod for Ace");
NOTE:-
semi-colon and the double quotes in the above code are to be put as they are compulsary to execute the code.
Case 2:-
If You want the updater-script to mount the /system partition,then the code is:-
CODE:-
run_program("/sbin/busybox", "mount", "/system");
NOTE:-
semi-colon and double quotes are compulsary.
Case 3:-
Now we need to put the apps in the /system partition and for that we need to type the code as:-
CODE:-
package_extract_dir("system", "/system");
NOTE:-
semi-colon and double quotes are compulsary.
Case 4:-
After typing the mount /system code you will also need to unmount the /system partition and to unmount the /system partition the code is:-
CODE:-
run_program("/sbin/busybox", "unmount", "/system");
NOTE:-
Semi-colon and double quotes are compulsary.
Special Case:-
After each case we need to have a special code.
At the start of updating the updater-script,we mostly write the introduction of the mod/script etc. in the ui_print.
so before you add the name & info of the mod in the ui_print you need to write show_progress(0.500000, 0);
and after writing the name/info of the mod,you will be mostly writing the code to mount the system partition,so after writing the code to mount the system partition,you need to write show_progress(0.500000, 20)
Now once you are done writing the code to mount the system partition the next thing you will be doing is extracting the package from the system partition by writing the code for extracting the system partition contents,so after you are done writing the code for extracting the system partition contents,you need to write show_progress(0.500000, 40)
Now after this,you will be writing the code to unmount the system partition so after writing that code you need to write show_progress(0.500000, 60)
After finishing writing the code to unmount the system partition,
you will add some more lines in the ui_print as for example Done flashing mod,so after writing that lines in the ui_print you will need to write show_progress(0.500000, 80)
After that you will probably write some more lines in the ui_print to notify the user to reboot his/her phone so after you write that code you will need to write show_progress(1.000000, 0)
Basically the show_progress command indicates the progress of the installation of the mod.
Sample of the whole updater-script codes in short:-
ui_print("Battery Mod For SGA");
ui_print("|-----by XYZ-----|");
ui_print("10% starting installation");
show_progress(0.500000, 0);
ui_print("20% mounting /system");
run_program("/sbin/busybox", "mount", "/system");
show_progress(0.500000, 20);
ui_print("40% Extracting Files");
package_extract_dir("system", "/system");
show_progress(0.500000, 40);
ui_print("60% unmounting /system");
run_program("/sbin/busybox", "unmount", "/system");
show_progress(0.500000, 60);
ui_print("|---Mod Flashed Successfully---|");
show_progress(0.500000, 80);
show_progress(1.000000, 0);
ui_print("Please Reboot Your Phone");
If you don't understand the show_progress procedure then check this link:-
http://rootzwiki.com/topic/6761-show...me-flashables/
NOTE FOR CM7 USERS:-
IF THE ABOVE CODE FOR MOUNTING AND UNMOUNTING THE /SYSTEM PARTITION DOESNT WORK FOR YOU,THEN YOU CAN MANUALLY MOUNT /SYSTEM BEFORE FLASHING AND THEN MANUALLY UMMOUNT IT(IF YOU WANT TO) AFTER FLASHIMG.
NOTE:-
AFTER SAVING THE CHANGES DONE TO THE updater-script,A FILE WILL BE CREATED AS "updater-script.bak".DELETE "updater-script.bak" file.
Okay so we are almost done.
Now some information about the system Sub-folder in the Main Folder.
The system Sub-folder contains another Sub-folder(s) like:-
For example if you want to add an app's apk file then the system sub-folder will contain "app" sub-folder and that app folder contains the apk file(s) that you want to put in the system partition of the ROM.
If you want to Put Framework Mods then the system sub-folder will contain "framework" sub-folder and the "framework" sub-folder wil contain the framework Mod(mostly the Framework mods are in Framework-res.apk file.)
If you want to put libs then the subfolder in the system subfolder will be "lib" and it will contain the libs.
If you want to put bin files then the subfolder in the system subfolder will be "bin" and it will contain the bin files.
If you want to add scripts then the subfolder in the system subfolder will be "etc" subfolder and in that "etc" subfolder there will be another subfolder as "init.d" and in the init.d subfolder there you can put the scripts.
After doing all that(i.e editing the updater-script and putting the files in the subfolders in the system subfolder) go back to the directory where you created the Main Folder and in Root explorer long press the Main Folder and you will get various options.
scroll down and select "zip this folder" and after the folder is zipped you can go to /SD Card/speed software/zip and find the flashable zip there.
Here ends my guide
Download Links:-
Sample file dl link
Screenshots of guide
Good..!!Helpful for lot of people:thumbup:
side_effect said:
Good..!!Helpful for lot of people:thumbup:
Click to expand...
Click to collapse
Helpful. Thanks
Sent from my GT-P6200 using Tapatalk 2
great guide :good::good::good:
but AFAIK guides are supposed to b in general...EET will move this soon
-RDR- said:
great guide :good::good::good:
but AFAIK guides are supposed to b in general...EET will move this soon
Click to expand...
Click to collapse
No they are meant to be in Development section.
I have seen many guides in development section of many phones.
Nope. Guides should be in General Section. Guides are not developing project.
This was sent from my impulses, not my Galaxy Ace.
Moving to General
Well we will have to remember alot of things before making a zip..
It will not be so easy
Really great guide....................
Sent from my GT-S6102 using Tapatalk 2
thanks for sharing
helpful
for
newbies
.......
i will try this when i get time.
thanks for this man!!
Sent from my GT-S5830 using xda premium
Thx!!!!!
Thx a lot man !!
Depuis mon Galaxy Ace GT-S5830-SGSII v9 modifié !!!
@Ace King 34
Hahaha...i think that you have forgot of put some things in this guide, and then about the command show_progress i think that you not have understood really how works.
Sent with my Evil GT-S5570 from Hell
EVIL THOR said:
@Ace King 34
Hahaha...i think that you have forgot of put some things in this guide, and then about the command show_progress i think that you not have understood really how works.
Sent with my Evil GT-S5570 from Hell
Click to expand...
Click to collapse
You Surely don't know how to read.
Read the Special Case in the OP Carefully.
It has got the show_progress.
and btw read the OP carefully next time before posting such replies.
Ace King 34 said:
You Surely don't know how to read.
Read the Special Case in the OP Carefully.
It has got the show_progress.
and btw read the OP carefully next time before posting such replies.
Click to expand...
Click to collapse
Surely you don't know read because i know read better than you Ace Chick, at least you know what do the value 40 in the command show_progress? your guide has only some commands copied from others updater-scripts but you don't know not even what they do...pfff...
Sent with my Evil GT-S5570 from Hell
@ EVIL THOR Thanks for Reporting me the issue mate.
I have changed the OP a bit.
Have a Look.
Ace King 34 said:
@ EVIL THOR Thanks for Reporting me the issue mate.
I have changed the OP a bit.
Have a Look.
Click to expand...
Click to collapse
Yes ok but the last show_progress should be 100 not 0 if not the bar of progress show only 80% and then go back to 0%.
Sent with my Evil GT-S5570 from Hell
EVIL THOR said:
Yes ok but the last show_progress should be 100 not 0 if not the bar of progress show only 80% and then go back to 0%.
Sent with my Evil GT-S5570 from Hell
Click to expand...
Click to collapse
mate I have changed the 0.500000 to 1.00000 and then I have written 0 so it changes the progress from 0.500000 to 1.000000 and I have tested it mate
it worked flawlessly.
Hi all.
First of all, and dont know if this a kitchen bug or my problem, but here it goes.
I passed last days trying to get DSIXDA Kitchen working properly with HTC ONE X device, but i got some problems with updater-script.
I dont know if the problem comes from updater-script to update-script conversion when extracting rom, or from update-script to updater-script conversion when building the rom.
But the problem is, that the kitchen doesnt convert correctly the final updater-script, ill try to give some information about this to see if anyone can give me a clue.
PC Specs:
Windows 7 Professional X64
Java Path: C:\Program Files (x86)\Java\jdk1.6.0_20\bin
Cygwin and Java packages installed according the DSIXDA 1) Windows (2000, XP, Vista, 7) tutorial in his kitchen topic.
Rom that im using is MIUI ENG Sense based. (but i tryed with other roms like AOKP and the output updater-script keeps with the same problem.
Preparing Kitchen and testing stuff:
I setted up kitchen according DSIXDA tutorial, and it works ok.
Then to make kitchen compatible with HTC ONE X i used edify_defs file provided by theintelligent in here http://forum.xda-developers.com/showthread.php?t=1885139
Extrated rom with all kitchen defaults, (updater to update conversion, etc)
Didnt made any changes to rom (just to test this) and build the rom with kitchen defaults again (zipalign,update to updater,sign, etc)
And the problem is in here:
Original updater-script:
Code:
format("ext4", "EMMC", "/dev/block/mmcblk0p12", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
(full updater-script: http://pastebin.com/GKHJCThk)
Kitchen converted updater-script:
Code:
format("ext4", "EMMC", "/dev/block/mmcblk0p12");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system"); 0
(full updater-script: http://pastebin.com/vUdzKcm1)
The kitchen adds that '0' right there in front of mount line and doesnt add the complete string for format line.
If i flash the rom with the Kitchen updater-script i got this error:
Code:
-- Installing: /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092512_200944.zip
Finding update package...
I:Update location: /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092512_200944.zip
Opening update package...
Installing update...
line 4 col 20: syntax error, unexpected STRING, expecting $end
1 parse errors
E:Error in /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092512_200944.zip
(Status 6)
Installation aborted.
So i removed that '0' that is in front of format line but it keeps giving my an error
Code:
-- Installing: /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092612_125439_C1.zip
Finding update package...
I:Update location: /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092612_125439_C1.zip
Opening update package...
Installing update...
script aborted: format() expects 4 args, got 3
format() expects 4 args, got 3
E:Error in /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092612_125439_C1.zip
(Status 7)
Installation aborted.
(full recovery.log: http://pastebin.com/La8d1U6h)
So my solution was to replace that 2 lines from the kitchen updater-script to the original updater-script.
Now everything works ok, and no problems flashing.
So this is a kitchen problem ? edify_defs problem ? my pc problem ? my phone problem ?
I know i can solve my problem editing the updater-script before i build the rom, but this isnt supposed to happen, i think, the kitchen should convert it correctly, and automatically.
So im confused, its a kitchen problem or its my system problem ? I say this because i saw other people report cooking with sucess for HTC ONE X with DSIXDA Kitchen with no problems, so why i have this problem ? My HTC ONE X is different ?
I know i can round the problem editing mannualy the file, but my intention is to make things right, and make the kitchen work 100% to HTC ONE X.
If annyone can give me some clues and help, ill appreciate and maybe some users with my problem will appreciate to.
Thanks all
Ok!
Problem solved thanks to "backfromthestorm" hint!!
The problem is the Kitchen update to updater conversion.
The kitchen doesnt make correctly the conversion.
So the solution is:
not give any script to kitchen for conversion, remove META-INF folder from original zip and let kitchen create a fresh updater..
ruizit0 said:
Ok!
Problem solved thanks to "backfromthestorm" hint!!
The problem is the Kitchen update to updater conversion.
The kitchen doesnt make correctly the conversion.
So the solution is:
not give any script to kitchen for conversion, remove META-INF folder from original zip and let kitchen create a fresh updater..
Click to expand...
Click to collapse
delete META-INF Folder from rom.zip in original Update FOlder and then create working folder?
-Happy Feet- said:
delete META-INF Folder from rom.zip in original Update FOlder and then create working folder?
Click to expand...
Click to collapse
Really old bump here, but Im still having issues with this. Did you figure out how to make kitchen generate the proper updater script? I still get errors and have tried a million different ways, but end up with Status 0 every time in recovery.
Any luck getting it working?
Hello
I building my first rom and nov have problem
MTK6582
Backup crated with droit tools
After building rom with dsixda, always get cwm update error status 0.
Now i am confused, in working folder is update-script and after build rom is updater-script and updater binary
I try to change format and mount in updater-script but always get status 0
please what iam doin wrong? see attachment mount block, update and updater txt
And can i edit updter script in zip file with 7zip and N++ or i must change it in working folder before buiding rom?
thanks