yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] AGONTUK:
I was just writing in my guide thread that I'm 100% sure you'll make it work. And there you are :D:D

Just to confirm. I have to do these while in boot menu, right ? I mean first I create system partition with device powered on and then reboot to boot menu and perform these:

adb shell
losetup /dev/block/loop1 /sdcard/your_folder/system.ext4
##### for system partition#####
blkid /dev/block/mmcblk0p10
mke2fs -T ext4 -O has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -U 00000-abf4-655f-bf67-345345345345 -I 256 /dev/block/loop1
##################
make_ext4fs /dev/block/loop1

e2fsck -f -y /dev/block/loop1
#### only for data & cache #####
tune2fs -o journal_data_writeback /dev/block/loop1
############
losetup -d /dev/block/loop1

umount /sdcard

exit
adb reboot
[Sony Xperia P, U, Sola, Go] munjeni:
No need make_ext4fs !

I'm not sure if all of these tools exist in android, so you can do all from boot menu.
[Sony Xperia P, U, Sola, Go] AGONTUK:
It isn't that bad, right :(? Cause I have already done this step. And yes, this is not present in bin folder.
[Sony Xperia P, U, Sola, Go] Patrol619:
What if I want to boot stock Gingerbread as my second ROM? I need to apply kexec patch to gingerbread's stock kernel and then do everything like [MENTION=5138693]NoobCoder[/MENTION] explained in his tutorial?

Or is it not possible by now?

Xperia sola@Tapatalk 2
[Sony Xperia P, U, Sola, Go] AGONTUK:
Yes it's possible if only the kernel has kexec patch. But I think no one will patch the stock kernel. Better wait for custom kernels' until they are patched :)
[Sony Xperia P, U, Sola, Go] AGONTUK:
[MENTION=4120742]munjeni[/MENTION], bro if I have a kexec patched kernel (elf based) I need to extract it with flashtool. Flashtool gives me back ramdisk and 2 other files with .image & .3 extension. Should I just rename the kernel.elf.image to zImage ? If yes, then what about the kenel.elf.3 file ?

Also can't we use the cwm touch recovery for all roms? I have an idea. We can have an extra option in cwm to "choose rom to mount" that will list all the roms we have and mount the necessary partition according to selection. But how can it find out where the rom partitions are ? Well we can make another setting.ini file that will contain the system.ext4,data.ext4,cache.ext4 location in sdcard for all roms.

It's just an idea. Is it possible to do this way ? :)
[Sony Xperia P, U, Sola, Go] munjeni:
1. you can extract kernel.elf with my tool! But allso you can extract them with flashtool! Yes, simple rename to zImage.

2. not needed because every rom for Xperia have builtin recovery so we no need to mess with another recoveries

Only maybe I will improve bootmenu, for example an submenu for partitions creation...etc, but allso maybe something more, have no good ideas by now :)
[Sony Xperia P, U, Sola, Go] AGONTUK:
seems like a good idea :), but then you have to add an input option so that user can specify the size of partition. Lots of coding for an submenu, right ? ;)
[Sony Xperia P, U, Sola, Go] munjeni:
No! These thing will be simple menu chose(cache partition ->5,10,15,20,50,100,150,200,300,400...) )data partition... system partition... blabla :)

Maybe will create full touch driven boot menu based on twrp recovery (have keyboard and inputs :)), not know by now, everything is maybe :D
[Sony Xperia P, U, Sola, Go] munjeni:
Will resize my mmc system,data and cache partition to 5mb and use remaining space for internal sdcard, it will give me a lot of more free spaces and allso will delete a lot of unused spaces from standard system,data and cache partition, so will use only boot menu driven roms :p By now multibooting miui, cm10 and ex.se, no more reinstallings, wipings ...etc, I'm very satisfied :)
[Sony Xperia P, U, Sola, Go] AGONTUK:
[MENTION=4120742]munjeni[/MENTION], can you look at this screenshot? I have also many unused space. how can I use them ? Also in updater-script for rom.zip, there's a line mount("ext4", "emmc", "/dev/block/loop1", "/system"). Do our system.ext4 has emmc filetype or we need to change it ?

