Android Tablets Forum banner
1 - 4 of 4 Posts

·
Registered
Joined
·
4 Posts
Discussion Starter · #1 ·
i read up on this and since noone made a post with that info yet i just start one.taken most info from: http://code.google.com/p/android-roms/wiki/A2SDi like how smooth the Ecotox runs, but i also like the new slatedroid 1.3 which offers 500MB for applications. maybe developers could look into this. would be nice to have it prebuild in custom roms instead of tweaking it afterwards.Apps2sdwhat you need is a rooted eken with working wifi connection and the android-sdk.my sd-card is partitioned in 3 partitions in that order:fat32, ext3, swapchange any mmcblk0p2 and mmcblk0p3 to the right partition in case you have set the partitions in different order. my eken has the ip 192.168.0.21 on my wifi/lanalso the A2SD wiki states you might run into problems with partitions larger than 1.5GB, mine is 2GB and i dont have any however.goto the tools directory of the android-sdk and start the adb connection
Code:
adb connect 192.168.0.21:5555adb shell
then we root on the device, make the directory for the Apps2sd, set permissions and mount it there
Code:
su-confirm on devicemkdir A2SDchown 1000:1000 A2SDmount /dev/block/mmcblk0p2 /A2SD
the df command is to check if everything went smooth and should show something similar to this
Code:
df----------Filesystem           1K-blocks      Used Available Use% Mounted on/dev/root               150528     76324     74204  51% /tmpfs                    50736        16     50720   0% /devtmpfs                     4096         0      4096   0% /sqlite_stmt_journals/dev/block/mtdblock8    153600     37592    116008  24% /data/dev/block/mtdblock9    102400      4616     97784   5% /cache/dev/block/mtdblock11                       1678336      9688   1668648   1% /UserSpace/dev/block/loop0       1507540        16   1507524   0% /LocalDisk/dev/block//vold/179:1                      13264712   3739088   9525624  28% /sdcard/dev/block/mmcblk0p2   2035638      8239   1922174   0% /A2SD/ ----------
now to copy the data over to the sd-card, remove it from the device memory and set the symbolic links so the system finds the files at the new location.without the chmod you might get an error like "application can not be installed on the device"
Code:
cd datacp -r app /A2SDcp -r dalvik-cache /A2SDrm -r apprm -r dalvik-cacheln -s /A2SD/app appln -s /A2SD/dalvik-cache dalvik-cachecd /A2SDchmod 777 appchmod 777 dalvik-cache
now putting the mount on every boot (change /userinit.sh to /usbgadget.sh on slatedroid)
Code:
echo "mount /dev/block/mmcblk0p2 /A2SD" >> /userinit.sh
Swaponjust put these lines in your /userinit.sh or /usbgadget.sh (i used root explorers "open in text editor" for that)
Code:
swapon /dev/block/mmcblk0p3echo 15 > /proc/sys/vm/swappiness sysctl -w vm.swappiness=40
reboot and its all working!
Code:
reboot
please reply with results so i can tweak it in case it fails, thanks
 

·
Registered
Joined
·
247 Posts
ECOTOX v1.1.1 comes with this already enabled? Though I'm trying to work out how the parititions are configured. I made a 96MB swap partition and the rest is FAT32. I don't want or need an ext partition as I don't have anough apps to require apps2sd. I used Amon_RA's recovery v1.7.0.1 in my Nexus One to do the partitioning, then took the microsd card out, put it into the SDHC adaptor and put it in my M001. Now I'm trying to work out how to address / define that swap partition to the M001. Edit: I've tried it as "/dev/block/mmcblk0p1" on the basis it's the first partition. That seems to have worked as "Free" now says I have a total of 195MB of RAM, including 93MB of swap.
 

·
Registered
Joined
·
4 Posts
Discussion Starter · #3 ·
yeah, ECOTOX has swap enabled as the 2nd partition, wont work if its another one.for slatedroid i didnt see any commands for that in the scripts, so i put it here too.swap helps a lot imo( i like to run at least 2 different browsers with different settings and other stuff at the same time, switch back and forth).sharing knowledge is the goal imo, tweaking the most out of our androids ( like in the good old computer times).getting something better than the developer expected ;)inspiring ppl is also nice, so my work was worth something at all!as soon as i get more time ill do some more with my eken (build own kernel and/or write some smaller apps like an auto-market-fixer or so... starcraft 2 beta and my work are keeping me busy however atm )
 

·
Registered
Joined
·
247 Posts
Duke1548: Your guide above is awesome. I'm glad you took the time to document it. It really helped me work out how to make swapping work on my M001. Thanks!!
 
1 - 4 of 4 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top