[DEV] [MOD] Repartitioning - Nexus 9 Android Development

http://forum.xda-developers.com/showthread.php?t=1388996
Has anyone thought of doing this?
Edit: compiling parted is harder then i thought !!
I will work on getting parted built for our Nexus 9
Because Parted 1.8.8.1.179-aef3 does not work on our Nexus 9
Note: will update this thread with a lot more info
When I get it working.
Note: if I got it built
I will test this on my Nexus 7 first. if everything goes well
Then I will do this on my Nexus 9
http://www.gnu.org/software/parted/
XDA:DevDB Information
Repartition Test, ROM for the Nexus 9
Contributors
USBhost
ROM OS Version: 2.3.x Gingerbread
Version Information
Status: Testing
Created 2015-11-06
Last Updated 2015-11-06

Reserved 1

Reserved 2

USBhost said:
http://forum.xda-developers.com/showthread.php?t=1388996
Has anyone thought of doing this?
Edit: compiling parted is harder then i thought !!
I will work on getting parted built for our Nexus 9
Because Parted 1.8.8.1.179-aef3 does not work on our Nexus 9
Note: will update this thread with a lot more info
When I get it working.
Note: if I got it built
I will test this on my Nexus 7 first. if everything goes well
Then I will do this on my Nexus 9
http://www.gnu.org/software/parted/
Click to expand...
Click to collapse
I think in nexus 9 , repartitioning is not required as apps are installed in internal storage and no limit is there.. :what:

Ishwara Sandesh C M said:
I think in nexus 9 , repartitioning is not required as apps are installed in internal storage and no limit is there.. :what:
Click to expand...
Click to collapse
Well I was thinking of making
system smaller by 1g
and making data bigger by 1g

USBhost said:
Well I was thinking of making
system smaller by 1g
and making data bigger by 1g
Click to expand...
Click to collapse
Nice :thumbup:
Sent from my Nexus 9 using XDA Free mobile app

USBhost said:
Well I was thinking of making
system smaller by 1g
and making data bigger by 1g
Click to expand...
Click to collapse
Yes! This is exactly what I was looking for!
I commented about this somewhere I remember. Seems like I have way more space in my system than I need.

wifesabitch said:
Yes! This is exactly what I was looking for!
I commented about this somewhere I remember. Seems like I have way more space in my system than I need.
Click to expand...
Click to collapse
Lets hope that in can compile it

Wow cool! Gl!

Ishwara Sandesh C M said:
I think in nexus 9 , repartitioning is not required as apps are installed in internal storage and no limit is there.. :what:
Click to expand...
Click to collapse
There is even more utility for purpose of dualbooting a more conventional linux distro.
I.e., add a menu-driven multi-boot bootloader to the start of the boot partition, allow to select either a conventional android boot, or a <pick your favorite linux flavor> boot, which of course, loads a different kernel, and a different base filesystem. It is conceivable to share the userdata partition, i.e. /data/media for regular linux userdata and sharing data between android and another distro, but it would be helpful to set a couple of GB aside for the system data.

You're a brave soul @USBhost. Btw, you look good in green! Congrats
Sent from my Nexus 9 using XDA Free mobile app

jd1639 said:
You're a brave soul @USBhost. Btw, you look good in green! Congrats
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks!!
Compiling parted is hard! !

USBhost said:
http://forum.xda-developers.com/showthread.php?t=1388996
Has anyone thought of doing this?
Edit: compiling parted is harder then i thought !!
I will work on getting parted built for our Nexus 9
Because Parted 1.8.8.1.179-aef3 does not work on our Nexus 9
Note: will update this thread with a lot more info
When I get it working.
Note: if I got it built
I will test this on my Nexus 7 first. if everything goes well
Then I will do this on my Nexus 9
http://www.gnu.org/software/parted/
Click to expand...
Click to collapse
This approach requires you to be S-OFF & modify your bootloader - this also requires a modified kernel.
I have been using another less invasive approach successfully since ~3 years (even posted about it somewhere on xda); I'm basically using the system partitions (userdata, cache, system) as separate LVM volumes.
You can even have encryption!
You just need a LVM binary (and cryptsetup if you need encryption - automatic decrypting if you have the key as OTG) and a slightly modified boot.img (along with the recovery if you want to avoid manual work):
Obviously, you need to modify the fstab to point to the /dev/mapper paths as well as the LVM initialising part as service at the top of your init.rc

