[Q] Custom MTD on Desire HD - Desire HD Q&A, Help & Troubleshooting

I am looking at using custom MTD to give myself a bit (lot) of extra free space on /data and just wondering if someone with slightly more dev knowledge could check that it would indeed work for the desire hd.
By using this on MIUI you could end up with about 650Mb extra space on /data (400 from /system, 250 from /cache)

anzoshi said:
I am looking at using custom MTD to give myself a bit (lot) of extra free space on /data and just wondering if someone with slightly more dev knowledge could check that it would indeed work for the desire hd.
By using this on MIUI you could end up with about 650Mb extra space on /data (400 from /system, 250 from /cache)
Click to expand...
Click to collapse
Hey this works on desire hd?

Related

[MISC] Flashable All-in-one-data2sd-Solution v0.2e + v0.4 test (dec 27th)

Now found this at the HTC Desire forum,but don`t tested
at the moment and don`t know if this works on Desire Z/G2
too!
It seems to be a good solution.
Features:
- Supports: Ext2, Ext3, Ext4 (and if kernel supports it: ) btrfs, ReiserFS
- Supports loop device as optional addon (as siberes data2sd)
- Flashable zip for many app2sd ROMs (no long setup required)
- It does a e2fsck (disk check) on every boot and creates a logfile on the sdcard (/sdcard/e2fscklog.txt)
- looks nice if you do a logcat on boot
- no "settings lost on reboot" bug like in my old or siberes script
- changes the scheduler for the sd-card and internal to noop for better performance on sd.
- Nandroid Backup of EXT2/3/4 external with AmonRa 2.0.0.1 or any clockwork recovery.
- Removes the common app2sd scripts on its own
More info and downloads:
DATA2whatever-Flashable All-in-one-data2sd-Solution v0.2e + v0.4 test
http://forum.xda-developers.com/showthread.php?t=867049
Hey mate..Thanks for the contribution..I just wanted to ask if there could be any bennefits to using this on a device as DZ..internal memory is more than suufcient and our nand I/O are pretty huge..Back when i had a HTC Desire i used this hack, but i am not sure if this could result in any kind of benefit..Please share ur knowledge/point of view i am interested.
Awesome I might test later... Although like what Chris said, The I/O speeds are pretty fast already
did anyone test this out
chris2busy said:
Hey mate..Thanks for the contribution..I just wanted to ask if there could be any bennefits to using this on a device as DZ..internal memory is more than suufcient and our nand I/O are pretty huge..Back when i had a HTC Desire i used this hack, but i am not sure if this could result in any kind of benefit..Please share ur knowledge/point of view i am interested.
Click to expand...
Click to collapse
Well if you have a class 6 or better sdcard then it will be faster then internal memory that's the only real benefit that I could think of!
Sent from my HTC Vision
Sorry to ask, but i really don't understand this..? what is this about? creating more virtual memory or what is it?
thx
I tried this and it kept causing a boot loop for me.... but I realized later that I think if I had mounted data and cache, like you do for GB gaps it probly would have worked.... just a suggestion. Also there is another all in one data/cache/dalvikcache to sd-ext option that I am testing now.... but I can't remeber were I found it. I think it is called dtappstosd or something like that. And is from the developer dark something...........
EDIT ok he is called dark tremer and it can be found by searching for apps2sd or datasd
EDIT: I should have said mount system/and data.....
Sent from my HTC Vision using XDA App
This is a good idea and good find however, since we have Darktremors a2ext for the G2 and it does data2sd I don't see a huge need for this.

Data2ext three partitions mandatory?

Anyone knows if it is mandatory to have a three partitions layout (1gb + 0.3 gb + 0.1 swap) for data2ext based roms or if they will work also with just 1 ext partion? I tried to search the forums but I didn't find a definitive answer.
Thanks in advance
Just partition so, how it's described in the roms corresponding thread.
SwiftKeyed from Oxygen with Transparent XDA App
I have 1 ext partition and using data2ext

Cyanogenmod 7.x/CM7 Based Roms - Mods a2sd sd-ext Ext4 and Linux-swap Patch2

