yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] abbychauhan:
Should i use the boot.img from OP or from post # 233
[Xperia Z1 Original Android Development] munjeni:
booth is working so thats your choice! Maybe better idea is to instal from post 233 since these bootmenu contain latest kexec kernel! I will move bootmenu from post 233 to the post 1
[Xperia Z1 Original Android Development] abbychauhan:
Edit - Got it.. Disregard

---------- Post added at 11:32 PM ---------- Previous post was at 10:58 PM ----------

I used the one from post 233 .. Did exactly as instructed.. Did patching and everything but when i select to boot mainrom i only see Sony Boot Logo and it stays like that only.. It dosent do anything.. Then i tried the OP one but it gives Blank screen.. Then it comes again to Boot menu..

Edit - Ok i did it again with the post 233 one.. I was little impatient.. It takes 8-9 min to get past the boot logo.. Then i got the boot animation.. My device working fine.. No network problems.. Everything working fine.. Though it will take some time to test.. But i didnt face any problem as told by [MENTION=3853774]guddu2011[/MENTION] .. I think he is having the same problem as one person recently facing on PA Thread.. It has nothing to do with Multiboot..

Anyways though i must say i was thinking its hard to do but its actually very easy to do.. Now my mainrom thing is done.. tomorrow i ll install second rom.. I have few questions also.. But i ll first do my thing then i ll ask..

Superb work... Super Duper thanks
[Xperia Z1 Original Android Development] abbychauhan:
Removed
[Xperia Z1 Original Android Development] munjeni:
You used DooMkernel for main rom? If yes than you must know ...someone allready reported about DooMkernel and big boot time! Try with another kernel!
[Xperia Z1 Original Android Development] abbychauhan:
No i used the kernal from PA only.. which was installed on my primary ROM.. I extracted it from ROM zip file.
[Xperia Z1 Original Android Development] munjeni:
PA taking 10 minutes to boot??
[Xperia Z1 Original Android Development] abbychauhan:
Yep.. Exactly 9 min. .. But time not important for me.. Its working that's all we need..

I still remember from where u have started multiboot for XZ1 and the whole process was so complicated.. And see now.. Its so easy.. Hats off to u and all the people who helped.
[Xperia Z1 Original Android Development] munjeni:
Thats not good! It must boot imediatelly! I dont know if c6902 devices only have these boot time problem or allso c6903 is afected?
[Xperia Z1 Original Android Development] abbychauhan:
I did three reboots and initial startup.. Last two boots took exactly 9 minutes..

I hope we ll get a answer soon from some C6902 or 03 users about boot time..
[Xperia Z1 Original Android Development] guddu2011:
bro, main rom has no issue with network,

second rom has it, pls try that :(
[Xperia Z1 Original Android Development] abbychauhan:
Ohh my bad.. Also which primary Rom u have? How much boot time did it took
[Xperia Z1 Original Android Development] munjeni:
Hey, maybe uuid is diferent on c6902?? Please give me output of the command:

adb shell blkid /dev/block/platform/msm_sdcc.1/by-name/system

adb shell blkid /dev/block/platform/msm_sdcc.1/by-name/userdata

adb shell blkid /dev/block/platform/msm_sdcc.1/by-name/cache

I forgot to ask Z1 users about uuid! I have used uuid from Z1C which is 57f8f4bc-abf4-655f-bf67-946fc0f9f25b so if uuid on Z1 is diferent than Z1C than we have located a bug! ;)
[Xperia Z1 Original Android Development] munjeni:
Anyone give me uuid? Command is:

adb shell blkid /dev/block/platform/msm_sdcc.1/by-name/system
[Xperia Z1 Original Android Development] munjeni:
In any way I have modified a bit multiboot.sh (auto detect partition uuid), you can downlooad new version of the bootmenu_honami.rar, hope network solved.
[Xperia Z1 Original Android Development] guddu2011:
same uuid as Z1C