adwinp said:
This approach requires you to be S-OFF & modify your bootloader - this also requires a modified kernel.
I have been using another less invasive approach successfully since ~3 years (even posted about it somewhere on xda); I'm basically using the system partitions (userdata, cache, system) as separate LVM volumes.
You can even have encryption!
You just need a LVM binary (and cryptsetup if you need encryption - automatic decrypting if you have the key as OTG) and a slightly modified boot.img (along with the recovery if you want to avoid manual work):
Obviously, you need to modify the fstab to point to the /dev/mapper paths as well as the LVM initialising part as service at the top of your init.rc
Click to expand...
Click to collapse
This this a nexus
So S-OFF is not needed
And I don't think you need to modify the bootloader
P.S.
Can any one help me compile parted
So far no luck

USBhost said:
This this a nexus
So S-OFF is not needed
And I don't think you need to modify the bootloader
P.S.
Can any one help me compile parted
So far no luck
Click to expand...
Click to collapse
1: you could use the fdisk builtin busybox binaries
2: you could use sgdisk instead fdisk/sgdisk. There are even some on xda: http://forum.xda-developers.com/showthread.php?t=1605535
3: here are some busybox (along with a variant compiled against glibc instead of bionic), LVM, & cryptsetup binaries: https://drive.google.com/file/d/0B8rpJsF4EG0Yb2FWT3liOTRucnM

Any progress with this? That 2.5GB System partition is overkill. Would definitely transfer 1GB of that to my Data partition.

Related

[DEV] Kernel sources for Nexus S released :)

Everything starts here
http://twitter.com/#!/dnaltews/status/14849739858116608
- already pushing a mirror to github -
Funny thing is that several GalaxyS developers found this non secret at all repository about 2 months ago, but we didn't knew back then that Nexus S will exist, neither how to use these sources.
Now we do !
What does it tells for us Galaxy S developers:
- we can borrow some bugfixes from the 2.6.35 kernel version, for all the Galaxy S phones
- we can study how the Nexus S drives the 512MB OneNAND device, using YAFFS2
- some of the closed components on Galaxy S kernel may be free now in Nexus S.
EDIT:
Nexus S kernel built for GalaxyS.
Boot, give you a shell. Nothing more. Can be use to analyze things
http://project-voodoo.org/downloads/nexus-s-kernel-on-galaxy-s/
Reserved memory configuration
Code:
s5pv210: 37748736 bytes system memory reserved for mfc at 0x30a98000
s5pv210: 37748736 bytes system memory reserved for mfc at 0x40204000
s5pv210: 6291456 bytes system memory reserved for fimc0 at 0x42604000
s5pv210: 10137600 bytes system memory reserved for fimc1 at 0x42c04000
s5pv210: 6291456 bytes system memory reserved for fimc2 at 0x435af000
s5pv210: 8388608 bytes system memory reserved for jpeg at 0x32e98000
s5pv210: 4915200 bytes system memory reserved for fimd at 0x43baf000
Sources copied on github (it's not a real github mirror)
https://github.com/project-voodoo/linux_samsung
Messy initramfs
https://github.com/supercurio/nexuss_initramfs
I tweet a lot about sources analysis :
http://twitter.com/#!/supercurio
http://android.git.kernel.org/?p=kernel/samsung.git
So what does everyone make of this?
I'm on Windows atm, or I would diff to see the difference.
edit: Do they release the source for the rest of the ROM?
Now all we need is a dump from that phone
Do you think we might be able to see some of the Nexus S kernel, graphics, GPS improvements on Galaxy S soon?
Also, this doesn't provide the full ROM (i.e. Gingerbread source), just kernel/drivers right?
Only 2 more days until we can get a Nexus S dump though!
chambo622 said:
Only 2 more days until we can get a Nexus S dump though!
Click to expand...
Click to collapse
Nah man, we may have a dump in less than 12 hours time.
Waaaaaah nice. Like a chrismas gift.
Amazing!!!
Sent from my nero powered Vibrant
That news was in the air. Gingerbread and Cyanogen Mod are getting closer
This will be awesome.
subscribed
supercurio said:
- we can study how the Nexus S drives the 512MB OneNAND device, using YAFFS2
http://twitter.com/#!/supercurio
Click to expand...
Click to collapse
Isnt the nexus s supossed to use ext 4?
Chad_Petree said:
Isnt the nexus s supossed to use ext 4?
Click to expand...
Click to collapse
Ext4 for /system and /data, but parts are hosted on the OneNAND in YAFFS2
Yup, Nexus S is EXT4.
Looking forward to a bright SGS future.
xero2002 said:
Yup, Nexus S is EXT4.
Looking forward to a bright SGS future.
Click to expand...
Click to collapse
Sorry for beeing such a noob, but does this mean it might be possible to have a rom for SGS without the need for lagfixes for speed?
lbc420 said:
Sorry for beeing such a noob, but does this mean it might be possible to have a rom for SGS without the need for lagfixes for speed?
Click to expand...
Click to collapse
lagfix is nothing but a file format change from RFS to ext4. So long as Galaxy S defaults to RFS, we need to change it to ext4 and it will be "called" a lagfix.
PS; and in Nexus S it WONT be called a lagfix because it is the default.
Thx Santa Claus
We want have Galaxy S first device with Gingerbread..ops sorry second device
Please xda gods deliver us gingerbread....
Sent from my GT-I9000 using XDA App
nice,good news
Sorry for dumb question bit What is The meaning of this ? What can ett do with this kernel
Sent from my GT-I9000 using Tapatalk
Super c you're the man to brighten my day. We're looking forward to seeing your work on new kernel ))
Sent from my GT-I9000 using Tapatalk

