[03 JAN][IDEA] Ramdisk for CM6 builds with external data.img [NOT BUILD] - HD2 Android NAND Development

Features
- external data.img support.
- update kernel and system files without adb.
- easily update build with update.zip, don't have to re-flash.
- options to set data.img size, lcd density, etc in config file.
To enable external data.img
1. create '.data' folde under sdcard (/sdcard/.data).
2. create 'config.txt' under '.data' directory, add 'data_img=1' into 'config.txt'.
3. copy old data.img to '.data' directory, otherwise a new data.img will be created.
4. boot into Android.
If experiencing issue with 1 and 2, simply copy '.data' from View attachment data.zip to sdcard.
To disable external data.img
- delete 'data_img=1' in config.txt.
- delete config.txt.
To change kernel and modules
1. create 'update' folder under sdcard (/sdcard/update).
2. create 'boot' folder under 'update' directory, put zImage into 'boot'. (reboot is needed after updating)
3. create 'system/lib/modules' under 'update' directory, put bcm4329.ko, tun.ko, etc into 'modules'.
4. boot into Android.
To replace initrd.gz and system files
- same as change kernel and modules.
- put 'initrd.gz' under '/sdcard/update/boot'. (reboot is needed after updating)
- put system files under '/sdcard/update/system'.
To use update.zip
- create an update.sh and compress it with update files to update.zip.
- put update.zip under 'sdcard/update'.
- Try ClockworkMod Recovery for HD2
Downloads
- View attachment leo-initrd-0.1.1.zip
- if you want to test the ramdisk, download this build package. Don't forget to backup your data. (thanks to projection for the kernel)
If you've downloaded LEO-CM6.1.1-NAND-3.zip, to update to 3.1, please download the new initrd file, then try the update method above.
To do
- add desire builds support
- add squashfs support
Changes
0.1.1 - fix a stupid typo, sorry.
0.1 - initial.
About config.txt
Code:
data_img=0
- 0, default, use nand userdata, about 250 MB for cm builds
- 1, enable external data.img support (/sdcard/.data/data.img)
data_size=512
- size of data.img, only work when data.img support enabled and first install
data_sync=1
- 0, fast, default, disable sync option when mount data.img
- 1, safe, enable sync option when mount data.img, use this if experiencing data corruption
lcd_density=240
- size of icons
gps_zone=us
- country code, us, fr, jp, etc
Credit to DarkForces Team and everyone in this thread.

that will be very usefull one.another massive milestone in android-hd2 development.cheers

I'm just downloading RAM DISK build... why You strike it ? shoudn't I install it ?

it is becoming obvious that this will be essential for euro H2 NAND builds being that there is very little phone space to play with, where this would be best cooked into ROMs more detailed instructions for noobs would be good.

This is a great idea and will help with the euro versions of hd2 with limited space.
I wonder what will happen with sync, will we run into data corruption problems as with sd builds?
Can this be made so as the data can be on a seperate ext 3/4 partition in sync and the rest of the sdcard can be mounted / unmounted etc ?

DavidX_07 said:
I'm just downloading RAM DISK build... why You strike it ? shoudn't I install it ?
Click to expand...
Click to collapse
Found a stupid typo... will be back soon.

getting back on the horse Kouno? =P
d/l and will test it later
I need to update from your nandv1
had problems with your nandv2, can't change system/lib to r/w
Time to test nandv3

ikkon said:
getting back on the horse Kouno? =P
d/l and will test it later
I need to update from your nandv1
had problems with your nandv2, can't change system/lib to r/w
Time to test nandv3
Click to expand...
Click to collapse
Please download later since it is not available right now.
The lib and xbin is compressed with squashfs in v2, so you can't edit. That's just for test propose. And squashfs file systems have been removed in v3.

i love your job HD2One.
great idea
Is it become to HD2NAND?

LondonTownGuy said:
Can this be made so as the data can be on a seperate ext 3/4 partition in sync and the rest of the sdcard can be mounted / unmounted etc ?
Click to expand...
Click to collapse
I'm new to Android builds configuration, but after some research it looks like it's possible in theory. Personally I do not understand why everyone is so obsessed in data.img file, while it's linux partition in file, that stored on FAT partition. I think actual linux partition on sd card is more elegant solution.

lcd_density=xxx not changing dpi

