Hi to all devs here,
I am currently creating a new ROM with modified stock kernel. Currently I have basic features for the ROM and for my kernel, what I have is init.d support. I would like to add the following kernel modules:
DroidWall
Governors and IO Scheduler
BaCem
EXT4
Now, would copying the modules to system/lib/modules do the trick? Or do I need anything else? I'm currently new in creating custom ROMS, so any help/advise is greatly appreciated.
Also, can anyone give me the link for SpareParts.apk? I have seen many spareparts.apk but all of them are from creeds rom.
Thanks,
Carl
you'll need init.d script to call the modules. for bacem tweak, you should put the init.d script from irfan's thread since it also contain the script needed to set the voltage and fix the bug in bacem tweak. for another modules, you'll only need to call the modules in boot via init.d script. you can use these script
Code:
#!/system/bin/sh
insmod <location of modules1>
insmod <location of modules2>
the modules are usually stored in /sytem/lib/modules so you'll need to replace <location of modules> with /system/lib/modules/<module name>. after boot you can check whether if the modules loaded or not by typing "lsmod" in terminal.
EDIT: you can find sparepart.apk in my thread about one pack tweak.
can i use ur kernel in m stock rom...if yes put it
Sent from my GT-S5360 using xda premium
kurotsugi said:
you'll need init.d script to call the modules. for bacem tweak, you should put the init.d script from irfan's thread since it also contain the script needed to set the voltage and fix the bug in bacem tweak. for another modules, you'll only need to call the modules in boot via init.d script. you can use these script
Code:
#!/system/bin/sh
insmod <location of modules1>
insmod <location of modules2>
the modules are usually stored in /sytem/lib/modules so you'll need to replace <location of modules> with /system/lib/modules/<module name>. after boot you can check whether if the modules loaded or not by typing "lsmod" in terminal.
EDIT: you can find sparepart.apk in my thread about one pack tweak.
Click to expand...
Click to collapse
Thank you sir kurotsugi. BTW, do i need to include the extension of the module like this:
Code:
insmod /system/lib/modules/modulename.ko
CarlDeanCatabay said:
Thank you sir kurotsugi. BTW, do i need to include the extension of the module like this:
Code:
insmod /system/lib/modules/modulename.ko
Click to expand...
Click to collapse
Sure...
Sent from my GT-S5360 using xda app-developers app
be carefull if yo're using ext4 as a modules. it should be mounted first before another script running and don't ever change your /data, /system, and /cache partition to ext4.
kurotsugi said:
be carefull if yo're using ext4 as a modules. it should be mounted first before another script running and don't ever change your /data, /system, and /cache partition to ext4.
Click to expand...
Click to collapse
Sir...if i change ext3 to ext4 in ur ope pack tweak, can i mount ext4?
Sent from my GT-S5360 using xda app-developers app
theoritically it will work only if your kernel support it and you have loaded ext4 modules before mount command. never interested to test it. ext3 is easier and better.
kurotsugi said:
theoritically it will work only if your kernel support it and you have loaded ext4 modules before mount command. never interested to test it. ext3 is easier and better.
Click to expand...
Click to collapse
Bro, how to change /system /data and /cache from ext4 to rfs ??
our default system partition is already in rfs. you can modify ext4 file from maroc to revert it.
kurotsugi said:
our default system partition is already in rfs. you can modify ext4 file from maroc to revert it.
Click to expand...
Click to collapse
I know, but somehow i format /cache to ext4. Maybe. Coz when i create backup nandroid file is cache.ext4.tar else is system.rfs.tar and data.rfs.tar
And yes it show in /sys/fs/ext4/stl10 which mean /cache partition fyi i use my kernel that support ext4.
I want to change /cache from ext4 to rfs again but dont know how try with tick repartition in odin still no hope just stuck in download mode.
Code:
ui_print("Starting Operation...");
show_progress(0.1, 0);
unmount("/cache");
ui_print("Formarting cache with rfs...");
format("rfs", "EMMC", "/dev/block/stl10");
ui_print("Mount cache with rfs...");
mount("rfs", "EMMC", "/dev/block/stl10", "/cache");
show_progress(0.1, 100);
ui_print("Done");
ui_print("All praise is due to Allah");
its an updater script. you can give it a shot
Hi devs,
I would like to ask few more n00b questions:
1. Should I put EXT4 at 00EXT4_module or 00bacem-tweak and put ext4 at 01 inside init.d?
2. How do I set the default keyboard for a custom ROM
3. How do I get 14 Toggle Status Bar + Swipe to Clear Notification working on DXLE1? It works on lower firmware version but on DXLE1, it makes the status bar disappear.
PS. I don't want to start another thread so I am asking here. Thanks in advance!
Sorry Sir I can't help u bt advice to change heading so ppl vil cum to knoe wat ur askin by reading only heading
sent using repencis 3.5 wid a2sd
DELETED
Sent from my GT-S5360 using xda app-developers app
Sir....
I just can help no. 2 and 3
2. Choose ur keyboard in Settings>locale and text>choose ur keyboard..this step just make ur keyboard as default
3.u can use system-unsigned and framework.jar in http://forum.xda-developers.com/showthread.php?t=1691397 I use this and work perfectly
Sent from my GT-S5360 using xda app-developers app
shoutokuyaki said:
Sir....
I just can help no. 2 and 3
2. Choose ur keyboard in Settings>locale and text>choose ur keyboard..this step just make ur keyboard as default
3.u can use system-unsigned and framework.jar in http://forum.xda-developers.com/showthread.php?t=1691397 I use this and work perfectly
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
I think he is askin how to make any 3rd party keyboard as a system/default keyboard while compiling rom
I might b wrong bt u tried to help him
sent using repencis 3.5 wid a2sd
press thnxxx
CarlDeanCatabay said:
Hi devs,
I would like to ask few more n00b questions:
1. Should I put EXT4 at 00EXT4_module or 00bacem-tweak and put ext4 at 01 inside init.d?
Click to expand...
Click to collapse
i don't get it. do you mean the script used to call the modules? if yes, it doesn't matter where you put it. you'll only need to make sure that it run before another script, especially a2sd script or similar method. you can easily arrange the sequence by the number and alphabet.
2. How do I set the default keyboard for a custom ROM
Click to expand...
Click to collapse
if you still have the default keyboard, our system will use that as default keyboard. you can remove it so your keyboard will work as default but make sure that your keyboard is working since not all 3rd party keyboard could work as system app.
3. How do I get 14 Toggle Status Bar + Swipe to Clear Notification working on DXLE1? It works on lower firmware version but on DXLE1, it makes the status bar disappear.
PS. I don't want to start another thread so I am asking here. Thanks in advance!
Click to expand...
Click to collapse
if there's no status bar FC issue the problem could come from improper method of compiling the apk. it sometimes happen when we use old apktool version. dxlc and dxle are using similar framework, you can try to use systemUI from another custom rom based on dxlc for an alternative if you can't solve that compiling issue.
Related
Because of the newer kernel for Gingerbread (2.6.35.7) we need newer modules for cifs and ext4. Compiled them:
download here: http://xda.richardtrip.org/?dir=tab/Gingerbread/modules
Before you ask.... a tun.ko is not needed (compiled in the kernel).
Correct me if im wrong but will these modules give us EXT4 support on ginger ?
crisvillani said:
Correct me if im wrong but will these modules give us EXT4 support on ginger ?
Click to expand...
Click to collapse
insmod /system/lib/modules/jbd2.ko
insmod /system/lib/modules/ext4.ko
and it should work.
how to?
i have kernel 2.6.32.9
hmm .. i doubt about it ... the rom is very fast and as far its good , why do i need to go for ext4 if the ext4 suck the battery life ?
k0sh said:
hmm .. i doubt about it ... the rom is very fast and as far its good , why do i need to go for ext4 if the ext4 suck the battery life ?
Click to expand...
Click to collapse
I have never heard of a file system sucking the battery life. If anything, FAT32 would be the worst used in practice today.
richardtrip said:
insmod /system/lib/modules/jbd2.ko
insmod /system/lib/modules/ext4.ko
and it should work.
Click to expand...
Click to collapse
So really dumb, newb ( but learning so much so quickly ) question. Can I get my CIFS support back to stream videos on Overcome 2.0.0 if I use
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/slow-work ???
( think slow-work is needed from research )
( Settings ->About Device->Kernel Version 2.6.35.7 [email protected] #2 )
fidjit said:
So really dumb, newb ( but learning so much so quickly ) question. Can I get my CIFS support back to stream videos on Overcome 2.0.0 if I use
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/slow-work ???
( think slow-work is needed from research )
( Settings ->About Device->Kernel Version 2.6.35.7 [email protected] #2 )
Click to expand...
Click to collapse
you need to load slow-work.ko first.
please,
howto install these modules on the new GB roms?
Wow. This is great now i have working cisco vpn.
Thank you very much
Sent from my GT-P1000 using XDA App
bartito said:
please,
howto install these modules on the new GB roms?
Click to expand...
Click to collapse
Download the modules to /system/lib/modules/ (or anywhere really, just not the SD card) then load them using insmod. If you need them of every boot you can use an init.d script to load them automatically
For those of you who are inept, please find a link below to the same modules inside a CWM flashable zip.
CLICK ME!
TheGrammarFreak said:
Download the modules to /system/lib/modules/ (or anywhere really, just not the SD card) then load them using insmod. If you need them of every boot you can use an init.d script to load them automatically
Click to expand...
Click to collapse
Unfortunatly, init.d doesn't work in current version...
Tried to manually load as per instructions.
Didn't seem to do anything to assist my cifs manager. Figured I'd go back to my nandroid backup I'd made just before. Stuck on Samsung screen. on reboot after restore
Had to do a restock and rebuild. As say in previous post learning a lot ..........like always take an Nandroid
Think I'll be leaving this to the experts and wait for a new already compiled kernel
fidjit said:
Tried to manually load as per instructions.
Didn't seem to do anything to assist my cifs manager. Figured I'd go back to my nandroid backup I'd made just before. Stuck on Samsung screen. on reboot after restore
Had to do a restock and rebuild. As say in previous post learning a lot ..........like always take an Nandroid
Think I'll be leaving this to the experts and wait for a new already compiled kernel
Click to expand...
Click to collapse
Cifs mananager doesn't help you. But it is simple to do that manually:
$su
#busybox insmod /system/lib/modules/easy-work.ko &&
#busybox insmod /system/lib/modules/cifs.ko
#mount -r -t cifs -o <YourShareName,login,password> <MountingPoint>
I use GscriptLite for that.
acolwill said:
For those of you who are inept, please find a link below to the same modules inside a CWM flashable zip.
CLICK ME!
Click to expand...
Click to collapse
so if i flash this via cwm it will give me ext4?
acolwill said:
For those of you who are inept, please find a link below to the same modules inside a CWM flashable zip.
CLICK ME!
Click to expand...
Click to collapse
Sorry for being inept, but that doesn't make CIFS Module to work
--
Enviado desde mi móvil
maxtcee said:
so if i flash this via cwm it will give me ext4?
Click to expand...
Click to collapse
it just copy the *.ko to your /lib/module,you still have to add script inside init.d to make it load automatically when boot
init.d dobt supported in gb, seems to me
howto make these modulez autoloaded without init.d?
bartito said:
init.d dobt supported in gb, seems to me
howto make these modulez autoloaded without init.d?
Click to expand...
Click to collapse
CF-Root will run scripts from init.d. Overcome includes CF-Root.
Sent from my Galaxy Tab. Now that's dedication
Hi there guys! I'm currently using CM9 with the following tweaks/mods/kernel that you can see on my signature right now and I'm having problems with init.d not working. I hope you can help me guys! Thanks!
1. Which init.d script is not working, exactly? Only one or several? Or all of them?
2. Post here the result of:
Code:
ls -la /system/etc/init.d
allkpop said:
Hi there guys! I'm currently using CM9 with the following tweaks/mods/kernel that you can see on my signature right now and I'm having problems with init.d not working. I hope you can help me guys! Thanks!
Click to expand...
Click to collapse
The init.d should be, the ROM itself is supporting init.d ... Any more details?
I upgraded to CM9 RC3 and init.d's working fine right now. I saw on the changelog that it includes init.d scripting fixes so I guess RC2 has a faulty one.
Hi there guys! I'm having some problems again with init.d not working. It only seems to be triggered whenever I install a new custom kernel by flashing it, wiping the dalvik cache and cache then fixing the permissions. The problems is, whenever I check Seeder to see if it's working or not via Terminal Emulator. Seeder says it's off although it's set to run at every boot. The things that I've tried to fix it is by restoring the /system partition of my RC6 backup with no mods/scripts or custom kernels installed. How do I prevent it from happening again as doing all those things are time consuming.
Can anyone help me?
allkpop said:
Can anyone help me?
Click to expand...
Click to collapse
Use pimp my rom,for init.d..or you install rom with pristine.
Sent from my GT-I8150 using xda premium
First off, I did not come up with this idea but I adapted it from smokin1337 and his thread: [MOD] EZ InitD - init.d the EZ way !!
How to make it work...
Take file in the attached zip and use your favorite root explorer and paste it in /system/etc/ overwriting the file that is there.
Set permissions of the file to be rwx, rx, rx
Create an init.d folder inside of /system/etc and set permisions to rwx, rx, rx
Add init.d scripts and make sure they are also set to rwx, rx, rx.
Reboot and enjoy your init.d scripts!
All credits to smokin1337 for the mod, I just added the line to our postboot.sh.
I tested it and it works as it should :good:
Enjoy!
-Scott
EDIT: Changed the permissions of the scripts to 755 from 777 to guard against possible malware. Info courtesy of jcase.
Just a note, I use ES File Explorer to do this but any root level explorer should work. I just use ES because I am familiar with it.
Some init.d scripts can rely upon the use of BusyBox so install that from the market.
Sorry for the stupid question but what does this actually do.
What can I get out of it if I install it?
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
azz72 said:
Sorry for the stupid question but what does this actually do.
What can I get out of it if I install it?
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
Good question... If you have to ask it then this is not something for you. Haha, Just kidding... But seriously..
Basically init.d scripts are scripts that run when the phone boots up. You can make them do various things like setting system level tweaks, cleaning and purgin databases, and on and on and on...
In the ROMS I build I use an init.d script that remounts the file system more efficiently (in theory anyways) but there are other uses for init.d scripts.
A real popular one is called "V6 Supercharger" Its a collection of scripts that are designed to really tweak out the operating system for the supreme performance (once again, debatable).
There are other things that could be done... If your familiar with old school computing and you know autoexec.bat this is basically that for Android.
-Scott
Gotcha
Ive tried the super charger v6 for my htc inspire a long time ago couldnt tell if it worked or not so I kinda got what ur saying.
Thanks for clearing it up for me
azz72 said:
Gotcha
Ive tried the super charger v6 for my htc inspire a long time ago couldnt tell if it worked or not so I kinda got what ur saying.
Thanks for clearing it up for me
Click to expand...
Click to collapse
Yeah, no problem at all.
scrosler said:
Good question... If you have to ask it then this is not something for you. Haha, Just kidding... But seriously..
Basically init.d scripts are scripts that run when the phone boots up. You can make them do various things like setting system level tweaks, cleaning and purgin databases, and on and on and on...
In the ROMS I build I use an init.d script that remounts the file system more efficiently (in theory anyways) but there are other uses for init.d scripts.
A real popular one is called "V6 Supercharger" Its a collection of scripts that are designed to really tweak out the operating system for the supreme performance (once again, debatable).
There are other things that could be done... If your familiar with old school computing and you know autoexec.bat this is basically that for Android.
-Scott
Click to expand...
Click to collapse
Thanks for the explanation i really needed too before perform this mod thanks
elvin9 said:
Thanks for the explanation i really needed too before perform this mod thanks
Click to expand...
Click to collapse
Yeah, this mod is not your ordinary mod. Most people will never use this type of mod.... Or they do use it in the custom ROM they use and never even know about what it does.
Try using 755 instead of 777, otherwise you are opening yourself up to potential problems.
scrosler said:
First off, I did not come up with this idea but I adapted it from smokin1337 and his thread: [MOD] EZ InitD - init.d the EZ way !!
How to make it work...
Take file in the attached zip and use your favorite root explorer and paste it in /system/etc/ overwriting the file that is there.
Set permissions of the file to be rwx, r, r
Create an init.d folder inside of /system/etc and set permisions to rwx, rwx, rwx
Add init.d scripts and make sure they are also set to rwx, rwx, rwx.
Reboot and enjoy your init.d scripts!
All credits to smokin1337 for the mod, I just added the line to our postboot.sh.
I tested it and it works as it should :good:
Enjoy!
-Scott
Click to expand...
Click to collapse
jcase said:
Try using 755 instead of 777, otherwise you are opening yourself up to potential problems.
Click to expand...
Click to collapse
Responded in updater script thread.
So do we have to find make scripts I'm assuming this just set up the device to work with the scripts
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
DJsCrIBbLe said:
So do we have to find make scripts I'm assuming this just set up the device to work with the scripts
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
Right, exactly.
You can peruse the forums and find your favorite "battery saving" and "super charger" scripts.
Gotcha thanks .
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
I've discovered the same thing you achieve here before, when i was trying to create a swap internal SD for the external, but unfortunately it didn't work, i used your rom on my old Note 2, it was amazing hope to see CleanROM for this one. Thanks for publishing this.
juanyunis said:
I've discovered the same thing you achieve here before, when i was trying to create a swap internal SD for the external, but unfortunately it didn't work, i used your rom on my old Note 2, it was amazing hope to see CleanROM for this one. Thanks for publishing this.
Click to expand...
Click to collapse
Yeah, I am starting to grow frustrated. Hopefully soon!
Hey Guys!
Im making a script and its called Lagg Nullififer (Click Me)
Its pretty cool and it speeds up android, but i want to make a temporary mode and a permanent mode (init.d) so i want the .sh script to make files on SDCard/Lagg_Nullifier (or any other folder) and i want the files to have the text in them!
EG:
.sh script makes file in sdcard then copys to system/etc/init.d
Please, Please, Please help as i cant find how to do this ANYWHERE!, Thankz in Advance!
Please write what you really want - just make and copy files is easy, but i think, that it isnt all u want...
Nuck-TH said:
Please write what you really want - just make and copy files is easy, but i think, that it isnt all u want...
Click to expand...
Click to collapse
Its what i really want to do,
I want the .sh script to make a file on the sdcard with information on it, then i want the .sh script to copy it to system/etc/init.d
Why not just make script create file directly in init.d?
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Pizza_Dox said:
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
what about making a flashable zip that contains the script? it will extract directly to init.d
Sent from my Xperia Arc S using xda premium
---------- Post added at 08:43 PM ---------- Previous post was at 08:36 PM ----------
Pizza_Dox said:
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
do you have any experience with unix scripting at all? I can help you
Sent from my Xperia Arc S using xda premium
Pizza_Dox said:
Hey Guys!
Im making a script and its called Lagg Nullififer (Click Me)
Its pretty cool and it speeds up android, but i want to make a temporary mode and a permanent mode (init.d) so i want the .sh script to make files on SDCard/Lagg_Nullifier (or any other folder) and i want the files to have the text in them!
EG:
.sh script makes file in sdcard then copys to system/etc/init.d
Please, Please, Please help as i cant find how to do this ANYWHERE!, Thankz in Advance!
Click to expand...
Click to collapse
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
wedgess said:
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
Click to expand...
Click to collapse
exactly
Sent from my Xperia Arc S using xda premium
I dont want to make a flashable zip, i want it to be like superchrager to make the files in init.d, , Heres what im trying to do for my mod, Thing is its really good, Honestly, Go try it out, If u dont like it just reboot
Here:
http://forum.xda-developers.com/showthread.php?t=2319774
Im trying to get 2 options to come up and say install in init.d or testdrive, testdrive will inject tweaks for current sesion and when u reboot they go away, and init.d will keep those tweaks and things,
Also if u want u can Be my partner in Lagg Nullifier,
wedgess said:
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
Click to expand...
Click to collapse
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Pizza_Dox said:
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Click to expand...
Click to collapse
I checked your script a while ago, and it needs a lot of improvements, you should add user privilege check to the script, and add a line to mount system with read/write permission. And also you should make the script a bit more aggressive and give the user some choices to pick. Unfortunately I don't have much time to do it myself, but I'll try to.
Anyway to make the script create another script in init.d with text in it it's really simple, here's an example:
echo #put your first command here# > system/etc/init.d/99LagNullifier
echo #put your second command here# >> system/etc/init.d/99LagNullifier
">" overwrites any old text in the file
">>" adds to the existing file
Sent from my Xperia Arc S using xda premium
Pizza_Dox said:
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Click to expand...
Click to collapse
Oh OK and not being smart but do u know wat each line of your script does. Because I have seen many users creating scripts and although the desired effect works there are parts which are not needed or the creator does not have a clue what they do. They just cram in awhole load of things which look or sound good. IM NOT SAYING THIS IS YOU.
I'm not at a PC rite now so can't look at your script. But seen as u don't want to make it a flashable zip, I would suggest something that maybe u could run via script manager or terminal like lupus menu. With a couple if options like set on every boot. Or run until reboot and say a check to make sure other init.D's do not conflict with yours. Just some suggestions.
Lol @Themike_10452 the below will probably confuse the hell out of him
inspire yourself with this code
clear ##clear the screen
echo ""
##check for root privilege
id=`id`; id=`echo ${id#*=}`; id=`echo ${id%%\(*}`; id=`echo ${id%% *}`
if [ "$id" = "0" ] || [ "$id" = "root" ]; then
echo "Root permission: Yes"
else
echo "Root permission: No"
echo ""
echo Please run the script with SU permission
sleep 3
exit 69
fi
if [ ! "`which busybox`" ]; then ##check for busybox
echo "Busybox found: No!"
sleep 3
exit 70
else
echo "Busybox found: Yes"
fi
echo ""
busybox mount -o remount,rw /system ## mounts system as r/w
#
#
#your actions here#
#
#
line=====================
m1k3="=== Themike10452 ==="
echo $line
echo $m1k3
echo $line
echo ""
echo Done!
echo ""
echo -n "Reboot now? (Y,N)"
read input ##read user input and store it in "input" variable
case $input in
y|Y) echo "" ##if answer is "y" or "Y" then ...
echo Your phone will now reboot
sleep 2
echo ""
echo ========== POOF! =========
sleep 1
reboot ;;
*) echo "" ##any other answer then ...
echo "So reboot manually later "
sleep 2
exit ;;
esac
Sent from my Xperia Arc S using xda premium
Omg, THANKZ alot!, , only problem is I'm not on PC, so I'll continue stuff latter
Sent from my R800i using xda app-developers app
Pizza_Dox said:
Omg, THANKZ alot!, , only problem is I'm not on PC, so I'll continue stuff latter
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
alright hit thanks at least
Sent from my Xperia Arc S using xda premium
---------- Post added at 10:37 PM ---------- Previous post was at 10:30 PM ----------
wedgess said:
Lol @Themike_10452 the below will probably confuse the hell out of him
Click to expand...
Click to collapse
I'll try to clarify things as much as I can this is Unix after all
Sent from my Xperia Arc S using xda premium
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Pizza_Dox said:
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
benefit from it as much as you can, I added some colors to make it look clearer
Sent from my Xperia Arc S using xda premium
Themike_10452 said:
I'll try to clarify things as much as I can this is Unix after all
Sent from my Xperia Arc S using xda premium
Click to expand...
Click to collapse
Oh u came back and edited it much easier for him now
Pizza_Dox said:
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
Good but I would still however look up some bash so u know exactly what's going on and how to fix it if u run into problems.
Ok I looked through your script quickly there... as mike said there is still alot of work to do. this is not ment as destructive criticism but constructive, to help you make it better, which i'm sure is what you want.
It can be cleaned up quite a bit. It looks like you took alot of other peoples scripts/tweaks and put them together with a lot of sleeps, which certainly will not be good... unless u run them in the background. Because device wont boot for a long time with them all, I think there is 3/4mins where script pauses. It will be fine in boot.d as it wont affect boot time but in init.d seems like a NO NO. also thigs like
Code:
/system/xbin/echo 1 > /proc/sys/vm/oom_kill_allocating_task
can simply be
Code:
echo 1 > /proc/sys/vm/oom_kill_allocating_task
or even better, I think its a good idea to create a variable for busybox say BB. I noticed on LuPuS script at the start certain commands would not work unless I had busybox before each command. I run my kernels busybox from /sbin, So would be
Code:
BB=/sbin/busybox
-- this way
Code:
$BB echo 1 > /proc/sys/vm/oom_kill_allocating_task
As I also mentioned u should place a check so your script will make sure any scripts already in init.d will not conflict. And if they do give the user option to overwrite or keep their current script or back it up.
edit - Crap u said u wanted it to be universal. So maybe better to check for busybox.
Code:
if [ -e /sbin/busybox ]; then
BB=/sbin/busybox
elif [ -e /system/xbin/busybox ]; then
BB=/system/xbin/busybox
elif [ -e /system/bin/busybox ]; then
BB=/system/bin/busybox
else
echo "No busybox found!"
fi
Thanks alot, for all the help guys! I'll get on working and just to clarify I took the base commands from Lenarox, Juwe11 & many others, tested them & modified alot to find the best combo and I added some of my Own Tweaks!,
Also with the whole sleeps thing I already know that it's not Good In init.d and so o was making it to
Just inject all commands
Also in the script their were alot of sleeps because this way it gives each tweak to settle in
Sent from my R800i using xda app-developers app
Ok I tried testing this:
(Thanks mike)
Code:
case $input in
y|Y) echo "Would You Like to Reboot Now?"
echo "Your phone will now reboot"
sleep 2
echo ""
echo "========== POOF! ========="
sleep 1
reboot ;;
*) echo "If You Dident Reboot Then..."
echo "Reboot Manually!"
sleep 2
exit ;;
esac
And it dosent work in smanager... Need some help with it,
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.