Update:
YOU MUST have a recovery that supports ext4 in order to use this patch. Currently there is only one recovery for G2 that I know of that is up-to-date that supports ext4 partitioning. That recovery is ext4 recovery. After you get ext4 recovery installed format and wipe everything before installing your rom of choice.
1. Format system
2. Format data
3. Format cache
4. Format sd-ext
----------
A lot of these scripts are based on the stock Cyanogenmod scripts to mount sd-ext partition and allow a2sd.
I've edited the stock system/etc/init.d/05mountsd to mount ext partition as ext4 instead of ext3. The system/etc/init.d/10apps2sd was made by Cyanogen himself and it can be found on the Cyanogenmod github. I've edited it to activate and utilize the sd-ext partition of the device. The swap patches and the cmparts source edits are all my own work. Please see the github for more details.
Required for swap: For swap you need a kernel that supports swap. E.G., Faux123, and may be others but it is your responability to find out which kernels support swap
Udate: this current patch is still working fine for me on the latest nightlies (deodex roms only). But there is a certain way that this patch needs to be installed.
It does not matter if you wipe or do not wipe before flashing.
1. If you are flashing this on cyanogenmod nightlies you need
to flash in this order, otherwise the permissions for your
rom will not be correct. Flash the rom first, then the
patch, then the gapps.
2. For flashing on other CM based roms (deodex only). As
many of you might know, Some roms already include
gapps. So because of this, we will need to flash a
compatible deodex Rom, since the patch sets
permissions for the system, and gapps will not work
correctly with the permissions if already installed in the
system. Flash in the same order you would for normal
cyanogenmod roms. Rom first, then patch, then gapps.
Yes even if the rom already includes
gapps you still must flash gapps.
This thread will only be discussion for Cyanogenmod These are AOSP Roms. DO NOT EVER ASK ABOUT SENSE ROM TWEAKS EVER, they just simply won't work with these mods.
Do not submit revised versions that are already posted, I will try to keep the patches as updated as possible. Do not distribute or modify any of the scripts without my given consent, or at least give me credit!
I am not responsible for you breaking something on your device. If you come and tell me that my mods messed up your phone, I will laugh at you.
I have been running these mods flawlessly with no issues. So let's get right into it.
Options:
WARNING: Before you do anything, do a nandroid
backup. If you need to partition your sdcard via recovery, back up your
entire sdcard to your pc before doing so as it will get formated.
If you want a2sd, then you will need a ext4 partition on your sdcard. I
recommend at least a 1GB+ partition. That's it, the scripts will do the
rest.
You can not have any other types of a2sd installed before applying the patch.
The patch doesn't remove, it installs If you have manually installed some
other type of a2sd, you will need to wipe and re-flash rom. The main
important thing is, make sure system gets wiped.
If you want Linux-swap, just simply add a swap partition to your sdcard when
you go to format it in recovery, simple.
Next download and flash the latest patch over your current rom. Be aware
that if you have a swap partition, that your phone will reboot itself once after
your initial boot. Don't freak out and come crying about how your phone is
boot looping, it only reboots once. This is all part of the initial setup to make
sure swap is working properly.
How to check if a2sd is active and working in terminal emulator from your
phone
Code:
$ su
# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 183.6M 32.0K 183.6M 0% /dev
tmpfs 183.6M 0 183.6M 0% /mnt/asec
tmpfs 183.6M 0 183.6M 0% /mnt/obb
/dev/block/mmcblk0p26
487.8M 143.8M 318.9M 31% /system
/dev/block/mmcblk0p27
430.0M 147.3M 260.5M 36% /data
/dev/block/mmcblk0p28
149.6M 47.5M 94.4M 33% /cache
/dev/block/mmcblk0p31
19.9M 17.2M 2.7M 86% /devlog
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /sd-ext
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/app
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/app-private
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/dalvik-
cache
If you see this part then you are golden
Code:
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /sd-ext
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/app
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/app-private
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/dalvik-cache
How to check if swap is active working from terminal emulator on your
phone
Code:
$su
# free
total used free shared buffers
Mem: 376008 353776 22232 0 15756
-/+ buffers: 338020 37988
Swap: 249544 36780 212764
Next, enjoy your new mods
CMParts (Cyanogenmod settings source): https://github.com/pbeeler/android_packages_apps_CMParts
Changelog: https://github.com/pbeeler/android_packages_apps_CMParts/commits/gingerbread
Holy crap, its Sparksco. How are you doing bro. Looks good, I really don't use a2sd but other might.
Coming from the DARKSIDE.
Haha good man. Yeah this is only really usefull if you are a really heavy app user. That's why I recommend a 1GB ext partition. I'll also try to keep it updated for cm9 once it comes out. How the heck have you been?
Sent from my PG06100 using xda premium
sparksco said:
Haha good man. Yeah this is only really usefull if you are a really heavy app user. That's why I recommend a 1GB ext partition. I'll also try to keep it updated for cm9 once it comes out. How the heck have you been?
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
I am good, Deving away with this great device. My old team pretty much jump started the dev community for the MT4G about a year ago, we released like 10 Roms, Now we all went are seperate ways and I joined up with TDJ and we are now DARKSIDE Dev Team. I am working on Sense 3.5 Rom, ICS Rom (built from source), and a CM7-Hybrid Rom. Besides that I am hanging in there. Thanks for the Mod. What are you up to?
Edit: Anybody wanting to try this, Do it, I completely support anything Sparksco offers, his Rom was legit back in the day of the G1, He is a great dev. There you go gave you some endorsement. lol
Royalknight6190 said:
I am good, Deving away with this great device. My old team pretty much jump started the dev community for the MT4G about a year ago, we released like 10 Roms, Now we all went are seperate ways and I joined up with TDJ and we are now DARKSIDE Dev Team. I am working on Sense 3.5 Rom, ICS Rom (built from source), and a CM7-Hybrid Rom. Besides that I am hanging in there. Thanks for the Mod. What are you up to?
Edit: Anybody wanting to try this, Do it, I completely support anything Sparksco offers, his Rom was legit back in the day of the G1, He is a great dev. There you go gave you some endorsement. lol
Click to expand...
Click to collapse
Very nice. Glad to see your doing well with the deving. I'm accually just been making kernels most of the time, but these patches are my little side projects when I have time. Thanks for the endorsement. Still just tinkering around here and there, but have been using github and working with source code a lot more now.
Sent from my PG06100 using xda premium
Damn I seen Sparksco name and got really happy. I miss your rom
sparksco said:
Very nice. Glad to see your doing well with the deving. I'm accually just been making kernels most of the time, but these patches are my little side projects when I have time. Thanks for the endorsement. Still just tinkering around here and there, but have been using github and working with source code a lot more now.
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
If you want to drop some kernels on this forum no one would object. We already have some great ones to choose from but nothing wrong with more choices. I'll test! Lol.
Sent from my HTC Glacier using XDA App
Hell yeah! I used your roms all the time on the g1. Good to see you around!
Sent from my HTC Glacier using XDA App
estallings15 said:
If you want to drop some kernels on this forum no one would object. We already have some great ones to choose from but nothing wrong with more choices. I'll test! Lol.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
Now that you mention it I did try to build a kernel for glacier based on my own kernel but it did not work out very well. Hopefully more kernels will start to pop up once cm9 is available that support swap. The best way to tell if it's working is on the logcats
Sent from my PG06100 using xda premium
Thanks man, I have been waiting for more mods like this. Don't know why devs haven't been incorporating this into all their roms. Appreciate the work, looking forward to seeing u more around here.
They could if they want to. The partitions are not required to be used in roms, so it makes it very usefull.
Sent from my PG06100 using xda premium
Updated OP with recovery instructions. Ext4 recovery should work great for using this patch. Anyone else having the audio issue? Tiamat kernel should work for swap unless there's another better kernel that supports swap that I am not aware of.
Sent from my PG06100 using xda premium
Has anyone tried Faux123's kernels on this to see if swap works?
Sent from my PG06100 using xda premium
Alright this is now on rom manager. I made it easier to intall on rom manager but I can't read the comments on there so please post all or any questions here instead of on rom manager.
Sent from my PG06100 using xda premium