btw, congrats on your 10000 thanks meter :D
[Sony Xperia P, U, Sola, Go] kelalitillo:
I´m not a expert, but I think you should open cmd as administrator :P

And I see you´re using Windows 8.1

Well, me too, jeje. I just wanna say that if you are not able to use the space, don´t fight so much, and wait for final version of Windows 8.1, because maybe it´s a problem with the S.O.

Cheers :)
[Sony Xperia P, U, Sola, Go] AGONTUK:
I didn't understand what you wrote. What's it got to do with windows version? These are spaces in my phone, not windows. Also I rarely use cmd as administrator (only if it's a must).
[Sony Xperia P, U, Sola, Go] kelalitillo:
I mean that as in your screenshot it says permisson denied, that it maybe because you did not open cmd as admin and maybe you need it and that if it does not work, could be because of Windows 8.1 (because it´s still, a preview), jeje.

But I see there are no problems, jeje.

Sorry :(

Bye
[Sony Xperia P, U, Sola, Go] AGONTUK:
ohh, ok :). Permission denied cause i didn't enter su. That's why i provided two screenshots.with and without su.
[Sony Xperia P, U, Sola, Go] kelalitillo:
ah, jeje, ok

Bye :)
[Sony Xperia P, U, Sola, Go] munjeni:
FS TYPE = ext4 in booth partitions!

Please give me output of command: fdisk /dev/block/mmcblk0

enter "p" command to get list of all partitions

than enter "q" to exit from fdisk

strange thing is Xperia P have only 3 GB internal sdcard?
[Sony Xperia P, U, Sola, Go] AGONTUK:
here is the screenshot. Also XU has 3.98GB internal sdcard. But here it's showing 3GB, i don't know why.

About fs type, so we don't have to change "emmc" ?
[Sony Xperia P, U, Sola, Go] munjeni:
Seems you played with your internal memory??? I can see xperia go and xperia p have the same internal storage (emmc) but something is broken in your phone and have lowered last partition?

See how thats look on my go:

Red line: last block of internal sdcard (mmcblk0p14) on my phone! But I can see on your phone its 4173824 !!! But if you analyse booth go <-> p you can see we have booth indentic mmc chip inside phone (7818 MB, 7818182656 bytes

)! I think you have something bad in your internal memory (emmc :))! Can some one confirm???
[Sony Xperia P, U, Sola, Go] DevSwift1:
nope I also have 4173824
[Sony Xperia P, U, Sola, Go] AGONTUK:
bro, you're giving me an heart attack. Well, in settings-->apps it shows my internal storage is 3.98GB. Also ES file explorer shows it too. Now, 3.98*1024*1024 = 4173332. So I think my internal sdcard is ok :)

Also yours is bigger than mine probably because your increased your internal storage to 5.38GB. You said it earlier;)

Now bro, pls tell me about these "partition doesn't end in cylinder boundary" thing. is this bad ? :confused:

[MENTION=4318865]DevSwift1[/MENTION], bro I have an off-topic question. In stock jb rom we get illumination in music,album by illumination receiver. So can't this be done for softkey too? I mean they are related, right ?
[Sony Xperia P, U, Sola, Go] DevSwift1:
don't worry I also have this "partition doesn't end in cylinder boundary"
[Sony Xperia P, U, Sola, Go] AGONTUK:
thnx bro. wait another 16 minutes & you'll get thnx :p. About the illumination thing in previous post, can you tell me ?
[Sony Xperia P, U, Sola, Go] munjeni:
No mate, I mean about last block of the mmc ! Thats allways "last block" in my mmc whatewer I created custom sizes or not created custom sizes !

Last block on my mmc is 6134136 which mean memory range is 0 to 6134136 blocks but in xperia P its 0 to 4173332 blocks ! Don't know why its diferent on P, seems hiden space ??? You can see we have the same mmc chip with absolutely the same number of blocks and cilinders!!! Seems thats bootloader related definition for last block, or maybe these hiden space is used for something related to hardware. Realy strange!
[Sony Xperia P, U, Sola, Go] munjeni:
Please give me again output of fdisk command but write "v" !

My mmc:

Maybe you have a lot more unalocated sectors?
[Sony Xperia P, U, Sola, Go] AGONTUK:
here's the screenshot. Looks like I have less unallocated sectors than yours :p

