FORUMS
Remove All Ads from XDA

[KERNEL][GPL][SECURITY][I9000] FuguMod (Gingerbread) VoodooSndV10

2,332 posts
Thanks Meter: 2,225
 
By renaud, Inactive Recognized Developer on 19th October 2010, 06:47 AM
Thread Closed Email Thread
Included in the image are:
- Superuser
- own busybox 1.18.4
- TUN support
- No more RFS at all (if you want)
- JVB source based
- CWM 3.0.0.5
- security fixes
- low latency
- filesystems: jfs, ext2/3/4 (using ext4 driver), reiserfs, rfs (not on Ultra)
- CIFS support
- Voodoo SoundV10
- Voodoo color (sharpness fix)
- BLN (enabled by default)
- Preemptive RCU (only on Ultra)
- 10 fingers support (on roms that support it)


It has been tested on JVB/JVH/JVO/JV9

Read the whole post (except the changelog) before attempting to install


Thanks to Neldar for BLN
Thanks to Supercurio for voodoo additions
Thanks to zurchpet and js8 for dedicated testing
Thanks to Andro1d for ideas
Thanks to mothatt for the vectorized picture
Thanks to virnik for the new boot logo


For safety purposes /dev/block/stl3 is not mounted anymore but /efs is copied to /dbdata.

Quick table on the versions:
Two branches: Stable (which is stable) and Bleeding Edge (includes latest changes, in testing, consult the changelog)
Two versions in each branch: Normal (without preemptive RCU) and Ultra (with preemptive RCU)

Video
http://www.youtube.com/watch?v=mO-MiKVAzD8

You must flash a normal kernel before Ultra or you will not have phone/modem
Ultra does NOT support RFS filesystem

This kernel can now also be flashed from DOC rom in http://romkitchen.org thanks to Stefunel, choose a non wipe rom.

You can get it at [URL="http://faramir.eriador.org/r/Samsung_galaxys"]. Normal version is named zImage-rXXX and Ultra is named zImage-ultra-rXXX.

Logs are in /fugumod.log
You can get support on #romkitchen on irc.freenode.net

Unless some unexpected changes occur, I am not going to produce any overclocked kernel anytime in the future as they have proven multiple times to be too unstable.


- All versions are upgradeable to the latest one without any data loss.
- You must have at least 400Mb free on your internal SD card storage for conversions. If you don't have any apps installed. If you have apps already installed, you must ensure that you have at least the same size as you data storage free on the sdcard. Note that upgrades don't really need space on your external storage.
- It is only known to work with international GT-I9000 and the Bell 9000M.
- The cleanest way to revert the mod is to reflash a complete ROM. But now supports reverting to RFS as well.


- If you use another custom kernel, you don't need anymore to revert the lagfix before applying. But it is always a good idea to start from a clean ROM.


Locale/timezone reset when using some filesystems
Some people may see that time zone sometimes reset at boot or even language reset, the easy solution is to edit /system/default.prop with something like:
Quote:

persist.sys.timezone=Europe/Brussels
persist.sys.language=en
persist.sys.country=BE

Chances are that those settings are not in your /system/default.prop, it is safe to append them after the already defined ones.
See http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones for your timezone


How to convert filesystems:
Use FuguApp or FuguAppFree or create a /sdcard/fugumod/fs.convert file. If you don't see the paid version in the market and only see the free one, it may be due to your ROM build prop, just change it with SGS tools (in SGS tools -> prop editor -> build.prop -> Unlock -> ro.build.fingerprint=samsung/GT-I9000/GT-I9000:2.3.3/GINGERBREAD/XWJVB:user/release-keys and leave the rest as is. save, Apply script -> clear market cache, reboot...)
You can also create a /sdcard/fugumod/fs.convert which has the same syntax as /sdcard/fugumod/fs.current