DavidX_07 said:
lcd_density=xxx not changing dpi
Click to expand...
Click to collapse
Right, it is a typo issue and fixed in 0.1.1.
Please download the new initrd file, then try the update method, tell me if it works

hey Kouno
I just hope you know that Window users can't name a folder that starts with "."
We can always find a way but just giving you the heads up
Ready to Quadrant v.3.1

Kouno.Takaaki said:
Right, it is a typo issue and fixed in 0.1.1.
Please download the new initrd file, then try the update method, tell me if it works
Click to expand...
Click to collapse
Yup, it works BTW blazing fast, testing more now

ikkon said:
hey Kouno
I just hope you know that Window users can't name a folder that starts with "."
We can always find a way but just giving you the heads up
Click to expand...
Click to collapse
I know, so I've provided data.zip and .data folder in the flash package.
Why I use .data instead of data or data2sd? Just want to keep it hidden.

Using the Ramdisk file, when I first turn on the device.
Code:
# cat /proc/meminfo | grep "MemFree"
cat /proc/meminfo | grep "MemFree"
MemFree: 273232 kB
And 5 minutes later.
Code:
# cat /proc/meminfo | grep "MemFree"
cat /proc/meminfo | grep "MemFree"
MemFree: 25596 kB
Memory gets really low, I wonder why?
EDIT: Could just be me. :s

SystemPanel shows 270MB free ram

shadiku said:
Using the Ramdisk file, when I first turn on the device.
Code:
# cat /proc/meminfo | grep "MemFree"
cat /proc/meminfo | grep "MemFree"
MemFree: 273232 kB
And 5 minutes later.
Code:
# cat /proc/meminfo | grep "MemFree"
cat /proc/meminfo | grep "MemFree"
MemFree: 25596 kB
Memory gets really low, I wonder why?
Click to expand...
Click to collapse
Try 'free' command or check the cached memory size.

updating works fine...
framework-res.apk updated succesfull

Sorry , may i ask a stupid question ?
does it work on MDJ Revolution HD v.2.2 build ?
my English is not good !
Sorry for ask this

Related

Howto: Format SD card to use Android ports requiring ext2 or linuxswap