Also maybe you didn't notice it yet, I have XU not XP :)
[Sony Xperia P, U, Sola, Go] munjeni:
Ok, so definitelly thats last block for xperia u. Seems blocks after these block is hiden or at least used for something for example some hardware needs :)
[Sony Xperia P, U, Sola, Go] AGONTUK:
[MENTION=4120742]munjeni[/MENTION], I just flashed stock JB in primary rom and after that flashed your modules. But wifi isn't working. I noticed that there are another folder inside /system/lib/modules named 3.0.8+. Inside it there are folders like arm,drivers,net and they contain also these modules. So do I need to replace them too ?

EDIT: replaced them too but same result. Wifi isn't working. Can you look at the screenshots? Are this folder interfering with modules or I'm doing something wrong ?
[Sony Xperia P, U, Sola, Go] mohammadagha:
I have this problem on main stock JB rom too.
[Sony Xperia P, U, Sola, Go] dotafan:
Wifi works for me on JB Stock ROM. I am using DevSwift's v4 Stock ROM as primary ROM and replacing modules worked for me.

I do not have a folder named kernel in my modules directory [MENTION=5138693]NoobCoder[/MENTION]
[Sony Xperia P, U, Sola, Go] munjeni:
Delete everything from /system/lib/modules and than copy modules from my archive, than reboot! If you not reboot than wifi will not work, so reboot!

Edit:

replace allso /system/etc/wifi/install_wlan_core.sh with one from attachment, give 755 permission to these file (chmod 755 /system/etc/wifi/install_wlan_core.sh), reboot!
[Sony Xperia P, U, Sola, Go] AGONTUK:
not working :crying:. I cleared cache, dalvik cache and data just in case, deleted everything then copy your modules in lib folder and install_wlan_core.sh to wifi folder with perm 755 and rebooted. Still no luck. BTW, I'm using stock jb v7 by kantry123. I'm uploading the folder that's inside my modules folder. Take a look if you have time.
[Sony Xperia P, U, Sola, Go] munjeni:
Sory man, my wrong, gaved you sh file from stock rom, replace with one from new attacment and it will work :)

3.0.8+ which you atached is stock kernel modules and its working only with stock kernel, simple delete every file/folder from /system/lib/modules and put all .ko files from my cwm.rar to these /system/lib/modules folder!
[Sony Xperia P, U, Sola, Go] AGONTUK:
failed again :(. I think this has something to do with this rom. Devswift1's rom works good in these modules. I guess I have to download that rom. If anything pops up in your mind as to why this is happening, please tell me bro :)
[Sony Xperia P, U, Sola, Go] DaniPhii:
I'm giving this a try!

Same issue over here... D:

I'm using [MENTION=4166848]DevSwift[/MENTION]'s stock Jelly Bean V3, but I guess it should work as V4 as well.

May it be happening because of Phantom's initrd.gz as it is the one I'm using (v. 1.1.2 btw)?

Should I use another one like [MENTION=4166848]DevSwift[/MENTION]'s kernel or your latest kernel, [MENTION=4120742]munjeni[/MENTION]?

What can I do? DDD:
[Sony Xperia P, U, Sola, Go] DaniPhii:
But I'm only using initrd.gz from Phantom kernel, not zImage. I'm using your zImage included in your files. Do I have to patch initrd.gz then to make WiFi work out?

EDIT:

Ok, [MENTION=4120742]munjeni[/MENTION], [MENTION=5138693]NoobCoder[/MENTION], this was the problem:

I used your latest kernel and now it's solved. Now I have WiFi working! :D

Thanks a million for your brilliant work! :)
[Sony Xperia P, U, Sola, Go] AGONTUK:
Great!!! :D. BTW, how did u find the new kernel link? Did munjeni post it somewhere?
[Sony Xperia P, U, Sola, Go] DaniPhii:
He uploaded it a time ago, yeah! :D