edit- still no network :crying:
[Xperia Z1 Original Android Development] munjeni:
Ok, definitely something is not good with kexec on z1 since generaly there is slow boot isue! These thing hapened on my xperia-go many times ago until I fixed reset function. I will check tommorow whats going on in reset function, I am sure something is not good there. On xperia z1c everything is perfect but seems not on z1.
[Xperia Z1 Original Android Development] abbychauhan:
[MENTION=4120742]munjeni[/MENTION] I am also not getting Network on the second ROM.. [MENTION=3853774]guddu2011[/MENTION] was right..

Also u were right this much of booting time is not good as we have to do lot of reboots and every 10 min is irritating..

My second ROM is RR and its also taking 10 min to boot..

Also i want to tell u i am using z1 camera fix apk .. When i was on PA only (without multiboot) it was working fine at phone startup .. Now it crashes when Phone startup (with only mainrom and with dual rom).. And dosent work on clicking it.. And i am again facing ****ty AOSP camera It sometimes work, sometimes dosent.

Addition - Lost IMEI.. Also unable to save APN manually..
[Xperia Z1 Original Android Development] Ashray_Vk:
[MENTION=5618877]abbychauhan[/MENTION] , hey, I think not getting network is definitely because of no imei, I'll send you a zip file, try flashing it, it works for me whenever I lose my IMEI

Edit : sent you a link

Edit : sent both a link
[Xperia Z1 Original Android Development] guddu2011:
can send me too? thnx
[Xperia Z1 Original Android Development] abbychauhan:
Google Docs is asking for permission.. Plz give the permission
[Xperia Z1 Original Android Development] Ashray_Vk:
Haven't tried it with multi boot but this has worked to me whenever I lose imei, worth a try :)

And permissions have been changed. Please check now
[Xperia Z1 Original Android Development] abbychauhan:
Yahoo.. Ok i got the second rom working.. I havent try [MENTION=4919303]Ashray_Vk[/MENTION] zip file will try later on.. But as he suggested to flash another C6902 zip so i tried the fix from Crikelo ROM .. And now i have Network signal on second ROM.. [MENTION=4120742]munjeni[/MENTION] tagging you now we have working two simultaneously ROM on my XZ1
[Xperia Z1 Original Android Development] Ashray_Vk:
Good to know.
[Xperia Z1 Original Android Development] abbychauhan:
Now the time for some questions..

1. We get ROM updates now and then.. When we want to update the ROM do v have to do the patching thing again or just go to the Recovery of the Particular ROM and do the Update?

2. Are all the ROMs are getting installed in internal memory?

3. If we want to remove a ROM from Bootmenu and to uninstall it completely from our phone then what is the procedure?
[Xperia Z1 Original Android Development] munjeni:
1. If you want to install new rom as an update to the old one than you will need to rename new package to have the same name like old one because if you not rename than new menu entru and folder will be created instead of used old one! If you want new menu entry a new rom than don't rename. :) Patch rom again, reboot to the old rom recovery, install patched package. You can allso wipe data factory reset if you want clean update, but allso you can just update without wiping anything.

2. Yes

3. Thats very simple... simple flash boot.img of the your main rom, than delete bootmenu folder (your choice: if you no want to use them anymore you can delete, if you have plan to install again than no need to delete)

Now my question :) ...what was a fix for network signal? Anyone mind to share these file?
[Xperia Z1 Original Android Development] Ashray_Vk:
[MENTION=4120742]munjeni[/MENTION] , not a big concern it was actually, they just had to flash the appropriate modem files to get back them imei which resulted in getting back the network. :)
[Xperia Z1 Original Android Development] abbychauhan:
I used this one -

http://d-h.st/1fK

Edit - In Step 3 - i want to keep the bootmenu but just want to remove one of the ROM from the list.. Whats the procedure for that? As u told will remove the whole multiboot .. I dont want that.. Want to remove single rom from multi boot

