![]() |
[DIABLO] HOWTO suscessfully put swap file on external MMC
1 Attachment(s)
Hi all,
I have managed to put the swap file in the external mmc fat partition and make it work like the default in the internal mmc. This is only recommended when booting from mmc, as it requires editing a couple of startup scripts, and you can't remove the mmc. Doing it when booting from flash and then removing the mmc will have quite an ill effect if the swap file is not previously disabled. If you use brontide's hack (see http://www.internettablettalk.com/fo...ad.php?t=22408) this is highly recommended, as the increased swappiness may wear the flash memory much faster. The mount/umount and control of mmc and swap is done by the daemon ke-recv (recently opensourced). This daemon has some provisions to put the swap file in the external mmc, but unfortunately it is not finished and will not work easily. The right thing to do is to finish the ke-recv implementation, along with the control panel applet (is the later closed source?), this is nothing but an ugly hack with some enviroment variables and startup scripts, but it works. Edit /etc/osso-af-init/af-defines.sh, go to the end of the file, and just after the last "export" line (line 140) and before the "fi" line the following lines: Code:
# put swap in external mmc Look for the lines: Code:
echo "$NAME." Code:
# workaround for swap in external mmc, wait for swap file to appear Code:
# workaround: turn off swap because if swap is in external mmc ke-recv will fail to umount mmc This has been tested in a N810 running Diablo. |
Re: [DIABLO] HOWTO suscessfully put swap file on external MMC
Could be a useful little hack.
You say plugging in a usb cable works, but you can't remove the memory card manually? - isn't the tablet using a similar method to temporarily turn off the swap when it provides access to the memory cards via usb as it does when a memory card is removed? |
Re: [DIABLO] HOWTO suscessfully put swap file on external MMC
Quote:
|
Re: [DIABLO] HOWTO suscessfully put swap file on external MMC
I had made .swap in mmc1 ,size is 128MB.
and to copy external-swap-hack to /etc. but reboot N810. the message is display: "Virtual memory file corrupted and disabled Use the Memory applet in the Control panel to enable it" Why? help me ,please |
Re: [DIABLO] HOWTO suscessfully put swap file on external MMC
up to top.
thank for help |
All times are GMT. The time now is 02:28. |
vBulletin® Version 3.8.8