I'm gonna install CM 10.1 as second ROM following your great tutorial! I've almost finished!
[Sony Xperia P, U, Sola, Go] AGONTUK:
[MENTION=4120742]munjeni[/MENTION] bro, now that we can boot rom from sdcard, can you show us how you repartitioned your emmc? Our phone storage is 2GB and I rarely use 600MB at max. It would be great if 1GB can be transferred to sdcard :)
[Sony Xperia P, U, Sola, Go] munjeni:
Method is very dangerous so I not going to write tut!
[Sony Xperia P, U, Sola, Go] bibhu059:
Means is it possible to make 4gb storage to 5gb!?
[Sony Xperia P, U, Sola, Go] DevSwift1:
You do not have to be afraid:) everyone doing it at own risk
[Sony Xperia P, U, Sola, Go] AGONTUK:
yes it is. But it has a chance to brick your device

+1

But didn't you say if we delete block > 10 then there is no problem? Well, you know better than us. So if you can find a way to convince yourself that it is safe to do then please tell us ;). It would be of great help :fingers-crossed:
[Sony Xperia P, U, Sola, Go] bibhu059:
Brick means soft or hard??
[Sony Xperia P, U, Sola, Go] AGONTUK:
hard brick of course. Otherwise munjeni would have shared it already.
[Sony Xperia P, U, Sola, Go] bibhu059:
OMG..then it would be better to stay away from it
[Sony Xperia P, U, Sola, Go] munjeni:
For these things you need calculator, some small skills with fdisk, you need to know what are you doing, hard brick guaranted if you do something wrong! :)

Just info how I done them. Main tool is fdisk. You need to delete partitions 14 than 13 than 12 than 11 than 10 than you need to make new partitions (extended only - mean no primary!) with size of your needs, than you need to change type of them 4 x ext4, 1 x vfat, than make fs to all of new partitions, and finally command "w" (write changes to disk). You need to be very carefull or hard brick guranted! I am not responsible for anything, everything you doing on your own risk! If you make something bad to your partitions your device maybe will never boot! :) Be carefull with last block end - new block start...etc because if you write for example to an low level firmware block, you will get for sure something bad in your phone! Happy playing with your partitions and good luck :D
[Sony Xperia P, U, Sola, Go] bibhu059:
Is it good for Xperia u to increase its internal memory?
[Sony Xperia P, U, Sola, Go] munjeni:
You can not increase internal memory! You can only change partitions sizes! For example you can decrease system,data,cache to minimal than increase internal sdcard with remaining space! For example I increased internal sdcard for about 1GB
[Sony Xperia P, U, Sola, Go] AGONTUK:
bro, without your code sample this looks like greek language to me :silly:
[Sony Xperia P, U, Sola, Go] bibhu059:
So better give a complete tutorial about this..and don't give half of the coding and ìf possible pls provide the screenshots with coding because it's a risk work.
[Sony Xperia P, U, Sola, Go] munjeni:
Ok, will provide you more info next time when I start partitioning again my phone.
[Sony Xperia P, U, Sola, Go] Anthrax:
Finally got time to experiment this on my SOLA.....

Just one question to [MENTION=4120742]munjeni[/MENTION]......

the recovery img for SOLA need to be flashed for getting the boot menu right? USED the recover.img and flastbooted..... :p

also the cmdline which is to be added that i will get from the kernel dump from my current ROM......... is this right?????

UPDATE:

the menu appeared very fine and was working....:cowboy::cowboy::victory::victory: booted to Recovery but was unable to boot into primary rom..... it said something went wrong check logs.... where is the logs generated if any one can help.......:confused::confused::confused:

you guys must agree that this is the one of the best thing that we have got for our devices all because of [MENTION=4120742]munjeni[/MENTION].....and its a great news to see these (full JB and dual boot) things working..... I would like to request you guys to vote this thread as a news worthy thread.....:angel::angel:
[Sony Xperia P, U, Sola, Go] AGONTUK:
check your bootmenu folders. you can't use space while creating folder otherwise bootmenu will show error like this.
[Sony Xperia P, U, Sola, Go] Anthrax:
Checked but its without spaces.... i.e 1st is JellyBean and other 2nd is recovery........
[Sony Xperia P, U, Sola, Go] AGONTUK:
Then maybe there are some typing mistakes. I'm pretty sure settings.ini is the problem. Please check the full code again :)
[Sony Xperia P, U, Sola, Go] Anthrax:
Ok now its booted...... and it was surely the issue with the settings file where I mentioned a different name instead of JellyBean to StockJB.... :p