[tutorial][enable linux swap][alquez unoffical cm7.2]

First: Have Alquez's CM7.2 installed
Second: Flash his new kernel that supports linux swap partitions
Third: Read my tutorial on creating a Ext partition and a third Linux swap partition
Fourth: Read this post by me on how to enable swap persistantly and adjust swappiness.
Does it make any sense to use a swap partition?
I think, no. Why not? Read about in the official cm wiki: http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache
Android has a very good built-in memory management. Apps not used any more will be closed and memory released. Swap does change that behavior, because RAM now (virtually) is much bigger. There's no sense anymore in cleaning parts of the RAM.
Androids mem management is much more efficient.
The only reason to use swap would be 1st generation phones (G1, Dream, Magic). Wildfire S would have no advantage of swap! Rather the opposite.
Using swap should require at least class 6 SD for not slowing down the device. Plus, the additional write accesses will wear down your sd much quicker.
Everyone has to decide if he wants this. I decided, not to do.
theq86 said:
does it make any sense to use a swap partition?
Click to expand...
Click to collapse
I'm just telling you how. You'll have to decide that for yourself.
Personally I'm just playing around with it...cause I can.
d33ps1x said:
I'm just telling you how. You'll have to decide that for yourself.
Personally I'm just playing around with it...cause I can.
Click to expand...
Click to collapse
Well, I read a little bout that topic and consider it more harming than useful. (read my edited post above)
Consider setting /proc/sys/vm/swappiness to 10 or even lower for android ?
what on earth is swap anyway?
swap is taking apart of your sd card or internal memory as ram memory like pageing file in windows

