maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Upgrading (https://talk.maemo.org/forumdisplay.php?f=8)
-   -   How to upgrade the internal memory by extending the root filesystem to a memory card (https://talk.maemo.org/showthread.php?t=1165)

richie 2006-08-12 12:59

Quote:

Originally Posted by ascherjim
I have been frustrated for some time because Wolfram's seemingly excellent deb is not usable with OS 2006. I know that I can now partition swap space without it, but I want to be able to do more than that. I want to be able to fully effect the partitioning recommended by Wolfram (moving key elements of the root system to the memory card, and accessing them on the card). In other words (or the same words!) I want to be able to install Wolfram's script (or its equivalant aspects) to my 770 for accessing as part of the repartitioning process. Can anyone out there help me?

Last I heard mmc-unionfs is being worked on, though the last update was back in July, http://www.heike-zimmerer.de/software/mmc-unionfs.html

This might be more elegant and easier, if the author Heike can get it working.

Rich

ascherjim 2006-08-12 15:40

Quote:

Originally Posted by richie
Last I heard mmc-unionfs is being worked on, though the last update was back in July, http://www.heike-zimmerer.de/software/mmc-unionfs.html

This might be more elegant and easier, if the author Heike can get it working.

Rich

Rich: Thanks. Will give it a try. Jim

richie 2006-08-12 17:42

Sorry I've mislead you, its not working yet for IT2006, it did for 2005 OS. I meant that the package is being worked on to make it work with IT2006 and hopefully will be available soon.

ascherjim 2006-08-13 06:04

Richie: No problem. I'll wait until that method is perfected for the 2006 OS. In the meantime I may have a try at the system described in http://maemo.org/pipermail/maemo-de...ust/005040.html transferring the whole root system to, and accessing from, the memory card. I'll keep my eye on this forum as things develop. Thanks for the assistance. Jim

schmolch 2006-08-16 14:12

Shouldn't access to the MMC-Card be much slower than to the internal RAM?

ascherjim 2006-08-16 14:39

Good point. I guess I'll just sit back and watch the forum and wait for the "union" system to be perfected. Thanks again. Jim

Reinhard 2006-08-17 08:36

IT2006 - How to mount an ext2 filesystem during boot?
 
I've upgraded to IT2006 and I'm now looking for a way to mount an ext2 filesystem duing boot (and umount it during shutdown).

Things have changed a lot in IT2006 and I'm lost. This works for me:

insmod /mnt/initfs/lib/modules/current/ext2.ko
mount /dev/mmcblk0p2 /media/mmc2

But which startup file should I modify to automate this during the boot sequence?

Reinhard

neiljerram 2006-08-17 09:32

Quote:

Originally Posted by Reinhard
This works for me:

insmod /mnt/initfs/lib/modules/current/ext2.ko
mount /dev/mmcblk0p2 /media/mmc2

But which startup file should I modify to automate this during the boot sequence?

Reinhard

/etc/init.d/minircS

At least, that makes sense to me, and seems to be working well.

And a question in return: does anyone know if it's safe to mount an ext3 fs as ext2, or why the corresponding insmod for ext3.ko (same as above but with 3 instead of 2) fails? I realize that ext3 is not recommended, but I mistakenly chose ext3 for my MMC partition some time ago and have quite a lot of stuff on it now.

- Neil

BanditRider 2006-08-17 12:38

I put the insmod near the top of /etc/init.d/minircS just after the PATH= line,
I put the mount near the bottom of that file just before the exit 0.

I unmount (umount) the filesystem in /etc/init.d/minireboot and minishutdown on the same line that mmc1 is unmounted:

Code:

echo "Unmounting filesystems... "
umount -r /media/mmc1 /media/mmc2 /mnt/initfs /
swapoff -a
echo "done."

I can reference just the mountpoint because I have a line in /etc/fstab for mmc2:

Code:

/dev/mmcblk0p2  /media/mmc2 ext2 rw,noauto      0 0
Neil, copy your stuff off to your hard drive, delete the ext3 partition, create an ext2 partition (and maybe a swap partition) then copy your stuff back.

fanoush 2006-08-17 13:02

Quote:

Originally Posted by schmolch
Shouldn't access to the MMC-Card be much slower than to the internal RAM?

In theory, yes. Raw mmc read speed is 1,5MB/s, raw internal flash read speed is 4MB/s (both measured by dd utility). In reality it is hard to notice. Internal flash uses jffs2 filesystem which is compressed. This saves space in flash but takes cpu cycles to decompress and slows things down both for reading and writing. It even feels to me that ext2 on mmc is a bit faster than jffs2 on internal flash. I may get some numbers in future but I know I can hardly tell whether I booted from mmc or internal flash without using df utility to check :-)


All times are GMT. The time now is 07:47.

vBulletin® Version 3.8.8