Will work with another part of your tutorial..... thanks to you and obviously munjeni which is of course no doubt....... :cheers:

One question.... when I will again get the menu for selecting????? after reboot or after power off and on????
[Sony Xperia P, U, Sola, Go] AGONTUK:
both times.
[Sony Xperia P, U, Sola, Go] munjeni:
What you think about ZL ??? ++Its oficially Cyanogenmod suported !!!:eek: -> http://xdaforums.com/showthread.php?t=2234073
[Sony Xperia P, U, Sola, Go] AGONTUK:
Bro before you buy this, let me warn you "DO NOT SELL YOUR XGO" or we'll be doomed :p

Just kidiing. Seems like a good device.
[Sony Xperia P, U, Sola, Go] DaniPhii:
I was wondering if this is possible, [MENTION=4120742]munjeni[/MENTION]…

Can I use loop4, loop5 & loop6 to create three partitions more and boot a third ROM?
[Sony Xperia P, U, Sola, Go] Anthrax:
I guess so... just try it out and if you follow the instruction you will get it to boot......
[Sony Xperia P, U, Sola, Go] Little Zed:
Bro. Help me boot second ROM. The recovery can't mount cache. Zips got error 6. I edited well. What is the problem? loop are going well and when I cd to system via second ROM's recovery and type ls and nothing was shown (which is successfully mounted as /system with loop1) but I can't flash ROM :(
[Sony Xperia P, U, Sola, Go] Garcia98:
Mujeni, can you make a kernel with kexec patch for ICS, maybe an update of this http://xdaforums.com/showthread.php?t=1934093 ?

Thank you very much for your awesome work, and sorry if anybody has already asked for this :D
[Sony Xperia P, U, Sola, Go] DevSwift1:
You can find ICS kernel with kexec support here http://xdaforums.com/showthread.php?t=2427295
[Sony Xperia P, U, Sola, Go] bibhu059:
now using boot_menu.img provided by munjeni we can also boot ics roms using the zimage you have provide??
[Sony Xperia P, U, Sola, Go] DevSwift1:
Yep:)
[Sony Xperia P, U, Sola, Go] munjeni:
LOOP is not prtition! :) You no need 5 loops, you need only 3 loop devices for mounting data,system and cache to them! If you need more partitions simple read tutorial how to create them! :good:

Reboot to recovery and format cache, its happened to me sometimes when I hard reboot my device, got cache corupted
[Sony Xperia P, U, Sola, Go] ale467:
I have this problem too. But I can't format cache! Got error!
[Sony Xperia P, U, Sola, Go] DaniPhii:
I meant "mount", not "create", hahaha, I got finger-tied (silly of me). xD

I know we only need 3 loop devices, I wanted to ask if we can use loop4, loop5 & loop6 to mount another three partitions. I mean... I have already got 3 partitions that I mount in loop1, loop2 & loop3 to boot one ROM, but I want to boot another one that I want to install in another 3 partitions.

And this all that I'm writing is just BLAAABLABLABLA... LOL!!!

I edited ramdisk correctly to boot that ROM, but I can't boot it mounting partitions in loop4, loop5 & loop6 blocks, I got bootloop (so ironic, haha). What can be happening?

I thank you a million, because of your work I'm learning a lot, I really appreciate that. :)
[Sony Xperia P, U, Sola, Go] munjeni:
Seems you missing something? Double check every fstab file and every modifid files! Yes, you can use every loop device which exist on your dev folder!
[Sony Xperia P, U, Sola, Go] munjeni:
You missing mate something definitelly! There is few posible things:

- boot menu settings.ini (mising something)

- rc files modifications (missing something)

- fstab files (missing something)

- corupted cache.ext4 partition

If you got error in recovery than paste your recovery log file (you can find them in /cache/recovery folder) !
[Sony Xperia P, U, Sola, Go] ale467:
Solved! ;)

Inviato dal mio ST25i con Tapatalk 2
[Sony Xperia P, U, Sola, Go] Little Zed:
Question: If I booted some OS in my storage, it can harm to my storage? They say swapping is extremely harm to sdcards and internal storage so I just want to know as some knowledge

