Repack Custom ROM - Android Q&A, Help & Troubleshooting

Dears,
Kindly, I have the below questions as my device is Huawei U9510E:
1- How to repack a "Custom ROM" which contains (data, META-INF, system and boot.img) to be as "UPDATE.APP"?
2- How to unpack "UPDATE.APP" & repack it again as "UPDATE.APP"?
3- How to fix "E: failed to verify whole-file signature" without rooting or even installing CMW?
Thanks.
Best Regards,
Mulham Darwish

Related

I can not cook a rom for LG P920 with Kitchen

Hello all I tried to cook a rom with Kitchen program but I have a problem while checking the file Boot.img the program reports the following errors
Code:
Checking boot.img
Working Folder Found
Android 'magic' header not found at start of boot.img
Checking if it exists elsewhere...
Warning Android Header not found in boot.img ( unsupported format)
Kernel found at offset775040367 in boot.img
Making folder BOOT-EXTRACTED...
Extracted kernel
Error. Zimage is Emply!
Extracting ramdisk...
Error: No Ramdisk folder found!
Warning: init.rc not found in boot.img
I have tried flash the phone but the installation is aborted

[Q] CWM Status 0 in rom builded in Kitchen for mtk6575

Hello, I have a problem with my update.zip created, good'm a new member here, sorry if I posted in the wrong place, please do not fight me I'm beginner "-" I am Brazilian and I'm using Google translator, finally let the problem:
Well, I made ​​a backup of my rom s4 clone MTK6575 by recovery, put the system.ext4.tar file, extracts with the kitchen, ok, so far so good, I edited several things, zipalign etc, things got bad when I I did build the rom, is not got the Meta-Inf unique because it does not exist for clones, I have update-binary and updater-script nor was it created automatically by the Kitchen, installing the rom was created and gave the following error:
Installing: /emmc/rom.zip
Finding update package...
I:Update location: /emmc/rom.zip
Opening update package...
Installing Update...
E:Error in /emmc/rom.zip
(Status 0)
Installation aborted.
I:Can't format unknown volume: /external_sd
I:Can't partition unsafe device: /dev/block/mmcblk0p4
Click to expand...
Click to collapse
Please help me, any help is welcome, do what you ask, files, logs, etc..
Detail: My device is EMMC, I do not use external sd card.
Under the Meta-inf created by the kitchen.

[Q] Fujitsu M532 (pegatron chagall) system.img issue (custom ROM)