---------- Post added at 08:51 PM ---------- Previous post was at 08:46 PM ----------

Now i understand not all C6902 fix are the same.. Different fix for different kernal and ROMs
[Xperia Z1 Original Android Development] munjeni:
We have a big concern here since some of the guys have no network in seccond rom, so I will be glad if some one share all things in details including link to the file used for fixing these network isue! Now I am working in fixing "long boot", noticed something interesting in kernel restart.c source code:

Probably long boot hapened since SPMI lockup is happened on PMIC chip since not proper reboot function in curent kexec part (on Z1C thats working corectly but not on Z1)! I going to try to make new asembly code for kexec, will release new version when I complete these chalenge, hope we get fast boot next time :)
[Xperia Z1 Original Android Development] munjeni:
Please do not edit your posts since I can not refresh page while I am in posting. So you guys think no IMEI cause no network??? Please check IMEI and let me know when you notice no network!!!

You want to remove an entry? Ok, procedure is very easy - simple remove folder of these rom from bootmenu folder, than open settings.ini and remove lines you no want (make sure change [rom-NUMBER lines!] )
[Xperia Z1 Original Android Development] abbychauhan:
Thats what i about to ask next.. Long boot time is irritating..
[Xperia Z1 Original Android Development] munjeni:
I have replied to your question! :) Please do not edit your post since you and me (booth) get confused by edited post!
[Xperia Z1 Original Android Development] abbychauhan:
Bad habit.. I ll keep in mind
[Xperia Z1 Original Android Development] Ashray_Vk:
If you lose imei while flashing, you definitely won't get network
[Xperia Z1 Original Android Development] abbychauhan:
I am facing Weird bugs Conform after Using multiboot -

1. How is the Camera.. Mine stopped working on both ROM..

2. Torch stopped working..

3. The battery Circle Animation When phone is charging stopped working..

4. Z1 Camera Fix App stopped working

---------- Post added at 11:33 PM ---------- Previous post was at 11:28 PM ----------

Addition - Few apps like Hangouts and Google Search unable to update on Second ROM showing Insufficient Storage Error (though i have enough space)
[Xperia Z1 Original Android Development] munjeni:
Thats not bootmenu related! Double check what you have installed and how you have that installed (probably you misssing something)!
[Xperia Z1 Original Android Development] munjeni:
Plese try new bootmenu.img, let me know if boot time is ok now!
[Xperia Z1 Original Android Development] ikenley:
[MENTION=4752917]Androguide.fr[/MENTION] seems to be good at making apps that can simplify customisation of the Z1.

I wonder if you and he worked together, if you could come up with a 1 click (via app) solution.
[Xperia Z1 Original Android Development] abbychauhan:
For people who already have Old bootmenu can just flash it via fastboot? Or all the procedure have to be done from scratch??
[Xperia Z1 Original Android Development] abbychauhan:
The partition made by Multi Boot for other ROMs is very small.. Why is that? Can it be increased? Because getting Low space Notifications and I haven't installed that many apps.
[Xperia Z1 Original Android Development] abbychauhan:
I did Dirty Flash via Fastboot.. Still boot time is 10 min
[Xperia Z1 Original Android Development] munjeni:
By default system partition is (2*zip size)+100mb for gapps, data partition is 500mb, cache partition is 50mb, you can change by self using resizefs tool, or you can do it by modify lines in multiboot.sh, here is some post regarding method for resize:

http://xdaforums.com/showpost.php?p=52881937&postcount=52

http://xdaforums.com/showpost.php?p=52887238&postcount=53
[Xperia Z1 Original Android Development] zhuoyang:
You need to modify multiboot.sh to create a bigger partition.

dd if=/dev/zero of=/data/media/0/bootmenu/$NAME/data.ext4 bs=4096 count=[COLOR="Red"][[/COLOR]128000[COLOR="red"]][/COLOR] [COLOR="Red"]<------[/COLOR]

