[Script][CWM] SD Card reading speed fix - Captivate Android Development

Found something interesting over in the main Android Dev forum, did a search here and didn't find anything so I thought I'd share it.
Brainmaster has discovered a way to make our phones able to read SD Cards faster, check it out. There are a couple different settings you can use, I personally find the 3072kb to work best for me. It boosted my read speed from about 11.1MB/s to about 17.9MB/s and my write speed from 4.3MB/s to about 8.8MB/s.

I downloaded the CWM version of the fix (2048 KB) And it didnt work.. I heard somewhere the CWM versions don't work for SGS
So how did you apply the fix??? Im on Serendipity 6.3

noside12123 said:
I downloaded the CWM version of the fix (2048 KB) And it didnt work.. I heard somewhere the CWM versions don't work for SGS
So how did you apply the fix??? Im on Serendipity 6.3
Click to expand...
Click to collapse
I used the same file yesterday. You need to rename the file to "S77sdcardspeedfix" in system>etc>init.d
Reboot for the changes to take affect.

Put this in a terminal emulator. It will only do it til a reboot though, so it's just for testing.
#!/system/bin/sh
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
Sent from my CM7 powered captivate

tietherope said:
I used the same file yesterday. You need to rename the file to "S77sdcardspeedfix" in system>etc>init.d
Reboot for the changes to take EFFECT (Not AFFECT) .
Click to expand...
Click to collapse
Thanks man!!!! will test my speeds in a few minutes
EDIT: It works but no noticable speed increase

tietherope said:
I used the same file yesterday. You need to rename the file to "S77sdcardspeedfix" in system>etc>init.d
Reboot for the changes to take affect.
Click to expand...
Click to collapse
yeah! this finally fixed the reboot issue!

Is this safe to flash with CyanogenMod 7?

So I have tried this to no success. SD Tools seems to just test our internal SD cards. At stock which I am getting ~7-8 MB/s write and ~15-17 MB/s read. When I try CWM flashing the 1024, 2048, 3072, adn 4096 zip files and renaming the 77whatchamacallit to S77whatchamacallit, I get even worse performance in SD Tools testing, down to like 5 MB/s write!
I get more success with the echo of the read_ahead_kb posted above but like it was said, the settings only last till reboot. Any permanent fix? I also found the 4096 to work best on our internal SD cards with the ADB method.

Make a script named something like ... S_sdcard_fix.sh ...with nothing but this in it...
#!/system/bin/sh
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
Then place it in /etc/init.d/ ...and it will stick through reboot ...
..also it will be in my next Onix release by default (2048)
EDIT
Heres the script for those that need it...you can change the "2048" to which ever size you want
http://berryfx.com/RobBeane/Kernel/Files/S_sdcard_fix.sh

Awesome ! Thanks existz
Sent from my GT-I9000 [Continuum v4 ] using XDA Premium App

I have applied the 2048 zip after changing that 77sd... to S77sd... and I'm no longer getting reboots but FCs from gallery, or suddenly it lags for like 5 seconds without responding.
Im using the HTC HD2 with cyanogen 7