Theoretically, this method eliminates the need for using GParted or any Linux Ubuntu to install Neopeek android ports (or XDandroid if babijoee decides release Ext2 ) Partition within Windows.
>> http://www.youtube.com/watch?v=oyO6DOS1leQ << Watch in 720p please
Recording program used: Camstudio
Partitioning program used: MiniTool Partition Wizard Home Edition
Operating system: Windows 7
Partitioning tool >>http://www.partitionwizard.com/free-partition-manager.html <<
If I did anything wrong such as partitioning as "primary" instead of "logical" please tell me...
I have also found a program (shareware) that can open, add files, and recompress tar.gz files (especially androidinstall.tar.gz) I have tried using 7-zip, Win-Zip, and Win-Rar to do this but Winrar and Winzip will not allow me to do thos. 7-zip just gives me a memory allocation error.
Normally, you would have to install .apk files one by one which is time consuming but by adding the apk files you want to install to the directory /sdcard/npkinstall/androidinstall.tar.gz/data/apps , you can save time and it will automatically install it when you run install.exe or when you first install a neopeek android port onto your device.
The program name is "PowerArchiver"
http://www.powerarchiver.com/ <<the official website. It gives you a 30 day trial, sort of like winrar but better
A video to demonstrate the process of installing neopeek builds..
http://www.youtube.com/watch?v=ArWYwjKEACo
I am going to use this video on my site if you don't mind!?!? Some users still have problems to get an EXT2 partition working! Especially windows users have this kind of problems! Anyway thank you for sharing this. Great work!
e334 said:
I have also found a program (shareware) that can open, add files, and recompress tar.gz files (especially androidinstall.tar.gz) I have tried using 7-zip, Win-Zip, and Win-Rar to do this but Winrar and Winzip will not allow me to do thos. 7-zip just gives me a memory allocation error.
Normally, you would have to install .apk files one by one which is time consuming but by adding the apk files you want to install to the directory /sdcard/npkinstall/androidinstall.tar.gz/data/apps , you can save time and it will automatically install it when you run install.exe or when you first install a neopeek android port onto your device.
The program name is "PowerArchiver"
http://www.powerarchiver.com/ <<the official website. It gives you a 30 day trial, sort of like winrar but better
Click to expand...
Click to collapse
I could add apk into the tar.gz with total commander with installed bzip plugin.
i didnt try to install the new androidinstall, but next time i'll add some apps before installing.
I haven't tried total commander for PC with the bzip plugin but I'm sure its a better method than using PowerArchiver but it works both ways.
I also tried G-zip but it wasn't very noob friendly.
2 build on same sd card?
hi. is it possible to install both neopeek build ang xdandroid build on same sd card? i am too lazy to clear my sd card each time a new build came out. tq
kazuya87 said:
hi. is it possible to install both neopeek build ang xdandroid build on same sd card? i am too lazy to clear my sd card each time a new build came out. tq
Click to expand...
Click to collapse
Yes, but to my knowledge you can only run one neopeek build.
I basically have a folder called "Androids" and then I have several builds in their own folders. You just have to adjust the startup.txt in each to reflect the folder location.
Oh and if you're having problems dual booting windows mobile and neopeek builds with GEN.Y dual boot (not dual booting 2 android builds though) follow this link..
http://www.neopeek.com/en/forum/12-...EODual-Boot-Neopeeks-Android-Ports-by-Mohamad
arrrghhh said:
Yes, but to my knowledge you can only run one neopeek build.
I basically have a folder called "Androids" and then I have several builds in their own folders. You just have to adjust the startup.txt in each to reflect the folder location.
Click to expand...
Click to collapse
did u mean by adding rel_path=XXXXXXXX on the startup.txt? i will give it a try to store neopeek build and xdandroid build on same sd card this way.
by the way, i already dual booting my winmo and android but i just can't resist the temptation to try latest android build by xandroid and noepeek. they both awesome
kazuya87 said:
did u mean by adding rel_path=XXXXXXXX on the startup.txt?
Click to expand...
Click to collapse
Yes, that is correct.
kazuya87 said:
did u mean by adding rel_path=XXXXXXXX on the startup.txt?
Click to expand...
Click to collapse
can someone elaborate on this, for a andn00b?
benjamminzIS said:
can someone elaborate on this, for a andn00b?
Click to expand...
Click to collapse
You add "rel_path=path/to/android" to the cmdline section... This would be if the build was 3 folders deep from the root. If you just have Android say in a folder 'andboot' off of the root of the SD, your statement would read "rel_path=andboot" - make sense?
You also realize this has absolutely nothing to do with the builds that require an ext2 partition right? It's just a way to organize multiple builds of Android, but only the "normal" builds that don't require an ext2 partition.
How about the 8 gigabyte sd memory?
I understand 2G sd rom format, but when I format 8G sd as you showen with my own size, android phone could not distinguish it exactly. Could you explain about the 8G sd card?
necafe said:
I understand 2G sd rom format, but when I format 8G sd as you showen with my own size, android phone could not distinguish it exactly. Could you explain about the 8G sd card?
Click to expand...
Click to collapse
From what i know on the sd card there must be 3 partition:ext2 and swap have to be always the same size (EXT2: about 350 mb and SWAP: 64 mb) and the fat32 one has to be the free space should be something like 6.5-7gb on 8 gb card,
What problem do you experience?
Added, how to change keymaps under linux
e334 said:
Added, how to change keymaps under linux
Click to expand...
Click to collapse
Great! Thanks e334, updating rootfs.img in Neopeek's ROMs should now be easier with your how to guide.
Do you think it should deserve a new thread instead of using this "howto format ..." thread? If I may, would suggest something like [Howto] Update rootfs.img in Neopeek ROMs. "Older ROMs" do not apply to XDAndroid ROMs because updating those even if older is straightforward.
Ok.. I will do that then..
thanks! mod may now delete off-topic post's from this thread ... including this & my previous post.
STARTUP.TXT File
set ramsize 0x8000000
set ramaddr 0x10000000
set mtype 2006
set FBDURINGBOOT 0
set cmdline "root=/dev/mmcblk0p2 init=/init rootwait rw rootdelay=3 console=tty0 rootdelay=3 fbcon=rotate:2 ro.sf.hwrotation=180 lcd.density=240 msmvkeyb_toggle=off msmts_calib=0x0366.0x04b.0x0c8.0x038e acpuclock.oc_freq_khz=600000 pmem.extra=1 no_console_suspend clock-7x00.mddi=0xa51 physkeyboard=kovsq hw3d.force=1"
boot

[TUT][20110115][Expert Users & ROM Makers]To add userdata everywhere to your HD2 ROM

