yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] ttabbal:
I recently flashed the stock rom via odin. That removed the old lag fix I had applied. The commands I used are the script. I wrote one to remove the changes, then pushed the version I posted here and rebooted. I wouldn't post something I haven't run myself.

The lag fix shouldn't conflict as I copy from the stock location, which the lag fix symlinks, then remove the existing directory, which should remove the symlink in this case, then create a new directory and bind mount the copy I made to it. You could try reverting the lag fix there are instructions in that thread.
[Vibrant Android Development] rhcp011235:
Hey,

Can please give a step by step. How you got it to goo so high? I un-did the lag fix. reflashed the zip. plus put the userint.sh

I tried to run it manually.

# sh user*

mkdir failed for /sd-ext, File exists

mount: mounting /dev/block/mmcblk1p2 on /sd-ext failed: Device or resource busy

[: not found

I assume an error in the script?
[Vibrant Android Development] anomalous3:
I think the quadrant results show pretty conclusively that this is mostly a disk-limited device; even without JIT compilation it can blow a nexus out of the water. Once CM6 is out I expect we'll see absolutely ridiculous numbers.
[Vibrant Android Development] rhcp011235:
Can you repost the userinit.sh you are using please.

I think there is some error.

Thanks
[Vibrant Android Development] anomalous3:
This is the one you want. If you have an sd-ext you may want to remove it. Also, make sure you're running the latest version of busybox.

http://xdaforums.com/showpost.php?p=7422298&postcount=17
[Vibrant Android Development] rhcp011235:
Hmm i grabbed that i thought.

Let me try again.
[Vibrant Android Development] sl8125:
Holy moses! This surpasses mimocan fix. Great job guys. I'll wait for the write up.
[Vibrant Android Development] rhcp011235:
Hmm. I grabbed it. put it /data/local.

chmod 755 userinit.sh

reflashed your enable.zip

and rebooted..

# cd /sd-ext

# ls

# ls al

al: No such file or directory

# busybox ls -al

drwxrwx--x 2 1000 1000 1024 Jul 31 03:10 .

drwxr-xr-x 22 0 0 0 Jul 31 04:06 ..

#
[Vibrant Android Development] _Opiate_:
We need a better step by step from start to finish please...also do we need to have partitions already done. if so which ones
[Vibrant Android Development] anomalous3:
sounds like it's getting the directory made but not moving anything over.

can you paste the results of

#mount

?
[Vibrant Android Development] rhcp011235:
# mount

rootfs / rootfs ro 0 0

tmpfs /dev tmpfs rw,mode=755 0 0

devpts /dev/pts devpts rw,mode=600 0 0

proc /proc proc rw 0 0

sysfs /sys sysfs rw 0 0

/dev/block/stl6 /mnt/.lfs j4fs rw 0 0

tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0

none /dev/cpuctl cgroup rw,cpu 0 0

/dev/block/stl9 /system rfs rw,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0

/dev/block/mmcblk0p2 /data rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0

/dev/block/mmcblk0p3 /data_tmo rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0

/dev/block/stl10 /dbdata rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0

/dev/block/stl11 /cache rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0

/dev/block/stl3 /efs rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0

/dev/block/mmcblk1p2 /sd-ext ext2 rw,noatime,nodiratime,errors=continue 0 0

/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0102,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block//vold/179:9 /sdcard/sd vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

#
[Vibrant Android Development] ttabbal:
You need an ext partition on the external sd card. It should have fat32 as the first, then ext. It also needs to be formatted. I'm not sure if clockwork can do it. Last I heard, that option partitioned the internal sd and caused problems for people. Ask that dev if it's fixed now. If not, remove the sd and use a computer to partition and format. Put it in the phone, then use clockwork to flash the apps2sd zip file. That should be it. You should now be running. Verify with ' mount' at the terminal. You should see mmcblk1p2 mounted a few times if it worked.
[Vibrant Android Development] robavila721:
Getting 1400 on quadrant but to me it seems a bit slower at opening apps like messaging and dialer/contacts. Any way to reverse it or a factory reset will do
[Vibrant Android Development] rhcp011235:
Hey. How can we properly part the card via a mac? or direct via the phone?

I have an 8GB class 6.
[Vibrant Android Development] ttabbal:
I'm not seeing that here. Both open quickly. You can just remove the script and move the backups back to the old names. I'll look into writing a script to automate it.
[Vibrant Android Development] ttabbal:
Mac doesn't understand ext partitions by default, so you wouldn't be able to format it. I used a gpartd boot cd. That should work on mac hardware as well. If it's working now, clockwork should be able to do it as well, but the last report I saw had it partitioning the internal rather than the external.
[Vibrant Android Development] frank707:
So even though my quadrant benchmarks were at 1500. I attempted to redo the procedure after anomalous3 posted results that hit 2000.

1.) Even though i have ClockworkMod recovery installed, i wiped my phone data through settings > privacy > factory data reset. ( The dbdata directory isn't wiped through stock recovery or ClockworkMod recovery and may causes fc errors upon rebooting the device)

2.) After wiping the phone i went straight to the market and made sure to install busyboxinstaller to check if my busybox installation was up to date. If its not up to date, you simply download the app and click install.

