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)

gtsmith 2006-04-10 23:57

I've been running in rdmode for a while now. Is there any issues I should be aware of or concerned about keeping the 770 in rdmode?

dandrewk 2006-04-11 23:55

If perchance something happens and you need to re-flash, you won't be able to in rdmode. Then you are pretty much fubar'ed.

cantona 2006-04-12 03:05

How do you get out of rd mode? is it just the command:

./flasher --disable-rd-mode --reboot

kutibah 2006-04-12 03:11

Quote:

Originally Posted by cantona
How do you get out of rd mode? is it just the command:

./flasher --disable-rd-mode --reboot

Yes, initiate that command through Linux. (it's the same way you enabled rd mode)

cantona 2006-04-12 03:19

Thanks Kutibah

SM!LeY 2006-04-16 19:12

Great guidance...thx.
What is the best partition size with 1GB for the linux partition?

kutibah 2006-04-16 19:18

After partitioning everything correctly, I ran /var/lib/install/sbin/extrootfs which is supposed to automatically do Step 2 and 3 for me. After it finished, it rebooted, but the files on my 770 memory are still there, not on my memory card. Isn't this supposed to move them and a symbolic link will be created on the internal memory?

troubleshootr 2006-04-16 22:14

Quote:

Originally Posted by kutibah
After partitioning everything correctly, I ran /var/lib/install/sbin/extrootfs which is supposed to automatically do Step 2 and 3 for me. After it finished, it rebooted, but the files on my 770 memory are still there, not on my memory card. Isn't this supposed to move them and a symbolic link will be created on the internal memory?

I only got this script to work on a "fresh" flash. I ended up just editing the files that mount and unmount the ext3 file system by hand. I created a symbolic link to just my home directory only. Just a note but after you extend the file system, Windows XP will no longer mount the drive when using the USB. If you are running only Windows, you should keep this in consideration. Linux has no problem, it mounts all partitions on the mmc. For some reason Windows will see the drive in "Disk Management" but not assign it a drive letter, and all options are greyed out. This is my experience anyway.

kutibah 2006-04-16 23:00

Quote:

Originally Posted by troubleshootr
I only got this script to work on a "fresh" flash. I ended up just editing the files that mount and unmount the ext3 file system by hand. I created a symbolic link to just my home directory only. Just a note but after you extend the file system, Windows XP will no longer mount the drive when using the USB. If you are running only Windows, you should keep this in consideration. Linux has no problem, it mounts all partitions on the mmc. For some reason Windows will see the drive in "Disk Management" but not assign it a drive letter, and all options are greyed out. This is my experience anyway.

Hmm, not being able to access the 770 through USB is changing my mind. I do have Knoppix Live but it's a hassle to boot it every time I want to access my memory card. Anyways, maybe I'll keep it the way it is right now. I'm not in a hurry to move any of the files. Thanks for the help.

kutibah 2006-04-16 23:18

Ahh ****. I think something went wrong. I deleted the 2 partitions and created a new one with the full amount of space available and made it FAT16. I then formatted it using vfat and rebooted my 770. Now, the 770 boots up and the bar gets stuck at around 40%. It's been that way for a few minutes. I tried turning it off and on again, same problem. Am I going to have to reflash it?

And even worse, I forgot to backup my settings :(

troubleshootr 2006-04-16 23:27

Quote:

Originally Posted by kutibah
Ahh ****. I think something went wrong. I deleted the 2 partitions and created a new one with the full amount of space available and made it FAT16. I then formatted it using vfat and rebooted my 770. Now, the 770 boots up and the bar gets stuck at around 40%. It's been that way for a few minutes. I tried turning it off and on again, same problem. Am I going to have to reflash it?

And even worse, I forgot to backup my settings :(

Sure looks that way. Hopefully it was just settings and not data you forgot to backup. There is no "recovery" mode on the 770. If it don't boot, you must reflash. Personally, I feel the 64 Meg Nokia provided for applications is plenty.. I installed quite a few applications and have plenty of space left.

troubleshootr 2006-04-16 23:32

Quote:

Originally Posted by dandrewk
If perchance something happens and you need to re-flash, you won't be able to in rdmode. Then you are pretty much fubar'ed.


I had no trouble reflashing in RD mode using the Linux flasher. I must have done it several times.

kutibah 2006-04-17 00:33

Quote:

Originally Posted by troubleshootr
Sure looks that way. Hopefully it was just settings and not data you forgot to backup. There is no "recovery" mode on the 770. If it don't boot, you must reflash. Personally, I feel the 64 Meg Nokia provided for applications is plenty.. I installed quite a few applications and have plenty of space left.

How do I flash it with the firmware through Linux? I can't use the Software Update Utility through Windows because of various reasons, so it has to be through Linux.

troubleshootr 2006-04-17 00:42

Quote:

Originally Posted by kutibah
How do I flash it with the firmware through Linux? I can't use the Software Update Utility through Windows because of various reasons, so it has to be through Linux.


http://maemo.org/maemowiki/HOWTO_Fla...ImageWithLinux

kutibah 2006-04-17 00:56

Quote:

Originally Posted by troubleshootr

Thank you!

kutibah 2006-04-17 13:06

I reflashed and everything is fine, but my memory card is not. On my PC, it shows that the total size is only 771mb. Yet, in my partition through the 770, the full 1027mb are supposed to be there?

troubleshootr 2006-04-17 21:28

You need to delete all partitions and format the device. Say you have your mmc card showing up as /dev/mmcblk0 with partition /dev/mmcblk0p1. Delete the /dev/mmcblk0p1 partition so that there is no partitions on the mmc card. Insert into the 770 and format the mmc using the File Manager utility. Windows should now see the full amount of memory.

kutibah 2006-04-17 23:39

Quote:

Originally Posted by troubleshootr
You need to delete all partitions and format the device. Say you have your mmc card showing up as /dev/mmcblk0 with partition /dev/mmcblk0p1. Delete the /dev/mmcblk0p1 partition so that there is no partitions on the mmc card. Insert into the 770 and format the mmc using the File Manager utility. Windows should now see the full amount of memory.

Thanks. But how am I supposed to Format it on FAT16? I can only do FAT32?

troubleshootr 2006-04-18 00:18

Quote:

Originally Posted by kutibah
Thanks. But how am I supposed to Format it on FAT16? I can only do FAT32?

I thought the 770 defaulted to vfat (fat32)

Well you could also do it hand

as root:

umount /media/mmc1
mkfs.vfat /dev/mmcblk0

kutibah 2006-04-18 00:26

Quote:

Originally Posted by troubleshootr
I thought the 770 defaulted to vfat (fat32)

Well you could also do it hand

as root:

umount /media/mmc1
mkfs.vfat /dev/mmcblk0

Ya, I tried it via that method before and then my PC would not see the memory card anymore?

troubleshootr 2006-04-18 00:35

Do you have a digital camera that takes SD cards? You can format it in most cameras with the little adapter.

kutibah 2006-04-18 00:39

Ya, it won't let me format it because its not an SD. It fits, just wont format. :( I also tried to format it via Norton Partition Manager and it just gives me an error...

kutibah 2006-04-18 00:52

Ok, I also tried formatting it via File Manager in the 770. My computer still doesn't see it?

troubleshootr 2006-04-18 00:59

Quote:

Ya, it won't let me format it because its not an SD. It fits, just wont format. I also tried to format it via Norton Partition Manager and it just gives me an error...
Ok, try this. I assume you got a dual boot computer with a card reader. Boot into linux, put the card in your reader with the little adapter thingy. Su to root. Check dmesg, card will probably be detected as sda. You probably got a partition as sda1. Unmount any partitions that auto-mounted:

umount /dev/sda1

then open cfdisk:

cfdisk /dev/sda

delete ALL partitions, CFDISK should show all space as free space. Write changed to disk and exit CFDISK.

Force a format of entire device:

mkfs.vfat -I /dev/sda (note the -I that is a capital i)

NOTE: Change sda to whatever dmesg showed you as device name.

Hopefully this will work.

troubleshootr 2006-04-18 01:14

Ok, disregard that, it did not see my card in Windows. You need to create a partition on the card (sorry about that). Use the max size and make it bootable in CFDISK. write the changes and exit. Then try mkfs.vfat /dev/sda1. I just did this and Windows (2000) now sees my entire mmc by USB.

kutibah 2006-04-18 01:25

Quote:

Originally Posted by troubleshootr
Ok, disregard that, it did not see my card in Windows. You need to create a partition on the card (sorry about that). Use the max size and make it bootable in CFDISK. write the changes and exit. Then try mkfs.vfat /dev/sda1. I just did this and Windows (2000) now sees my entire mmc by USB.

I did this through the Partition Program in XTerm and it still doesn't see it? Do I need to do this through Linux?

c_legaspi 2006-04-18 01:26

another nooob
 
first of all, i dont have any linux experience and dont have linux. i do have a nokia 770 and a pc running 2k.

some time in the future i would like to do the 1gig extension of the foot file system as describe but with so much posting, im a bit confused. i hope you will help me by answering my questions.

1. ive downloaded the extroofs and exterm. are these the only two files i need to do the extended root file system?

2. will xterm allow me to get root access or do i need another file.

3. where do i install or load the extroofs file.

4. how do i execute the extroofs

5. when executing extroofs, will it ask how large i want the partitions to be.

6. what problems am i to encounter. by reading thru the post, it seems that some people have run into some snags but got it working. i on the other hand dont have any experience with linux so all that coding is a bit over my head.

7. will this upgrade free the physical memory so it will run faster and larger programs.

8. what is the recommended partition size for each partition

Im sure ill have other questions but any other help with this will be appreciatted.



thanks,
claudio

troubleshootr 2006-04-18 01:48

Quote:

Originally Posted by kutibah
I did this through the Partition Program in XTerm and it still doesn't see it? Do I need to do this through Linux?

I did it through Linux. Do NOT do the mkfs.vfat -I /dev/sda. Just delete all partitions through CFDISK in Linux. Then make a new Primary partion, max size, and bootable. Then WRITE and QUIT. Then format with mkfs.vfat /dev/sda1.

troubleshootr 2006-04-18 02:18

Quote:

Originally Posted by c_legaspi
first of all, i dont have any linux experience and dont have linux. i do have a nokia 770 and a pc running 2k.

some time in the future i would like to do the 1gig extension of the foot file system as describe but with so much posting, im a bit confused. i hope you will help me by answering my questions.

1. ive downloaded the extroofs and exterm. are these the only two files i need to do the extended root file system?

2. will xterm allow me to get root access or do i need another file.

3. where do i install or load the extroofs file.

4. how do i execute the extroofs

5. when executing extroofs, will it ask how large i want the partitions to be.

6. what problems am i to encounter. by reading thru the post, it seems that some people have run into some snags but got it working. i on the other hand dont have any experience with linux so all that coding is a bit over my head.

7. will this upgrade free the physical memory so it will run faster and larger programs.

8. what is the recommended partition size for each partition

Im sure ill have other questions but any other help with this will be appreciatted.



thanks,
claudio


1. Yes
2. No, you need a Linux or OSX operating system and follow instructions here:
http://maemo.org/maemowiki/HowDoiBecomeRoot
or you can use a Linux live boot CD or Virtual Linux install. see here:

http://www.internettablettalk.com/wi...Host_Mode,_etc.)

3. This is not a program, but rather a script. It will move the required files and set up the required links automatically.

http://maemo.org/maemowiki/ExtendedRootFilesystem

4. You run the command via Xterm as the root user.

5. No, you need to partition the RS-MMC before hand
6. Hopefully None. In my experience the memory card will no longer be seen by Windows when using the USB cable.
7. Not directly, but you can set up a swap file later for more available system memory. It will not run any faster though.
8. It depends on the size of your memory card and your preferences.

c_legaspi 2006-04-18 02:59

i thought everything can now be done on the nokia 770. i still do more research before i do this but for now, it does what i need it to do

thanks

troubleshootr 2006-04-18 03:08

Quote:

Originally Posted by c_legaspi
i thought everything can now be done on the nokia 770. i still do more research before i do this but for now, it does what i need it to do

thanks

The hard part for Windows users is becoming root user. Nokia decided that end-users would not want to modify any system settings, thus made it difficult (especially for Windows users) to become root. There was a modified flash image (with root access built in) floating around this forum. I think it was pulled due to licencing issues. The author then decided to offer a patch that would allow users to "patch" the firmware for root access. Perhaps a search would find it or someone could provide a link.

c_legaspi 2006-04-18 03:27

yup, ive downloaded that as well. just trying to do it without any complications.

Banner 2006-04-19 05:53

What sort of performance upgrade will this bring to the 770? I don't know if I want to do this or not, as I haven't been unhappy with the performance so far.

Amper_CZ 2006-04-19 10:51

Why don't use JFFS for partition to prevent flash wearout ?
 
Somebody ask same question but there is not answer. Do anybody know answer why is JFFS is not recomended. I was found somewhere that internal flash storage use JFFS, so it seems logical to me (I understand that JFFS partition is not accessible wia USB from Windows box)

troubleshootr 2006-04-19 11:07

Quote:

Originally Posted by Banner
What sort of performance upgrade will this bring to the 770? I don't know if I want to do this or not, as I haven't been unhappy with the performance so far.

It will not make it run any faster. Having a swap partition will allow you keep more applications open, and load more complex web pages without running low on system memory and possibly causing a crash or reboot.

dandrewk 2006-04-20 19:28

Greetings. I altered my start/stop scripts to auto load/unload the swapfile at startup and stop, using Wolfram's script:

echo -e "/Root/swapfile\tnone\tswap\tsw\t0\t0">>/etc/fstab
sed -i '/exit/iswapon -a 2>/dev/null' /etc/init.d/minircS
sed -i '/umount/iswapoff -a 2>/dev/null' /etc/init.d/minireboot /etc/init.d/minishutdown

I am a linux rookie. I don't want the swap-load to occur automatically. Can someone please tell me how to return the start/stop scripts back to default? I really don't want to brick my 770. :)

Thanks for any help.

jayholler 2006-04-21 16:36

will the new 2006 OS break the functionality of this script?
 
Hi all,

I'm pretty new to *nix, and i was wondering if the anticipated 2006 OS will work with my system which already has the extrootfs applied. My understanding is that the new OS will include a number of improvements, including low-level improvements such as a new way of handling installation files, which will be incompatible with existing installation files, requiring a recompile of every app currently available.

So will the extrootfs still work, or will it be broken by the changes in the new OS?

I assume Nokia will expect that you flash the new image and then wait for updates to the apps, and I'm not even sure the existing apps will work under the new OS if you are able to successfully run the extrootfs under the 2006 OS..

Any ideas anyone?

richie 2006-04-21 18:55

Quote:

Originally Posted by Amper_CZ
Somebody ask same question but there is not answer. Do anybody know answer why is JFFS is not recomended. I was found somewhere that internal flash storage use JFFS, so it seems logical to me (I understand that JFFS partition is not accessible wia USB from Windows box)

I'm not an expert on this, but I think it is because memory cards have a wear levelling controller built in, whereas the internal memory does not have this built in and needs JFFS to do wear levelling. JFFS on a memory card is bad, because JFFS journalling adds to the number of write/erase cycles, which on a memory card would reduce its life. Therefore I think it is recommended internal memory use JFFS2 and for memory cards ext2.

Rich

polyesterangst 2006-04-25 01:18

I need some assistance. I was following the directions using the Unbuntu for flasher to get the Nokia into R&D mode, but when I get to the part to connect the Nokia, the Windows OS prompts for nokia 770 (host) drivers to be installed. Does anyone have this issue, or know the way around it. I tried connecting my Nokia when it is on, to the system, and can swap files, but the flasher states that the device is not suitable.

Neil McAllister 2006-04-25 20:10

OK, apologies if everybody understands this but me, but this is a long thread and the answer to me seems unclear.

Why, exactly, would we want to do this?

Personally, extending the internal memory sounds like a good idea because I hate the idea that installing applications on the device will make the applications you already have run more poorly (because they have access to less memory). Some posts in this thead seem to suggest that this trick isn't really going to help you much in that regard, though. So what's the reason for it, again?

If I understand correctly, doing the steps described in this thread will result in:

1. An RS-MMC card where most of it is formatted ext2fs or some other Linux filesystem, meaning that when you plug it into a Windows PC the PC won't be able to access the card (i.e. you won't be able to get any files on or off it)

2. You'll end up with a portion of your root filesystem on the card, so you don't ever want to take the card out of the device or you risk crashing it.

Neither of these seems particularly desirable. Am I missing some obvious benefit? I understand the swap partition idea; I'm just strictly talking about the extended root filesystem now.


All times are GMT. The time now is 16:13.

vBulletin® Version 3.8.8