[TUT][20110115][Expert Users & ROM Makers]To add userdata everywhere to your HD2 ROM
*FOR EXPERT USERS OR ROM MAKERS ONLY*
*I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO YOUR DEVICE BY USING THIS*
Features:
- Able to have userdata on NAND or in ext sdcard partition or in /sdcard/.data/data.img
- Check if NAND partition exist
- Check if ext sdcard partition exist
- Resizable data.img (bigger or smaller)
- Able to prioritize data.img, ext or NAND
- Able to copy data from NAND to data.img, or ext to data.img (in this order)
- Write data.log in /sdcard/.data/
- Automatic update data.config if it haven't all options
Click to expand...
Click to collapse
Requirements
Kernel with:
# -File systems: yaffs2, ext2, ext3 (, ext4)
# -MTD partition in /proc/mtd
# -MTD block in /dev/block/mtdblock*
# -SD Card in /sys/block/mmcblk0
InitRD with:
# -/system
# -/proc
# -/sys
# -/data
# -/mfbin
SD Card with first partition as FAT32 or EXT*: mmcblk0p1
SD Card with second partition as EXT*: mmcblk0p2
Click to expand...
Click to collapse
How to use it
In your initrd root
Rename your android init (binary) to init.android
Comment "mount yaffs2 [email protected] /data nosuid nodev noatime nodiratime" in your init.rc
Past mfbin folder
Modify mfbin/.data/data.config with your default setup and "Some variables" in init script
Use new init script and chmod it with 755
Click to expand...
Click to collapse
Download : http://www.multiupload.com/F86WGU6H70
Zip content:
- my initrd.gz example (normally for ManusFreedom or tytung ROM)
- init (extracted from initrd.gz)
- .data folder sample
Click to expand...
Click to collapse
Logical description
To prioritize use data.img over userdata on NAND or ext sdcard partition:
Change data_force_mount to y
To prioritize use ext sdcard partition over userdata on NAND:
Change data_force_mount to n
Change data_ext_priority to y
To prioritize use NAND:
Change data_force_mount to n
Change data_ext_priority to n
Click to expand...
Click to collapse
Use data_copy_to_img=y to copy data from NAND to data.img. If no data on NAND, it try to mount ext partition to copy it to data.img. Works only during creation of data.img (not after).
Click to expand...
Click to collapse
To resize to a bigger data.img (backup your data.img before):
1. If you don't have on sd a directory .data copy .data from install to the root of your sd
2. Open .data/data.config of root of SD Card
3. Change data_size to the size you want in megabytes (recommand not less than 128MB and not over 2GB)
4. Change data_resize to y
5. Boot your phone
6. Wait (time depend)
7. You will be normally under Android
8. You can change data_resize to n for security
To resize to a smaller data.img [CHECK THE FREE SPACE BEFORE SHRINK] (backup your data.img before):
1. If you don't have on sd a directory .data copy .data from install to the root of your sd
2. Open .data/data.config of root of SD Card
3. Change data_size to the size you want in megabytes (recommand not less than 128MB and not over 2GB)
4. Change data_resize to y
5. Change data_force_shrink to y
6. Boot your phone
7. Wait (time depend)
8. You will be normally under Android
8. You can change data_resize and data_force_shrink to n for security
Click to expand...
Click to collapse
Please test it and give feedback.
Thanks meter click .
And if you appreciate my work and want to buy me a drink, please consider making a donation too, thanks.
Added ext sdcard partition support.
manusfreedom said:
Added ext sdcard partition support.
Click to expand...
Click to collapse
Great stuff! I will test it out...
Quick question... how do I create the boot.img using this initrd.gz and the kernel of my choice?
pongster said:
Quick question... how do I create the boot.img using this initrd.gz and the kernel of my choice?
Click to expand...
Click to collapse
the easy way for me is using android itself, put initrd.gz and zimage in /sdcard/boot/
adb shell
mkyaffs2image /sdcard/boot/ /sdcard/boot.img
edit..
this is great, make me so easy creating a rom.. thanks manus
lesjaw said:
the easy way for me is using android itself, put initrd.gz and zimage in /sdcard/boot/
adb shell
mkyaffs2image /sdcard/boot/ /sdcard/boot.img
Click to expand...
Click to collapse
Thanks. I actually created one using mkfs.yaffs2 in linux... but it gave me a kernel error after successfully installing via clockwork... Possible reason as well is the update-script I use... what update-script do you use for your ROM-ZIPs?
pongster said:
Thanks. I actually created one using mkfs.yaffs2 in linux... but it gave me a kernel error after successfully installing via clockwork... Possible reason as well is the update-script I use... what update-script do you use for your ROM-ZIPs?
Click to expand...
Click to collapse
i don't know this for sure, i don't make boot.img for a zip rom, i just put initrd.gz and zimage in boot folder, for update script i use just like raider zip build then compare it with original update script from my original build so i know what i should change in my update script..
lesjaw said:
the easy way for me is using android itself, put initrd.gz and zimage in /sdcard/boot/
adb shell
mkyaffs2image /sdcard/boot/ /sdcard/boot.img
edit..
this is great, make me so easy creating a rom.. thanks manus
Click to expand...
Click to collapse
I actually got the 'NAND kernel open failed' error using another boot.img works though... any ideas to what I'm goofing up?
lesjaw said:
i don't know this for sure, i don't make boot.img for a zip rom, i just put initrd.gz and zimage in boot folder, for update script i use just like raider zip build then compare it with original update script from my original build so i know what i should change in my update script..
Click to expand...
Click to collapse
is your boot folder inside the /system folder? so initrd.gz and zImage inside /system/boot
then you take the META from RaiderX and compare update scripts
before finally creating an update.zip using 1. /system folder and 2. META folder ?
pongster said:
is your boot folder inside the /system folder? so initrd.gz and zImage inside /system/boot
Click to expand...
Click to collapse
No, boot folder is on itself, together with system folder and Meta folder, so we have three folder inside zip
pongster said:
then you take the META from RaiderX and compare update scripts
before finally creating an update.zip using 1. /system folder and 2. META folder ?
Click to expand...
Click to collapse
yes, i need to do that to see if any spesific file permission need to be added
lesjaw said:
No, boot folder is on itself, together with system folder and Meta folder, so we have three folder inside zip
yes, i need to do that to see if any spesific file permission need to be added
Click to expand...
Click to collapse
Thanks.. tried the 3 folders before reading your post... got past the error but its stuck at gogogo...
could you attach the meta folder you use so i can test it out... ?
lesjaw said:
No, boot folder is on itself, together with system folder and Meta folder, so we have three folder inside zip
yes, i need to do that to see if any spesific file permission need to be added
Click to expand...
Click to collapse
so for this manus initrd.gz you just put this in your /boot folder in the romzip and flash away? it must be my update-script then... installing via daf works so i know my system works...
pongster said:
so for this manus initrd.gz you just put this in your /boot folder in the romzip and flash away? it must be my update-script then... installing via daf works so i know my system works...
Click to expand...
Click to collapse
uploading..btw, you can hit me up at gtalk [email protected] rather then we talk about it here..i'm afraid our conversation is getting out of topic from OP thread..
lesjaw said:
uploading..btw, you can hit me up at gtalk [email protected] rather then we talk about it here..i'm afraid our conversation is getting out of topic from OP thread..
Click to expand...
Click to collapse
i know... sorry mods...
back on topic...
did this initrdgz detect your ext partition on sd properly?
New version available (v3)
Added:
- Able to prioritize data.img, ext or NAND
- Able to copy data from NAND to data.img, or ext to data.img (in this order)
- Write data.log in /sdcard/.data/
- Automatic update data.config if it haven't all options
The download file is removed from all servers!!
zooz11 said:
The download file is removed from all servers!!
Click to expand...
Click to collapse
No more direct support for this thread.
You can extract my init script from my updated zip:
http://forum.xda-developers.com/showthread.php?p=11986922#post11986922