Android L for Galaxy W? In Custom way?

Oh,,, hell yeah, i want it badly. :victory:
+1
No. No sources are released, and you'll have to find someone to port it when the sources are released in the fall.
SGWUser said:
No. No sources are released, and you'll have to find someone to port it when the sources are released in the fall.
Click to expand...
Click to collapse
Maybe sir arco will save us again when the sources are released You never know..
a port may come soon but we have to wait until it is final so they release cm 12
eri000 said:
a port may come soon but we have to wait until it is final so they release cm 12
Click to expand...
Click to collapse
That isn't necessarily true, for example CM 10.1 released by arco still in beta4 version
dqsnunes said:
That isn't necessarily true, for example CM 10.1 released by arco still in beta4 version
Click to expand...
Click to collapse
the CM team announced that there will be NO CM version until the google releases the final image of android L on AOSP.This doesn't mean we will have a final stable version of cm immediately BUT we will only see a cm12 build when final android L gets merged into aosp.
^That is for other phones that get CM OFFICIAL.For ancora we have to wait a little bit more for unofficial cm, which is based on official cm.So no official--- no unofficial (arco if he has time to mess with it,or others)
BTW, Android L is currently being ported to the Nexus 4 and Nexus 7 2012 right now. Both are almost functional.
I think even if we were to have Android L here, i don't think it will be responsive. Google said, Animation transitions run at 60fps, Im not sure if overall perfomance can run at the same fps because i bet our processor is not powerful enuff or smth. CMIIW.
Android L Port For Nexus 4
Newest Android L Port For Nexus 4 Is Now Fully Operational And Ready For Download
INFO
I strongly doubt that our device could get an Android L update.
The default runtime of android l is ART runtime.Our device does'nt hold that much of system memory for apps.
The only chance is to make a switchable runtime like in Kitkat (Dalvik/Art) or creating a new partition .
Anyway these are all guess and lets see what magic our Great devs can bring to our small beloved device.:good::fingers-crossed:
theloneseeker said:
I strongly doubt that our device could get an Android L update.
The default runtime of android l is ART runtime.Our device does'nt hold that much of system memory for apps.
The only chance is to make a switchable runtime like in Kitkat (Dalvik/Art) or creating a new partition .
Anyway these are all guess and lets see what magic our Great devs can bring to our small beloved device.:good::fingers-crossed:
Click to expand...
Click to collapse
A swap partition for art can't help?
theloneseeker said:
I strongly doubt that our device could get an Android L update.
The default runtime of android l is ART runtime.Our device does'nt hold that much of system memory for apps.
The only chance is to make a switchable runtime like in Kitkat (Dalvik/Art) or creating a new partition .
Anyway these are all guess and lets see what magic our Great devs can bring to our small beloved device.:good::fingers-crossed:
Click to expand...
Click to collapse
Problem is not a system partition because system partition size(550mb) should be enough because at the moment with latest cm11+gapps i have a 150 mb free space on my system partition so i think our phone can/will handle next android release but we cant know at the moment so im not sure
But main problem is small cache partition
İt is just 60 mb
For that reason we are using some dirty workarounds(in my opinion) like this https://github.com/arco/android_device_samsung_ancora/commit/3455d7837c951e297335295a36cd2202a9f629f3 with that workaround apps is using /data partition instead of /cache partition for dalvik-caching operations
Why im saying this is dirty workaround? Because i think each operation should use its own partition
Repartition is a real fix for that kind of problems but this way is a very dangerous and have brick risk
İm planning to make some experiments like this:
-With fdisk im planning to split out my internat sdcard(1.7 GB ,mmcblk0p28) to 2 new partitions(first partition will be mmcblk0p28 and have 1.3 GB size and second partition will be mmcblk0p29 and have 400 MB size)
Then we will use mmcblk0p29 as cache partition
-For that firstly we need to format the partition as ext4(because internal sd is vfat but cache partition must be ext4 fs type formatted)
-After converting from vfat to ext4 of new mmcblk0p29 partition, we will change cache partition from mmcblk0p16 to 29 through fstab.qcom
-and last thing we need to do is removing/disabling previous workaround so we will change the following build.prop line dalvik.vm.dexopt-data-only=1 to dalvik.vm.dexopt-data-only=0
This is the cleanest way i think because we arent touching to main partitions(system,data and cache)
We just need to split it internal sd(1.7 GB)
Regards
sir mordred said:
Problem is not a system partition because system partition size(550mb) should be enough because at the moment with latest cm11+gapps i have a 150 mb free space on my system partition so i think our phone can/will handle next android release but we cant know at the moment so im not sure
But main problem is small cache partition
İt is just 60 mb
For that reason we are using some dirty workarounds(in my opinion) like this https://github.com/arco/android_device_samsung_ancora/commit/3455d7837c951e297335295a36cd2202a9f629f3 with that workaround apps is using /data partition instead of /cache partition for dalvik-caching operations
Why im saying this is dirty workaround? Because i think each operation should use its own partition
Repartition is a real fix for that kind of problems but this way is a very dangerous and have brick risk
İm planning to make some experiments like this:
-With fdisk im planning to split out my internat sdcard(1.7 GB ,mmcblk0p28) to 2 new partitions(first partition will be mmcblk0p28 and have 1.3 GB size and second partition will be mmcblk0p29 and have 400 MB size)
Then we will use mmcblk0p29 as cache partition
-For that firstly we need to format the partition as ext4(because internal sd is vfat but cache partition must be ext4 fs type formatted)
-After converting from vfat to ext4 of new mmcblk0p29 partition, we will change cache partition from mmcblk0p16 to 29 through fstab.qcom
-and last thing we need to do is removing/disabling previous workaround so we will change the following build.prop line dalvik.vm.dexopt-data-only=1 to dalvik.vm.dexopt-data-only=0
This is the cleanest way i think because we arent touching to main partitions(system,data and cache)
We just need to split it internal sd(1.7 GB)
Regards
Click to expand...
Click to collapse
Nice thinking and good luck :good:
sir mordred said:
Problem is not a system partition because system partition size(550mb) should be enough because at the moment with latest cm11+gapps i have a 150 mb free space on my system partition so i think our phone can/will handle next android release but we cant know at the moment so im not sure
But main problem is small cache partition
İt is just 60 mb
For that reason we are using some dirty workarounds(in my opinion) like this https://github.com/arco/android_device_samsung_ancora/commit/3455d7837c951e297335295a36cd2202a9f629f3 with that workaround apps is using /data partition instead of /cache partition for dalvik-caching operations
Why im saying this is dirty workaround? Because i think each operation should use its own partition
Repartition is a real fix for that kind of problems but this way is a very dangerous and have brick risk
İm planning to make some experiments like this:
-With fdisk im planning to split out my internat sdcard(1.7 GB ,mmcblk0p28) to 2 new partitions(first partition will be mmcblk0p28 and have 1.3 GB size and second partition will be mmcblk0p29 and have 400 MB size)
Then we will use mmcblk0p29 as cache partition
-For that firstly we need to format the partition as ext4(because internal sd is vfat but cache partition must be ext4 fs type formatted)
-After converting from vfat to ext4 of new mmcblk0p29 partition, we will change cache partition from mmcblk0p16 to 29 through fstab.qcom
-and last thing we need to do is removing/disabling previous workaround so we will change the following build.prop line dalvik.vm.dexopt-data-only=1 to dalvik.vm.dexopt-data-only=0
This is the cleanest way i think because we arent touching to main partitions(system,data and cache)
We just need to split it internal sd(1.7 GB)
Regards
Click to expand...
Click to collapse
Umm very interesting if you want some testers,i'm here.
If you have cm11 theme chooser:
http://forum.xda-developers.com/android/themes/theme-l-ready-t2802979
https://play.google.com/store/apps/details?id=nexbit.icons.moonshine
Settings>Performance>Force high-end graphics>check
AND YOU HAVE L IN YOUR WONDER(I LOVE MY WONDER)
what is android L? can someone tell me about it please?
smartiescoke said:
what is android L? can someone tell me about it please?
Click to expand...
Click to collapse
The upcoming Android version. About it...there are many things to say. You could search YouTube for "Google I/O 2014". There are a lot of new things about it. If you've got time to spend and curiosity, it might be very interesting to watch. This way, you will also answer your own question (and more).
arsradu said:
The upcoming Android version. About it...there are many things to say. You could search YouTube for "Google I/O 2014". There are a lot of new things about it. If you've got time to spend and curiosity, it might be very interesting to watch. This way, you will also answer your own question (and more).
Click to expand...
Click to collapse
whoa! really? awesome! i always been waiting google to update different kind of android version. ui and etc, hope it will come to our wonder soon! XD
oh man i love android L ui and statusbar. Hoping our Great Developer can bring this to our Wonder.
#sorry for my bad english.

Categories

Resources