The formula is (size (MB) * 1024 * 1024) / 4096

[MENTION=4120742]munjeni[/MENTION] , correct me if I am wrong

EDIT : looks like munjeni is 5 minute earlier than me
[Xperia Z1 Original Android Development] abbychauhan:
thanks man for the updated OP-second Post..

Also can u tell me say if im on second ROM and want to access files which were on another ROM internal memory then how we do it and vise versa via any file explorer.. because i cant access the another ROM partition from different rom.. is there a path?

---------- Post added at 10:06 PM ---------- Previous post was at 09:49 PM ----------

Also Now automated process for Stock Based ROMs is also required (Manual process very hard).. because all of us want to have Stock Based ROMs and AOSP based ROM working together..
[Xperia Z1 Original Android Development] sumedh123:
Manual process is not hard, but bit tricky ;)
[Xperia Z1 Original Android Development] munjeni:
New big progress in multiboot and bootmenu! New version soon, hope all problems solved (mobile network signal ; 10 min boot bug)... new version will contain big chagelog:

1. CM kernel as a host kernel

2. new kexec (no need anymore to append dt to zImage, new kexec use whole dt.img and propertly use right dt segment for kernel (since my kernel_dt patcher tool used last one dt segment for every device, probably some of you had no signal from bad dt segment reason!))

here is a log how kexec chose right dt:

As you see kexec now propertly detect right platform, soc, id and chose right one segment :)

3. 5 segments in settings.ini (menutitle, kernel, ramdisk, dtb, cmdline)

Today I will make a new version for test after some my tests! :)
[Xperia Z1 Original Android Development] abbychauhan:
-- Any Clue??
[Xperia Z1 Original Android Development] munjeni:
For example via adb shell:

adb shell

mount -o remount,rw /

mkdir /external_rom_partition

losetup /dev/block/loop1 /data/media/0/bootmenu/ROM_FOLDER_HERE/cache.ext4

mount -t ext4 /dev/block/loop1 /external_rom_partition

you are done. Open file explorer and go to /external_rom_partition to see your files in cache partition of your rom :)

When you finish than dont forget to umount partition and delete loop1:

umount /external_rom_partition

losetup -d /dev/block/loop1

rmdir /external_rom_partition

mount -o remount,ro /

done :)
[Xperia Z1 Original Android Development] abbychauhan:
Ohh it means for that I ll have to use computer again and again :(
[Xperia Z1 Original Android Development] munjeni:
Just for idea... you can use android terminal emulator to perform these commands ;)
[Xperia Z1 Original Android Development] abbychauhan:
Haha.. Cool
[Xperia Z1 Original Android Development] munjeni:
New bootmenu and bootmenu_honami is out! There is a lot of changes, see here -> http://xdaforums.com/showpost.php?p=53103207&postcount=297 so you will need to remove all of the your roms, all patched zips, almost everything if you want to use our new version! Hope a most of the bugs like long boot or mobile network is solved... please let me know!
[Xperia Z1 Original Android Development] abbychauhan:
Hi [MENTION=4120742]munjeni[/MENTION] ..Superb work man.. Did everything from Scratch.. Its booting immediately..

Previous reported bugs completely gone..

Getting Charging animation..

Camera Working..

Everything good..

I ll do more testing and letting u know
[Xperia Z1 Original Android Development] munjeni:
I'm glad to hear that! Hope mobile network isue is solved too?!
[Xperia Z1 Original Android Development] abbychauhan:
Yes its solved.. Installed back to back three ROMs.. Without any problem..

PA as mainrom

RR as Second

SlimKat as Third.

Que - I want to change the name of "mainrom" in boot menu, i have changed the names of rest two ROMs simply RR and SlimKat but not sure of mainrom
[Xperia Z1 Original Android Development] munjeni:
Thats simple... Open settings.ini and change menutitle of the rom!
[Xperia Z1 Original Android Development] abbychauhan:
Thanks man.. Now if u can make the Multiboot for Automated Patching of Stock Based ROM then we ll have everything.