3.) Next i downloaded rom manager and flashed the ClockworkMod recovery (after wiping data, even though the recovery isn't altered any time you reinstall rom manager you have to flash the recovery again so it recognizes which version is installed)

4.) Next i prepared my external 8gb class 6 sd card by putting it my sd card reader and formatting it using paragon hd manager, i formatted the first partition as a 7gb fat 32, and the second partition as a 1gb ext 2. (using ext3 previously, i switched to ext 2 because the journaling on ext 3 can affect performance somewhat)

5.) After formatting the external sdcard, i download this file from anomalous3 first post.

vibranta2sd.zip (includes userinit no need to download that separatley) - http://getyourboneon.com/vibranta2sd.zip

6.) Place the file in the root of your internal sdcard (the 16gb one)

7.) Reboot into recovery using ClockworkMod.

8.) Once in recovery select - install zip from sdcard - choose zip from sdcard - then select vibranta2sd.zip and then yes and apply the update

9.) Now reboot & enjoy.

After following this procedure im up to 1950 on my quandrant scores.
[Vibrant Android Development] rhcp011235:
Nice write up.

But i dont want apps2sd :)
[Vibrant Android Development] anomalous3:
I think we may have created a monster.

Well, the ext partition is being mounted, but it looks like the rest of the script isn't being run.

What happens when you

#sh /data/local/userinit.sh

? It may give you a relevant error.
[Vibrant Android Development] rhcp011235:
# sh /data/local/userinit.sh
mkdir failed for /sd-ext, File exists
mount: mounting /dev/block/mmcblk1p2 on /sd-ext failed: Device or resource busy
[: not found
#
[Vibrant Android Development] anomalous3:
Download the busybox app from the market, open it up, click "Install busybox", and reboot ;)
[Vibrant Android Development] rhcp011235:
Yep That seemed to solve it.

# cd /sd-ext

# ls -al

-al: No such file or directory

# ls

lost+found

data

dalvik-cache

I get a 1523 on my quad score.

I used my old mytouch with Ra recovery to part my SD card. I used 2G for ext2 + no swap + rest to FAT32

Anything else? To make it go to 2000+ :)?

Thanks!
[Vibrant Android Development] justanothercrowd:
You only need to apply the second update the first does nothing unless your going to have 2 userinit scripts. The first one uses /data/local/ for the location and the second uses /system/bin/userinit and includes it.
[Vibrant Android Development] danr238:
I guess the wipe is the key for this. I tried multiple to.es without wiping. After wipe I benchmsrked 2004. Good work man. Hopefully we will still be able to use this or a variant of it with OTA 2.2.

Sent from your mom's house using XDA App!
[Vibrant Android Development] rhcp011235:
Question.

If you do the wipe. this removes all your apps? removes your emails? etc? correct?

I heard most of the backup software doesnt work correctly?