Ext4 module

this is ext4 module binary for linux kernel 2.6.35.7 (DXLB1 stock firmware). i build to test my tools (compiler, etc.) and ability to load kernel module from stock kernel. if anyone needed, feels free to take it. working with loop device (not testing yet with real partition but it should be working) with following issue :
1. stock kernel not support "huge_file" feature witch is enable by default by mkfs.ext4. make sure to disable it
2. auto detect filesystem in mount command not working because wrong auto detect order. use"-t ext4" param
3. file size is big. not sure fit in initramfs (not investigate yet)
load module with insmod, jbd2.ko first and then ext4.ko.
news
irfan was mentioned in Portal:
:good::good::good: http://www.xda-developers.com/android/huawei-ideos-s7-gets-a-dual-boot-kernel/ :good::good::good:
I dont think it will be able to boot the phone because of the large ramdisk. In that case you need to compress it using lzma
Sent from my GT-S5360 using XDA
@mai77
thanks for your info
hell_lock said:
I dont think it will be able to boot the phone because of the large ramdisk. In that case you need to compress it using lzma
Click to expand...
Click to collapse
this is old thread, my first trial to build loadable module for sgy. few hour after create this thread i find the problem. it's still contain debug info which easily remove using "strip" command. final result is few hundreds kilobyte uncompressed.
irfanbagus said:
@mai77
thanks for your info
this is old thread, my first trial to build loadable module for sgy. few hour after create this thread i find the problem. it's still contain debug info which easily remove using "strip" command. final result is few hundreds kilobyte uncompressed.
Click to expand...
Click to collapse
Welcome back sir...
Are u still use SGY?
Waiting ur work sir..
Sent from my GT-S5360 using xda app-developers app
shoutokuyaki said:
Welcome back sir...
Are u still use SGY?
Waiting ur work sir..
Click to expand...
Click to collapse
back from where ?
i'm still read this forum almost everyday
unfortunately not, i already give it. maybe will do little hacking next week because my girlfriend complain about battery life (still in stock rom/kernel).
irfanbagus said:
back from where ?
i'm still read this forum almost everyday
unfortunately not, i already give it. maybe will do little hacking next week because my girlfriend complain about battery life (still in stock rom/kernel).
Click to expand...
Click to collapse
Are you sure bro, having time next week??
Girl complain is powerfull reason to uprek2 "hack" again.. Unfortunately for me only have 2-3days/month with my little young and hard to doing something..

[Q]Where is Vold.Fstab on Android 4.3?