Hello
I'm trying to flash custom ROM for this tablet. I have made rom based on stock rom with Android Kitchen. I also received from fujitsu kernel source code, unfortunetely without make file (lol), so I can not compile it. Still, I'm using stock kernel, CWMR
Problem is that only stock ROM witch it's ORIGINAL *.img files inside works. Nothing other works - android do not boots.
I have tried in many ways and noticed folowing problems:
1. after stock ROM instalaton, I removed content of /system, and than push with adb the SAME /system folder - stops booting
2. Android Kitchen can not unpack stock system.img file
3. Ext2explorer is openig system.img, but with following error:
Code:
Partition Table Error on system.img
Invalid End of sector markerBlock size 4096, inp 8192, inodesize 256
Linux Partition found on disk 2 partition 0
Error reading Inode 0 parent inode 2.
4. The stock ROM has CUSTOM partition.
5. Flashing custom rom trought CWMR with system directory or img is not working - same result as after changing files on system parition
6. Flashing stock rom with unpacked system.img (as folder) is not workig.
This is updater-script of stock ROM:
Code:
run_program("/system/bin/mkdir", "/etc/firmware");
package_extract_file("mcuLoader","/cache/mcuLoader");
run_program("/system/bin/chmod", "777", "/cache/mcuLoader");
package_extract_file("CY8C20324_BAT_16.i2c","/etc/firmware/CY8C20324.i2c");
run_program("/cache/mcuLoader");
run_program("/system/bin/rm", "/etc/firmware/CY8C20324.i2c");
run_program("/system/bin/rm", "/cache/mcuLoader");
sleep(20);
package_extract_file("CY8C20324.i2c","/etc/firmware/CY8C20324.i2c");
package_extract_file("mcuLoader","/cache/mcuLoader");
run_program("/system/bin/chmod", "777", "/cache/mcuLoader");
run_program("/cache/mcuLoader");
unmount("/system");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
show_progress(0.500000, 0);
package_extract_file("boot.img", "/dev/block/platform/sdhci-tegra.3/by-name/LNX");
package_extract_file("system.img", "/dev/block/platform/sdhci-tegra.3/by-name/APP");
show_progress(0.200000, 0);
package_extract_file("custom.img", "/dev/block/platform/sdhci-tegra.3/by-name/CUS");
assert(nv_copy_blob_file("blob", "/staging"));
show_progress(0.100000, 0);
What is mcuLoader and *.i2c files for?
Conclusion:
Exchanging almost every file (I menaged to delete odex files and push them again with working result) on system parition prevents booting (before adb starts, so I do not know how to get any logs).
Can anyone help solve the problem?
BTW: It would be nice to create some custom ROMs for this device - It's quite popular, as it is the same tablet as Pegatron Chagall, Olivetti Olipad 3, Siragon N4 and Realpad Bunaken
Help
Hey, i have the Siragon 4N and i accidentally bricked the device and can't go to fastboot mode, can you help me with that? is there any way i can create an update.zip with the original files to flash it with the original recovery? Please Answer me
rupertst said:
Hello
I'm trying to flash custom ROM for this tablet. I have made rom based on stock rom with Android Kitchen. I also received from fujitsu kernel source code, unfortunetely without make file (lol), so I can not compile it. Still, I'm using stock kernel, CWMR
Problem is that only stock ROM witch it's ORIGINAL *.img files inside works. Nothing other works - android do not boots.
I have tried in many ways and noticed folowing problems:
1. after stock ROM instalaton, I removed content of /system, and than push with adb the SAME /system folder - stops booting
2. Android Kitchen can not unpack stock system.img file
3. Ext2explorer is openig system.img, but with following error:
Code:
Partition Table Error on system.img
Invalid End of sector markerBlock size 4096, inp 8192, inodesize 256
Linux Partition found on disk 2 partition 0
Error reading Inode 0 parent inode 2.
4. The stock ROM has CUSTOM partition.
5. Flashing custom rom trought CWMR with system directory or img is not working - same result as after changing files on system parition
6. Flashing stock rom with unpacked system.img (as folder) is not workig.
This is updater-script of stock ROM:
Code:
run_program("/system/bin/mkdir", "/etc/firmware");
package_extract_file("mcuLoader","/cache/mcuLoader");
run_program("/system/bin/chmod", "777", "/cache/mcuLoader");
package_extract_file("CY8C20324_BAT_16.i2c","/etc/firmware/CY8C20324.i2c");
run_program("/cache/mcuLoader");
run_program("/system/bin/rm", "/etc/firmware/CY8C20324.i2c");
run_program("/system/bin/rm", "/cache/mcuLoader");
sleep(20);
package_extract_file("CY8C20324.i2c","/etc/firmware/CY8C20324.i2c");
package_extract_file("mcuLoader","/cache/mcuLoader");
run_program("/system/bin/chmod", "777", "/cache/mcuLoader");
run_program("/cache/mcuLoader");
unmount("/system");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
show_progress(0.500000, 0);
package_extract_file("boot.img", "/dev/block/platform/sdhci-tegra.3/by-name/LNX");
package_extract_file("system.img", "/dev/block/platform/sdhci-tegra.3/by-name/APP");
show_progress(0.200000, 0);
package_extract_file("custom.img", "/dev/block/platform/sdhci-tegra.3/by-name/CUS");
assert(nv_copy_blob_file("blob", "/staging"));
show_progress(0.100000, 0);
What is mcuLoader and *.i2c files for?
Conclusion:
Exchanging almost every file (I menaged to delete odex files and push them again with working result) on system parition prevents booting (before adb starts, so I do not know how to get any logs).
Can anyone help solve the problem?
BTW: It would be nice to create some custom ROMs for this device - It's quite popular, as it is the same tablet as Pegatron Chagall, Olivetti Olipad 3, Siragon N4 and Realpad Bunaken
Click to expand...
Click to collapse
hey man, i just got the tablet, did you get any progress on your rom? or found any other rom for this deivce?
Need boot.img for DNS/Pegatron 110G. ICS 4.03. Franco.kernel updater fails
Hello. I need help and maybe I can somehow help You. I need to reflash DNS/Pegatron 110G, Android 4.03. It is a copy of Fujitsu STYLISTIC M532
I need kernel update- a file boot.img for this device for JB 4.11
The tested procedure of reflashing for Pegatron is to update kernel by franco.kernel updater (FKU) and then update from SD card by M532 firmware pkg with corrected 07 byte. Unfortunately FKU is no more compatible with this device, FKU old versions cannot connect to server. I need kernel file boot.img for this device - there is a good utility from 4pda.ru that also can update kernel. This utility by AlexBlast can do a lot of things trough ADB interface. A link is in attached file. Also I placed a link to nvflash drivers. Nvflash is used to flash Nvidia chipset. I think they will be usefull for You.
I made a backup and took a risk to flash M532 version 14405 without kernel update. Now it hangs after boot but ADB interface works and recovery mode works. So I must make kernel update or make a restore. I need boot.img
I need to attach file since I cannot place outside link in the post
Hi,
Does anyone have been able to cook a ROM for this tablet?

update-script help

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

Rootkernel error

Hi everyone
When I try to make a 233-based boot image with Rootkernel, I get this error.
----------------------------------------------------
>rootkernel.cmd kernel.elf boot.img
Rootkernel V5.23
- Unpacking kernel
. /booting:line 1 :syntax error :unexpected "<"
. /booting:line 1 :syntax error :unexpected ">"
Unknown boot image format
Aborting
----------------------------------------------------
Kernel.elf folder inside
I made a mistake.
EDIT...........................
Problem in operating system. Windows Xp did not work, but Windows 10 also worked.
Sorry bad English for Google translate
endelo46 said:
Hi everyone
When I try to make a 233-based boot image with Rootkernel, I get this error.
----------------------------------------------------
>rootkernel.cmd kernel.elf boot.img
Rootkernel V5.23
- Unpacking kernel
. /booting:line 1 :syntax error :unexpected "<"
. /booting:line 1 :syntax error :unexpected ">"
Unknown boot image format
Aborting
----------------------------------------------------
Kernel.elf folder inside
I made a mistake.
Sorry bad English for Google translate
Click to expand...
Click to collapse
are you trying to patch and add TWRP? If so,
there should only be one version of rootkernel 5.23 that will work with nougat, and it will be the one I halfbaked edited for 32.3.A.0.372 TWRP for temporary data only restore. rootkernel will work so long as you get the right 5.23 and only use it to patch boot.img for nougat, anything else was limited to marshmallow...
if you have the proper 5.23, make sure you're not using the fotakernel.sin to get kernel.elf

Categories

Resources