Guest Splather Posted October 28, 2009 Report Posted October 28, 2009 I have installed the 1.4 kernel but I get this when I try to run cat /proc/ramzswap : cat: can't open '/proc/ramzswap': No such file or directory Same for me, and About shows correct kernel. Not sure how to run lsmod though?
Guest BTJ Posted October 28, 2009 Report Posted October 28, 2009 I guess the problem is that ramzswap is not loaded, but when I run the following from the commandline: /system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko memlimit_kb=64200 backing_swap=/dev/block/mmcblk0p3 I just get the following error: insmod: can't insert '/system/lib/modules/compcache/ramzswap.ko': Device or resource busy Anyone? BTJ
Guest keef319 Posted October 28, 2009 Report Posted October 28, 2009 My brain hurts... Got the userinit.sh to push to /system/sd/ but still don't think it's working. Yet again, I'm out of time now to do this properly and will have to try it again tonight. FFS! Could do with a lovely set of n00b instructions, lol. Once I've done something a couple of times I'm fine with it.
Guest clarkEEE1 Posted October 28, 2009 Report Posted October 28, 2009 (edited) Same for me, and About shows correct kernel. Not sure how to run lsmod though? For all you people having trouble file not found is because you have not put the userinit.sh File into system/sd folder. You don't even need to use adb just open a file manager like sufs or what ever with root access. Extract downloaded userinit.sh zip folder in downloads and copy it to system/sd thats if you dont want to edit the file its that simple can't go wrong. Then run cat /proc/swaps in terminal emulater to see if it works. Simple. Its like copying a mp3 from desktop to music folder on phone that easy. Edited October 28, 2009 by clarkEEE1
Guest BTJ Posted October 28, 2009 Report Posted October 28, 2009 I guess the problem is that ramzswap is not loaded, but when I run the following from the commandline: /system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko memlimit_kb=64200 backing_swap=/dev/block/mmcblk0p3 I just get the following error: insmod: can't insert '/system/lib/modules/compcache/ramzswap.ko': Device or resource busy Anyone? BTJ More testing... I removed the userinit.sh file and tried to run the insmod commands manually and when I come to ramzswap, get the following..: # /system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko memlimit_kb=64200 backing_swap=/dev/block/mmcblk0p3 insmod: can't insert '/system/lib/modules/compcache/ramzswap.ko': invalid parameter[/codebox] I dont's see anything wrong with this command, as it is just a copy and paste from the userinit.sh file... BTJ
Guest Keramidas Posted October 28, 2009 Report Posted October 28, 2009 I guess the problem is that ramzswap is not loaded, but when I run the following from the commandline: /system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko memlimit_kb=64200 backing_swap=/dev/block/mmcblk0p3 I just get the following error: insmod: can't insert '/system/lib/modules/compcache/ramzswap.ko': Device or resource busy Anyone? BTJ I suspect that your 3rd partition is already in use for swapping. Try uninstalling Swapper. Then, type "cat /proc/swaps" to ensure that no swap partitions are active. Then (and only then) insmod your ramzswap stuff...
Guest BTJ Posted October 28, 2009 Report Posted October 28, 2009 I am quite certain I don't have swapper installed and also it doesn't explain my latest post...? BTJ
Guest bbawden Posted October 28, 2009 Report Posted October 28, 2009 My brain hurts... Got the userinit.sh to push to /system/sd/ but still don't think it's working. Yet again, I'm out of time now to do this properly and will have to try it again tonight. FFS! Could do with a lovely set of n00b instructions, lol. Once I've done something a couple of times I'm fine with it. I'm a n00b, so let me tell you how I did it. Thanks to Robert Davidson, I used his post heavily. I already had the swap partition set up, but for instructions on that go to this link - don't forget, partitioning will wipe everything on your SD card to back it up first, including your EXT3 partition if you have one. Then: 1) Make a Nandroid backup, just in case. (From powered off, hold home+Power and select Nandroid backup). Then reboot phone 2) Download the files to your PC somewhere. Unzip the userinit.sh to your tools folder of the Android SDK (makes the push easier in step 4.1) 3) Mount your SD and copy the 1.3_hero_mck_teknologist_custom_signed.zip file to it 4) On your PC, open command prompt in your Android SDK tools folder 4.1) adb push userinit.sh /system/sd/ 4.2) adb shell 4.3) chmod 700 /system/sd/userinit.sh 5) Power off the phone, then boot to recovery as in step 1, with Home + Power 6) Select Apply any zip, then choose the 1.3_hero_mck_teknologist_custom_signed.zip 7) Confirm, and wait for files to be copied 8) Reboot and you're done To check, do: adb shell cat /proc/ramzswap Hope that helps.
Guest Splather Posted October 28, 2009 Report Posted October 28, 2009 For all you people having trouble file not found is because you have not put the userinit.sh File into system/sd folder. You don't even need to use adb just open a file manager like sufs or what ever with root access. Extract downloaded userinit.sh zip folder in downloads and copy it to system/sd thats if you dont want to edit the file its that simple can't go wrong. Then run cat /proc/swaps in terminal emulater to see if it works. Simple. Its like copying a mp3 from desktop to music folder on phone that easy. Definitely copied the file across... Getting a similar message to BTJ except when I try to run the ismod line, I get insmod: can't insert '/system/lin/modules/compcache/ramzswap.ko': unknown symbol in module or invalid parameter
Guest Shahz Posted October 28, 2009 Report Posted October 28, 2009 Hi, Sorry I can't help for your Facebook question. No worries about Teknologist's kernel: no need to wipe anything to upgrade. Just do a nandroid backup before, just in case you want to go back (very unlikely) :D Awesome..Thanks! :P I'll do it rightaway!
Guest delbacca Posted October 28, 2009 Report Posted October 28, 2009 Is just me or have some others experienced this problem with the Wi-Fi? it doesnt seem to be able to connect on 2.8, even if I am literally next to the wireless router. The new wi-fi icon just keeps appearing after it tries to obtain an IP address. FYI the WPA key is correct. any advise will be much appreciated. many thanks in advance.
Guest keef319 Posted October 28, 2009 Report Posted October 28, 2009 Eureka! Thanks bbawden I assume it's worked now? LOL C:\Users\Home>cd C:\android-sdk-windows-1.1_r1\tools C:\android-sdk-windows-1.1_r1\tools>adb shell # cat /proc/ramzswap cat /proc/ramzswap DiskSize: 125302 kB MemLimit: 64200 kB NumReads: 1 NumWrites: 0 FailedReads: 0 FailedWrites: 0 InvalidIO: 0 NotifyFree: 0 ZeroPages: 0 GoodCompress: 0 % NoCompress: 0 % PagesStored: 0 PagesUsed: 0 OrigDataSize: 0 kB ComprDataSize: 0 kB MemUsedTotal: 0 kB BDevNumReads: 0 BDevNumWrites: 0 # I think the problem was that I'd tried to edit the userinit.sh file and must've cocked it up...oh well. lol. Just put the original .sh file on there now. Surprised someone didn't post the edited file to eliminate the backup(?) Cheers anyway...
Guest Keramidas Posted October 28, 2009 Report Posted October 28, 2009 Is just me or have some others experienced this problem with the Wi-Fi? it doesnt seem to be able to connect on 2.8, even if I am literally next to the wireless router. The new wi-fi icon just keeps appearing after it tries to obtain an IP address. FYI the WPA key is correct. any advise will be much appreciated. many thanks in advance. Try to downgrade your radio version maybe ? Many have problems with the very latest one.
Guest delbacca Posted October 28, 2009 Report Posted October 28, 2009 (edited) Try to downgrade your radio version maybe ? Many have problems with the very latest one. Thanks for the advice. I havent actually upgraded the radio (ever), unless this is done automatically with the MCR updates. Is this the case? I am on 63.18.55.06EU_6.35.06.18 Edited October 28, 2009 by delbacca
Guest Splather Posted October 28, 2009 Report Posted October 28, 2009 Eureka! Thanks bbawden I assume it's worked now? LOL C:\Users\Home>cd C:\android-sdk-windows-1.1_r1\tools C:\android-sdk-windows-1.1_r1\tools>adb shell # cat /proc/ramzswap cat /proc/ramzswap DiskSize: 125302 kB MemLimit: 64200 kB NumReads: 1 NumWrites: 0 FailedReads: 0 FailedWrites: 0 InvalidIO: 0 NotifyFree: 0 ZeroPages: 0 GoodCompress: 0 % NoCompress: 0 % PagesStored: 0 PagesUsed: 0 OrigDataSize: 0 kB ComprDataSize: 0 kB MemUsedTotal: 0 kB BDevNumReads: 0 BDevNumWrites: 0 # I think the problem was that I'd tried to edit the userinit.sh file and must've cocked it up...oh well. lol. Just put the original .sh file on there now. Surprised someone didn't post the edited file to eliminate the backup(?) Cheers anyway... What's the effect on the expected life of the SD card with this method?
Guest keef319 Posted October 28, 2009 Report Posted October 28, 2009 What's the effect on the expected life of the SD card with this method? No idea. But it's why I wanted to edit the userinit.sh file...with my poor skills though I did it wrong. LOL
Guest Splather Posted October 28, 2009 Report Posted October 28, 2009 (edited) No idea. But it's why I wanted to edit the userinit.sh file...with my poor skills though I did it wrong. LOL Might have done something similar meself. Whatever it is I've done, I can't get the thing working for love nor money. Grrrr :D Edit: Even when I use the normal one extracted straight from the zip. Edited October 28, 2009 by Splather
Guest keef319 Posted October 28, 2009 Report Posted October 28, 2009 See now I look at this and I wonder if I actually HAVE got it working. The figures don't seem similar to what others have posted.... # cat /proc/ramzswap cat /proc/ramzswap DiskSize: 125302 kB MemLimit: 64200 kB NumReads: 1 NumWrites: 0 FailedReads: 0 FailedWrites: 0 InvalidIO: 0 NotifyFree: 0 ZeroPages: 0 GoodCompress: 0 % NoCompress: 0 % PagesStored: 0 PagesUsed: 0 OrigDataSize: 0 kB ComprDataSize: 0 kB MemUsedTotal: 0 kB BDevNumReads: 0 BDevNumWrites: 0 # Can anyone advise? Cheers
Guest Keramidas Posted October 28, 2009 Report Posted October 28, 2009 (edited) What's the effect on the expected life of the SD card with this method? Well, it's already better than regular swap because: - it writes obviously less (thanks to ~4x compression in swap) - it starts to swap later (thanks to the same compression in ram, there's more free memory). But of course, if you want speed without writing to your card, you can also use this method without the backing swap. You will have less memory but at least it will never write to your card (except when you copy files around, of course). Edited October 28, 2009 by Keramidas
Guest Splather Posted October 28, 2009 Report Posted October 28, 2009 Well, it's better than regular swap because it writes less, but if you can also use this method without the backing swap at all Then it never writes to your card (except when you copy files around, of course). Oh, ok, thanks v much. Suppose it's all academic as I can't get it to work on mine anyway! Will have to see if Teknologic is around tonight... :D
Guest clarkEEE1 Posted October 28, 2009 Report Posted October 28, 2009 (edited) No idea. But it's why I wanted to edit the userinit.sh file...with my poor skills though I did it wrong. LOL For those wanting to edit extract the file to pc desktop and open In notepad and change,save put back on memory card and copy to system/sd using your file manager I use sufs works great hope that helps. Edited October 28, 2009 by clarkEEE1
Guest kendon Posted October 28, 2009 Report Posted October 28, 2009 For those wanting to edit extract the file to pc desktop and open In notepad and change,save put back on memory card and copy to system/sd using your file manager I use sufs works great hope that helps. also keep in mind that the file probably needs unix-like line breaks/carriage returns. use linux to be sure :D maybe someone who is using windows can elaborate on that and give the noobs a few tips...
Guest SalvoB Posted October 28, 2009 Report Posted October 28, 2009 Hi! I installed the modaco 2.8. tun.ko module doesn't work. #insmod /system/lib/modules/tun.ko ... ok! #ls /dev adsp keychord ptmx akm8973_aot kmsg pts akm8973_daemon log qmi0 alarm msm_aac qmi1 android_adb msm_audpre qmi2 android_adb_enable msm_mp3 random ashmem msm_pcm_ctl smd0 binder msm_pcm_in smd27 block msm_pcm_out socket bma150 msm_snd tty console mt9p012 ttyHS0 cpu_dma_latency mtd ttyMSM2 device-mapper network_latency ttyfs diag network_throughput uinput diag_arm9 null urandom emapi oncrpc voc_rx_playback full pmem voc_rx_record graphics pmem_adsp voc_tx_playback htc-acoustic pmem_camera voc_tx_record htc-portlist pmem_gpu0 zero hw3d pmem_gpu1 input ppp Where is tun?? :D
Guest Loxley Posted October 28, 2009 Report Posted October 28, 2009 Also, HTTPD is what I was planning to use, haven't managed to get it to serve directory listings yet, which is a pain! mkdir /system/cgi-bin cp index.cgi /system/cgi-bin chmod -R 755 /system/cgi-bin httpd -h /system Fertig. (German for: Done) We need a small apk for starting/stopping daemons, managing scripts etc. HTH Niki index.cgi.gz
Guest Splather Posted October 28, 2009 Report Posted October 28, 2009 also keep in mind that the file probably needs unix-like line breaks/carriage returns. use linux to be sure :D maybe someone who is using windows can elaborate on that and give the noobs a few tips... I had it working a few minutes ago!!! And then I messed with it and it's gone again. DAMNIT
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now