Simple Android swap partition solution

Didn't see much on this as I was looking around today, so I decided to post my eventual fix:
After first setting up froyo on my Rhodium 400, I was having alot of issues with the phone running out of memory and crashing, so I ended up adding a swap partition. Below is an easy way to do this and have the swap mounted at boot without having to use an external app like swapper:
NOTE - before doing this I suggest that you copy rootfs.img from your SD card onto your computer, and then copy it back once you're finished. I also suggest you make a backup copy of rootfs (rootfs.img.backup etc) before trying mods like this so you can recover your file system if something goes wrong.
on a linux machine, make a mount point and mount the kernel image as a loop device:
Code:
mkdir /mnt/mounthere
mount -o loop rootfs.img /mnt/mounthere
cd into mount point you created (ie, cd /mnt/mounthere) and list the contents with ls. You'll see something like this:
Code:
acct dbgfs init.cfg mnt shared_prefs
bin default.prop init.etc proc sqlite_stmt_journals
cache dev init.rc res sys
config etc installer sbin system
d init lib scripts tmp
data init.android lost+found sdcard ueventd.rc
you want to open the script init with a text editor like nano and add the following lines just before the line that says exec /init.android:
Code:
modprobe ramzswap
swapon /dev/block/mmcblk0p2
where /dev/block/mmcblk0p2 is a pre-created linux swap partition on your SD card.
Once you're done, simply unmount rootfs.img and copy it back onto the SD card you're using for android
Its a pretty simple solution that I've found to make my own phone much more stable and responsive, and you only have to worry about it once. The downside is that on slower sd cards, the phone may slow to a crawl when installing apps, but hey, it beats the phone locking up and crashing back to windows mobile, right?
This really is not needed if you are running the latest versions of everything (and using XDANDROID). If you are experiencing problems with the full official latest version of everything (all info is in the thread in my sig) make sure you post in the ANDROID section