can anyone confirm if i do a wipe i can come back without having to reinstall + redo all? I would do it if i can get to 2000+ as long as i dont have to re-do all :)
[Vibrant Android Development] blackerwater:
Works for me and I downloaded the latest from titanium
[Vibrant Android Development] kopykatkiller:
Linpack scores still are horrible though. :(
[Vibrant Android Development] blackerwater:
Your right what we really need is a modded kernel.
[Vibrant Android Development] anomalous3:
that and a deodexed rom so we can run JIT
[Vibrant Android Development] skater4690:
Ok I got a question I think I know the answer to, when you wipe the phone it doesn't do anything to the internal SD does it? Cause I am gonna transfer everything on my external card to the internal storage but there's no point if it gets deleted...
[Vibrant Android Development] sl8125:
I read through your post but no mention if i can use the userinit with mimocan fix. I know that i can add a partition along with the fat32 and ext4. I could just add another partition with ext2/3. I have enough room on the sd card.
[Vibrant Android Development] ttabbal:
I don't think anyone has tried the userinit with the other fix applied. If you change the partition layout, you will need to update the script to use the right partition.

As for linpack, it only tests cpu. This hack speeds up I/O, not cpu. So that score won't change. That's why it helps quadrant, they test more than cpu. If you want higher linpack scores you need to overclock or run jit.

For backups, get titanium. I can be up and running from a clean flash in half am hour or so. It's worth the money for the donate version. Some system settings didn't restore right, but that's just stuff like wifi passwords. Only takes a few minutes to fix those.
[Vibrant Android Development] ttabbal:
I don't know that I'd call it apps2sd really. It's closer to firerats cache hack. It moves the user data and dalvik cache to sd. The apps themselves stay put.

You could always do just the data if you like. Just get an older script or edit it.
[Vibrant Android Development] skater4690:
can i use this without wiping?
[Vibrant Android Development] anomalous3:
yes, but make sure you install the latest busybox first.
[Vibrant Android Development] skater4690:
well i know its best if i wipe but wouldnt that delete my whole rom?
[Vibrant Android Development] davbran:
I tried the instructions here earlier and my quadrant score went from 888 to 1413 on eclair. The trouble is the kernel screwed up my phone a little, no sound and reversed my volume key, so I took it off. If we can pull off the same with this update I would definately be interested.
[Vibrant Android Development] blackerwater:
That goes back to what I was saying about a kernel. It would be nice to make a universal kernal for all galaxy s phones
[Vibrant Android Development] sl8125:
Does the phone need to be rooted? How about if i am running i9000 JM2 rom? Why aren't the Vibrant users jumping all over this? I have a Captivate. I wonder if this works. Gotta try and see. If fails, back to JM2 with Mimocan Variant Fix.
[Vibrant Android Development] bestwebs:
HI,

You flash this via clockwork revovery and it does require your phone to be rooted 1st.

I don't know if there is any performance boost using this or not.

There seems to be mixed results.

Perhaps more members can post their results about this.

:)
[Vibrant Android Development] davbran:
Looks like you don't need the clockwork after all, just a normal update via stock recovery.
[Vibrant Android Development] sl8125:
so we no longer have to insert the init.sh file and apply the enableuserinit file with rom manger. just drop and recover.
[Vibrant Android Development] Argusi:
Very nice. Quadrant went from about 900 to 1500. I wonder what the difference is between the 1400-1500 and the 2k scores. I wiped from settings->privacy and used ext2. There's got to me something different for that big of a spread. Now I'm obsessed :)
[Vibrant Android Development] davbran:
I'm still trying to make sense of the step by steps here, I have to be doing something wrong as I am still getting 900 scores ... the jump in scores make sense to me above what the other guys were getting. I assume the internal SD is a higher class than external, so keeping the data on the fast (which is what I believe is happening now) keeps the higher IO data moving faster.

mind you that's just a shot in the dark :-P
[Vibrant Android Development] rhcp011235:
anyone notice already installed apps before running this? Is causing them to FC or act weird? Mine have been acting weird.
[Vibrant Android Development] danr238:
I had beautiful widget force close on me earlier today but it went thru a couple updates so I figured that was the problem. I keeping a close eye on things to see if I notice anything different now though.
[Vibrant Android Development] rhcp011235:
Op, Do you think we might need to clear cache/davik-cache? and let it rebuild and move it? or something in the script? I have been noticing this all day.

My ebay apps just goes to white screen then back. few others do the same.

Any ideas?
[Vibrant Android Development] sl8125:
I tried this method on my Captivate. I don't think it made any changes. I still get the same quadron score. I don't think it works on the Captivate. I figured Vibrant and Captivate have so much similarity this fix will work with the Captivate.

I dropped the zip file and ran it with updated busybox and clockwork. Maybe i didn't install it correctly. FYI, partitioned ext3 on the external card. Please let me know if i missed something or if it should not work on the Captivate.
[Vibrant Android Development] FastKatt:
Thanks for this. It definitely made a difference. Quadrant scores went from low 900's to mid 1800's and without the space limits of the nand fix.