Vold.Fstab​What is the alternative of vold.fstab on Android 4.3?
I was modded this file on Jelly Bean 4.2.2 make me able to move all installed apps into external sd using link2sd and can be found in the following folder:
/etc/vold.fstab
i can't find it on Android 4.3, any solution?
thanks
Go to /System and open the Build Prop file, then edit the swap line. Just search for it on the file.
Sent from my GT-I8150 using Tapatalk 4 Beta
About Build.Prop
FelixMG said:
Go to /System and open the Build Prop file, then edit the swap line. Just search for it on the file.
Sent from my GT-I8150 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Thanks for the answer, i want to tell you about 2 lines founded in Build Prop if Set default USB interface or Storage configuration like this attached image..
no..not that..edit this one:
persist.sys.vold.switchexternal=0
change '0' to '1'
Sent from my GT-I8150 using Tapatalk 4
Fixed
kacanghantu said:
no..not that..edit this one:
persist.sys.vold.switchexternal=0
change '0' to '1'
Sent from my GT-I8150 using Tapatalk 4
Click to expand...
Click to collapse
thank you very much guys...it's worked
Special thanks to Kacanghantu
:good::good::good::good::good::good::good:
Here a screenshot.
haky 86 said:
thank you very much guys...it's worked
Special thanks to Kacanghantu
:good::good::good::good::good::good::good:
Here a screenshot.
Click to expand...
Click to collapse
welcome bro..
Sent from my GT-I8150 using Tapatalk 4
Hi, i have a Samsung Galaxy S GT9000 and i don't have that line in my build.prop.file. How can i exchange my sdcard to my emmc
Rui Efe said:
Hi, i have a Samsung Galaxy S GT9000 and i don't have that line in my build.prop.file. How can i exchange my sdcard to my emmc
Click to expand...
Click to collapse
Which ROM are you using?
Enviado de meu GT-I8150 usando Tapatalk 4
FelixMG said:
Which ROM are you using?
Enviado de meu GT-I8150 usando Tapatalk 4
Click to expand...
Click to collapse
Cyanogenmod 10.2/android 4.3
vold.fstab is no longer used in 4.3. Instead, fstab.<device> is now unified. Check the contents of yours. Unfortunately, this means you'll have to unpack your boot.img, modify the ramdisk, repack and reflash.
Refer to http://source.android.com/devices/tech/storage/ although it doesn't provide nearly enough information in my opinion. I end up digging through sources for various devices.
ziddey said:
vold.fstab is no longer used in 4.3. Instead, fstab.<device> is now unified. Check the contents of yours. Unfortunately, this means you'll have to unpack your boot.img, modify the ramdisk, repack and reflash.
Click to expand...
Click to collapse
dammit! It could have been so easy! :V
Any Solution for increasing internal sd ram size ?
Are there any 3rd party programs which can do the task for me ? I dont want to unpack .img file and edit and then repack and reflash. Just too many variables that can go wrong ?
I have Samsung Galaxy i9003 with SlimRoms --- > [ROM][UNOFFICIAL][4.3][A3] Slim Bean build.1.6-WEEKLY-1193
You can see if any of the kernel zips are using the "anykernel" method and modify the script to suit.
If you can't find one, you can download one of the zips from http://forum.xda-developers.com/showthread.php?t=2181820 and figure out how to adapt the relevant ramdisk patching section (look in tmp/otgmod.sh) to suit. It basically dumps the current boot.img, breaks it apart, mods the ramdisk, makes a new boot.img, and then flashes it. Strip out all the irrelevant parts and change the partitions to suit.
Has anyone found a way to do this in 4.4 yet, specifically CM11? Switching with the build.prop isn't working for me.
Sent from my Bionic
Eiht said:
Has anyone found a way to do this in 4.4 yet, specifically CM11? Switching with the build.prop isn't working for me.
Sent from my Bionic
Click to expand...
Click to collapse
I don't follow your phone, but nonetheless, build.prop mods shouldn't have worked in 4.3.
Further, starting in 4.4, the external sdcard is also run through fuse. See http://source.android.com/devices/tech/storage/config-example.html specifically the last section: Emulated primary, physical secondary (like Xoom)
From there, you can understand what needs to be switched. Again, this requires modifying the ramdisk.
I don't know if there's some sort of hack that'd allow you to change a global variable from a child. Perhaps, an init.d script would work at the parent level? If so, you may be able to switch around EXTERNAL_STORAGE and SECONDARY_STORAGE that way. The paths will remain unchanged, but proper android apps should respect the env vars.
Hi
on Kitkat, the mounting are set in the fstab files which are inside the boot.img file.
To edit them, you should unpack the img file, edit the files, then repack it in order to flash it.
The way to unpack them depends on the device manufacturer. For MTK devices, it is here : http://forum.xda-developers.com/showthread.php?t=1587411&page=29
I did it successfully on my Cube tablet in 4.4.
For others, you should find the tools on the web...
kacanghantu said:
no..not that..edit this one:
persist.sys.vold.switchexternal=0
change '0' to '1'
Sent from my GT-I8150 using Tapatalk 4
Click to expand...
Click to collapse
does this method work on Android 4.44? TQ.
i could not find the line you suggested
kacanghantu said:
no..not that..edit this one:
persist.sys.vold.switchexternal=0
change '0' to '1'
Sent from my GT-I8150 using Tapatalk 4
Click to expand...
Click to collapse
i have moto e . andrid version kitket 4.4.4. i have attached my build.prop file. please tell me what should i should do.
maulik trapasiya said:
i have moto e . andrid version kitket 4.4.4. i have attached my build.prop file. please tell me what should i should do.
Click to expand...
Click to collapse
if i am not wrong you cannot move apps to sdcard on kitkat..
HTC Desire 816 Internal to External
Hi,
I know this thread is for Samsung,but I hope you can help me anyway.
I wanted to swap my storages, but so far I haven't found anything for Android 5.0.2..
I've got lollipop with Sense 7 and a rooted insertion Rom.
My question: How to swap the storages on lollipop? Also the build file?
I hope you can help me,
Greetings, Tobi