[Cuestion] Swap Partition on CyanogenMod 7.2

I tried every way, but I can not use the swap partition on my WFS.
I installed the latest version of the ROM and the Kernel, but I can't make it work.
Does anyone know what should I do to run the "Swap Partition" on my phone?
Go through this.
http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache
The cyanogenmod team feels that swap doesn't serve it's purpose on an Android device. To quote them
"This question is hotly debated, but you almost definitely do not need swap or compcache. The only exception to this may be if the device is a first generation device (i.e. HTC Dream or HTC Magic). If you think swap or compcache may make the device faster, feel free to follow the directions below."
Click to expand...
Click to collapse
And the WFS is not a first generation device
If you still want to go ahead with it, that link provides a how-to.
But the problem is that with this ROM my phone does not recognize the swap partition. I would like to post on its own thread, but I can not because I am a new user.
DanHidalgo said:
I tried every way, but I can not use the swap partition on my WFS.
I installed the latest version of the ROM and the Kernel, but I can't make it work.
Does anyone know what should I do to run the "Swap Partition" on my phone?
Click to expand...
Click to collapse
You have to create a mount script and copy it to /system/etc/init.d and give it the same permissions all the other files in init.d
Attached is the code to use if you have swap as the third partition on your SD card. Remove the .txt extension and place it in /system/etc/init.d and give it the appropriate permissions then reboot
Use the command "free" in a terminal session to verify swap is active and working.
It should be pretty straightforward to modify it to be the second if you aren't using an SD Ext partition for programs.
The code is:
Code:
#!/system/bin/sh
#Checks for a swap partition on mount 3 of the SD card and use it for swap partition.
if [ -b /dev/block/mmcblk0p3 ];
then
#Uncomment the line below to adjust swappiness. Default is 60 I believe
# echo 20 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
Change the line:
if [ -b /dev/block/mmcblk0p3 ];
to
if [ -b /dev/block/mmcblk0p2 ];
If you only have your FAT32 Primary and your Swap partition and no SDExt
I will try it this evening. Some people told me that oboe is that I created the Swap Partition with the recovery and I have to create it with the PC.
If I get it working I'll post my results. If not you will see me here again.
Enviado desde mi HTC Wildfire S usando Tapatalk
d33ps1x said:
You have to create a mount script and copy it to /system/etc/init.d and give it the same permissions all the other files in init.d
Attached is the code to use if you have swap as the third partition on your SD card. Remove the .txt extension and place it in /system/etc/init.d and give it the appropriate permissions then reboot
Use the command "free" in a terminal session to verify swap is active and working.
It should be pretty straightforward to modify it to be the second if you aren't using an SD Ext partition for programs.
The code is:
Code:
#!/system/bin/sh
#Checks for a swap partition on mount 3 of the SD card and use it for swap partition.
if [ -b /dev/block/mmcblk0p3 ];
then
#Uncomment the line below to adjust swappiness. Default is 60 I believe
# echo 20 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
Change the line:
if [ -b /dev/block/mmcblk0p3 ];
to
if [ -b /dev/block/mmcblk0p2 ];
If you only have your FAT32 Primary and your Swap partition and no SDExt
Click to expand...
Click to collapse
When I try to move the script to the specific file I get: failed to copy, or failed to move. How could I copy or move the script in /system/etc/init.d and give all permissions? I am using ES File Explorer and ASTRO. Should I move the zipped file or only the script? I couldn't move none of them
Portugah said:
When I try to move the script to the specific file I get: failed to copy, or failed to move. How could I copy or move the script in /system/etc/init.d and give all permissions? I am using ES File Explorer and ASTRO. Should I move the zipped file or only the script? I couldn't move none of them
Click to expand...
Click to collapse
You have to mount system partition as RW to be able to manipulate with files there, big white button "Mounr R/W" in the upper part of the Root explorer app while you are in /system/etc/init.d folder. Then you put there swap.txt file that d33ps1x provided up in the post, rename it just to swap and reboot phone.
I did that with almost every version of cm7 from the begining (in which kernel allowed that) and every time it worked, tnx to d33ps1x
kobredabre said:
You have to mount system partition as RW to be able to manipulate with files there, big white button "Mounr R/W" in the upper part of the Root explorer app while you are in /system/etc/init.d folder. Then you put there swap.txt file that d33ps1x provided up in the post, rename it just to swap and reboot phone.
I did that with almost every version of cm7 from the begining (in which kernel allowed that) and every time it worked, tnx to d33ps1x
Click to expand...
Click to collapse
Root explorer is a paid app. Is there any other app I could do that?
Portugah said:
Root explorer is a paid app. Is there any other app I could do that?
Click to expand...
Click to collapse
Total commander for android can do same:
http://forum.xda-developers.com/showthread.php?t=1619734
and it's free
kobredabre said:
Total commander for android can do same:
http://forum.xda-developers.com/showthread.php?t=1619734
and it's free
Click to expand...
Click to collapse
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Portugah said:
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Click to expand...
Click to collapse
Push and hold the file, choose properties and then hit first button right from the file name and current permissions to expand the menu
kobredabre said:
Push and hold the file, choose properties and then hit first button right from the file name and current permissions to expand the menu
Click to expand...
Click to collapse
I moved the file to the specific folder and I restarted my phone. Opening a2sd the swap button was turned off. I opened the terminal and I typed free, the results are 0-0-0. I didn't work.
Portugah said:
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Click to expand...
Click to collapse
I granted permissions to the file using Total Commander app. Thank you. But it looks like it is not working yet.
Portugah said:
I granted permissions to the file using Total Commander app. Thank you. But it looks like it is not working yet.
Click to expand...
Click to collapse
Then the problem can be with kernel on ROM you are using, basic thing is that kernel needs to be abble to support swap for swap to even work... Can't help you much there since you are probably on marvelc version according to you'r country flag, i'm on diferent version. Some1 with same model as yours could help you tough
Is there any way to install another ROM that support swap? which ROM should I use? is there any tutorial?
Portugah said:
Is there any way to install another ROM that support swap? which ROM should I use? is there any tutorial?
Click to expand...
Click to collapse
The [2nd] above post is correct. Swap support is enabled in some custom kernels. If you're looking for another ROM, you're going to primarily ask about the kernel included with that ROM. Stock kernels do NOT support swap. You can enable swap [if you have a supporting kernel] via A2SDGUI or terminal... read up and familiarize yourself with linux swap.. since Android is a branch of Linux; same principles apply
Rob
Sent from my HTC_A510c using Tapatalk 2
This says it's possible to enable swap and compcache on CM7.2, but the howto wiki link is dead
To answer you question directly, by default the swap and Compcache schemes are disabled, but if you still feel the need to use them, above link provides you with a how-to.
So, yes, the CyanogenMod 7.2 supports swap and its usage needs to be activated.
Click to expand...
Click to collapse
Any idea how to do this?
For me the same question. I'm investigating since 1 week, tried scripts etc. no chance
Nexus One,
4EXT recovery (needed for correct sd-ext formatting)
CM 7.2
swap partition is there but not used.
What could i do to enable the swap partition?
Regards,
Marc
Hello,
I have the stable release cyanogenmod 7.2.0.
Swap is not working and gives following message:
swapon: /dev/block/mmcblk0p3: Function not implement
I found some notes saying that the problem is the kernel not supporting
swap. Which kernel can I use with cyanogenmod 7.2.0 with swap support?.
Thanks for your help.