For some reason it wouldn't flash with ClockworkMod. I tried four times and finally I had to use the Samsung recovery.
[Vibrant Android Development] tissimo:
Works great, I was waiting on rooting my Vibrant for the EXT app data hack, rooted and installed this (from stock recovery, wouldn't work on ClockworkMod, at least it didn't on the first try), and quadrants from 900 to 1500.

I'm curious why the variations on quadrant scores though, some 1500 some close to 2k? SD card speed maybe? I pulled my A-Data 8gb Class 6 over from my G1. I repartitioned the card in Amon_RAs 1.7.0 recovery on my G1 to 1gb ext2 and 7gb fat
[Vibrant Android Development] anomalous3:
It seems that the speed may be dependent on the cleanliness of the ext filesystem. I was only getting 1100 or so untill I cleaned my ext filesystem with some kanged stuff from CM5. Then I got the 2000+.
[Vibrant Android Development] AustinKnight45:
I don't think this works on EXT4 cause theres no differences in quadrant when I run it same old 900 does this need to be a EXT2 partition or 3?
[Vibrant Android Development] anomalous3:
ext2 or 3 will both work, I think ext2 is a bit faster but may get corrupted more easily as well
[Vibrant Android Development] AustinKnight45:
THx ill try EXT3 out see how it work thx again.
[Vibrant Android Development] DocRambone:
Thanks, functional on i9000 to, around 2000 quadrant points with a ext4 part :)
[Vibrant Android Development] AustinKnight45:
Dam so this is messing up volume buttons like that dam lag fix kernel odin flash $hit its time to get to work on are own Us vibrant kernel.

Sent From Tha 1 Tha Only... Vibrant
[Vibrant Android Development] justanothercrowd:
The stock kernel only support EXT2/3

I'm testing a kernel with EXT2/3/44 support as well as netfilter/ipv6 and a host of other changes on my Vibrant. Hopefully I can get it released soon for you folks.

Samsung has the governer set to "conservative" I'm also seeing if there is a reason they did that besides bat life. Currently its using CFQ as the scheduler as well we will be testing out different schedulers etc as usual and hopefully undervolting and possibly putting out some OC kernels.
[Vibrant Android Development] ttabbal:
Nice. I'd love ext4 and the other changes. Could you include run-parts and a way to make the boot wait until scripts are run? I think that might explain some of the problems people have seen. This thing boots so fast that the file copies aren't complete before android is launching apps. I'm going to try learning update.zip scripting to see if I can do the copies in recovery.
[Vibrant Android Development] ttabbal:
No. it does not mess with the volume buttons. That requires changing to the euro kernel. This copies files and sets up bind mounts. Sounds like there is some progress on a custom us kernel.
[Vibrant Android Development] ttabbal:
I don't have a captivate, so I don't know how similar they are at this level. I would think it would work though. Perhaps some changes are required. A dev with a captivate will have to look into it, unless you want to send me yours. :)
[Vibrant Android Development] justanothercrowd:
Yes I can do that. That's how I setup most of my kernels anyways so that any user scripts are ran and completed setting a prop and then having the default services init

I also usually add a trigger to the init binary to call generic user scripts i.e /data/init.rc etc

Is it just me or is ODIN finicky as hell on 64-bit machines. I'm about to move to my 32-bit box because sometimes it flashes the kernel/ramdisk and sometimes it doesnt. headache
[Vibrant Android Development] jroid:
JAC, i'm really glad you came on to the scene, I missed u back from the G1 days. You're an awesome dev that produces awesome results, glad you're already making great strides here for the vibrant. Most appreciated bro can't wait to try out your kernel and any ROM you may have plans on cookin up
[Vibrant Android Development] AustinKnight45:
Cool cause im not ding that again ill tey this later when I update my ext,thx for the heds up.

Sent From Tha 1 Tha Only... Vibrant
[Vibrant Android Development] thang422:
What did you use? Please link and steps. I fan only get 1500....
[Vibrant Android Development] sl8125:
I think vibrant and captivate share the hardware. I do recall droping init.sh file in system. I skipped this. Was that wrong? Lol. Sound like george. Step by step instruction would help.
[Vibrant Android Development] tissimo:
whats the command you ran? I looked at mkfs.ext2 but got confused on the useage, lol