Sent from my Xperia U using secondary ROM (xMIUI) :P
[Sony Xperia P, U, Sola, Go] dotafan:
Swapping is harmful because files are continuously written to and off. Sdcard is a ROM and cannot be used as RAM. Each device has a limit as to the number of times that it can be written to and from. For RAM, this number is extremely high but for a ROM it is a significantly lower value in comparison. When you boot a Rom from Sdcard, you aren't using it as RAM unless ofc you reboot a hundred times a day i think. So it is not swapping and you shouldn't encounter problems :good:
[Sony Xperia P, U, Sola, Go] Little Zed:
Wow!! That was nice information! Thank you :) So I can boot well now. I was just thinking about that and you clear my mind ;)
[Sony Xperia P, U, Sola, Go] bibhu059:
[MENTION=4120742]munjeni[/MENTION] :this is my recovery log..could you tell me what is the problem..i cant mount anything and 2nd rom is also not installing

Edit:problem solved
[Sony Xperia P, U, Sola, Go] Little Zed:
bro munjeni, after I deleted all partitions from sdcard, I can't able to losetup to loop2 and 3 anymore. Why?
[Sony Xperia P, U, Sola, Go] dotafan:
How can you? There are no partitions to loop!

Winter is Coming
[Sony Xperia P, U, Sola, Go] Little Zed:
I've created partitions again already but can't losetup. I'm not a noob.
[Sony Xperia P, U, Sola, Go] dotafan:
Sorry mate, I didn't mean to be offensive bt your statement was unclear

Try unmounting all loops again and retry

Winter is Coming
[Sony Xperia P, U, Sola, Go] munjeni:
Simple reboot and try again ;)
[Sony Xperia P, U, Sola, Go] Little Zed:
How to unmount all the loops bro?

I rebooted but I still can't bro :(
[Sony Xperia P, U, Sola, Go] munjeni:
Litle stop now, wait, provide me output of the next commands:

1. mount (this will list all mounts)

2. losetup -f (this will display first unused loop device)

3. ls /path_to_the_your_file_which_you_going_to_set_to_loop_device

I will respond to you with next commands after you give me these info! Waiting :)
[Sony Xperia P, U, Sola, Go] Little Zed:
I will screenshot the first two commamds.

For the last, I've deleted the partitions as I depressed becausey exam is tomorrow.

---------- Post added at 10:56 PM ---------- Previous post was at 10:54 PM ----------
[Sony Xperia P, U, Sola, Go] munjeni:
First of all your loop device is not bussy, it must work! When you create partition than I will help you! Allso need "ls" to "ext4 file" output!
[Sony Xperia P, U, Sola, Go] Little Zed:
Thanks again bro. All my thanks go for you today :) I will inform on this thread if I found solution just to let future users avoid this problem :) Bye bro.
[Sony Xperia P, U, Sola, Go] dd98:
amazing :)
[Sony Xperia P, U, Sola, Go] Anthrax:
Congrats [MENTION=4120742]munjeni[/MENTION].... made to the portal home page.....

LINK....

also to [MENTION=5138693]NoobCoder[/MENTION].....

cheers..... :D :D
[Sony Xperia P, U, Sola, Go] AGONTUK:
awesomeee :D
[Sony Xperia P, U, Sola, Go] DaniPhii:
You truly deserve it! :D
[Sony Xperia P, U, Sola, Go] DaniPhii:
[MENTION=4120742]munjeni[/MENTION], why doesn't any of my ROMs detect my phone's serial number? Is it an issue pendent to fix in future versions of Xperia Boot Menu? Maybe it's a minor bug in KEXEC patch... just guessing.

:p
[Sony Xperia P, U, Sola, Go] akkufix:
+1

Also from me... congrats!! :good:
[Sony Xperia P, U, Sola, Go] munjeni:
Hmm, interesting, you are right! I think it can not be fixed bcause we runing kernel at diferent memory ofset so kernel is unable to get serial number from these reason! But allso I not going to fix that because its not important, I can not see any problem related to serial bug!

Wow, its seccond time, first time it was first touch based cwm -> http://www.xda-developers.com/android/work-in-progress-to-give-hd2-touch-screen-enabled-recovery/ :D