[Q] How do I flash gapps on CM10?

Hi,
I'm having some issues with installing gapps on the latest CM10. I tried flashing directly after the ROM without rebooting and also with a reboot. Either way its not working. First method creates many bugs also. For example the lockscreen is simply gone. When I turn on the display its going straight to the homescreen. What am I doing wrong? CM9 works perfectly fine.
Which CM10 do you use? I used the one by benjamingwynn (the latest, 10/22 build) with this gapps: http://goo.im/devs/tilal6991/gapps/gapps-cfx-jb-20120815-stripped.zip
And I successfully installed it, the Play was there and had no problem with the lockscreen. And I flashed it after I had my first boot.
But if it's still not working, then try this gapps, it's the newest:
http://goo.im/gapps/gapps-jb-20121011-signed.zip
Thanks, but I think I already tried this one. Downloading anyway. Hopefully it works.
Hi!
I am using benjamingwynn20121029
Tried almost all gapps available.
Nothing is working at all.
Tried flashing either way, tried to install playstore apk, it doesn't work,
then i tried to move it to system/app, The disk isnt read/writable (wondering how to do it, there's no option in the file managers)
I'm stuck without gapps :| help please.
---------- Post added at 07:26 PM ---------- Previous post was at 07:19 PM ----------
thetroglo said:
Hi,
I'm having some issues with installing gapps on the latest CM10. I tried flashing directly after the ROM without rebooting and also with a reboot. Either way its not working. First method creates many bugs also. For example the lockscreen is simply gone. When I turn on the display its going straight to the homescreen. What am I doing wrong? CM9 works perfectly fine.
Click to expand...
Click to collapse
Having the exact same problem :/
What worked for me (Speed Droid JB v1.1)
The problem is that with CM10, the WFS' /system partition is already pretty full and can't fit even the 'stripped' gapps. Mine had like 7MB left.
Here's how I it installed on my CM10 based Speed Droid JB V1.1 for WFS:
- Install ROM as usual, with INT2EXT+ or whatever you like
- Reboot
- Connect Phone to USB
- Open console on computer for ADB
Code:
> adb shell
> mount | grep /system
/dev/block/mtdblock3 /system yaffs2 rw,relatime 0 0
(yay, it's mounted read-write)
> df /system
(Free number is MB you have available)
> cd /system/media/audio/notifications
(deleted all .ogg files that were larger than 100KB)
> cd /system/media/audio/ringtones
(deleted all .ogg files that were larger than 100KB)
> cd /system/media
(deleted bootanimation.zip, it was more than 3MB.. you can replace it with your own later)
> df /system
(enough free space now?)
After that, I had about 15MB free on /system, so I could install the 'super-stripped' gapps from http://goo.im/devs/tilal6991/gapps (http://goo.im/devs/tilal6991/gapps/gapps-cfx-jb-20120815-super-stripped.zip) in recovery.
Other tips involve installing TitaniumBackup APK from SDCARD and deleting unwanted stuff.
Hope that helps.
./litemaster
litemaster said:
The problem is that with CM10, the WFS' /system partition is already pretty full and can't fit even the 'stripped' gapps. Mine had like 7MB left.
Here's how I it installed on my CM10 based Speed Droid JB V1.1 for WFS:
- Install ROM as usual, with INT2EXT+ or whatever you like
- Reboot
- Connect Phone to USB
- Open console on computer for ADB
Code:
> adb shell
> mount | grep /system
/dev/block/mtdblock3 /system yaffs2 rw,relatime 0 0
(yay, it's mounted read-write)
> df /system
(Free number is MB you have available)
> cd /system/media/audio/notifications
(deleted all .ogg files that were larger than 100KB)
> cd /system/media/audio/ringtones
(deleted all .ogg files that were larger than 100KB)
> cd /system/media
(deleted bootanimation.zip, it was more than 3MB.. you can replace it with your own later)
> df /system
(enough free space now?)
After that, I had about 15MB free on /system, so I could install the 'super-stripped' gapps from http://goo.im/devs/tilal6991/gapps (http://goo.im/devs/tilal6991/gapps/gapps-cfx-jb-20120815-super-stripped.zip) in recovery.
Other tips involve installing TitaniumBackup APK from SDCARD and deleting unwanted stuff.
Hope that helps.
./litemaster
Click to expand...
Click to collapse
Links broken, could someone suggest where to find an alternative?

Categories

Resources