Usage: mkfs.ext2 [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERV

ED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]

EDIT: I just tried mkfs.ext2 /dev/block/mmcblk1p2 and it worked fine, 1900+ quadrant now..
[Vibrant Android Development] ttabbal:
Rchp: I think you are right about the FCs being related to corruption in the dalvik cache. The system isn't waiting on boot for our script to finish and starts android before the copy is complete in some cases. I saw it when testing the revert Function. I'm looking into ways to fix it. I'll include a way to wipe the cache while I'm at it.
[Vibrant Android Development] rhcp011235:
Thanks. Im glad you can help based on my posts. Its annoying to have to delete and install apps all over again :P
[Vibrant Android Development] DraXkor:
Got an idea if this works with 2.2 also? Cause mimo's fix can't be used as we are lacking the kernel of 2.2
[Vibrant Android Development] davbran:
Can anyone post steps for this fix? I love my vibrant, I just want the functionality to match the name? :)
[Vibrant Android Development] ttabbal:
It should work on 2.2. What rom are you running? I'm still on eclair. When jit works, I'll be more interested in froyo. Though I do miss chrome to phone and update all in the market.
[Vibrant Android Development] ttabbal:
Perhaps if you told us which parts you don't understand? I'm not sure how much more detail I can give in a general case.I'll try to help though.
[Vibrant Android Development] davbran:
I am not sure I am getting the job done, phone is rooted. I partitioned my sdcard via my old MT3G to swap 32mb (just to take up the first slot), Ext 2gb, Fat Remaining.

Where I am hung up is the two update files in the OP. Do I need to flash the enabler and the a2sd or is the a2sd enough? Once I flash do I need to download and push the userinit.sh to the phone and run it?

Through the progress of this thread I lose track of what's still needed and what isn't.

Sorry if this confuses you, sometimes I can get that way lol
[Vibrant Android Development] android53:
doesn't work on the standard galaxy S

Causes wifi and mobile internet to stop working... strange
[Vibrant Android Development] gilsken:
Strange, works well on my GS. Quadrant score from 858 to over 1800, I also have to use the Samsung recovery mode, Clockwork recovery does not work
[Vibrant Android Development] DraXkor:
Got an i9000 here and JP3 on it, JiT seems to be activated but not 100% sure.

Would like to try whats will be possible on the phone :)
[Vibrant Android Development] android53:
I tried it on JM2 with mimocans ext4 kernel and fix allready in place.

What settings did you use?
[Vibrant Android Development] bestwebs:
Hi,

I am no expert but you only need the a2sd script, I believe.

It copies a userint file on your phone and this runs every time you start up your phone. Your cache and data are then copied to your sd-ext folder that the script makes.

Let me know if I understand this correctly.

:)
[Vibrant Android Development] gilsken:
Before applying this fix, I was under JM2 without any fixes (except the gps.conf)

I did not wipe data or system also after this fix.
[Vibrant Android Development] Maverick777:
Thanks for the write up. I followed each step, but I seem to have a problem getting my phone to recognize the Ext2 partition created in Paragon.

I created the first partition as Fat32, primary with 13200mb

I created the second partition as Linux Ext2, primary with the remaining memory ~2gb

Afterwards, my phone says my SD card may be damaged and needs to be formatted. What am I doing wrong? :confused:
[Vibrant Android Development] davbran:
You can't format the SD through USB Mount. I had the same issue yesterday. You need to use a card reader and partition through something like gparted or paragon.
[Vibrant Android Development] anomalous3:
accidental double post
[Vibrant Android Development] anomalous3:
OP updated for clarification. I might come up with a neater and more reliable way of getting the zip to work with clockwork.

Also for those of you formatting your SD cards, PLEASE PLEASE do not format the internal SD card, just the external one on /dev/mmcblk1 (/sdcard/sd)
[Vibrant Android Development] bestwebs:
Hi,

Thanks for the update in the op.

Very clear now.

Working great quadrant of 1500 now.

Thanks for your work on this.

:)
[Vibrant Android Development] davbran:
Love the new OP, just curious if FAT needs to be first or if it matters?
[Vibrant Android Development] tissimo:
The EXT partition needs to be partition 2 as thats what the scripts are expecting. So if you only have 2 partitions (FAT and EXT) then yes FAT needs to be first, then EXT.