[Q] chroot Ubuntu on Nexus 7 (2013)

Not sure if anyone is interested or not but I have a chrooted Ubuntu 12.04 and Ubuntu 13.10 on my N7 running.
If anyone is interested I can post the steps and scripts I used, so you can do it yourself, and learn as you do it which is fun lol.
Most of the information is available via google searches however some things are not mentioned.
I have almost got LXDE running in the chroot without vnc, however not fully.
The problem I am having is when I startx or xinit /usr/bin/lxsession it displays a blank screen. When I kill the process, the LXDE background displays with a cursor. Not sure why it waits to display when I kill the process kind of weird.
Anyways thoughts, comments, constructive criticism.
photo of the adb screen launching startx img1.jpg
photo of the actual N7 screen img2.jpg
I guess there is a guide already from what I read.
No need for a guide unless someone wants to try making their own Ubuntu chroot. Then you will have the ability to make you own image size etc.
If anyone is interested or wants to do this post here and I will provide the steps.
And assist with scripts and what not.
By no means did I come up with this on my own, however many guides have scripts that don't work etc due to your version on android or device etc.
Sent from my Galaxy Nexus using xda app-developers app
I'm using the guide in the General Section to use Kali PwnPad with my N7. I was using Backtrack with my 2012 and just bought a 2013 and very happy so far that everything works with Kali but with a better performance!
Wifi USB host was the main concern and it works great.
Nice job you have done too can you send me or share your chroot script please?
djxtabay said:
I'm using the guide in the General Section to use Kali PwnPad with my N7. I was using Backtrack with my 2012 and just bought a 2013 and very happy so far that everything works with Kali but with a better performance!
Wifi USB host was the main concern and it works great.
Nice job you have done too can you send me or share your chroot script please?
Click to expand...
Click to collapse
yes, do you need startup scripts or launch scripts for vnc and x
or just the chroot script to get into linux?
UPDATE
I made scripts which will allow the creation of the linux image right on the device itself.
It downloads approximately 200 megs for the packages, no more need to download huge image files...
Right now ubuntu works for sure testing others...
userdelroot said:
I made scripts which will allow the creation of the linux image right on the device itself.
It downloads approximately 200 megs for the packages, no more need to download huge image files...
Right now ubuntu works for sure testing others...
Click to expand...
Click to collapse
Great job! Could you share those somewhere (I'm interested in running other distributions e.g. Fedora and Mer)
vrutkovs said:
Great job! Could you share those somewhere (I'm interested in running other distributions e.g. Fedora and Mer)
Click to expand...
Click to collapse
of course, but need to finish scripts and work out some bugs.
userdelroot said:
of course, but need to finish scripts and work out some bugs.
Click to expand...
Click to collapse
Hey, any news on this?
vrutkovs said:
Hey, any news on this?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2627255

F2FS Thread. Ask your questions here

Since there is no F2FS support thread, I'll try to help here as much as my knowledge goes (or not).
Thread was opened because our dear friend @bsmitty83 and @aosp managed to do a tremendous non.human work and made possible F2FS tor our beloved GNEX.
Here you'll post some questions and everybody will try to help.
For Windows users, here is the ADB/Fastboot pack:
http://forum.xda-developers.com/showthread.php?t=2588979
Thread under heavy construction
(I'll keep on editing when I arrive home)
First of all, thank you for your availability.
What do you think about grouping the links for kernel and recovery that support f2fs?
I know that many roms will appear, but recovery and kernel are the basis.
Once again, thank you.
Sent from my Galaxy Nexus using XDA Free mobile app
Someone should link and teach the step for f2fs support so normal user can try to create it by themselves :good:
Atento said:
First of all, thank you for your availability.
What do you think about grouping the links for kernel and recovery that support f2fs?
I know that many roms will appear, but recovery and kernel are the basis.
Once again, thank you.
Sent from my Galaxy Nexus using XDA Free mobile app
Click to expand...
Click to collapse
That's a good start. Will start on that base Thank YOU.
xzilem said:
Someone should link and teach the step for f2fs support so normal user can try to create it by themselves :good:
Click to expand...
Click to collapse
What do you mean by "teach the step for f2fs support". If you mean to compile a kernel, there are plenty of where to start on XDA.
If you refer on "how to install the testing F2FS kernel by @bsmitty83 and @aosp", I'll do that over this thread. Just wait for it
Anyone converted their 2012 nexus 7 to f2fs?
[poo]
jhonnyx said:
That's a good start. Will start on that base Thank YOU.
What do you mean by "teach the step for f2fs support". If you mean to compile a kernel, there are plenty of where to start on XDA.
If you refer on "how to install the testing F2FS kernel by @bsmitty83 and @aosp", I'll do that over this thread. Just wait for it
Click to expand...
Click to collapse
I mean teach the step to convert other roms to f2fs. I think there's no need to compile a new one just like f2fs for grouper.
xzilem said:
I mean teach the step to convert other roms to f2fs. I think there's no need to compile a new one just like f2fs for grouper.
Click to expand...
Click to collapse
im pretty sure its something in the updater-script within the rom,you just have to change it from mounti ext4 to mounting to f2fs,someone in the dirtyv thread compared the commotio script and a slimkat one and made a slimkat f2fs,plus you have to use the kernel from the alpha commotio rom as well
pattyboi:) said:
im pretty sure its something in the updater-script within the rom,you just have to change it from mounti ext4 to mounting to f2fs,someone in the dirtyv thread compared the commotio script and a slimkat one and made a slimkat f2fs,plus you have to use the kernel from the alpha commotio rom as well
Click to expand...
Click to collapse
I'll be pumped when someone writes a guide on this. Once I can make PAC f2fs I'll be a happy camper.
Convert to F2FS Steps
@Hetalk and @Punkiderma
Can you guys tell us the steps to convert any rom to F2FS?
xzilem said:
@Hetalk and @Punkiderma
Can you guys tell us the steps to convert any rom to F2FS?
Click to expand...
Click to collapse
Just woke up. I'll try to put up something later today.
Sent from my Galaxy Nexus using XDA Premium 4 mobile app
Hetalk said:
Just woke up. I'll try to put up something later today.
Sent from my Galaxy Nexus using XDA Premium 4 mobile app
Click to expand...
Click to collapse
xzilem said:
@Hetalk and @Punkiderma
Can you guys tell us the steps to convert any rom to F2FS?
Click to expand...
Click to collapse
Same for me, I'll try to write something as soon as I can
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
How I changed paranoid (pa_maguro-4.4-BETA1-20140603) a f2fs compatible ROM.
1) Download latest dirty f2fs compatible kernel zip file. Extract the file "boot.img" to a temporary location
2) Download ROM zip file.
3) Open ROM zip file using 7-zip. Delete "boot.img" and replace with "boot.img" from the dirty kernel (saved in step#1)
4) Open ROM zip and browse to "\META-INF\com\google\android\". Extract "updater-script" to a temporary folder.
5) Open "updater-script" in a text editor. I use notepad++.
6) Replace string
"mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/system");"
by
"run_program("/sbin/busybox", "mount", "/system");"
Again, replace string
"format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "0", "/system");"
by
"run_program("/sbin/mkfs.f2fs", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system");"
7) If you need to mount data partition add string
"run_program("/sbin/busybox", "mount", "/data");"
after strings
"run_program("/sbin/mkfs.f2fs", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system");"
"run_program("/sbin/busybox", "mount", "/system");"
8) Add string
"symlink("../bin/fsck.f2fs", "/system/bin/dump.f2fs");"
after
"package_extract_dir("system", "/system");"
also add string
"symlink("mount.exfat", "/system/bin/fsck.exfat",
"/system/bin/mkfs.exfat");"
after
"symlink("mksh", "/system/bin/sh");"
9) If you loaded data partition in step 7 you'll need to unmount it at the end by adding string
"unmount("/data");"
10) Replace original updater script the edited one in the ROM zip.
11) Done.
12) Seriously. It's done. Go test it out.
Basically, all(hopefully) this does is, it make sure that ROM's updater script formats/mounts partitions are f2fs, rather than ext4.
Again, I'm not a developer and have just a little working knowledge of what these commands might do. Use this at your own risk.
I've attached original and updated scripts that I've used. You can use compare (ctrlD) feature in notepad++ and see difference between them.
Hope this helps. All the best. :good:
To all the developers and smart people out here, please feel free to suggest changes, or let me know when there's a more comprehensive guide out there, so I can remove this and link to the improved post.
P.S. This might look complicated, but just takes about 5 minutes, not including download time.
Hetalk said:
How I changed paranoid (pa_maguro-4.4-BETA1-20140603) a f2fs compatible ROM.
Again, I'm not a developer and have just a little working knowledge of what these commands might do. Use this at your own risk.
I've attached original and updated scripts that I've used. You can use compare (ctrlD) feature in notepad++ and see difference between them.
Hope this helps. All the best. :good:
To all the developers and smart people out here, please feel free to suggest changes, or let me know when there's a more comprehensive guide out there, so I can remove this and link to the improved post.
P.S. This might look complicated, but just takes about 5 minutes, not including download time.
Click to expand...
Click to collapse
Nicely done, i will try it thanks :good:
Add some of this step to the thread maybe? F2FS Convertion by @burstlam
Hetalk said:
Basically, all(hopefully) this does is, it make sure that ROM's updater script formats/mounts partitions are f2fs, rather than ext4.
Click to expand...
Click to collapse
I did exactly the same, however for slim there was no need to add some lines.
Simply, from what I saw, replace every line that has mount or format ext4 with the appropriate line for F2FS:
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/ANYPARTITION");​
get replaced by
run_program("/sbin/busybox", "mount", "/ANYPARTITION");​
and
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "0", "/ANYPARTITION");​
get replaced by
run_program("/sbin/mkfs.f2fs", "/dev/block/platform/omap/omap_hsmmc.0/by-name/ANYPARTITION");​
obviously:
1.change ANYPARTITION following the partition wrote in your updater script
2. REPLACE ONLY WHAT IS NECESSARY: I think you should not add MORE format partition lines than the one present before. Just replace what you have. If you followed the steps explained by AOSP inside the DIrtyV thread, you should have already all the partition F2FS formatted.​
A useful thing to do if you have doubts (is what I've done) is to search if the rom you want to convert already has a F2FS version on another device and compare the scripts (without caring about lines that are different because of the different device). For example, I compared Grouper's F2FS slimkat to maguro one, and thanks to this I've understood that mount/format partitions thing.
^^ Lot better.
I'm guessing it wouldn't be too hard if we modified this to work with our phones: http://forum.xda-developers.com/showthread.php?t=2731666
[poo]
poo706 said:
I'm guessing it wouldn't be too hard if we modified this to work with our phones: http://forum.xda-developers.com/showthread.php?t=2731666
[poo]
Click to expand...
Click to collapse
I downloaded looked at the scripts and when I get a chance I'll try to do it for our device. Maybe this weekend.
There is like only 4 lines that need to be changed in omni updater-script. Am i right?
hi guys...one question, is cm11 rom Compatible with F2FS?!! if not how do it myself?
massoudsh said:
hi guys...one question, is cm11 rom Compatible with F2FS?!! if not how do it myself?
Click to expand...
Click to collapse
Read about 5 posts back. Punkiderma and I have outlines steps for paranoid. You can follow them for cm11 as well. Post your results here.

Categories

Resources