**Fingers Crossed**

;)
[Xperia Z1 Original Android Development] Chocolatetrain:
My brain hurts, can somebody edit the script so it creats the partitions on the external sd card? /storage/sdcard1 I've been trying for ages D:

Also cheers for the update, but doomkernel still takes a while to boot for me.
[Xperia Z1 Original Android Development] ikenley:
Hi [MENTION=4120742]munjeni[/MENTION]

Is it possible to implement the app/data sharing function between roms like with RomSwitcher?

http://xdaforums.com/showthread.php?t=2417600
[Xperia Z1 Original Android Development] abbychauhan:
Stock ROMs and Stock Based ROMs is still a hard process to do (have to follow page 2 and 3) but AOSP ROMs is easy..

And I think munjeni already discussed that if we put the ROM Partitions on External SD Card then it will lag a lot
[Xperia Z1 Original Android Development] Chocolatetrain:
Well he tested it on a low class sd, maybe it's usable on a class 10
[Xperia Z1 Original Android Development] abbychauhan:
I hope so.. only munjeni can answer that.. also its good to know the procedure for keeping the ROM on External SD Card

---------- Post added at 12:58 PM ---------- Previous post was at 12:27 PM ----------

hi [MENTION=4120742]munjeni[/MENTION] I am Unable to understand for Bigger Partation -

Do i have to Change "128000" in the line dd if=/dev/zero of=/data/media/0/bootmenu/$NAME/data.ext4 bs=4096 count=128000

or

by changing line

$SIZECALC in multiboot.sh, formula (SIZE_IN_MB_YOU_WANT * 1024 * 1024) / 4095 :

Replace line : SIZECALC=$((($SIZECALC * 2) + $GAPPSSIZE))

I want 1.0 GB system partition for Other ROMs.

Edit - Can Anyone Just Give Me the Modified Lines to be replaced and Which Lines to be replaced
[Xperia Z1 Original Android Development] munjeni:
First of all do in mind calculation formula... size is calculated by simple formula:

(SIZE_IN_MB_YOU_WANT * 1024 * 1024) / 4096

So for example you want 1gb system partition, ok, calculation will be:

(1000mb * 1024 *1024) / 4096

= 256000

Than replace line:

dd if=/dev/zero of=/data/media/0/bootmenu/$NAME/system.ext4 bs=4096 count=$SIZECALC

with:

dd if=/dev/zero of=/data/media/0/bootmenu/$NAME/system.ext4 bs=4096 count=256000

For data you can do the same by calculating size you want and replacing line:

dd if=/dev/zero of=/data/media/0/bootmenu/$NAME/data.ext4 bs=4096 count=128000

with:

dd if=/dev/zero of=/data/media/0/bootmenu/$NAME/data.ext4 bs=4096 count=YOUR_CALCULATED_SIZE
[Xperia Z1 Original Android Development] munjeni:
[MENTION=3853774]guddu2011[/MENTION] did new bootmenu solved your mobile network isues?
[Xperia Z1 Original Android Development] abbychauhan:
Thanks man.. I was facing Problem Flashing Gapps of Secondary ROMs.. I think was due to low size of partition.. I ll Change the Size of Partition then again Flash the Gapps.. Leta see..

Que - After Changing the Lines.. I have to just Do a Reboot? And Partition of Secondary ROMs will be increased??
[Xperia Z1 Original Android Development] munjeni:
OMG, first of all you need to undrstand how our multiboot things working! :) you need to delete these rom folder and perform a new rom creation procedure, modified script will create you new partitions on your new folder...
[Xperia Z1 Original Android Development] abbychauhan:
Thats why i asked.. U guys are PRO man.. ;)