How to specify custom filesystem mount options:
Create a file called /sdcard/fugumod/fs.options
It should contain the FS options like shown below (not specify a fs is equivalent to no option). Options "noexec nodiratime nosuid nodev nosuid" are "enforced".
Quote:

stl9 noatime,barrier=0
stl10 noatime,barrier=1
stl11 noatime,notail
mmcblk0p2 relatime,barrier=0

Root bug with some applications:
Some applications don't properly detect if the phone is rooted, generally because they expect su to be in /system/xbin
Solution: type the following commands as root using adb shell or connectbot or any other shell console:
Quote:

mount -o remount,rw /system
mkdir -p /system/xbin
cp /sbin/su /system/xbin/
mount -o remount,ro /system

What is Ultra version
Ultra version is a version with a preemptive RCU which brings an impressive user experience by having a near realtime response. Interestingly, it also seem to boost quadrant scores by ~15%.
Bleeding Edge can be found here
But it is not compatible with RFS filesystem, so don't flash if
- you still use RFS in any of /system, /data, /dbdata , /cache
- you haven't at last booted once a normal FuguMod edition
- you don't have basic skills of recovering from soft bricking (generally, flashing a normal edition will solve soft brick with Ultra)

Start adbd as root
If you want to start adbd as root and in recovery, you need to create a file called /sdcard/fugumod/debug
The change will only take place on next reboot.

Why is quadrant score so low ~1000 in ext4 but I still feel my phone is really fast?
- Quadrant does no measure latency, but user does it. You could have a completely unresponsive phone with very high quadrant score.
- I use safe mounts for ext4, but if you feel brave enough, you can tweak them using fs.options explained earlier or switch to JFS.
- Some ROMs/kernels set "media.stagefright.enable-player=true" in build.prop, in general this will give you 500+ supplementary quadrant score but but will break playing some videos. This won't make your phone faster or more responsive or whatever, it will only boost your quadrant score and break some videos.

Which filesystem is the best?
This all depends on your perception. I general, having /system on reiserfs and all others on jfs seems to be the fastest.

Random reboots
They are known to happen if:
- you force switch the radio band for example using "band selection" in diagnostic menu from wcdma 1900/2100 to 850 or 900 gsm.

Wifi not working
If your wifi is not working anymore, you probably use a JVH based ROM and have restored your wifi settings via titanium backup (or possibly other backup utilities). Wifi configuration from pre-JVH is not compatible with JVH ROMs. You should be able to restore without reflashing a full ROM by stopping wifi, then doing the following commands in a root shell.
Quote:

cd /data/wifi
cp bcm_supp.conf bcm_supp.conf.bak
cp wpa_supplicant.conf wpa_supplicant.conf.bak
rm bcm_supp.conf
ln -s wpa_supplicant.conf bcm_supp.conf
cat bcm_supp.conf.bak | head -n5 > wpa_supplicant.conf
cat wpa_supplicant.conf.bak >> wpa_supplicant.conf
rm wpa_supplicant.conf.bak bcm_supp.conf.bak

And enable wifi again


WARNING: This may brick your phone, kill your cat or destroy your house (although in theory it should not).


If you like it, remember there are donations which may help me getting a development phone ;)

Repository: http://github.com/renaudallard
Source of other GPL utilities I use: http://faramir.eriador.org/r/

Download
http://faramir.eriador.org/r/Samsung_galaxys/, it is called zImage-rXXX or zImage-ultra-rXXX. Bigger XXX number means it's the most recent version.

Changelog:
https://github.com/renaudallard/kern...ommits/fugumod
The Following 20 Users Say Thank You to renaud For This Useful Post: [ View ] Gift renaud Ad-Free
 
 
19th October 2010, 08:45 AM |#2  
Aylarth's Avatar
Senior Member
Flag Limerick
Thanks Meter: 18
 
More
sounds interesting, I'm keen to hear more about your project
19th October 2010, 08:50 AM |#3  
Senior Member
Flag Kaunas
Thanks Meter: 237
 