SD Tools - Info and Benchmark tools.
With SD Tools you can check your microSD card information (Name, Date, MID, OEMID,...). You can check if your card is fake. (Check serial number and MID and OEMID).
You can also benchmark sd card writing and reading speeds.
You can also submit results and information to internet. In future there will be results. (As soon I got enough results).
Please write to me sreenshot if there are some problems.
Does not shows Card Info On Galaxy S, but you can check speed of external sd Card.
Please write to me, if you got suggestions, or problem report. I can not reply you to comment. And I can't fix problems if I got no feedback. If SD Tools can not test external card, please let me know. (I know for Samsung Galaxy S)
Known bugs: Read speeds are sometimes incorrect (High values). This happened after reset.
Click to expand...
Click to collapse
That's the app description... details the limitations with our phones.
EDIT on my captivate I got 6.4 / 10.7 (didn't apply the fix)
using serendipity 6.3 Onix 2.0.3

I've tried the script way, and the S77 way, and neither sticks through reboot
Sent from my SAMSUNG-SGH-I897 using XDA Premium App

The SD Tools benchmark doesn't show much improvement on the first run, the second run will return much better results. Make sure to run it at least twice before you assume it did not stick.

I have come to the conclusion that SDTools is not a good app to benchmark with. Read through the entire thread that this script came from and there was a little discussion in exists onix thread around page 357 or so. The "S" in front of the 77 fixed it for me.
Sent from my OC'd Samsung Captivate

Xp3r7 said:
Is this safe to flash with CyanogenMod 7?
Click to expand...
Click to collapse
Yes i just flashed it, best results for me are with the 2048 and 3072 sizes.

So one of the things that keeps some of us from overclocking to 1.4 Ghz + is the external SD card speed... anybody have better stability overclocking with this fix??
Edit: ahh, just realized this is for internel SD card, nm
Sent from my SGH-I897 using XDA Premium App

Related

[HOWTO] Speed Fix! (variant of mimocan fix)

This is a quick walkthrough of how to apply my variant of "Mimicans speedfix" using my kernels on the Captivate. The speedfix essentially consists of making an ext3 or ext4 filesystem on an sdcard, and using that as our /data directory. This method is different from the original method in many of the details, but the underlying basis is that the stock /data partition is slow as molasses so we replace it.
This method should be pretty safe. As you will notice we dont copy around stuff and create a symlink mess. We just mount a partition over the current one. Yes we still mount the old one as well, even though it wont be used unless you take your card out. If that happens the phone will mount your old /data (that will probably be very out of date at the time) but itll get you up and running right away.
Right now there are two kernels, these mount the default partition, ext3 or ext4 on the second sdcard partition, the two options are:
Stock clock speed and Overclocked.
The overclocked kernel will clock from 100 to 800 Mhz as stock, then skippinig 1Ghz going to 1.2 Ghz.
Also, before we begin make sure you have this version of Odin. I used Samsung windows drivers that I found here.
You'll also want to read this thread about download mode. here you'll learn that you will have to try real hard to actually brick these phones, and even then it may still boot.
Ofcourse you also want to have root on your captivate.
You'll also need the android sdk.
If you are on Windows or Mac you will need some software to partition and format the sdcard, this live cd will work. You could also just get an ubuntu live cd or similar.
So, now we have the necessary tools and our new kernels and can get started.
Partition the disk:
There were reports from the modaco forums when mimocan first released his fix that ext3/4 partitions larger than 2gb were a problem, so keep your 2nd partition 2gb or smaller.
Use your favorite partitioning sofware to create 2 partitions on your sdcard. the first one will be formated FAT32 (vfat), and the second one ext3 or ext4. Make sure both are 'primary partitions'. You may want to make the second partition have partition type 83 (linux native).
Copy data files to sdcard:
If you are coming from stock, (eg without an existing a2sd /data partition on your sdcard) boot the phone without your formatted card and hotplug it before starting this process.
Using the sdk you need to connect the phone and use 'adb shell' to get a prompt on the phone.
Then follow these steps:
Code:
$
$ su -
# mkdir /sdcard/mnt
# mount -t ext4 /dev/block/mmcblk1p2 /sdcard/mnt
# busybox cp -a /data/* /sdcard/mnt
# umount /sdcard/mnt
# exit
$ exit
Flashing the kernel
1) Disconnect USB cable.
2) Open up odin.
3) Put your phone into download mode.
4) Connect USB cable, wait a second Odin should detect your phone, if not fiddle about with your drivers and reboot windows or something. This can be a real PITA.
5) In Odin load the kernel tarfile as "CSC"
6) Click "Start" in Odin, flashing should only take a few seconds.
You may run into issues here randomly and have a phone with the phone-!-computer image (I did!). Just go read up on the 'download mode' thread linked above it tells you how to proceed.
7) When you have booted your new kernel and /data partition you may have some issues with a few widgets/apps. Reinstalling or waiting/fiddeling with them seems to solve the issue. Maps was slow to open the first time after a new /data partition was mounted for me a few times, but subsequent launches were snappy.
If you want you may donate to my beer fund. It is not necessary but much appreciated
Didn't work for me. I partitioned my external SD card, flashed the speedup2 kernel, then ran the commands you posted, replacing 'ext3' with 'ext4'. My quadrant score is still in the low 900's.
Can you explain exactly what those commands do? The mimocan fix makes a lot more sense to me. Why did you decide to take a different approach?
Thanks for your help and effort!
I get 1716 scores in quadrant, but with real world running tests Touchdown and Dolphin HD browser still lag like holy hell.
I originally had the "method 2" hack (moving apps to the NAND) and that worked wonders, especially with these apps.
Can anyone test these two applications and see if there is lag for you?
Dolphin - try opening a new tab, closing it, and goto a large page and scroll with the volume buttons - it should all be smooth and quick
Touchdown - It should be very quick going between emails, I get a 5+ second delay before showing the email
Also in Quadrant, even though I get 1700 scores, do you guys get stuck at I/O Database writes for a good 3+ minutes?
The captivate speedup kernel link is dead. Can soneone please post a mirror? Thanks
Worked great for me using ext4 partition/kernel. It brought my quadrant to 1817! Thats with a poor little 4gig, class 2 micro sd card. Im also running the i9000 JM2 firmware with Samset 1.6.
Thank you for all your hard work!!!! My phone is now complete (for now lol).
andy2na said:
I get 1716 scores in quadrant, but with real world running tests Touchdown and Dolphin HD browser still lag like holy hell.
I originally had the "method 2" hack (moving apps to the NAND) and that worked wonders, especially with these apps.
Can anyone test these two applications and see if there is lag for you?
Dolphin - try opening a new tab, closing it, and goto a large page and scroll with the volume buttons - it should all be smooth and quick
Touchdown - It should be very quick going between emails, I get a 5+ second delay before showing the email
Also in Quadrant, even though I get 1700 scores, do you guys get stuck at I/O Database writes for a good 3+ minutes?
Click to expand...
Click to collapse
Might be tome for you to pick up a new SD card. I have used both fix's and find this fix to be way better. I get no lag in Dolphin HD.
_Opiate_ said:
Might be tome for you to pick up a new SD card. I have used both fix's and find this fix to be way better. I get no lag in Dolphin HD.
Click to expand...
Click to collapse
Its a brand new Kingston 8gb class 4 card, havent used it before applying this hack
Postal76 said:
Didn't work for me. I partitioned my external SD card, flashed the speedup2 kernel, then ran the commands you posted, replacing 'ext3' with 'ext4'. My quadrant score is still in the low 900's.
Can you explain exactly what those commands do? The mimocan fix makes a lot more sense to me. Why did you decide to take a different approach?
Thanks for your help and effort!
Click to expand...
Click to collapse
All you do is copy the files from your original /data partition onto the root of your ext{3|4} partition on the sdcard. Then that is mounted on reboot ontop of /data so you can use the new data partition from your card.
I feel this is a MUCH cleaner method than the original Mimocan fix, that copis a full copy of data into the root of the device (unnecessary backup since you still have your original /data partition as well), then it mounts your sdcard on /disk and symlinks that to /data.
I just don't see the need for the symlinks and stuff and honestly I thought this was a simpler method, no symlinks or anything.
If you arent seeing any speedups I'm betting something didn't go right, you are probably still running of the old /data partition. Are you sure you are running the speedup2 kernel and not the ext4 only kernel?
spyz88 said:
The captivate speedup kernel link is dead. Can soneone please post a mirror? Thanks
Click to expand...
Click to collapse
It seems to work from here...
_Opiate_ said:
Might be tome for you to pick up a new SD card. I have used both fix's and find this fix to be way better. I get no lag in Dolphin HD.
Click to expand...
Click to collapse
Except the Quadrant scores do you notice any real speed boost?
andy2na said:
.....
Also in Quadrant, even though I get 1700 scores, do you guys get stuck at I/O Database writes for a good 3+ minutes?
Click to expand...
Click to collapse
yeah database I/O takes forever still.
Like I said in the other thread, try to reinstall the apps, Dolphin is very very fast here (thanks for getting me a new browser btw.)
I'm still a complete failure and now i get stuck at the galaxy s boot screen
Nuke, after doing the ext4 only method, I only get quadrant scores of 900.
Am I doing something wrong? I go through all the steps fine and everything seems like it went well but it seems like I'm doing something wrong down the line.
one thing I do notice is that I have A LOT MORE AVAILABLE MEMORY in advanced task killer. I use to only have 100 now I have 180MB.
Is it crucial to have to flash the Speedfix2?
after i put in
busybox cp -a /data/*
nothing happens it just sits there
igm503 said:
after i put in
busybox cp -a /data/*
nothing happens it just sits there
Click to expand...
Click to collapse
that part took like 15 min for me since I have a lot of application and app data
but there is no trailing dot it just repeats what i typed and then leaves a blank space
same thing it just repeats it
igm503 said:
but there is no trailing dot it just repeats what i typed and then leaves a blank space
Click to expand...
Click to collapse
What do you mean by "there is no trailing dot" ? Did you type it in? You need to include the trailing dot in your command; based on what you posted it appears you did not do that.
WOW! Okay... So now I'm getting 1756...
You just have to leave Quadrant on for like 15 minutes sometimes! This is very strange!
Notice the period after the asterisk. In the old forum, someone had a problem with that.
I did this fix last night after countless times of my messing up and figuring out how to partition with my phone still being able to read the card, flash problems with Odin, etc etc. I'm using an 8gb Classic 6 and just got an 1805 in Quadrant, and the phone is incredibly, noticeably faster. Did have some weird app problems when it was first applied, but some reinstalls fixed it. Thanks again Nuka!
Sent from my SAMSUNG-SGH-I897 using XDA App

unCoRrUpTeD Dual Boot

After some thinking about how I wanted to pursue this project and the recent release of an app that has made this possible, I decided to start working on an app of my own. While I have no experience in making an app, I have already begun working on it. Boot Manager is an awesome app for those that like flashing and running different ROMS frequently, however I have found some things that I do not like about it and features that could be added. My short term goal is to create an app with support for either 2 or 3 Roms and would be free. I'll then release a paid one that will support 5 or more roms and add some other features.
As I said, I have already begun working on it and although it won't utilize the method I wanted to use, I will implement some of it in the future. Right now I have parts of it setup and can already use certain features, but for anyone that has created an app, you know there is a lot of scripting that needs to be done.
Thanks to Conap for the motivation to get my a** back on track.
Partition your sdcard
PARTITION YOUR SDCARD
​I have made this really easy to partition your sdcard while preserving all data on the fat32 partition.
You have the option of specifying the size of the ext partitions in /sdcard/dualbootmap.txt
Code:
adb shell
echo 150 200 0 > /sdcard/dualbootmap.txt
The 1st number is cache partition for both rom2 in Mb. For right now I would not do anything less than 125 until I incorporate settings for dalvik-cache on data.
The 2nd number is ROM2 data partition in Mb. Pick whatever size you want.
The 3rd number which isn't used yet will be for a2sd on ROM1. For now this should be kept at 0.
If there is no dualbootmap.txt file the partitions will be automatically set to
cache=150
data=200
a2sd=0
Make sure you have enough free space on the card to accommodate the extra partitions plus an extra 200. If you only have a fat32 partition and use the default values above you would need 550mb of free space. After setting up the roms you will get the extra 200mb back. Its just used as temporary storage.
INSTRUCTIONS:
1. Download sdpart.zip
2. Reboot into recovery
Code:
adb shell reboot recovery
3. Unzip the contents of sdpart.zip and push the files inside sdpart folder to /tmp/
Code:
adb push c:\xxxxxx\sdpart /tmp/
4. run /tmp/sdpart.sh in adb shell
Code:
adb shell /tmp/sdpart.sh
If sdpart.sh doesn't run then you will have to chmod it before running it, but it should already have permission to run.
Code:
adb shell chmod 777 /tmp/sdpart.sh
HELP
Reserved until release day
Can't wait to try it out.
Is it going to support the aria?
12c00000-257fffff : System RAM
THANKS
Sent from my HTC Liberty using XDA App
FFXTDS said:
Can't wait to try it out.
Is it going to support the aria?
12c00000-257fffff : System RAM
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
Updated OP. Thats it for today. I'll post others in the morning
Can I restore a nandroid and then flash the dualboot.zip to make that Rom store to SD instead of wiping everything and flashing the roms?
jblazea50 said:
Can I restore a nandroid and then flash the dualboot.zip to make that Rom store to SD instead of wiping everything and flashing the roms?
Click to expand...
Click to collapse
You should be able to as long as there is a boot.img in the nandroid which I think there is
I really like this idea. Is there any way that you could modify a recovery to incorporate a bootloader? I believe clockwork is open source and should allow for this to be possible.
I don't know any c programming, but am looking at alternatives. Maybe an app or 1 script that does everything.
Sent from my HERO200 using XDA App
This is F'in epic dude. Thank you!
got this working on my evo,
1. what if i want to flash a new nightly or a update, do i go through the process again? and does it matter if it's on the SD or Phone?
2. how do you nandroid the rom on the SD?
basically should i keep CM6.1 on the Phone or the SD for easy updating
EDIT: i lied it works then when i tried to boot to SD it just sat at the white screen. going to play around with this some tonight
Wow man. This is freaking amazing. I'm definitely going to give this a try. Run CM as my daily rom, but this will help when I am traveling to 4G areas, and I can just flip over to a Sense rom.
Awesome, awesome work.
so if i wanted to put cyanogenmod nightlys on and then update them to a newer nightly version how would i do that without redoing everything?
edit: been messing with this and had my question sitting without hitting submit for like 15 min and apperently in that time someone else asked same question
I can't figure out how to get my base address... Can someone please explain more... I'd love to use this on my incredible
Sent from my Incredible using XDA App
Booting into the rom on the SD doesn't seem to be working. The phone just stays at the initial boot screen. This happens whether I have CM6 or a Sense rom on the SD.
sd card
So how is the speed when running on a class two SD card or a Class 4
Does the rom bog down?
Tried it and when I tried to boot into the rom on sd it got stuck on splash screen. Running miui on phone and had ava 10 on sd.
Sent from my PC36100 using XDA App
PikkonX said:
Booting into the rom on the SD doesn't seem to be working. The phone just stays at the initial boot screen. This happens whether I have CM6 or a Sense rom on the SD.
Click to expand...
Click to collapse
What recovery and phone do you have. Run this from command or terminal and post inside code tags
Code:
adb shell cat /sdcard/dualboot/recovery.log
or attach /sdcard/dualboot/recovery.log so I can look at it. It sounds like I may have the wrong base address. I'm going to sleep now. but will check and update this in the morning
kevinniven said:
So how is the speed when running on a class two SD card or a Class 4
Does the rom bog down?
Click to expand...
Click to collapse
im no expert to android, linux, sd cards (lol)... but i think it doesnt matter, once the ROM is loaded it runs off the phone's memory, so the speed shouldnt be affected.
somebody correct me if im wrong
PikkonX said:
Booting into the rom on the SD doesn't seem to be working. The phone just stays at the initial boot screen. This happens whether I have CM6 or a Sense rom on the SD.
Click to expand...
Click to collapse
yeah i'm getting the same thing wont get past initial bootscreen
Phone = HTC EVO rev 0003
recovery = psfMod 0.7.2 (aka clockwork)
sdcard = 8gb (w/2.2gb free)
and i checked my adress base before hand so i know i got correct one
i will try again tomorrow as i gotta get some sleep now

DISCONTINUED! [DAF] RAFDROID HD 2.0 [DATA.IMG SUPPORT][Kern:MDJ 9.5][RMNET]

This version is now discontinued. find the data2ext version or tmous version here
http://forum.xda-developers.com/showthread.php?p=10503046
​
RAFDROID HD 2.0 - NAND VERSION​
Click to expand...
Click to collapse
--- FIRST OF ALL, PLEASE READ POST 2 FOR UPDATED FAQ. IF YOU HAVE QUESTIONS OR ISSUES, MOST PROBABLY YOU WILL FIND THE ANSWER THERE WITHOUT NEEDING TO POST A NEW MESSAGE ---
I'm not a dev. I'm just a curious user that want to learn, fail, search, retry, fail again and then succeed also thanks to people here that helped me with tips and knowledge sharing
This is a personal build made for my self, based on DESIRE HD.
Is 90% stock, % battery indicator and some animations/icons.
It's fully DEODEXED so you can theme it as you want.
I tried also to keep most of the apps, wallpapers and other stuff in it.
But most important it uses DATA.IMG on SDCARD so you dont have to worry about storage limite on LEO512
Please note: this, as happenend whe using Android from SD, could cause data corruption and causes a little lag during app installation. There is nothing I can do to solve those two issues. You are warned!
Credits and thanks:
-Cotulla and DFT for making all this possible
-darkstone for his big help
-mdeejay for initrd.gz (modified by me to support data.img) and kernel
-Kouno.Takaaki for his idea and init file
-Rajko
-crawling
-ocm
-Cass
-cedesmith
-domineus
-imilka for help me solving wifi issue
-all people on #htc-linux
and probably a lot of other people I'm forgetting
FEATURES:
- Deodexed and Zipaligned, not sqashfsed
- Latest kernel
- RMNET
- Multilanguage
- Rooted (SU app + permessi SU)
- AdFree
- 5mpx camera with face recognition + 800*400 camcorder
- HSDPA, GPS, Bluethoot, WiFi all working
- % battery icon and status bar icons changed (use original framework-res.apk to go back to stock attached in 2nd post)
- fonts changed (use original fonts to go back to stock attached in 2nd post)
- Working HTC-SENSE.COM (at least for me)
- data.img on SD support
WHAT'S WORKING
Everything except stock HTC Reader (removed)
CHANGELOG
Code:
2.0
New base Desire HD 1.72.405.3
RMNET
Rooted (su + Superuser APP)
Bootanimation changed
Bootsound changed (very very low, just a "beep")
Auto APN
AdsFree (updated)
New Advanced Power menu (credit to reef2009)
New initrd/data2sd system (credit to Takaaki.Takuno)
some minor tweaks & fixes
1.0 - Initial Release
Based on RUU 1.32.405.6
Removed HTC E-Reader
Removed SoundHound
Removed AmazonMP3
INSTRUCTIONS
- You need at least MAGLDLR 1.10
- Download the Data size package you want
- Unzip it and copy all the content to your SD root respecting the folder structure. Insert the SD in the HD2
IF YOU NOT DO THIS BEFORE, YOUR INSTALLATION WILL FAIL
IF YOU ARE ON A 1024 LEO YOU CAN AVOID THIS.
- Download the RAFDROID HD package
- Unzip it on your computer, enter in MAGDLR bootloader, choose USB flasher, connect your HD2 to your computer and use INSTALL.EXE
- Wait the rebooting. Keep always the SD inside.
- First install takes up to 5 min
- Enjoy
- As all HD build, initially this will be slugghis and lagging, specially if you select to restore your google settings. The build will become fast after some hours and a couple of reboots.
DOWNLOADS​
Click to expand...
Click to collapse
WARNING 1) Data system changed between RafDroid HD1 and RafDroid HD2. Now you need a "config.txt" in the data2sd folder. I suggest to old 1.0 users to download the new packages here to be sure that all works.
WARNING 2) I assure compatibility only with 512 and 1024 data images. Using bigger images, specially more than 2gb, could cause issues (no boot, errors installing apps...)
WARNING 3) I suggest always to start with a fresh data.img. Anyway you can try too keep your old data.img but I cannot assure you that you will have no bugs. Important is to keep the "data2sd" folder with the config.txt inside.
DATA PACKAGE for RAFDROID HD 2.0 512MB -> http://www.multiupload.com/MA47VX8ALS
DATA PACKAGE for RAFDROID HD 2.0 1024MB -> http://www.multiupload.com/6BA2EZ49L0
RAFDROID HD 2.0 -> http://www.multiupload.com/CLK8LXQG0M
--------------------------------------------------------------------
DATA PACKAGE 512MB -> http://www.multiupload.com/F91OFAFDX7
DATA PACKAGE 1024MB -> http://www.multiupload.com/GWRDNTXALF
RAFDROID HD 1.0 -> http://www.multiupload.com/P2AWG7IRR7
If you need more space, you can replace the data.img with ones bigge but I NOT SUGGEST THIS. We have clues that data.img bigger than 2gb causes issues. So please, if you want to avoid bugs, stay with 1gb maximum that is plenty space for everything.
DONATE:​
Click to expand...
Click to collapse
I dont think it's fair to ask for donations because all this was possible thanks to the people credited above.
Anyhow, because some one pm'ed me asking to donate, and becouse I spent a lot of time in this, if you want to buy me a coffee for all the time I spent, you can do this here DONATE
Anyway I would suggest to donate to Cotulla and DFT team and other devs.
BE ADVISED: THIS BUILD, CAUSE IT'S SIZE, WILL WORK ONLY WITH THIS METHOD OF DATA2SD. IT'S TOO BIG TO WORK WITHOUT IT. EXCEPT FOR 1024 LEO WHER IT *SHOULD*(MUST BE TESTED) WORK WITHOUT DATA.IMG
If you want DesireHD standard fonts, download this package and replace the entire /system/fonts content with the ones included, using droid explorer or adb, after first boot
http://www.multiupload.com/5EXLIPO3N4
If you want the stock look this is the stock framework-res.apk. i will not explain how to mess with it, google if you dont know. anyway be careful. messing with this file could cause loop reboots and you will have to reflash
RAFDROID HD 2.0 -> http://www.multiupload.com/EBTBFZV8F8
RAFDROID HD 1.0 -> http://www.multiupload.com/889C7U9B0T
FAQ - QUESTIONS and BUG FIXES
PLEASE READ
​
Click to expand...
Click to collapse
q) I'm having high battery drain
a) Try reboot. Try disabling gps in location. As you can see from the screenshot I have 4mA with WIFI active! Also be careful. If during google account setup you choose to backup/restore all your data, the sync process will be dramatic heavy because it has to reinstall all your apps. It could need a couple of hours to settle. Also high battery drain could be caused by SD. try another one.
q) It's really laggy!!!!
a) as all Desire HD builds this is BIG! This needs at least 10-15 minutes after boot to be usable. Then try to use it for 5-6 hours.. and do a couple of reboots.. you will see that the speed will improve. After 24 hours of use and 4-5 rebots this will be really fast.
q) I have no GPS or the fix is really slow
a) Firs fixt can take up to 5 minutes. just wait. If still not works, try to change the gps zone in the config.txt (read below)
q) I have low quadrant scores
a) yes, this is true. This is because data sync is enabled by default. You can try to disable it but this will give you more risks of data corruption.
q) Can I unmount the SD while in use or connect the phone as mass storage to my pc while in use
a) No. This will cause data corruption. Power down the pone and use an SD card reader to copy your files.
q) I have no SU permission!!!
a) Install z4root (google for it) and execute permaroot. Reboot.
q) It not boots
a) be sure that the ".config" file is in your SD on the root. and there is also the folder "data2sd" with "data.img" inside. If still no boot, try to reformat your SD card, copy the img again, and retry.
q) I have no data/3G/HSDPA
a) probably you have to set your apn manually. google it for tips on how to do and what settings are need for your carrier
q) How do I remove BOOTSOUND / How do I change bootanim
a) bootsound and bootanim are located in /system/etc/customer. Just delete android_audio.mp3 if you dont want sound
ABOUT THE CONFIG.TXT FILE
​
Click to expand...
Click to collapse
You can change some parameters directly in the config.txt before booting:
Code:
data_sd=0
- 0, default, use nand userdata, THIS WILL CAUSE NO BOOT for 512 LEO
- 1, enable external data.img support (/sdcard/data2sd/data.img)
data_size=512
- size of data.img, only work when data.img support enabled and first install if you dont have a data.img.. it will create for you. No need to specify it if you already have a data.img in the data2sd folder
data_sync=1
- 0, fast, default, disable sync option when mount data.img MAY CAUSE DATA CORRUPTION. I SUGGEST TO NOT USE THIS
- 1, safe, enable sync option when mount data.img, use this if experiencing data corruption
lcd_density=240
- size of icons
gps_zone=europe
- country string for better gps fix. you can find your country code here [URL="http://www.pool.ntp.org/zone/@"]http://www.pool.ntp.org/zone/@[/URL]
Having the DATA PACKAGE 1024MB now Waiting For the RAFDROID HD 1.0 now
Hey man, you're really rock Wonderful Rom, everything is work fine on my HD2 ! Now I'm having 2GB data.img on my sd card it works man, you are right now i got no worry about storage limite on LEO512
Thank you so much !!
Good to hear you fixed all those bugs, hope it's quick!
Nice, but could you also provide us with stock framework (so it can be 100% stock lol)?
and can we use Kouno's method of modifying /system with "update" folder on sdcard?
Thank you very much. I need it so
mmmm.. i wanna try this build.. mmmm
nice raf
oh.. why mdj kernel?
Krendelrus said:
Nice, but could you also provide us with stock framework (so it can be 100% stock lol)?
and can we use Kouno's method of modifying /system with "update" folder on sdcard?
Click to expand...
Click to collapse
not at the moment
I will check to update this in the next release
Wooooow
Fantastic HD2 scene!
Thanks Raf
PS: I would like too, in future a stock framework.
if you can provide some SCREENSHOTS also.i am looking forward to this,specially extra memory part is cool.
rafpigna said:
not at the moment
I will check to update this in the next release
Click to expand...
Click to collapse
thanks for replying
why you're not using latest Ace RUU (RUU_Ace_HTC_WWE_1.72.405.3)?
you can get it here http://forum.xda-developers.com/showthread.php?t=879375
isnt it better to have PPP rather than RMNET because RMNET is slower.
having said that, has there been a fix for PPP because im lossing network bar frequently.
BTW thanks for the build, will be testing it out soon
When is this boiled going to be out? I wanna try out this build as I can't seems to install much of applications on any otherbrom asnitbonly gives me less then 100mb. And nownthe current remaining soqcenisnlessnthen ten mb. Can't waitbto try out a new and a better rom. How aboutbthe cam coder is the quality better?
Krendelrus said:
thanks for replying
why you're not using latest Ace RUU (RUU_Ace_HTC_WWE_1.72.405.3)?
you can get it here http://forum.xda-developers.com/showthread.php?t=879375
Click to expand...
Click to collapse
guys, because initially I made this for myself.
Now that is released I will try to update it in the nexts
rafpigna said:
guys, because initially I made this for myself.
Now that is released I will try to update it in the nexts
Click to expand...
Click to collapse
ok, got it
rafpigna said:
guys, because initially I made this for myself.
Now that is released I will try to update it in the nexts
Click to expand...
Click to collapse
Good work Raf, been waiting for this. I've downloaded the data package and was wondering if it will be possible to use my old data.img file from another SD HD build and possibly use a 2GB data.img file too?
daysey said:
Good work Raf, been waiting for this. I've downloaded the data package and was wondering if it will be possible to use my old data.img file from another SD HD build and possibly use a 2GB data.img file too?
Click to expand...
Click to collapse
Dont know.. maybe there will be bugs, but try it.. if this not work or you have bugs, delete all things from SD, reflash NAND, and start again
about 2gb data, yes, you can. just replace the file. I will upload 2GB and 4GB for convenience, later as soon I have time
This build will be awesome when it runs correctly... Is it right, it uses for data the data.img on the sd card, when you release a new uodate we can safe our data and can make a update without loosing my apps ? This will be great news ?!
so will all my texts get saved to the sd card?
as on other NAND builds my phone can barely operate after a couple days use due to insufficient storage.
also, what determines whether I should get the 512MB or 1024MB data package?
manish2039 said:
isnt it better to have PPP rather than RMNET because RMNET is slower.
having said that, has there been a fix for PPP because im lossing network bar frequently.
BTW thanks for the build, will be testing it out soon
Click to expand...
Click to collapse
Not true,atleast not for me. (the build i use in my sig)
Sinds NAND rmnet is as fast for me as ppp,same up and download speed.
In the time with sd card builds ppp was faster for me,now not (for me)
Just test it with speedtest.net app in the market for free

[HOW TO] Get your SWAP ON! Step by Step [GingerBread/FROYO]

After multiple messages and questions regarding SWAP I thought it would be best to put all the information into one place with simple instructions.
What is SWAP? Details on it HERE>> http://www.imoseyon.com/2011/04/why-swap.html
Imoseyon: Have you heard of Virtual Memory? Swap is pretty much that - a way to extend your physical memory. Your OS moves the less accessed memory pages to slower, and cheaper storage medium. This frees up RAM for things that require the speed. And guess what? On almost all android devices you'll find tons of flash memory which are going to provide near RAM access speed for your swap space.
Click to expand...
Click to collapse
Now lets do THIS!!!
Here is everything you need for the SWAP files and a Step by Step...
Enable SWAP and EXT4.
FIRST
Download the SWAP Enabler And the Kernel Speedtweak from the attachments in this post.
View attachment enable_swap.zip
View attachment imoseyon_v6.2.1.zip
The first one enables SWAP and the second one creates the proper files/folders and settings for m.swappiness and minfree.
Step 1: Boot into Clockwork DO NOT FLASH ANYTHING VIA Rom Manager.
Choose ZIP and flash the Swap Enabler (First File)
Then Choose ZIP and flash the SpeedTweak (Second File)
Step 2: Reboot.... Wait a minute and let the Kernel settle.
Step 3: Reboot back into Clockwork and reflash the SpeedTweak File ONLY. (not sure why, but if you don't step 3 won't happen. LOL)
Reboot again....
Step 4: After it is up and running.... Open Terminal and type (without quotes)
"su" ENTER
"sh /data/imoseyon/swap.sh create" Hit ENTER and it should create.
Reboot for the last time and enjoy.
To see your creation at work.... Open Terminal and type (without quotes)
"su" ENTER
"free" ENTER
You should see you Mem and SWAP.
ALTERNATE Finish For SOME. DISREGARD IF ALL WENT WELL FROM THE STEPS ABOVE
For some reason... It has been reported that you may get a Can Not open /data/imoseyon/swap.sh create. If so:
Alternate STEP 4: Open terminal and type (without quotes)
"su" ENTER
"sh /data/imoseyon/createswap.sh"
After it finishes: Close OUT of Terminal, Then reopen and type (without quotes)
"su" ENTER
"sh /data/imoseyon/swap.sh create" Hit ENTER and it should create and tell you to reboot for it to take effect.
ENJOY GUYS!!!!!
DISCLAIMER: I'm responsible for NOTHING. If your phone explodes, or randomly texts your wife about your girlfriend.... You never heard of me.
Very cool. Will definitely be doing this once I get home.
Is the swap being put on sd card or emmc?
Gimpeh said:
Is the swap being put on sd card or emmc?
Click to expand...
Click to collapse
Not on the SD.
Edit....
Has anyone managed to utilize emmc for swap? Would probably be a bit more speedy. Although thos phone has enough ram as is.
Gimpeh said:
Has anyone managed to utilize emmc for swap? Would probably be a bit more speedy. Although thos phone has enough ram as is.
Click to expand...
Click to collapse
It would be quicker, but I don't know how much it would be noticed in "real world". I'm sure in "tests" it would flex in nuts a lot more but.... This does smooth things out quite a bit.
Well i'm on cm7 so speed is not a terrible issue. Although you can never have enough ram. Bring on emmc swap!!!
What values should we see in Mem and Swap?
KGBxxx said:
What values should we see in Mem and Swap?
Click to expand...
Click to collapse
At first you will see 0 for swap until you use it and it builds. They will vary on your use.
Sent from my ADR6400L using XDA App
DroidTh3ory said:
On the SD.
Click to expand...
Click to collapse
Might want to re-read the link to imoseyon...kinda skeerz me that you think it's on the SD card.
Carnage9270 said:
Might want to re-read the link to imoseyon...kinda skeerz me that you think it's on the SD card.
Click to expand...
Click to collapse
I mis-spoke regarding eemc. The swap uses the flash.
My apologies to anyone that was misled.
Sent from my ADR6400L using XDA App
so I have been really impressed with the speed of my thubderbolt. I am rooted, running the latest imoysen kernel and the perfect storm 1.4 rom. I had seen these instructions before but never thought about implementing them. I did today and I didn't think it was possible but my speed is now at least double that it was before. Un believable thank you so much, to all reading this you should really give this a go!
Is this something that carries over when you switch roms/kernals? Or do you have to do it again?
BuffoGT said:
so I have been really impressed with the speed of my thubderbolt. I am rooted, running the latest imoysen kernel and the perfect storm 1.4 rom. I had seen these instructions before but never thought about implementing them. I did today and I didn't think it was possible but my speed is now at least double that it was before. Un believable thank you so much, to all reading this you should really give this a go!
Click to expand...
Click to collapse
What rom are you running?
iastonish said:
Is this something that carries over when you switch roms/kernals? Or do you have to do it again?
Click to expand...
Click to collapse
It needs to be re-done with any kernel change.
Sent from my ADR6400L using XDA App
Double.post.
Sent from my ADR6400L using XDA App
DroidTh3ory said:
No, it needs to be re-done with any kernel change.
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
Better wait on it then, waiting for Drod's new CM7 kernal.
BuffoGT said:
so I have been really impressed with the speed of my thubderbolt. I am rooted, running the latest imoysen kernel and the perfect storm 1.4 rom. I had seen these instructions before but never thought about implementing them. I did today and I didn't think it was possible but my speed is now at least double that it was before. Un believable thank you so much, to all reading this you should really give this a go!
Click to expand...
Click to collapse
It does really help utilize the speed. It is just smooths everything out so well.
Sent from my ADR6400L using XDA App
The prefect storm 1.4
Sent from my ADR6400L using XDA App
danger Will Robinson?
Is there a chance that, given the uncertainty around the bricks and suspicion of the emmc, that this could stress the emmc and exacerbate the bricking issue?

Mdp_Dma busy

Hello i've been getting mdp_dma busy error when i try installing android. Although it bypasses after a while and android does boot but it freezes on the main screen and cant go any further from there. Please help.
I've tried formatting my 8gb sandisk card numerous number of times with sdcard formatter in fat 32 without any partitions but it still gives me this error.
What build? What kernel, rootfs, etc?
M using
modules-2.6.27.46-01295-g6b5119d.tar.gz
I'm not sure about the rootfs but i'm trying to install it through npkboot blackstone blazn is what i'm trying and i've replaced the startup file with the one for blackstone already..
Any other stable version you cn guide me with that can be easily installed and is speedy ??
kulwant said:
M using
modules-2.6.27.46-01295-g6b5119d.tar.gz
I'm not sure about the rootfs but i'm trying to install it through npkboot blackstone blazn is what i'm trying and i've replaced the startup file with the one for blackstone already..
Any other stable version you cn guide me with that can be easily installed and is speedy ??
Click to expand...
Click to collapse
I tried installing FRX06_Full_Bundle_25.3.2011 and i got the same problem of mdp_dma busy. I've used the below Startup.text
set ramsize 0x10000000
set ramaddr 0x10000000
set mtype 2030
set KERNEL zImage
set initrd initrd.gz
set cmdline "lcd.density=240 msmvkeyb_toggle=off msm_blackstone_pad.vibrate=1 gsensor_axis=-2,-1,3 msmsdcc_1bit msmsdcc_fmax=14000000 msmsdcc_nopwrsave pm.sleep_mode=1"
boot
I'm using the ts-calibration_blac.zip file after extraction, rootfs and zimage from the zip folder in the bundle only and the modules-2.6.27.46-01276-g6a6a1c1.tar.gz
I'm copying it all on the root of my sd card.
I've formatted the card in all three ways given in sd card formatter quick, full, full(erase)
Have you tried any newer kernels? Not sure off the top of my head what would cause it.
it's the card,i had sandisk 8gb and it didn't work.
sandisk 2gb works like a charm for me
farukb said:
it's the card,i had sandisk 8gb and it didn't work.
sandisk 2gb works like a charm for me
Click to expand...
Click to collapse
orly...
We had this issue on RHOD's a while back, there was a clocks commit in the kernel... but it was since reverted, and it's been fine.
Additionally, we added these lines (which I see in the OP's startup)
Code:
msmsdcc_1bit msmsdcc_fmax=14000000 msmsdcc_nopwrsave
which would circumvent the issue...
I'll ask around, perhaps there's something else we need to be doing to circumvent for BLAC...? Or perhaps that commit didn't effect BLAC... I'll see what I can do.
In the meantime, please try another card and let me know the results. Also, what card is failing? Gimmie manufacturer, speed, size. Like mine is a class 4 (C4 on the card) Kingston, 8gb.
arrrghhh said:
orly...
We had this issue on RHOD's a while back, there was a clocks commit in the kernel... but it was since reverted, and it's been fine.
Additionally, we added these lines (which I see in the OP's startup)
Code:
msmsdcc_1bit msmsdcc_fmax=14000000 msmsdcc_nopwrsave
which would circumvent the issue...
I'll ask around, perhaps there's something else we need to be doing to circumvent for BLAC...? Or perhaps that commit didn't effect BLAC... I'll see what I can do.
In the meantime, please try another card and let me know the results. Also, what card is failing? Gimmie manufacturer, speed, size. Like mine is a class 4 (C4 on the card) Kingston, 8gb.
Click to expand...
Click to collapse
I've got Sandisk 8gbMicro SDHC with around 3.6 mbps writing speed i guess. It was working fine as i've had android working on my card a while ago. Although i do need to include this line as it returns waiting for sd card error but works fine after this. It usually stucks at r4:00000000 line and dma_busy as irq is already in use something.
kulwant said:
I've got Sandisk 8gbMicro SDHC with around 3/6mp/s writing speed i guess. It was working fine as i've had android working on my card a while ago. Although i do need to include this line as it returns waiting for sd card error but works fine after this. It usually stucks at r4:00000000 line and dma_busy as irq is already in use something.
Click to expand...
Click to collapse
You can't look at the card and look for a letter C and a number?!? C4, C6, C10?
Either way, can you try another card just to rule that out?
c2 it says on the card..
there was a line to limit transferring speed,can't remember it now,argh knows it probably.someone suggested that you need to "slow down" the card to work
farukb said:
there was a line to limit transferring speed,can't remember it now,argh knows it probably.someone suggested that you need to "slow down" the card to work
Click to expand...
Click to collapse
Yea, that was related to the startup.txt commands I pointed out earlier...
He said the card doesn't boot at all - goes to "Waiting for SD" if he doesn't include those lines. So there's definitely something up... I haven't had the chance to talk to a kernel dev about it yet tho.
kulwant - have you tried a different card yet....?
I've installed it on the same card. Well the GBX0A_Full_Bundle_11.3.2011.zip is working like charm for me. The only problem now lies with the phone keyboard and the buttons. Trying to figure out something with calibration file as ts-calibration_blac.zip didn't do much for me.
I've also tried upgrading the rootfs as suggested to me by another senior member to 20110516-2d0bb0f that i downloaded from xdandroid.com but that again makes my phone gets stuck on r4:0000000 line.
kulwant said:
I've installed it on the same card. Well the GBX0A_Full_Bundle_11.3.2011.zip is working like charm for me. The only problem now lies with the phone keyboard and the buttons. Trying to figure out something with calibration file as ts-calibration_blac.zip didn't do much for me.
I've also tried upgrading the rootfs as suggested to me by another senior member to 20110516-2d0bb0f that i downloaded from xdandroid.com but that again makes my phone gets stuck on r4:0000000 line.
Click to expand...
Click to collapse
Hrm. I really need you to triage, and be very careful about components you've changed.
You're saying FRX06 doesn't work out of the box (no changes) but GBX0A does work out of the box, but fails in the same way when you update?
It honestly sounds like you've updated FRX06 and some update broke it. Can you try FRX06 again, vanilla? Don't change a thing in what comes with the bundle - just add the startup.txt and a ts-calibration file (your own or the attached one, doesn't matter) and see if it works. Then I'll need you to update rootfs by rootfs (since you seem to think that's the culprit) and narrow down for me which one breaks you.
Newest rootfs is working fine for me on FRX06, but I also have a different phone - so I need you to be diligent here! Thanks!
arrrghhh said:
Hrm. I really need you to triage, and be very careful about components you've changed.
You're saying FRX06 doesn't work out of the box (no changes) but GBX0A does work out of the box, but fails in the same way when you update?
It honestly sounds like you've updated FRX06 and some update broke it. Can you try FRX06 again, vanilla? Don't change a thing in what comes with the bundle - just add the startup.txt and a ts-calibration file (your own or the attached one, doesn't matter) and see if it works. Then I'll need you to update rootfs by rootfs (since you seem to think that's the culprit) and narrow down for me which one breaks you.
Newest rootfs is working fine for me on FRX06, but I also have a different phone - so I need you to be diligent here! Thanks!
Click to expand...
Click to collapse
I just finished formatting and copying GBX0A_Full_Bundle_11.3.2011.zip again i used the ts-calibration_blac.zip and it is working fine now. But there is a problem with the keyboard so i'm trying to fix that. As soon as the keyboard gets pops out the 4 buttons on phone stop responding. Will update once that is done
kulwant said:
I just finished formatting and copying GBX0A_Full_Bundle_11.3.2011.zip again i used the ts-calibration_blac.zip and it is working fine now. But there is a problem with the keyboard so i'm trying to fix that. As soon as the keyboard gets pops out the 4 buttons on phone stop responding. Will update once that is done
Click to expand...
Click to collapse
We've been talking about that in the gb thread... seems the consensus is 'use Swype'.
I know but again in order to install that i need a keyboard to type that address into the browser. I can't do that with present keyboard. I've got Droid.Swype.Beta.5612.apk on my sd card but that can open only with astro manager and that is not installed. Again i need to goto market but market needs google signin. That again i won't be able to type..Thiinking of what to do..:-s
long press on any text input area and you will get a pop up showing "input method" click it and choose Japanese IME,that'll be good enough to get swype

Categories

Resources