Patching of Main ROM have to be done also?
[Xperia Z1 Original Android Development] munjeni:
No if you have mainrom working!
[Xperia Z1 Original Android Development] guddu2011:
havn't tried new bootmenu, but it started working on older bootmenu by flashing the zip that abby suggested.

btw, having exams right now so cannot test these stuffs, sorry :|
[Xperia Z1 Original Android Development] abbychauhan:
What is with the power-off Charging? When phone is powered off and we put it to Charging then it start up Show the BootMenu and when we select a ROM then only we see the Powered-Off Charging
[Xperia Z1 Original Android Development] munjeni:
You no need to select anything since bootmenu will auto reboot to the main rom "power off charging" ;)
[Xperia Z1 Original Android Development] munjeni:
New bootmenu_honami.rar is out! Changelog:

1. stock rom and stock based roms is now supported

2. bootmenu now create double menuentry: one entry is rom and seccond one is cwm for installing these rom, so when you patch your rom always use cwm entry for installing these rom :) You no need anymore to reboot into cwm of your seccond rom, instead of pressing volme button you now need to boot into cwm of these rom trought bootmenu! Enjoy! :)
[Xperia Z1 Original Android Development] abbychauhan:
Wow man.. Awesome work as always

---------- Post added at 06:27 PM ---------- Previous post was at 06:16 PM ----------

Hi [MENTION=4120742]munjeni[/MENTION] .. Want to ask Most of the Stock Based ROMs ask to flash the FTF via flashtools in the END, if we keep Stock based ROMs as Secondary ROMs then how will it work then, it will wipe other ROMs Kernal and bootmenu kernal??
[Xperia Z1 Original Android Development] munjeni:
You can not use flashtool to make your seccond rom! If you use ftf with flashtool you will for sure overwrite your main rom and bootmenu too!
[Xperia Z1 Original Android Development] munjeni:
you can install any ftf and create flashable zip by my tool -> http://xdaforums.com/showthread.php?t=2662941
[Xperia Z1 Original Android Development] sumedh123:
Great work bro:cool:
[Xperia Z1 Original Android Development] munjeni:
New bootmenu_honami.rar is out! Changelog:

1. sorry I forgot to add something in multiboot.sh

I have tested JB stock rom but sims something is missing kexec related (kexec unable to boot jellybean kernels!)? Will try later more tests!
[Xperia Z1 Original Android Development] munjeni:
On Z1 Compact I must back to compile stock based kexec kernel since my phone unable to boot JB kernels and allso unable to boot cm recovery if I use stock kernel, but on Z1 I don't know if you are able to boot into cwm menuentry of the stock rom (probably you can)! So please test and let me know! :( On my phone model I definitely need to pair bootmenu with stock based kexec kernel. If I pair bootmenu with stock kernel on Z1 you will get again slow boot bug :( so again - please double test!
[Xperia Z1 Original Android Development] Chocolatetrain:
Cheers for the update and also the slow boot bug is exactly the same as before you swapped to cm kexek kernel, i don't understand how certain people haven't got this bug, are they c6902 users?
[Xperia Z1 Original Android Development] munjeni:
Sorry guys but I ending here since many problems related to the kexec! You need to solve next problems:

1. make working kexec with all kernels (JellyBean, KitKat and CM)

2. make a working cwm ramdisk wich will work with all kernels loaded trought kexec

When someone done that, let me know and I will give you stable bootmenu and multiboot version! By now I have locked my bootloader and definitelly stoped all my work on bootmenu on booth devices Z1 and Z1C. Bye until someone give us a working kexec, there have no sense wasting time with this! Since no devs mind to help here, I not going to play with this anymore until some one help here!
[Xperia Z1 Original Android Development] munjeni:
moved to the seccond post.
[Xperia Z1 Original Android Development] SafiXS:
That's really bad news, hope someone will help you who have the knowledge. Thanks anyway for your effort.

Gesendet von meinem C6903 mit Tapatalk