Donate to Me
More
A bit more info would be nice: quadrant score, are apps like newsrob fast.
19th October 2010, 09:20 AM |#4  
nitr8's Avatar
Retired Recognized Developer
Flag Switzerland
Thanks Meter: 2,241
 
Donate to Me
More
Install it yourself, and play its the only way to get a feeling on how it preforms.

However:
JPM - Clean
Quadrant Score: 981

default slice_sync (97), slice_async (39)
Write: 12800000 bytes (12.2MB) copied, 2.836737 seconds, 4.3MB/s
Read: 12800000 bytes (12.2MB) copied, 0.222411 seconds, 54.9MB/s

JPM - with jfs
Quadrant Score: 1658
Write: 12800000 bytes (12.2MB) copied, 1.311856 seconds, 9.3MB/s
Read: 12800000 bytes (12.2MB) copied, 0.221596 seconds, 55.1MB/s

Tests done with:
dd if=/dev/zero of=/data/test count=25000
dd if=/data/test of=/dev/null
19th October 2010, 11:26 AM |#5  
renaud's Avatar
OP Inactive Recognized Developer
Flag Braine-l'Alleud
Thanks Meter: 2,225
 
Donate to Me
More
erased for better timeline
19th October 2010, 01:04 PM |#6  
exadeci's Avatar
Senior Member
Flag Sydney
Thanks Meter: 286
 
More
Have you tried with ReiserFS and XFS ?? Because I wanted to test with those even if they might use more cpu they should be faster, but I didn't had the time to,
19th October 2010, 01:11 PM |#7  
supercurio's Avatar
Retired Senior Recognized Developer
Flag Chambéry
Thanks Meter: 5,089
 
Donate to Me
More
Yeah this is interesting.
I must admit I hesitated between Ext4 and JFS during original choice for Voodoo and after a lot of reading (and head scratching) I chose Ext4 mostrly because of the ease to get e2fsprogs working, and their maturity.
The Following User Says Thank You to supercurio For This Useful Post: [ View ] Gift supercurio Ad-Free
19th October 2010, 01:13 PM |#8  
Btus's Avatar
Junior Member
Flag Wrocław
Thanks Meter: 2
 
More
Hey guys I love the developers society I'm glad to see that our phone has such hard working developers! Looking forward to good news from you
19th October 2010, 01:24 PM |#9  
supercurio's Avatar
Retired Senior Recognized Developer
Flag Chambéry
Thanks Meter: 5,089
 
Donate to Me
More
Quote:
Originally Posted by nikademus

Hello,

I was not intending to post this at first, but it seems some people are interested in my works on the Galaxy S.

I made a very raw script to convert /data to jfs on the external SD (at the moment).
I am open to all suggestions, so feel free to post

By the way, if you want to avoid creating new script (conversion, etc) I suppose you can "port" Voodoo to JFS in a few minutes.
Don't hesitate to ask for details if you're interested in.

I'm curious about this, I feel like I could have underestimate JFS for mobile (about the low CPU utilization part), like, you know, the general underestimation of this filesystem.
On my tests, the battery really used by the filesystem itself is really minimal, but still
19th October 2010, 01:36 PM |#10  
[Ramad]'s Avatar
Senior Member
Thanks Meter: 1,688
 
More
Quote:
Originally Posted by supercurio

By the way, if you want to avoid creating new script (conversion, etc) I suppose you can "port" Voodoo to JFS in a few minutes.
Don't hesitate to ask for details if you're interested in.

I'm curious about this, I feel like I could have underestimate JFS for mobile (about the low CPU utilization part), like, you know, the general underestimation of this filesystem.
On my tests, the battery really used by the filesystem itself is really minimal, but still

I would like to see Voodoo using JFS, I think that it will only be better.
19th October 2010, 01:52 PM |#11  
Senior Member
Thanks Meter: 55
 
More
Will be interesting to compare only recently updated to JPM so will have to give this a look..
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes