View Full Version : Cloning OS to SD Card: Simplified instructions
Milhouse
08-08-2007, 02:40 PM
These instructions apply to OS 2006 (770), OS 2007HE (770) and OS 2007/OS 2008 (N8x0).
If you're all set with root access, xterm, wget, boot menu and e2fsprogs installed *and* a 256MB+ second partition on Internal memory card, jump straight to step 7... otherwise continue with the pre-reqs.
Pre-requisites to be satisfied before cloning OS
1. xterm must be installed
Install xterm via the one-click install file on this page: http://maemo.org/downloads/product/osso-xterm-advanced
2. "Becomeroot" package must be installed or device in R&D mode
Install the Becomeroot package by adding the following repository to application manager:
Web Address: http://eko.one.pl/maemo
Distribution: bora or mistral (N800 or 770 respectively)
Components: user
Alternatively see the maemo.org wiki for details on how to enable R&D mode.
3. wget installed for downloading web-based files from the command line
N800 users: Open xterm and execute the following commands in xterm (you must have satisfied pre-requisite #2 before continuing):
sudo gainroot
apt-get install wget
exit
770 users: Download and install wget from http://maemo.org/downloads/product/wget using the one-click install option
4. e2fsprogs package installed
Open xterm and execute the following commands in xterm (you must have satisfied pre-requisite #2 before continuing, and have the following repository installed in the Application Manager):
Web Address: http://repository.maemo.org/
Distribution: bora or gregale (N800 or 770 respectively)
Components: free non-free
sudo gainroot
apt-get update
apt-get install e2fsprogs
exit
5. At least a 256MB partition is needed on /dev/mmcblk0p2 (partition 2, Internal SD/MMC card)
See various Wiki entries for details. Alternatively see post #49 (http://www.internettablettalk.com/forums/showthread.php?p=81635#post81635) in this thread which details the partitioning of various sized memory cards, ultimately creatiing a 0.5GB second partition in each case - formatting of the second partition will take place later on during the cloning process. Use the built-in Internet Tablet File Manager, a Windows PC or mkdosfs on the tablet/Linux PC to format the FAT partition).
6. Fanoush's modified initfs and boot menu should be installed
See http://fanoush.wz.cz/maemo/#initfs for details explaining how to install the modified initfs and boot menu.
Once all of the above pre-requisites are satisfied continue at step 7.
Cloning the Operating System to Internal SD/MMC Card
7. Download and execute the following script and binary
The following commands will download the cloning script and the GNU tar binary to assist with the cloning process
7.1 As user "user"
Execute the following in xterm
mkdir ~/bin
cd ~/bin
wget http://www.nmacleod.com/nokia/bin/nupgrade.sh
wget http://www.nmacleod.com/nokia/bin/tar
chmod +x nupgrade.sh tar
7.2 As user "root" (without Sardine upgrade)
Switch to the root superuser and begin the process of cloning the filesystem to partition two on the Internal memory card. This is achieved in stages to allow you to control progress and check for errors. Pass parameters to the nupgrade.sh script to control progress, as follows
0 - Create ext2 filesystem on partition 2 of the Internal memory card
1 - Mount partition 2 as /opt
2 - Mount rootfs as /floppy
3 - Perform cloning process
4 - Commit filesystem updates and unmount /floppy and /opt
sudo gainroot
cd /home/user/bin
./nupgrade.sh 0
./nupgrade.sh 1
./nupgrade.sh 2
./nupgrade.sh 3
./nupgrade.sh 4
reboot
7.3 As user "user" (with Sardine upgrade)
Additional phases 5 and 6 below are optional and may be performed in order to upgrade a cloned OS 2008 (not OS 2006-7 or OS 2007HE) to the Sardine (http://sardine.garage.maemo.org/) bleeding edge test distribution
5 - Enter chroot gaol prior to upgrading cloned OS on memory card
6 - Initiate Sardine operating system upgrade of cloned OS on memory card
If performing a Sardine upgrade, use the following procedure:
sudo gainroot
cd /home/user/bin
./nupgrade.sh 0
./nupgrade.sh 1
./nupgrade.sh 2
./nupgrade.sh 3
./nupgrade.sh 4
./nupgrade.sh 5
cd /home/user/bin
./nupgrade.sh 6
exit
reboot
When the device reboots, choose option #3 "MMC card, partition 2, ext2" to boot from the freshly cloned OS
Edit: See post #288 (http://www.internettablettalk.com/forums/showthread.php?p=135752#post135752) which details additional parameters for the nupgrade.sh script.
schmots
08-08-2007, 02:49 PM
Why make it that hard.. why not just tar over and back the install?
Milhouse
08-08-2007, 03:00 PM
Because some people struggle to do even that...? And because it does more than just tar the OS - it formats the filesystem, insmods the various modules, mounts the mount points and tar's rootfs. And it also upgrades to Sardine if you want it to.
Once all the pre-reqs are in place (which only need to be completed once per flash) and the script and tar have been downloaded (again once per flash), the user only needs to running the script in sequence (0-4 or 0-6) whenever they want to clone the OS. No need to remember each individual command/step or cut&paste from the wiki. Seems simpler to me... :)
schmots
08-08-2007, 03:06 PM
The commands only need to be run once per flash too.. and I put up easier instructions than the wiki once upon a time. I like your method, it will help the mindless dual boot. I guess I just like to know whats going on under the hood as I figured anyone who would bother with a dual boot wou.d
Well I for, one, don't -- much. I just want the added space and speed, and follow Howtos :-)
Thanks Fanoush, and thanks Mil...
Milhouse
08-08-2007, 03:20 PM
The commands only need to be run once per flash too..
Not if you stuff up your external memory card or otherwise corrupt the ext2 filesystem, which can happen several times between flashes :) Should your memory card or filesystem become corrupt (I find ext2 to be quite easy to corrupt) all that needs to be done to recreate the cloned OS is run the script with params 0 through 4 having booted from internal flash... only takes about 15 minutes and most of that time is taken by tar. :)
and I put up easier instructions than the wiki once upon a time.
Unfortunately there seem to be several wikis covering this functionality, several of which are hopelessly out of date and have been badly mangled by the conversion to Midgard on maemo.org. I probably haven't seen your updated instructions but feel free to provide a link if they're still accurate/readable. :)
I like your method, it will help the mindless dual boot.
I'd hesitate to say mindless, but it should help those who don't really care too much about how it all hangs together! :)
I guess I just like to know whats going on under the hood as I figured anyone who would bother with a dual boot wou.d
As I wrote the script I guess that lets me off the hook, I've got a rough idea what the script is doing! ;)
The only reason I dual boot nowadays is to give Sardine a whirl every now and again - with this script I can clone and upgrade the OS to Sardine inside 30 minutes and I'm only typing 6 or 7 commands which aren't exactly difficult to remember (particularly as six of them are practically the same!) :)
The OS clone takes about 10-15 minutes, and the upgrade to Sardine another 15-20 minutes. Most of the time is spent waiting for files to copy or download/upgrade... run the next step... wait... run the next step... etc. until finished. Then reboot and enjoy (well as much as one can enjoy Sardine - the new finger menu is looking good though).
Hopefully these instructions will make life simpler for some people and may even allow yet more people to sample Sardine. It's an alternative to the various wiki instructions (although it skimps in some important areas such as partitioning etc.) but should be easier to follow if you don't want to have to think too much! :)
Well I for, one, don't -- much. I just want the added space and speed, and follow Howtos :-)
Thanks Fanoush, and thanks Mil...
I hear that... I learn as much as I can but I really dont have time anymore.
I like your method, it will help the mindless dual boot. I guess I just like to know whats going on under the hood as I figured anyone who would bother with a dual boot wou.d
People use their minds AND n800/770 for different things.
smileyninja
08-11-2007, 01:13 PM
Is this a typo?
5. At least a 256MB partition is needed on /dev/mmcblk0p2 (partition 2, external SD/MMC card
I was under the impression that mmcblk0p(x) was the internal card (aka mmc2) and mmcblk1p(x) was the external card- mmc1. The script nupgrade.sh looks like it is working on mmcblk0 (internal card) but is calling it the external card.
The card slot on the bottom of the N800 under the stand is considered the external card and the card beside the battery on the back of the unit is the internal card--right?
Milhouse
08-12-2007, 08:47 AM
Yes, that is a typo - mmcblk0px is the INTERNAL card, thanks for catching that.
I've now corrected the instructions (replacing external for internal) and uploaded an updated script - the original script worked fine, but would have displayed confusing comments... :)
Sarty
08-23-2007, 12:49 PM
Noob reporting:
I've encountered problems at step 7 of this guide. Here's what I'm getting (verbatim):
sudo gainroot
/home/user # cd /home/user/bin
/home/user/bin # ./nupgrade 0
/bin/sh: ./nupgrade: not found
/home/user/bin #
Should I be typing in "./nupgrade.sh 0"?
I'm running IT2006 on n770, and I should add that I've checked in the /home/user/bin directory and both nupgrade.sh and tar are present.
Milhouse
08-23-2007, 01:34 PM
Yes my bad, thanks for catching that - I'll update the instructions now. :)
I'm very interested to perform this procedure. How much faster does loading things from SD is, compared to the JFFS2 partition? Can hdparm be used to measure the jffs2 partition speed?
Milhouse
08-23-2007, 02:39 PM
Search the forum for "hdparm", you'll find the thread with the answers you seek.
Thanks Milhouse. I did try searching for 'hdparm jffs2' but for some reason that thread didn't turn up in the result, although both terms are referenced in the thread.
TA-t3
08-27-2007, 07:06 AM
Noob reporting:
I've encountered problems at step 7 of this guide. Here's what I'm getting (verbatim):
sudo gainroot
/home/user # cd /home/user/bin
/home/user/bin # ./nupgrade 0
/bin/sh: ./nupgrade: not found
/home/user/bin #
Should I be typing in "./nupgrade.sh 0"?
Yes. This is different from DOS where you enter a command, and DOS starts looking for files with .com, .exe or .bat extensions. In *nix you execute a file, not a command, so the full filename must be specified.
The filename extension is just as any other part of the filename, and only there for your convenience (.sh is often used to indicate to you that it's a shellscript, but you could equally well call the file nupgrade.myscript, or, indeed, just nupgrade)
bunanson
09-12-2007, 06:26 PM
These instructions apply to OS 2006 (770), OS 2007HE (770) and OS 2007 (N800).
If you're all set with root access, xterm, wget, boot menu and e2fsprogs installed *and* a 256MB+ second partition on Internal memory card, jump straight to step 7... otherwise continue with the pre-reqs.
7. Download and execute the following script and binary
The following commands will download the cloning script and the GNU tar binary to assist with the cloning process
As user "user"
mkdir ~/bin
cd ~/bin
wget http://www.nmacleod.com/nokia/bin/nupgrade.sh
wget http://www.nmacleod.com/nokia/bin/tar
chmod +x nupgrade.sh tar
As user "root"
Switch to the root superuser and begin the process of cloning the filesystem to partition two on the Internal memory card. This is achieved in stages to allow you to control progress and check for errors. Pass parameters to the nupgrade.sh script to control progress, as follows
0 - Create ext2 filesystem on partition 2 of the Internal memory card
1 - Mount partition 2 as /opt
2 - Mount rootfs as /floppy
3 - Perform cloning process
4 - Commit filesystem updates and unmount /floppy and /opt
sudo gainroot
cd /home/user/bin
./nupgrade.sh 0
./nupgrade.sh 1
./nupgrade.sh 2
./nupgrade.sh 3
./nupgrade.sh 4
reboot
Steps 5 and 6 are optional and may be performed in order to upgrade the freshly cloned OS 2007 (not OS 2006 or OS 2007HE) to the Sardine (http://sardine.garage.maemo.org/) bleeding edge test distribution
5 - Enter chroot gaol prior to upgrading cloned OS on memory card
6 - Initiate Sardine operating system upgrade of cloned OS on memory card
If performing a Sardine upgrade, use the following procedure:
sudo gainroot
cd /home/user/bin
./nupgrade.sh 0
./nupgrade.sh 1
./nupgrade.sh 2
./nupgrade.sh 3
./nupgrade.sh 4
./nupgrade.sh 5
cd /home/user/bin
./nupgrade.sh 6
exit
reboot
When the device reboots, choose option #3 "MMC card, partition 2, ext2" to boot from the freshly cloned OS
Hi, Mil. These are great instructions and easy to follow, thanks. I just want to tweak your brain, see if you have any different suggestions.
Right now, I just got my brand new 2 G MMC, have not even opened. I would like to clone 2006OS and 2007He on MMC, and either 2006OS or 2007He on internal flash of my 770. Currently, I have 2007He on internal flash and 2006OS cloned on 1 G MMC. I am also in the middle of setting up a Ubuntu box. I guess my situation is very similar to a lot of folks in this column, got a new 770, cloned 2006OS to MMC, then flash 2007He to internal flash. I suppose, a lot of folks will be interested to see how to accomplish 2007He cloned to MMC without starting from scratch, if possible.
1) what is the most efficient partition on a 2 G MMC? I seldom use 2006OS other than occasional watch some video, I propose like .3G to 1.7G partition, would that be adequate for 2006OS boot?
2) Can I partition the 2 G MMC on a Ubuntu box? or just a PC with a USB media reader?
3) Can a ubuntu box copy the 2006OS from a 1 G MMC to the 2 G MMC mmcblk02, if a Ubuntu box can work with those USB media reader thing...please dont laugh, I am squeazing my last neuron on technology! If the answer is yes, OMG, dont be shine, could you please write the commands too? I promise you, I will learn Debian before the next 2007He from Nokia:rolleyes:
4) Then I can just clone my already flashed 2007He from 770 to the 2 G MMC mmcblk03.
If the above is not possible, then I am not quite sure how am I going to clone both 2006OS and 2007He to MMC simultaneously. It sounded way too complicate, maybe I just cloned the 2007He to MMC and forget (?) about 2006OS?
Thanks in advance, Mil. or anybody has good suggestions/experience, feel free to jump in, as I said, this is going to be followed by a lot of folks.
bun
Milhouse
09-12-2007, 06:58 PM
1) I would suggest the minimum size partition you need for OS 2006 is 256MB, that's roughly equivalent to the size of the internal (128MB compressed) flash memory. 512MB for OS 2006 should be ample.
2) Yep, no problem
3) Yep - tar up the content of the OS2006 partition on 1GB MMC and then untar it on your 2GB MMC. Once you've mounted the card on your Ubuntu box, cd to the root of the partition and create the tar as follows: "tar cvzf /tmp/os2006.tar.gz /" then swap the MMC cards and restore the clone using "cd <root of mmc partition>; tar xvzf /tmp/os2006.tar.gz". That should work, or something similar... :) If you can mount both cards at the same time you can pipe the output from the first tar command into the second tar and avoid creating a temporary file.
4) Not sure about mmcblk03...
I think someone else asked some of your questions in another thread (probably the OS2007HE thread) - you should check there.
bunanson
09-15-2007, 02:31 AM
These instructions apply to OS 2006 (770), OS 2007HE (770) and OS 2007 (N800).
If you're all set with root access, xterm, wget, boot menu and e2fsprogs installed *and* a 256MB+ second partition on Internal memory card, jump straight to step 7... otherwise continue with the pre-reqs.
7. Download and execute the following script and binary
The following commands will download the cloning script and the GNU tar binary to assist with the cloning process
As user "user"
mkdir ~/bin
cd ~/bin
wget http://www.nmacleod.com/nokia/bin/nupgrade.sh
wget http://www.nmacleod.com/nokia/bin/tar
chmod +x nupgrade.sh tar
As user "root"
Switch to the root superuser and begin the process of cloning the filesystem to partition two on the Internal memory card. This is achieved in stages to allow you to control progress and check for errors. Pass parameters to the nupgrade.sh script to control progress, as follows
0 - Create ext2 filesystem on partition 2 of the Internal memory card
1 - Mount partition 2 as /opt
2 - Mount rootfs as /floppy
3 - Perform cloning process
4 - Commit filesystem updates and unmount /floppy and /opt
sudo gainroot
cd /home/user/bin
./nupgrade.sh 0
./nupgrade.sh 1
./nupgrade.sh 2
./nupgrade.sh 3
./nupgrade.sh 4
reboot
Steps 5 and 6 are optional and may be performed in order to upgrade the freshly cloned OS 2007 (not OS 2006 or OS 2007HE) to the Sardine (http://sardine.garage.maemo.org/) bleeding edge test distribution
5 - Enter chroot gaol prior to upgrading cloned OS on memory card
6 - Initiate Sardine operating system upgrade of cloned OS on memory card
If performing a Sardine upgrade, use the following procedure:
sudo gainroot
cd /home/user/bin
./nupgrade.sh 0
./nupgrade.sh 1
./nupgrade.sh 2
./nupgrade.sh 3
./nupgrade.sh 4
./nupgrade.sh 5
cd /home/user/bin
./nupgrade.sh 6
exit
reboot
When the device reboots, choose option #3 "MMC card, partition 2, ext2" to boot from the freshly cloned OS
______________________________________
2006OS Flash/MMC 2007He2007.36-2 MMC 2G
Follow Mil's Simplified instructions, now 2007He2007.36-2 is booting of MMC 2G. Thanks Mil! As explained, the steps are easy to follow, ./nupgrade 0-4. I made some very minor change to suit my use, I give .45G for the OS and 1.37 G for media (a 2G reads only as 1.89G before formatting) and I use Fat32 instead of Fat16,
/dev/mmcblk0p1: 1,45000,b
/dev/mmcblk0p2: 45001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
I am not a SW developer, the chance of installing 1.5G app is highly unlikely for me, at this stage,;) Kind of curious what other people's partition like.
I jumped right to step 7 as I already has the prerequisite, but it kicked me out on ./nupgrade.sh 3 > Internal application error, Xterm close. I re-started from step 6, no more error. Very interesting....... Now I booted from MMC and has 237 M space for apps, OMG!!!
bun
Green_Star
09-15-2007, 06:38 PM
I followed these instructions for my 770, everything went fine, but finally i am not able to access my FAT partition. in file manager memory card item was grayed out !! when i checked in control panel it is saying my memory card is corrupted (ofcourse i booted from memory card), can some one tell me how to resolve this problem? thanks.
bunanson
09-16-2007, 12:06 PM
I followed these instructions for my 770, everything went fine, but finally i am not able to access my FAT partition. in file manager memory card item was grayed out !! when i checked in control panel it is saying my memory card is corrupted (ofcourse i booted from memory card), can some one tell me how to resolve this problem? thanks.
Last ditch effort, take the card out and leave it alone for 10.5 min (just kidding, leave it awhile is good enough) and gently, gently re-insert it the best way you can, and hope it work. otherwise, re-formating is a consideration.
bun
bunanson
09-16-2007, 12:17 PM
Mil, thank you, thank you, and thank you.
Had some problem with opera, and cannot undo whatever happened to it, it broke and would not work. I wiped my tears dry, and without hesitation, jumped right into step 7 of your instruction, ./nupgrade.sh 0-4, then went helping my wife to prepare breakfast. Dont know how long it take, as if I care, when I came back, it's done and everything is back to normal. That is what I call a regular automated installation.........100% hands free. Thank you again, Mil.
This is day and night when I triedto clone the 2006OS to the MMC It wont download, file was missing, this TAR but not this TAR, my good grief, that is worst than to teach a pig to dance!
bun
Milhouse
09-16-2007, 01:06 PM
My pleasure!
I wrote this script so that when I had a spare 30 minutes I could disengage brain, run the script and walk away safe in the knowledge that when I returned I would have a succesfully cloned OS. Glad it's helping you too! :)
Green_Star
09-16-2007, 01:31 PM
Last ditch effort, take the card out and leave it alone for 10.5 min (just kidding, leave it awhile is good enough) and gently, gently re-insert it the best way you can, and hope it work. otherwise, re-formating is a consideration.
bun
thanks man.
Actually i am booted into my MMC without any problems, but only thing is i am not able to find the remaining FAT partition. your trick will work if i booted from internal flash, right?
I guess it can be fixed by reformatting the FAT partition, but i donno how to do that?
bunanson
09-16-2007, 06:16 PM
thanks man.
Actually i am booted into my MMC without any problems, but only thing is i am not able to find the remaining FAT partition. your trick will work if i booted from internal flash, right??
___________________________________________
Nay, if it works, it works. You turned the 770 off, and take out the card, bla bla bla. There is a possibility that the card was not inserted 'perfectly' but is allowing the previous format/working temporary and thus heated up the media and causing the problems. As I said, it is a last ditch effort. For hard drive, I even put it in refrigertor and will sometime allow me to recover some data before it dies again after 15min or so working.
[QUOTE=____________________________________________
I guess it can be fixed by reformatting the FAT partition, but i donno how to do that?[/QUOTE]
This, boot from MM, step 4 is partition, will kill the other partition too, not recommend. the formatting is next step, http://examplified.net/guide/Nokia_770/Booting_from_MMC/. Tools>file manager>memory card also has a formatting command, not sure how it works, I think step 4 above should take care of you, post if questions. good luck.
bun
Green_Star
09-16-2007, 06:43 PM
___________________________________________
Nay, if it works, it works. You turned the 770 off, and take out the card, bla bla bla. There is a possibility that the card was not inserted 'perfectly' but is allowing the previous format/working temporary and thus heated up the media and causing the problems. As I said, it is a last ditch effort. For hard drive, I even put it in refrigertor and will sometime allow me to recover some data before it dies again after 15min or so working.
This, boot from MM, step 4 is partition, will kill the other partition too, not recommend. the formatting is next step, http://examplified.net/guide/Nokia_770/Booting_from_MMC/. Tools>file manager>memory card also has a formatting command, not sure how it works, I think step 4 above should take care of you, post if questions. good luck.
bun
thank you so much bun,
mkdosfs /dev/mmcblk0p1
shutdown -r now
above command solved my problem, my remaining FAT partition is back, before your suggestion i was in the impression that the script by milhouse will take care of that too,,,!!
I have another question. this device gives very little time to hold menu button to get boot menu, and most of the times i am little late and it defaults boots into internal flash.
So I want to increse that time to press menu button and even if i didnt press button it should default boot into my MMC, how can i do that?
jarcat38
09-16-2007, 09:22 PM
Im getting an error installing e2fsprogs
Package e2fsprogs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package e2fsprogs has no installation candidate
Any ideas?
Also wanted to say thank you for taking the time to write this up. Was exactly what I was looking for.
mraya
09-16-2007, 10:13 PM
I'm almost done with this process, for not knowing anything about Linux it was easy enough, just a little problems due to errors of my own. Milhouse, thanks for posting this!
Edit: How do i know if i'm using the memory card or the flash memory?
Milhouse
09-16-2007, 11:33 PM
Edit: How do i know if i'm using the memory card or the flash memory?
Probably the easiest way is to run the "mount" command in xterm, the check where your root ("/") filesystem is mounted. If you see a line similar to the following
/dev/mtdblock4 on / type jffs2 (rw,rpsize=1024,rpuid=0,rpuid=30000)
then you are running from internal flash. If it shows ext2 instead of "jffs2" and "/media/mmcX" (where X will vary) instead of "/dev/mtdblock4", then you are running from MMC/SD card.
Milhouse
09-16-2007, 11:35 PM
Im getting an error installing e2fsprogs
Package e2fsprogs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package e2fsprogs has no installation candidate
Any ideas?
Also wanted to say thank you for taking the time to write this up. Was exactly what I was looking for.
Need more information... what repositories have you got setup, what device are you using (770 or N800)... some repositories are a bit flaky, or you may be using out of date repositories (try changing mistral to gregale etc.)
Milhouse
09-16-2007, 11:36 PM
I have another question. this device gives very little time to hold menu button to get boot menu, and most of the times i am little late and it defaults boots into internal flash.
So I want to increse that time to press menu button and even if i didnt press button it should default boot into my MMC, how can i do that?
Someone was asking something similar within the last two weeks - they wanted to reduce the default timeout to something less than 30 seconds... try searching the forum for bootmenu related threads with replies from fanoush.
jarcat38
09-17-2007, 07:45 PM
@Milhouse
For some reason i didn't even have the basic repo installed:
Web address: http://repository.maemo.org/
Distribution: gregale
Components: free non-free
so once that was in e2fsprogs installed fine...thanks for the quick responses though..great thread topic
Milhouse
09-17-2007, 08:38 PM
Thanks for that - I've added the repository details to the first post in case it catches anyone else out.
ascherjim
09-17-2007, 09:07 PM
Milhouse: I just want to join the chorus of appreciation for what you've done. I've been booting from my mmc for years now, both on the 770 and the N800. I shudder whenever a new firmware comes out, not only because of the hassle involved in flashing it to the main system, and reinstalling all my applications -- but then, even more so, of having to get it cloned onto the mmc. I've had to do it too many times already, and whereas Fanoush and his "comperes''" established instructions have proved sufficiently clear, it was not until I encountered yours that the whole matter became, if not an actual pleasure, at least an almost no-brainer. Congratulations for your initiative and your results (in efforts and accomplishments more than in just this one instance).
bunanson
09-19-2007, 10:35 PM
[Edit: How do i know if i'm using the memory card or the flash memory?[/QUOTE]
How about a nobrainer checking:menu>control panel>memory>details>storage mem either in use or avail is >64 MB, you are booting from MMC, in general.
bun
markku
09-23-2007, 12:02 PM
Xterm was suddenly closed in the middle of phase nupgrade.sh 3 so can i just do the command again or do i have to do it in this specific order(o, 1, 2, 3, and 4)? There came message "internal error" and xterm was closed. Is this harmful for the system?
markku
09-23-2007, 02:47 PM
Okei, I solved that. I just proceed from phase 3 to 4 and all went well. I haven't noticed that system is faster but there's now more space to install applications. If I upgrade to Sardine will those installed applications be there also and will they work on Sardine? Does Sardine mean I have to install all once again? Now I'm thinking upgrading to Sardine, before this I didn't have enough courage to even think about upgrading.
Thank you Millhouse for these instructions! Great job.
Milhouse
09-23-2007, 08:30 PM
Unfortunately the upgrade to Sardine has been failing for the last few weeks with dependency issues. You can try it, but I wouldn't expect it to work (although the issues will be fixed eventually) and your applications will remain intact (but they might not work due to API changes in the latest Sardine/Chinook OS). They're not kidding when they state that "Sardine (http://sardine.garage.maemo.org/about.html) is unstable and will often be badly broken and smelly". :)
markku
09-24-2007, 01:12 AM
Thanks Milhouse, I'll try it later when I'm more used to this cloning process. I've read about Sardine and I'm interested about it. Like you said, maybe it's better to leave it for those who knows what they are doing, I'm still quite newbie but learning all the time!
rs-px
10-11-2007, 05:29 AM
This doesn't work on my N770 :( The OS is 3.2006.49-2. I'm trying to clone onto a new 1GB Nokia card.
All the steps complete successfully. The problem is that the boot menu doesn't appear after reboot, and mount shows that the system is still booting from jffs2.
The MMC card then shows up as corrupted, but can be formatted after this and works fine.
When partitioning the card, I follow the instructions here:
http://examplified.net/guide/Nokia_770/Booting_from_MMC/
Step 4. I split the card between VFAT and Linux.
Any ideas?
EDIT: Figured it out. I didn't realise that you had to manually install the dual-boot menu software. Done that and can now boot from mmc.
bunanson
10-11-2007, 07:56 AM
This doesn't work on my N770 :( The OS is 3.2006.49-2. I'm trying to clone onto a new 1GB Nokia card.
All the steps complete successfully. The problem is that the boot menu doesn't appear after reboot, and mount shows that the system is still booting from jffs2.
The MMC card then shows up as corrupted, but can be formatted after this and works fine.
When partitioning the card, I follow the instructions here:
http://examplified.net/guide/Nokia_770/Booting_from_MMC/
Step 4. I split the card between VFAT and Linux.
Any ideas?
EDIT: Figured it out. I didn't realise that you had to manually install the dual-boot menu software. Done that and can now boot from mmc.
Glad to hear it works.:) What is your partition size on your 1G MMC?
bun
MoridinBG
10-11-2007, 08:36 AM
After some research I don't think ext2 is a good choice for SD card partition Type. And ext3 is catastrophic. Ext2 tends to wear off the card with great speed, even with SD cards automatic anti-wear off protections.
Google on the topic and you will see it for yourself. Also Ext2 isn't very optimized for lots of small files. Neither in speed, nor size.
ReiserFS should be far better choice. It has a big edge over ext in terms of small files handling (the devs behind reiser stress quiet often on that). It is much more self repairing (I got lots of errors when running e2fsck on the SD card from time to time). It handles wearing off much better.
The only bottleneck I can think of now is the 32MB used for metadata. That's it. Even on empty filesystem you have 32MB used with metadata. On the other hand with 2GB cards costing $20 32MB is not that much.
Only two changes are required.
- Change bootmenu.conf to use reiserfs as parameter for partition type
- Provide ReiserFS support in kernel (either module or built-in)
I tried it, partitioned with reiserfs, modified bootmenu, cloned / and compiled kernel with reiserfs built-in. Boot time seemed a little bit faster compared to ext2 and also it seemed to use about 5-10% less space.
I have just to work out one problem, causing the tablet to hang for a while after loading the blue bar and to restart, which happened on a few occasions and then provide alternative instructions.
fanoush
10-11-2007, 08:55 AM
I can include reiserfs kernel module in bootmenu installer so no custom kernel would be needed and we have more choices by default. Personaly I think ext3 or 2 is not so bad but still reiserfs might be good to try. Please report how it goes with reiserfs and how stable it is.
Also feel free to post links to proofs of 'catastrophic' nature of ext[23] filesystems :-) IMO anything is far better than plain FAT which is the default for memory cards and manufacturers still give lifetime warranty for that. Also most devices (cameras, PDAs,..) cannot afford write caching at all (due to possible data corruption on crash or drained battery) so cards should be manufactured with that in mind. I know for sure that all PalmOS based PDAs do not use any write caching at all so FAT table and data blocks is updated with every VFSFileWrite call. ext2 or 3 filesystem mounted with asynchronous writes is heavens compared to that behaviour.
fanoush
10-11-2007, 09:02 AM
The only bottleneck I can think of now is the 32MB used for metadata. That's it. Even on empty filesystem you have 32MB used with metadata.
The other bottleneck may be RAM usage and behavior in out of memory situations. Last time I checked ReiserFS code was much bigger and its realtime memory usage may be also higher. This may not matter with N800 but with 770 every nonswappable RAM page taken by kernel hurts.
MoridinBG
10-11-2007, 09:10 AM
Right now I am on the Windows box at work, so can't do much, but when I get home I will experiment with one ext2 and one reiserfs filesystem. Comparing disk space usage, speed, resources usage, etc.
ascherjim
10-11-2007, 03:06 PM
[i]...
5. At least a 256MB partition is needed on /dev/mmcblk0p2 (partition 2, Internal SD/MMC card)
* See various Wiki entries for details. Step 4 from this page should be sufficient information for you to create a partition - formatting will occur automatically, later on.
[/list]
As a follow-up to my earlier-voiced appreciation for this excellent hack of Milhouse's (an appreciation which is noways diminished by the following):
I have just purchased a 4-gig SDHC card and have again re-cloned my OS onto it. (My last such cloning was on a 2-gig SDHC card.) But in this instance, I've discovered a possible pitfall for the unwary (such as myself). The instructions in the following site referenced in step 5 by Milhouse state as follows:
umount /media/mmc1
sfdisk /dev/mmcblk0
This will prompt you to give a partition size for each partition; we'll make 2 partitions. The first will be FAT16 (type 6) - the partition we see when we connect the 770 to a computer with USB. The second will be our boot partition, where our home directory is stored. I have a 2 gig MMC and used the following layout. Note, the 15000 refers to cylinders, each of 32 KB, so 15000 cylinders is 480 MB. So the first partition goes from 1 to 15000 with a partition type 6, or VFAT. The second goes from 15001, to the end fo the disk, so it's about 1.5 gb. The third and fourth partitions are empty.
/dev/mmcblk0p1: 1,15000,6
/dev/mmcblk0p2: 15001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
As Milhouse's instructions state, the intent (and result) is for the clone to be installed on /dev/mmcblk0p2, and by following the above instructions, the clone will find it certainly has plenty of space there! In my first try, about 3.5 gigs! (I'd wanted it to have only the intended .48 gigs.)
So, I had to reverse those recommended numbers by giving mmcblk0p1 "15001 ,," and mmcblk0p2 "1,15000,6". I found myself flying by the seat of my pants here (I'm no Linux expert) but to my surprise (and relief) it worked.
I may in fact be completely in error here -- but if so, I've at least ended up with a properly (for me) partitioned card.
Milhouse
10-11-2007, 06:38 PM
Correct, the partition sizes quoted in that wiki page are just one possible example (in this case appropriate for a 2GB card split 0.5GB + 1.5GB), and the figures will be inappropriate for a larger or smaller card.
When you run sfdisk, it will state how large each cylinder is on your card - on my Transcend 4GB card, each cylinder is 32768 bytes. Given that information, you can determine how many cylinders you need for a 3.5GB partition by dividing (3.5 * 1024 * 1024 * 1024) by 32768 - this calculation tells me my first partition would be "0,114688,6" and my second partition "114689,," (ie. all remaining space to be used by the second partition).
Alternatively, you can specify the "-uM" parameter when you use sfdisk so that you can then specify the partition sizes in terms of megabytes instead of cylinders, eg. to create a 3.5GB partion #1 with the remaining space* in partition #2, use the following:
#sfdisk /dev/mmcblk0 -uM
/dev/mmcblk0p1: 0,3500,0C
/dev/mmcblk0p2: 3500,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
Note: I've used a partition type of 0C on the first partition as this will create a FAT32 partition. When formatting the first partition for VFAT, use "mkfs.vfat /dev/mmcblk0p1 -F 32" if you want a FAT32 filesystem.
* Your 4GB card is unlikely to be 4GB in size as memory card manufacturers tend to use 1000 bytes to a K and 1000KB to a MB notation (rather than 2^10 or 1024 notation). Typically a "4GB" memory card will have between 3.7GB and 3.8GB usable space, which means that if you specify 3.5GB of space for the first partition you'll only have ~0.3GB (or less) space remaining for partition 2, in which case adjust the size of your first partition down by the amount of difference between your real card size and 4GB ie. if your card size is 3.8GB, use a figure of 3.3 (ie. 3.5 - 0.2) to calculate the cylinders, or 3300 when specifying the partition sizes in MB.
Milhouse
10-11-2007, 06:58 PM
So, I had to reverse those recommended numbers by giving mmcblk0p1 "15001 ,," and mmcblk0p2 "1,15000,6". I found myself flying by the seat of my pants here (I'm no Linux expert) but to my surprise (and relief) it worked.
Yes, the above should work - it's a bit wierd though, as your first partition is now physically located on the card after the second partition, but that shouldn't be a problem. The only minor issue is that you've specified that partition #1 is a Linux partition (it should be FAT), and partition #2 is a FAT16 (,6) partition (it should be Linux). Again this shouldn't be a problem as I'm guessing the format routines will put the correct filesystem on to the partitions - when you run nupgrade.sh 0 it will put ext2 on the second partition irrespective of what sfdisk thinks the partition type is.
I imagine that sfdisk still states that parititon #1 is Linux and partition #2 is FAT16 even though they've been formatted with the FAT and Linux (ext2) respectively.
ascherjim
10-11-2007, 07:57 PM
Yes, the above should work - it's a bit wierd though, as your first partition is now physically located on the card after the second partition, but that shouldn't be a problem. The only minor issue is that you've specified that partition #1 is a Linux partition (it should be FAT), and partition #2 is a FAT16 (,6) partition (it should be Linux). Again this shouldn't be a problem as I'm guessing the format routines will put the correct filesystem on to the partitions - when you run nupgrade.sh 0 it will put ext2 on the second partition irrespective of what sfdisk thinks the partition type is.
I imagine that sfdisk still states that parititon #1 is Linux and partition #2 is FAT16 even though they've been formatted with the FAT and Linux (ext2) respectively.
Milhouse: I believe you are right in your assumption that nupgrade.sh 0 corrected my mis-designation of the file types for each partition. In fact, my partition 1 (for data) now indicates that it's FAT32.
You may (or may not) though have misunderstood what I perceived to be my earlier dilemma. Partition 1, which is intended to be the FAT data storage partition, was being limited to roughly .5 GB's, while Partition 2, on which the clone resides, was given all the rest of the card memory available, in my case roughly 3.5 GB's. I was thus losing all the useful data memory for which I purchased the larger capacity card. In my earlier dual-boot cloning with my 2 GB card, which I had in my external slot (not the internal slot that currently houses my 4 GB card), I again followed your instructions precisely, but this partition dichotomy didn't seem to occur. (If it had, the Partition 1 data space would again have been limited to .5 GB and the Petition 2 clone space to an unnecessarily large 1.5 GB. But I don't recall that that was the case (unless I didn't notice it, which I doubt). I recall having had an approximate Petition 1 data space of 1.5 GB. So, I don't know what happened in this latter 4 GB card attempt. (I've since reformatted my former 2 GB card, so I can't now check that to be sure.)
I hope I'm making myself sufficiently clear here. If I'd been formatting a 1 GB card, nothing would have mattered, as both partitions would have been the same size. Anyway, many thanks for your response and thinking this through with me. Regards, Jim
Milhouse
10-12-2007, 06:31 AM
Hi Jim
I understood you - the wiki page you followed is using a 2GB card and the figures it proposes for the partitions will create a 0.5GB FAT partition #1 (15000 cylinders * 32768 per cylinder is roughly 468MB), and all of the remaining space (~1.5GB) is allocated to partition #2, which is where the cloned OS resides. Essentially, the wiki page partition sizes are overkill as I don't think anyone really needs more than 0.5GB for the cloned OS partition (IMHO), and the wiki page doesn't allow for any variance in card size.
If you follow my instructions above, you should be able to calculate the correct figures to enter into sfdisk and create more appropriately sized partitions for your needs.
By far the easiest way to create the partitions will be to specify the partition size in MB, and assuming you only want one large FAT partition and the remaining space to be used for the cloned OS I would suggest you use one of the following examples as input to sfdisk (it should be fairly obvious how to adjust the figures to suit your tastes should you want a smaller OS partition - just increase the size of the first partition! :)):
1GB Card (~0.8GB real size - partition 1: 0.3GB, partition 2: ~0.5GB):
#sfdisk /dev/mmcblk0 -uM
/dev/mmcblk0p1: 0,300,06
/dev/mmcblk0p2: ,,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
2GB Card (~1.8GB real size - partition 1: 1.3GB, partition 2: ~0.5GB):
#sfdisk /dev/mmcblk0 -uM
/dev/mmcblk0p1: 0,1300,06
/dev/mmcblk0p2: ,,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
4GB Card (~3.8GB real size - partition 1: 3.3GB, partition 2: ~0.5GB):
#sfdisk /dev/mmcblk0 -uM
/dev/mmcblk0p1: 0,3300,0C
/dev/mmcblk0p2: ,,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
8GB Card (~7.8GB real size - partition 1: 7.3GB, partition 2: ~0.5GB):
#sfdisk /dev/mmcblk0 -uM
/dev/mmcblk0p1: 0,7300,0C
/dev/mmcblk0p2: ,,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
Note that by specifying ",,," for the second partition, the second partition is created immediately following the previous first partition, uses all remaining space and defaults to the Linux partition type.
ascherjim
10-12-2007, 10:37 AM
Milhouse: Your latest instructions for resolving this problem seem clear and excellent, a praiseworthy characteristic of all your contributions to this forum. Fortunately, however, my fumbling resolution to my difficulties as reported a bit earlier in this thread have achieved substantively the same outcome as you propose for the 4GB card, and as I've already loaded up data on the FAT portion of the card, I'll just let matters stand as at present. However, for others who are perhaps encountering the same problem from the wiki as I did, your new solutions should really simplify things for them.
On my earlier cloning of my 2 GB card, which following your instructions was highly successful -- I've now remembered the reason for that (which I had momentarily forgotten when sending off my previous message referring to the 2 GB card). For that cloning, I hadn't used the wiki instructions for partitioning but instead had partitioned my card using gparted. But for the 4 GB card, I'm currently away from home and didn't have my usual ready access to gparted.
Anyway, problem solved, for myself and I assume as well as for similarly affected others, and again my many thanks. Regards, Jim
Golab
10-21-2007, 01:22 PM
how do i find out if it rely haw booted from memory card, can i sey it on mount? or do it exist other command i can us?
// Sorry About My Spelling I´m Dyslectic \\
AdonusX
10-24-2007, 12:10 PM
how can I modify your script to work with the external card? I plan to exchange my current N800 because I think the internal card slot doesn't work (it freezes and reboots constantly when I put a card in it) but I still wanna clone things as is and run from the external card before I do anything else...
bunanson
10-27-2007, 09:20 AM
Mil, try to use your magic script again, and this time has some problems. I am now stuck at 7: wget http://..............
error statement -sh: wget: not found. Any suggestions where to look? Thanks,
bun
bunanson
10-27-2007, 09:58 AM
Mil, problem solved. I went to maemo.org and re-install wget, everything is fine now, ./nupgrade.sh 3 is cooking, it should cook for 38 min, then it will be just right............ thanks
bun
bunanson
10-27-2007, 10:26 AM
Well, it is done, but still boot from flash. I forget to do step 6. I subsitute with this,
chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
and does not seem to work. There is error statement though. OK, I will try step 6 and see how it goes.
I do not want to install any progs on flash, that is why I want to clone to MMC as my first project. I inserted a 4G SD on the ext slot, it was recognize immediately, thank god.
Edit: mission accomplished, booted from MMC2:o
bun
AdonusX
10-27-2007, 10:31 PM
Well, it is done, but still boot from flash. I forget to do step 6. I subsitute with this,
chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
and does not seem to work. There is error statement though. OK, I will try step 6 and see how it goes.
I do not want to install any progs on flash, that is why I want to clone to MMC as my first project. I inserted a 4G SD on the ext slot, it was recognize immediately, thank god.
Edit: mission accomplished, booted from MMC2:o
bun
ok, can you explain exactly how you got yours to boot from the external SD slot? Nothing I have tried seems to work and all the instructions I have found are for booting from internal... but my internal slot is bad or something because my card is never recognized when I put it in there... Please help!
ascherjim
10-28-2007, 01:35 AM
Before I recently simplified my N800 to boot from my internal slot in addition to flash, I had set up my N800 to boot from both my internal and external slots, so as to be able to run KDE on one and OpenBox Rox on the other. Fanoush's bootmenu flashing application (initfs_flasher) gives a sample bootmenu.conf detailing just how to boot from either internal or external card. I suggest you search this out and get back to me (or better Fanoush) with any further queries. Good luck.
AdonusX
10-28-2007, 07:36 PM
I followed the instructions and, from what I can tell, I did it right, everything is copied, but the boot menu didn't work... any suggestions?
Everything else seems to be good...
NOTE: not sure, but I could either be booting straight to flash or straight to mmc... not sure though.
bunanson
10-28-2007, 08:03 PM
I followed the instructions and, from what I can tell, I did it right, everything is copied, but the boot menu didn't work... any suggestions?
Everything else seems to be good...
NOTE: not sure, but I could either be booting straight to flash or straight to mmc... not sure though.
Menu>Tools>Control panel>Memory>Details, look at the Storage memory available, if it is >>64 MB and you are running on a 770, you booted into MMC2. Of course provide that you did leave a large partition on mmcblk0p2, the OS partition. And of course, you need to install boot menu in order to have a choice. Tell us about the boot up picture, Mil will help you out:)
bun
ascherjim
10-28-2007, 08:15 PM
AdonusX: Check out this other thread for instructions to someone currently having the same problems you are: http://www.internettablettalk.com/forums/showthread.php?t=11064&goto=newpost
AdonusX
10-29-2007, 01:28 AM
the problem comes at the end when you use init_flash... most of us, when presented with a "yes/no" question in linux are so used to typing "y" as a response...and it is ACTUALLY necessary to type "yes" not just a y... after that, I got my boot menu and everything! Now I am good to go, I think...
NOTE:
I just checked my memory details and (if my memory serves me correctly, I am supposed to have roughly 500mb of overall space, but) I am listing 33.8mb used and 139.7mb free... that doesn't seem right...
bunanson
10-29-2007, 03:35 AM
the problem comes at the end when you use init_flash... most of us, when presented with a "yes/no" question in linux are so used to typing "y" as a response...and it is ACTUALLY necessary to type "yes" not just a y... after that, I got my boot menu and everything! Now I am good to go, I think...
NOTE:
I just checked my memory details and (if my memory serves me correctly, I am supposed to have roughly 500mb of overall space, but) I am listing 33.8mb used and 139.7mb free... that doesn't seem right...
Typing on the tablet is not the most enjoyable things to do. It happened to me that I want to type yes, but turns out to be yyes and the prog kicked me out, started from beginning, again. Whenever I do flash, I type as if I am typing on an about to burst bubble.
The memory is about right, OS + some apps about 280 MB + 140 + 34 = 454 MB which is what .45 G is about.
bun
JeffElkins
11-03-2007, 12:56 PM
Howdy all,
Thanks to these great instructions, I cloned OS2007 to my internal 8GB SD card w/o problems. I did deviate a bit and formatted the card to one ext3 partition which raises some questions:
1. Why create the split partition scheme (small ext/large vfat)? Is there a reason I'd want to keep some storage VFAT? I have no windows box to be concerned with.
2. I'm at a point where a redo is no hassle. Should I create a swap partition?
fanoush
11-03-2007, 01:22 PM
and it is ACTUALLY necessary to type "yes" not just a y
this is already fixed
http://www.internettablettalk.com/forums/showthread.php?p=88256#post88256
Milhouse
11-03-2007, 02:55 PM
VFAT is usually retained for Windows compatability, also the NIT will only auto-mount a VFAT partition but if you have no need for Windows compatability and don't care for VFAT storage (for music, video etc.) then there's nothing to stop you from using the entire card as ext2/3 storage. To keep things simple though it might be easier to create a tiny VFAT partition and use the remaining space for ext2/3 - this way most guides and the NIT itself will work as expected.
As for the swap partition - it can be made to work, but I'm not sure there's much if any benefit over the existing swap file. The device might crash if the card containing the swap partition is removed (not tested this, just suspect that's what will happen!). :)
JeffElkins
11-03-2007, 03:25 PM
Thanks Milhouse, both for the reply and your simplified instructions for this process. And of course kudos to Fanoush and everyone else too :)
My external card is formatted as ext3 also. I finally got around the no automount issue by creating an init.d script that mounts it to /media/mmc1 after all other boot scripts are run...no matter what I tried, mounting it from fstab failed:
fstab: /dev/mmcblk1p1 /media/mmc1 ext3 defaults 0 0 will allow me to manually mount the card (as root), but it does not mount automatically... fstab: /dev/mmcblk1p1 /media/mmc1 ext3 rw,auto,exec,user 0 0 fails altogether. No matter I guess, the init.d script works :)
I hope the cloning procedure works w/o much changing when chinook becomes available!
Jeff
AdonusX
11-04-2007, 02:53 AM
when cloning the OS, are there any benefits to formatting the SD card as ext3 instead of ext2?
JeffElkins
11-04-2007, 08:30 AM
when cloning the OS, are there any benefits to formatting the SD card as ext3 instead of ext2?
Well, you avoid having to fsck the card.
Just FYI, the help displays fine (i.e. it falls back to english) with the n800 in spanish.
I'm using the latest firmware but it should work equally well with the previous one (since the only change was the kernel).
Oops, my last message was for the maemo mapper 2.0 thread. Sorry.
fanoush
11-05-2007, 04:30 AM
fstab: /dev/mmcblk1p1 /media/mmc1 ext3 defaults 0 0 will allow me to manually mount the card (as root), but it does not mount automatically... fstab: /dev/mmcblk1p1 /media/mmc1 ext3 rw,auto,exec,user 0 0 fails altogether. No matter I guess, the init.d script works :)
You may also try to edit /usr/sbin/mmc-mount, now it looks like this
#!/bin/sh
mount -t vfat -o rw,noauto,nodev,noexec,nosuid,utf8,uid=29999,short name=mixed,dmask=000 "$1" "$2" > /dev/null
which is not good for ext3
I hope the cloning procedure works w/o much changing when chinook becomes available!
Yes, cloning will be similar. What may be a bit different is the bootmenu code. Also the internal hardwired 2GB card in N810 is already preformatted and has some data so this may need some extra care.
BTW, if anyone has access to some beta 2008 firmware (N810 and/or N800) I would be interested in initfs image or at least full list of files (cd /mnt/initfs ; ls -lR) and output of cat /mnt/initfs/linuxrc (i.e. whole linuxrc file).
maxilogan
11-12-2007, 10:52 AM
What do I get by living on the Sardine bleeding edge? Anything better / more usable then regular OS2007? (what in regards to OS2008?)
And, sorry.. I did not understand from the section
"Steps 5 and 6 are optional and may be performed in order to upgrade the freshly cloned OS 2007 (not OS 2006 or OS 2007HE) to the Sardine bleeding edge test distribution
o 5 - Enter chroot gaol prior to upgrading cloned OS on memory card
o 6 - Initiate Sardine operating system upgrade of cloned OS on memory card"
if I have to start the freshly cloned OS then perform those steps or if I still have to do 5 and 6 when running "regular" internal memory OS..
Milhouse
11-12-2007, 04:40 PM
What do I get by living on the Sardine bleeding edge? Anything better / more usable then regular OS2007? (what in regards to OS2008?)
Not a lot right now as Sardine has been "broken" for several weeks meaning it's not possible to boot from the MMC oncer Sardine has been applied. When it was working, the device was in theory running the latest available code however it was often unusable in practice (although the finger friendly menus due in OS 2008 were visible months ago and looked kinda nice). :)
And, sorry.. I did not understand from the section
"Steps 5 and 6 are optional and may be performed in order to upgrade the freshly cloned OS 2007 (not OS 2006 or OS 2007HE) to the Sardine bleeding edge test distribution
o 5 - Enter chroot gaol prior to upgrading cloned OS on memory card
o 6 - Initiate Sardine operating system upgrade of cloned OS on memory card"
if I have to start the freshly cloned OS then perform those steps or if I still have to do 5 and 6 when running "regular" internal memory OS..
You run steps 5 and 6 when you have booted from internal flash as these two steps upgrade the OS that is now located on MMC/SD - it's not possible to upgrade the OS on MMC/SD if you have booted from MMC/SD! :)
maxilogan
11-12-2007, 06:06 PM
[QUOTE=Milhouse;93706]Not a lot right now as Sardine has been "broken" for several weeks meaning it's not possible to boot from the MMC oncer Sardine has been applied.[QUOTE]
Ok, so basically it's better to wait OS2008 to be ready even if this means 2-3 weeks, I guess :(
Milhouse
11-14-2007, 04:01 PM
I've updated the "nupgrade.sh" script to include OS2008 support for steps 0 through 4 - I haven't tested Sardine upgrades yet on OS2008 and don't advise it for now!
To install e2fsprogs and wget in OS2008 see this (http://www.internettablettalk.com/forums/showthread.php?p=94828#post94828) post from Fanoush.
killdog5000
11-14-2007, 05:12 PM
Thanks Milhouse. Funny thing was last night the nupgrade wasn't working (well unavailable i got a 404 error in wget). Now it does great
Has anybody ported a full version of Tar?
I'm getting the following error;
tar: unrecognized option `--exclude=/sys'
Or does anybody know a better way of tar-ing a full OS install, I'm currently running 2008 N810 version on a N800?
JeffElkins
11-27-2007, 06:55 PM
Has anybody ported a full version of Tar?
I'm getting the following error;
I have gnu tar in my OS2008 repository.
deb http://elkins.org/packages chinook main
bunanson
12-01-2007, 11:29 AM
I have gnu tar in my OS2008 repository.
deb http://elkins.org/packages chinook main
The above link needs a permission?!:confused:
bun
JeffElkins
12-01-2007, 11:35 AM
The above link needs a permission?!:confused: bun
What error do you get Bun? It works for me from both apt-get and the applications manager.
bunanson
12-01-2007, 01:59 PM
Thanks for the quick response, here is the err mess:
__________________________________________________
Forbidden
You don't have permission to access /packages/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at elkins.org Port 80
_______________________________________________
Not quite sure what is the problem?
bun
JeffElkins
12-01-2007, 02:11 PM
Thanks for the quick response, here is the err mess:
__________________________________________________
Forbidden
You don't have permission to access /packages/ on this server.
It looks like you're trying to access the packages with a browser. You need to add the repository to your Application Manager or directly edit your file:
hildon-application-manager.list
and add the line:
deb http://elkins.org/packages chinook main
The file is in /etc/apt/sources.list.d/
technut
12-02-2007, 12:53 AM
You need to add the repository to your Application ManagerFrom OS2008, just click on this link to add the repository:
http://www.gronmayer.com/it/dl.php?id=128
fnordianslip
12-08-2007, 01:01 PM
Hi,
I've followed the process and have now booted the latest 2008 from my 8GB internal card. However, the other partition, which should presumably have ended up formatted as FAT is not accessible. I did elect to create the first partition with only ~1GB space, leaving the rest to the root filesystem, but I can't set up swap memory on the internal drive and assume that the FAT partition must exist for this to work.
Unfortunately, my SD reader on my Ubuntu box can't read the SDHC card (I didn't try before putting 2008 on it, so I don't know f that is why, but assume that it is just too old to support SDHC), so I'm stuck with sorting it out on the N800.
Anyway, I eventually tried using File Manager on the N800 to format the Internal Memory Card, which is initially displayed with a Repair option, but it will not format, as the card (presumably the first 1GB partition) is apparently in use.
As I was typing this, I swapped the card into the external slot and went for a format with File Manager, half expecting the worst, and not being at all surprised to find that the whole card got formatted and not just the 1GB partition.
So, I've got to follow the process again, which is no biggy, but want to avoid being stuck with no swap. I'm not immediately bothered by the loss of 1GB space, so would welcome suggestions as to how I can format the 1GB partition with FAT and avoid the problem, or deal with the swap in a different fashion.
Please consider that a quick response might catch me before I've finished doing the process again in the hope that I can sort out the issues afterwards.
Cheers.
fnordianslip
12-08-2007, 01:53 PM
I was stupid to think that I couldn't figure it out for myself, especially when I RTFI again and noticed the bit about using mkdosfs.
Oh well. All good now. Nothing to see here. Please move along!
skeezer65134
12-16-2007, 03:11 PM
Thanks for this, should be fun to try :)
One question; is there an advantage to putting the OS on the second partition or is that just recommended so when you plug the N800 into a windows machine you see the first FAT partition? I have a 512 card I use on the internal slot (it's small, but it was a spare card doing nothing) that I really only need 2 partitions on; ext2 and swap. I don't care about any part of it working through the USB connection (and I run Linux anyway, so I can still use it).
Just wanted to ask before I start hacking up the posted script to use the first partition. Also, it would be nice if the target partition(s) were set up as variables in the script, so you only had to edit 1 line; just a thought.
fanoush
12-16-2007, 04:07 PM
One question; is there an advantage to putting the OS on the second partition
The advantage is that it just works with zero tweaking.
or is that just recommended so when you plug the N800 into a windows machine you see the first FAT partition?
Yes. Also you see card mounted in file manager and you can create swap on it easily via control panel applet. It is simply the most compatible way. If you want first partition just for swap you can still keep it as FAT and have swap file there. AFAIK swapping to file is done via direct device i/o just like with real partition so there is no additional overhead or slowdown.
Still, using one ext2 partition should work too (maybe with some minor system tweaks).
theredbaron
12-16-2007, 10:09 PM
I have a kind of weird issue. I am booting OS2008 from internal SD card. For some reason my MicroB browser is using only Monospace fonts! So, when I go to Google, or pretty much any other webpage, I get monospace fonts which are huge and hard to read. I went to config:about and tried tweaking some of the fonts but nothing seems to change. Has anyone had trouble with font corruption or issues with fonts in MicroB web browser when booting OS2008 from MMC? When I boot from Flash my MicroB fonts are fine.
Milhouse
12-18-2007, 04:48 AM
I have a kind of weird issue. I am booting OS2008 from internal SD card. For some reason my MicroB browser is using only Monospace fonts! So, when I go to Google, or pretty much any other webpage, I get monospace fonts which are huge and hard to read. I went to config:about and tried tweaking some of the fonts but nothing seems to change. Has anyone had trouble with font corruption or issues with fonts in MicroB web browser when booting OS2008 from MMC? When I boot from Flash my MicroB fonts are fine.
Did you clone your OS using the instructions in this thread? The built-in Busybox tar command historically had issues copying font files, which is why gnu tar is recommended.
fanoush
12-18-2007, 05:20 AM
there is similar bug for opera, did you clone the system by rsync?
https://maemo.org/bugzilla/show_bug.cgi?id=838
theredbaron
12-18-2007, 10:47 AM
I cloned the OS using the instructions in this thread. I solved this problem yesterday by re-cloning the OS and now the correct fonts are used by the browser. I don't know what caused the issue. Like I said, even changing the about:config file didn't do anything so I think the fonts were corrupted (the font files were present in the correct directory).
Is there a (definitive) Wiki somewhere explaining the pros and cons and possibilities of using different filesystems (esp. wrt. OS and swap file/partition)?
I suspect quite a few people here don't absolutely need FAT for Windows access but apparently OS2008 still requires it to be able to automount an OS partition on the MMC/SD cards. Would it be worth lobbying the Maemo folks for including ext2/3 (automount) support in the kernel? Has the ext3 (with journalling) proven reliable and not overly stressful on the frequently used sectors of the partition?
Or would a separate ext2-formatted partition (of ~256MB?) be better suited for swap/virtual memory? Presumably that way a trashed swap wouldn't take down the whole OS (on its own partition).
I'm planning to use the current cloning scripts with 512MB FAT32 + ~1.3GB ext3 scheme (with data on external card) but perhaps there's room for "non-fat" evolution in the future? Sometime next year there might also be the new LogFS in the mix... (a journalled and wear-levelling flash FS for larger partitions than the jffs2)
DistantFire
12-20-2007, 10:34 AM
Is anyone available online today to assist in getting through these procedures? I'm getting as far as trying to install wget and get the following error msg (and this is just the first one):
Err http://repository.maemo.org chinook/free wget 1.10.2-2osso2
503 Service Unavailable [IP: 8.12.96.16 80]
Is anyone available to help?
JeffElkins
12-22-2007, 08:15 PM
I suspect quite a few people here don't absolutely need FAT for Windows access but apparently OS2008 still requires it to be able to automount an OS partition on the MMC/SD cards.
This isn't the case. I have two 8Gb SD cards, both formatted as single partition ext3. I was able to simply tar the rootfs and copy it to my internal SD card.
mount -t jffs2 /dev/mtdblock4 /floppy -o rw,rpsize=1024,rpuid=0,rpuid=30000
tar cf - -C /floppy . | tar xvf - -C /media/mmc2
OS2008 happily boots from ext3
JeffElkins
12-22-2007, 08:17 PM
Is anyone available online today to assist in getting through these procedures? I'm getting as far as trying to install wget and get the following error msg (and this is just the first one):
Err http://repository.maemo.org chinook/free wget 1.10.2-2osso2
503 Service Unavailable [IP: 8.12.96.16 80]
Is anyone available to help?
Well, wget and e2fsprogs are still not available. I just downloaded source and compiled them in scratchbox.
This isn't the case. I have two 8Gb SD cards, both formatted as single partition ext3. I was able to simply tar the rootfs and copy it to my internal SD card.
(formatting code edited..)
OS2008 happily boots from ext3
Thanks Jeff. I'd somehow gotten the wrong impression since the scripts (or was it also the wiki?) appeared to include FAT in the given scenarios. I'll try to learn more about the ideal (which may be a personal preference) setup but for now my wife has taken possession of the N800... :cool:
I also realize I posted to a wrong thread as I didn't even notice this being under the OS2007 title but posted directly to a searched post. Glad you still noticed it.
computerfreek
12-24-2007, 11:42 AM
Maybe someone can help me ...
I have cloned my N800 with os 2007 befor in the past and each time it worked just great . but now i am on os 2008 . no matter what way i use to clone os 2008 it starts to copy the files over to my card but then stops . it is like it slows down till it comes to a stop . last night even 8 hours latter and still on the same file .I shut off wireless closed all programs and even reflashed my device so the system is very clean. it is a 1gb card partition 50/50 ..I don;t understand it this has never happen to me it always went fast. I do have the boot menu install also .
Has this happen to anyone other then me and if so how did you fix it ..
I wish there was just a wiki just for n800 and os 2008 . maybe i am missing something with 2008.. but i have did this 20+ times and i still can not get it to go..
Thank you
Computerfreek
PinCushionQueen
12-27-2007, 01:18 PM
Quote:
Originally Posted by theredbaron View Post
I have a kind of weird issue. I am booting OS2008 from internal SD card. For some reason my MicroB browser is using only Monospace fonts! So, when I go to Google, or pretty much any other webpage, I get monospace fonts which are huge and hard to read. I went to config:about and tried tweaking some of the fonts but nothing seems to change. Has anyone had trouble with font corruption or issues with fonts in MicroB web browser when booting OS2008 from MMC? When I boot from Flash my MicroB fonts are fine.
Quote:
Originally Posted by Millhouse
Did you clone your OS using the instructions in this thread? The built-in Busybox tar command historically had issues copying font files, which is why gnu tar is recommended.
I'm having the exact same font problem with microb and I too cloned following the instructions found in this thread. Is there any way to fix the font problem without re-cloning?
I've already installed KDE on top of the clone and have it all configured. I just noticed the font problem last evening and would really, really like to not have to install/configure KDE all over again :(
Alternatively, is there a way I can re-clone Maemo without having to reinstall KDE? I can't think of a way - but you never know.
Thanks :)
PinCushionQueen
12-27-2007, 09:25 PM
Ok... so FYI, I figured out why my fonts are broken in microb. I've re-cloned Maemo and re-installed KDE making sure to use the correct tar app along the way. I checked the browser after each step of the KDE install and it appears that one of the files used for KDE install (SUP.tgz) is at fault for breaking the microb fonts.
harryqu
12-27-2007, 11:06 PM
I don not know how to use SD card on the Tablet?
Kudos to all the contributors, esp Milhouse and Schmot!!!
Not being a Linux-savvy-dude I was however able to follow the procedures and clone OS2007 to SD.
2 questions though:
1) it looks like rootfs takes an extra 100M or so...is it because initial fs is compressed (jfss2) and the cloned one isn't (ext2)?
2) VERY IMPORTANT FOR ME: can I flash the OS on SD to upgrade to OS2008? This would be AWESOME...to preserve OS2007 on flash and toy with OS2008 at the same time.
My biggest beef with OS2007 is crappy Skype performance (100% crashes after 10 min or so...no matter what I tried).
Thanks a bunch....
PS. In case anyone wonders if the Dell regular Bluetooth keyboard works (normal size, can't find the model # now)..it does - pretty good.
Milhouse
12-31-2007, 12:51 PM
1) Correct - your internal flash memory is 256MB, but to clone the OS it's recommended that you make available at least 512MB because of the internal compression
2) Not easily, and I admit this would be very handy (ie. to "flash" a FIASCO image direct to MMC/SD) - doing this has been discussed a few times on the forum, if I knew the commands to do this I'd write a script! :)
Thanks Milhouse! One last (!) question: can I copy the content of SD into flash (reverse cloning)?
I want to use my N800 booted from SD at all times (just as a safety measure), but inevitably the 2 versions will be out-of-sync (due to updates and new sw installed).
Cheers
Milhouse
12-31-2007, 08:18 PM
Thanks Milhouse! One last (!) question: can I copy the content of SD into flash (reverse cloning)?
I want to use my N800 booted from SD at all times (just as a safety measure), but inevitably the 2 versions will be out-of-sync (due to updates and new sw installed).
Cheers
I guess it should be possible; The root filesystem for internal flash can be accessed by mounting /dev/mtdblock4 then erasing it (I'm not sure if it's possible to format the jffs2 partition) and tranferring your OS from MMC/SD...
spirytsick
01-01-2008, 02:29 PM
I have followed instructions and cloned the OS 2007 to the internal SD card. There is one issue though. The vfat partition is only automounted after reboot. If I try to connect N800 to a pc via usb, it shows an error about internal memory card being in use. External card mounts fine. After disconnection, only external card is remounted on n800. I have to remount the vfat first partition manually for the device to. Funnily enough if I connect the usb cable and power on the device (after switching it off obviously) then all partitions appear on my desktop ready to be mounted. Is there any way of making it work properly so I can have the first partition being unmounted when connected to pc and mounted back when disconnected from pc. Thanks a lot for any suggestions.
Simon
fanoush
01-01-2008, 04:35 PM
can I copy the content of SD into flash (reverse cloning)?
I want to use my N800 booted from SD at all times (just as a safety measure), but inevitably the 2 versions will be out-of-sync (due to updates and new sw installed).
Yes, for small differences use rsync. For bigger ones it is best to recreate whole jffs2 image from current SD and flash it to internal flash while booted from mmc. The naive way -
mount /dev/mtdblock4 /opt
rm -rf /opt/*
tar clone from mmc2 to mtdblock4
would work too but will be far from optimal, mount and access time will be poor, jffs2 is journaled and there is nothing but journal so with this way the filesystem will consist of huge number of tiny records/logs of separate changes for removing/creating each file. Making new jffs2 image gives best performance. Search this forum for mkfs.jffs2 and flash_eraseall.
fanoush
01-01-2008, 04:51 PM
2) VERY IMPORTANT FOR ME: can I flash the OS on SD to upgrade to OS2008? This would be AWESOME...to preserve OS2007 on flash and toy with OS2008 at the same time.
No. You can't easily extract firmware image directly to SD card from the tablet. It is possible but quite complicated so I won't go to details. It is easier to do it on linux desktop PC but still it is complicated. You can unpack firmware to pieces and mount rootfs.jffs2 on PC and archive it via tar or copy to card. AFAIK there is no way to extract jffs2 image directly (i.e. no mtd modules in kernel and no mount). The easiest way is to flash new firmware to internal flash, then copy it to mmc and then possibly restore previous backup of internal flash.
Also you can boot both 2007 and 2008 rootfs from card/internal flash but you will not have full functionality. There is only one shared kernel and initfs partition and 2007 vs 2008 differ too much. You can boot 2007 with 2008's kernel and initfs but wifi won't work in 2007.
I am currently playing with kexec idea (i.e. booting more kernels) but it is far from usable state. And this route will be more complicated since you would need to have more initfs partitions too. Perhaps it is too complicated for average person to be practical.
fanoush
01-01-2008, 04:54 PM
If I try to connect N800 to a pc via usb, it shows an error about internal memory card being in use.
http://www.internettablettalk.com/forums/showthread.php?p=40839#post40839
spirytsick
01-01-2008, 05:28 PM
Thanks Fanoush! It has sorted the problem straight away. Now I can enjoy my N800 to a full extent!!.
Ropesend
01-04-2008, 04:35 AM
In xterminal I
cd /home
find
which brings up allot of directories so i find where the file is extracted to which says
./user/MyDocs/documents/initfs_flasher
so i copy that line
exec ./user/MyDocs/documents/initfs_flasher
It seems like it running but it runs for a long period and my processor manager says that osso-xterm 48% and Xomap is 41%
What am i doing wrong?
After step 5 I can't see the internal card i formatted in the memory section. I'm sure It's just a line of code im not familiar with to run. I dont know shell or terminal command codes.
n800
OS2008
8 Gig MMC
fanoush
01-04-2008, 04:57 AM
exec ./user/MyDocs/documents/initfs_flasher
drop the 'exec' part, exec command is not doing what you think it does, it replaces current process (i.e. shell) which is not what you want.
so either it should be something like
/home/user/MyDocs/.documents/initfs_flasher/initfs_flash
or
cd ~/MyDocs/.documents/initfs_flasher
./initfs_flash
Also I take for granted that you already extracted the archive (tar zxvf initfs_flasher.tgz)
cbarnett
01-04-2008, 09:04 AM
Fanoush' Web site/download location (http://fanoush.wz.cz/maemo/#initfs) appears to be down. Is there an alternative? Is the tool small enough someone could attach it to a post?
fanoush
01-04-2008, 10:01 AM
Thanks for letting me know. This is free hosting so I don't know when it will be available again. Here is backup site
http://fanoush.webpark.cz/maemo/initfs_flasher.tgz
http://fanoush.webpark.cz/maemo/#initfs
Not everything is up to date there, I will gradually update what is missing. If you want something and link doesn't work, PM me.
Ropesend
01-04-2008, 03:08 PM
Help step 6
After downloading the file from
http://fanoush.wz.cz/maemo/initfs_flasher.tgz
and
in xterminal
~ $ sudo gainroot
# cd /home/user/MyDocs/.documents/
# tar zxvf initfs_flasher.tgz
# cd initfs_flasher/
# ./initfs_flash
Type "yes", if appropriate, to make sure everything works correctly.
When i extracted the file from the tgz file i thought i would be the same as if i used winrar on my vista box. It is not must be extracted with "# tar zxvf initfs_flasher.tgz" in terminal (shell). The # indicates that you must be in root mode. The above code is for file extracted in document folder.
Zebee
01-05-2008, 04:40 PM
After following the instructions on the maemo.com wiki to partition and format the 8gb internal SD card - making sure the FAT partition was first on the card - I followed the excellent instructions at the start of this thread.
I had upgraded my N800 to OS2008, so cloned that 2008 to the card, and all booted properly. (I also installed KDE on that SD card)
I decided I didn't like OS2008 so back to 2007. Reinstalled initfs as per Fanoush's instructions so I could dual boot again and behold! 2007 on flash and 2008 on the SD card.
I can now test ethernet networking but still have my preferred OS as the every day environment. Happy happy!
The chances of a flasher to update the SD card are probably slim, but that would make my day complete.
Zebee
bunanson
01-06-2008, 01:54 PM
After following the instructions on the maemo.com wiki to partition and format the 8gb internal SD card - making sure the FAT partition was first on the card - I followed the excellent instructions at the start of this thread.
I had upgraded my N800 to OS2008, so cloned that 2008 to the card, and all booted properly. (I also installed KDE on that SD card)
I decided I didn't like OS2008 so back to 2007. Reinstalled initfs as per Fanoush's instructions so I could dual boot again and behold! 2007 on flash and 2008 on the SD card.
I can now test ethernet networking but still have my preferred OS as the every day environment. Happy happy!
The chances of a flasher to update the SD card are probably slim, but that would make my day complete.
Zebee
Is anything NOT working, re 2008Os booted from SD, e.g. is the wifi working?
Do you now have as much space as you want for program installation?
Thanks
bun
Zebee
01-06-2008, 03:07 PM
Is anything NOT working, re 2008Os booted from SD, e.g. is the wifi working?
Do you now have as much space as you want for program installation?
Thanks
bun
No, the wifi isn't - I thought it was, but was wrong. (I was having wifi problems that morning, so thought the lack of proper connection was my base station)
Reading other threads, it seems I'd have to reflash the initfs in the boot loader which makes sense - the equivalent of remaking the initrd I guess. Pity it isn't possible to have two and select the right one in the bootloader itself rather than having to reflash.
Yes, I have heaps of room to install things, I installed KDE for example. I am not that interested in 2008 I find it considerably nastier to use than 2007, so will probably work out how to use it so I can experiment with emergency wired networking, but otherwise use 2007.
Zebee
bunanson
01-06-2008, 06:20 PM
No, the wifi isn't - I thought it was, but was wrong. (I was having wifi problems that morning, so thought the lack of proper connection was my base station)
Reading other threads, it seems I'd have to reflash the initfs in the boot loader which makes sense - the equivalent of remaking the initrd I guess. Pity it isn't possible to have two and select the right one in the bootloader itself rather than having to reflash.
Yes, I have heaps of room to install things, I installed KDE for example. I am not that interested in 2008 I find it considerably nastier to use than 2007, so will probably work out how to use it so I can experiment with emergency wired networking, but otherwise use 2007.
Zebee
Well, you are more luckier than I. I just ran into problems despite the fact, I have done this more than a dozen times.
I was able to gather everythings ready for the clone, except partition of the card.
I start out with a 8G HCSD card. The card was new but was able to be read by the iT, I did the sfdisk partition with following #49 size, it gave "re-read partition failed, pls reboot" and my 8 g card is not able to be read by anything now, PC or Linux.
I tried another card, 2G card, not HCSD, same problem, "partition failed..." This one was interesting, the Fat partition worked and was able to be reformated under window. Now I am scare, $80 is at the stake. I may as well be quiet for awhile. very sad...........:(
My system was working perfect, with 4G/4G, now I dont know any more.
bun
bunanson
01-06-2008, 06:33 PM
I re-do the 2G card, it said "command to re-read partition failed, reboot system before using ...."
now what?
bun
bunanson
01-07-2008, 08:20 AM
Well, I think I need help on this partition thing. It is getting weird.
I do a cat /proc/partitions, and found out that it still reads the int SD card as 1.2G vfat and .8 other partition, so I took the chance and follow thru with ./nupgrade.sh 0-4, and now it boots from mmc, and here is the cat partitions image,
The strange thing, control panel/memory does not show any free space, and file manage shows a corrupted/unformated int SD card. It recommends repair, but it cannot repair. I tried to format via thru file manager and failed. So, now 2 G int mem SD becomes a dedicated MMC booter, nothing else. Can somebody explain to me what is happening? I still think the partition is a problem.
Mil, could you please kind enough to walk me thru those partition meanings, thanks.
I do know mmcblk0p1 is int mem card partition 1 and mmcblk1p1 is ext mem card partition 1 so on so forth. I think i partition the int card to 1.2 G vfat but did not go thru the format procedure. now can I format via a PC or cable or card reader or just )*()*^ scream?
thanks in advance,
one more, I notice upon w95 partition, codes 6 are fat16, and code b are fat32, what is code C? mind to list the whole thing, thanks.
wifi works and got 500MB to install pgms, a happy/sad events.....
bun
_____________________________
2.2007.50-2 N800 2G/4G MMC boot
Milhouse
01-07-2008, 08:52 AM
What does
sfdisk -l /dev/mmcblk0
give you?
You should be able to partition/format the card in another Linux machine... or possibly a Windows machine. Unless it's completely trashed. :(
I've got a (cheap no-name brand) SD card here which died while in a Windows XP laptop over Christmas and it's completely unusable, impossible to partition - I've tried everything so far. Probably corrupted in the same way that OS 2007 v3 corrupted SD cards.
Partition Type "0C" is "FAT 32 (LBA)" - LBA being needed for large disks (greater than 128GB I believe)... probably not essential for SD cards in which case standard FAT 32 (type 0B) can be used instead. I've attached the various partition types known by cfdisk on my Ubuntu Gibbon system. :)
bunanson
01-07-2008, 08:54 AM
Mil, I know what you are going to suggest..........why dont you just follow thru and format the DOS and see what happens?
I did. It formatted. and after a reboot, it showed up in controlpanel/memory and file manager and i just test drive and copy a file to and from, it works.
So, looks like a happy ending. But, why it give the error message upon partitioning? and this is a 2 G card, for a 8 G SDHC, do I have to do anything different, like a special SDHC kernel to use bigger than 2 G? Searching the forum does not suggest that.
a more happier bun, now
bunanson
01-07-2008, 09:00 AM
one more dumb question, sorry, Mil, how do I output the text from xterm into a file for posting? I know only how to do a screen shot image.
thanks, again. your simplified clone instructions save my day.
here is the output,
bun
Milhouse
01-07-2008, 09:46 AM
So, looks like a happy ending. But, why it give the error message upon partitioning? and this is a 2 G card, for a 8 G SDHC, do I have to do anything different, like a special SDHC kernel to use bigger than 2 G? Searching the forum does not suggest that.
I don't know why it happened, but glad you got it sorted. You shouldn't need a modified kernel as OS 2008 supports SDHC out of the box.
To redirect the output from a command to a file, use the redirection character ">", eg.
sfdisk -l /dev/mmcblk0 > /tmp/partition.txt
Personally I prefer connecting over ssh using PuTTY then cutting & pasting the output for posting! :)
bunanson
01-07-2008, 01:15 PM
I don't know why it happened, but glad you got it sorted. You shouldn't need a modified kernel as OS 2008 supports SDHC out of the box.
To redirect the output from a command to a file, use the redirection character ">", eg.
sfdisk -l /dev/mmcblk0 > /tmp/partition.txt
Personally I prefer connecting over ssh using PuTTY then cutting & pasting the output for posting! :)
I have tried SSH several times in the past, I never got it to work. Dont know why. Maybe I will do some good reading this time. Whenever I see people doing SSH, I can only jealous.
Well, the lessons about this, is to follow exactly what it said, it said
"command re-read partition failed, reboot before DOS format.." something like that. It really did, after reboot, everything works fine. Still sore why there is such error message, and what is the significance of partition re-read failure do to my system.
bun
bunanson
01-07-2008, 10:29 PM
I attempted to clone to the 8G SDHC card and failed. I repeat what I learned from the 2G card, I was able to format the 8G card to mmcblk0p1 and mmcblk0p2. And then I start on step 7, and when I do the step chmod +x..., operation not permitted. Do I suppose to do that step every time?
I then proceed to do ./nupgrade.sh 0,1,2,3 on step 3, has a lot of file unable to open, no such file or directory....end up with error on input/output back to command line ~bin #. Upon boot up, failed to boot from mmc, boot from flash.
regarding the card, it was read correctly as 7.1 G for DOS and .8G for mmcblk0p2. Any suggestions?
Of course, I guess, if I am crazy enough, would reflesh my N800 and clone from fresh, they should work, as it has worked with my 2G card. Or I am just settle with 2G/8G system?
TIA,
bun
Just a thought, I was able to clone to my 2G SD card on mmcblk0p2and boot from the 2G card, but failed on my 8G SD mmcblk0p2. Can I mirror my 2G cloned OS to my 8G mmcblk0p2 on a Linux box? If yes, what is the command? thanks.
bun
Milhouse
01-08-2008, 02:07 AM
And then I start on step 7, and when I do the step chmod +x..., operation not permitted. Do I suppose to do that step every time?
Do you have the nupgrade.sh file stored in a FAT partition as the executable flag isn't supported by FAT - you need to store the script in the jffs2 filesystem (internal flash, ie. /home/user/bin).
Are you root when running nupgrade.sh? Did you download nupgrade.sh as root but are now trying to chmod the file as the normal unprivileged user? It would help if you were able to post the errors in this thread (this would be easier if you were running ssh... maybe open another thread to discuss the problems you are having as it usually works a treat - I wrote a guide to configure ssh using PuTTY on Windows and public/private key authentication for the user account here (http://www.internettablettalk.com/forums/showthread.php?p=67481#post67481). Install openssh-server from the extras repository).
Ordinarily you don't need to download and chmod nupgrade.sh each time you run it - you only need to do it once. :)
Milhouse
01-08-2008, 02:17 AM
Just a thought, I was able to clone to my 2G SD card on mmcblk0p2and boot from the 2G card, but failed on my 8G SD mmcblk0p2. Can I mirror my 2G cloned OS to my 8G mmcblk0p2 on a Linux box? If yes, what is the command? thanks.
bun
Should be possible using tar or dd, but if the N800 won't clone to the 8GB card it suggests there is something fundamentally wrong with the card which won't be fixed by cloning on the Linux machine... you should be able to clone to the 8GB card - if you can't I seriously doubt you'll be able to boot from it until the N800s dislike for the card is resolved.
icebox
01-08-2008, 06:02 PM
Am I the only one getting this?
At stage 3 I get:
/home/user/bin/tar: .: implausibly old time stamp 1970-01-01 00:00:00
Done
I am running a vanilla OS2008 on a N800. Freshly flashed with nothing installed on besides wget and e2fsprogs.
I runned the commands as stated in the howto.
I tried copying around the tar file with mc but it didn't helped. I also redownloaded the file, didn't help either.
Any ideeas?
thanks
Milhouse
01-09-2008, 05:21 AM
Am I the only one getting this?
At stage 3 I get:
/home/user/bin/tar: .: implausibly old time stamp 1970-01-01 00:00:00
Done
I am running a vanilla OS2008 on a N800. Freshly flashed with nothing installed on besides wget and e2fsprogs.
I runned the commands as stated in the howto.
I tried copying around the tar file with mc but it didn't helped. I also redownloaded the file, didn't help either.
Any ideeas?
thanks
Everyone gets it, nothing to worry about... the top level directory in the root of the device (.) is created with the (implausibly old) time stamp 1 Jan 1970 (ie. the epoch or beginning of time as far as Unix is concerned) and tar is just having a bit of a moan - it's not tar that is at fault, it's the "." directory (or /.).
icebox
01-09-2008, 06:05 AM
that means i can continue with the script stages...
great, thanks.
thepenguinonthetelly
01-10-2008, 10:23 PM
OK, need a little help here, please. :)
Just got a GB mmc card today, created partitions successfully, and unpacked initfs_flasher to the "./initfs_flash" point, but it's giving me a "not found" message. Checked my Doc folder, and while other files are unpacked, it seems the initfs_flash is, indeed, missing. Was this a corrupted download, and I need to download again? Or is something else amiss. I haven't run into any problems -- until this, that is.
Thanks!
Zebee
01-10-2008, 10:30 PM
OK, need a little help here, please. :)
Just got a GB mmc card today, created partitions successfully, and unpacked initfs_flasher to the "./initfs_flash" point, but it's giving me a "not found" message. Checked my Doc folder, and while other files are unpacked, it seems the initfs_flash is, indeed, missing. Was this a corrupted download, and I need to download again? Or is something else amiss. I haven't run into any problems -- until this, that is.
Thanks!
try flash_initfs? I think it got spoonerised.
Zebee
thepenguinonthetelly
01-10-2008, 10:45 PM
Nope, didn't work either.
Previous download was from http://fanoush.wz.cz/maemo/initfs_flasher.tgz, and the second one was from http://fanoush.webpark.cz/maemo/initfs_flasher.tgz. The second one had more files (leading me to believe that the first one may be corrupt; got "unexpected end of archive" message with it), but I tried both the boot guide and your suggestion, and I still got "not found". :(
Oddly enough, it's there in the Doc folder (as "initfs_flash" of course), but it's still not being found? I've assured that I'm typing it correctly, but who knows.
Zebee
01-10-2008, 11:30 PM
Here's what's in my download:
bootmenu.conf.n770.example initfs.osso-RX-34.2007-38.tgz
bootmenu.conf.n800.example initfs.osso-RX-44.2007-43.tgz
bootmenu.sh initfs.osso-RX-44.2007-44.tgz
dropbear.osso-n770.2006-25.tgz initfs.osso-RX-44.2007-46.tgz
dropbear.osso-n770.2006-38.tgz initfs.osso-RX-44.2007-49.tgz
dropbear.osso-n770.2006-48.tgz mkfs.jffs2
dropbear.osso-RX-34.2007-10.tgz nanddump
dropbear.osso-RX-34.2007-24.tgz nandwrite
dropbear.osso-RX-34.2007-38.tgz README.txt
dropbear.osso-RX-44.2007-43.tgz sumtool
dropbear.osso-RX-44.2007-44.tgz to_remove.lst
dropbear.osso-RX-44.2007-46.tgz utelnetd.osso-n770.2006-25.tgz
dropbear.osso-RX-44.2007-49.tgz utelnetd.osso-n770.2006-38.tgz
flash_eraseall utelnetd.osso-n770.2006-48.tgz
initfs_flash utelnetd.osso-RX-34.2007-10.tgz
initfs.osso-n770.2006-25.tgz utelnetd.osso-RX-34.2007-24.tgz
initfs.osso-n770.2006-38.tgz utelnetd.osso-RX-34.2007-38.tgz
initfs.osso-n770.2006-48.tgz utelnetd.osso-RX-44.2007-43.tgz
initfs.osso-RX-34.2006-51.tgz utelnetd.osso-RX-44.2007-44.tgz
initfs.osso-RX-34.2007-10.tgz utelnetd.osso-RX-44.2007-46.tgz
initfs.osso-RX-34.2007-24.tgz utelnetd.osso-RX-44.2007-49.tgz
initfs_flash is the beastie you want, if you are in the directory you untarred it in and do
cd initfs_flasher
ls
do you get that list?
Zebee
thepenguinonthetelly
01-10-2008, 11:35 PM
Everything's there, and initfs_flash is listed as a text file (everything else is "app" except for the readme and removelist, obviously). That's what I'm getting. I'm redownloading just to make sure it's not my DSL crapping out on me and corrupting the file.
EDIT: OK, disregard. It was just Zoomtown and this weather. File finally downloaded fully now. Geez, I feel dumb. :rolleyes:
EDIT2: New problem. Getting "no such file/dir" with tar*.deb. Help is very much appreciated.
EDIT3: Gah!! Disregard again. Finally installed right. Tried again this morning after the storms let up, and it's as I expected -- my crappy modem was causing problems with apt-get and tar. Blah.
bazanime
01-11-2008, 04:17 PM
Will this brick my N800?
Milhouse
01-11-2008, 06:19 PM
Will this brick my N800?
No.
.....
Milhouse
01-11-2008, 06:22 PM
What do you people want to do on their N810s? Have the script clone to the "external" card or continue cloning to the "internal" (2GB) card (which is what it will do now)?
I'm wondering if I should update the script so that if it doesn't detect a second partition on the internal card, but does detect a second partition on the external card it automatically clones to the external card (perhaps with a user prompt?). If a second partition is found on the internal card it will clone to the internal card (default scenario).
I'm not sure I can be bothered to repartition my 2GB internal N810 memory, and I wonder if many others will too.
PinCushionQueen
01-11-2008, 06:51 PM
What do you people want to do on their N810s? Have the script clone to the "external" card or continue cloning to the "internal" (2GB) card (which is what it will do now)?
I'm wondering if I should update the script so that if it doesn't detect a second partition on the internal card, but does detect a second partition on the external card it automatically clones to the external card (perhaps with a user prompt?). If a second partition is found on the internal card it will clone to the internal card (default scenario).
I'm not sure I can be bothered to repartition my 2GB internal N810 memory, and I wonder if many others will too.
While I don't personally need/want that option right now - I can imagine a scenario where I might want the option to clone to an external card - namely if my internal card becomes permanently damaged or corrupted. I would hate to miss the opportunity to just throw in a bigger SD card, reclone and move on.
Another possible reason I might want to boot from the external instead of internal card would be because my KDE install has gotten too big to fit both the clone and KDE on that 2GB space - I could then just buy a bigger SD card and use the 2GB for storage. I don't see that happening anytime soon - but ya never know. :)
BTW - I never got a chance to THANK YOU! for your awesome instructions on the whole partitioning/cloning process. You were very clear and concise which helped sooooo much. Milhouse, you ROCK! :D
Milhouse
01-11-2008, 07:48 PM
I think I should add a parameter of "-int" and "-ext" which will be mandatory whenever it isn't possible to determine the correct memory card based on available partitions... the parameter would also override the partition/card detection process allowing the user to force which card to use...
BTW - I never got a chance to THANK YOU! for your awesome instructions on the whole partitioning/cloning process. You were very clear and concise which helped sooooo much. Milhouse, you ROCK! :D
My pleasure! :)
Milhouse and others who can help,
I really want to be able to boot my os2008 from my sdhc card. I have an n800 with os2008 flashed by Nokia store in NYC two weeks ago. I travel a lot and this is my only internet device/computer. I don't have an external keyboard yet(stores never seem to have them in stock) The n800 works flawlessly. I've added Mara's USB Host and can choose osso-status menu host mode to access various USB devises. Very cool app.
My questions,
I have x-term and becomeroot from Mara's project yet when I go into install wget I get the following errors. Please help me get this project completed. I need this done by Monday as I leave for a month long project. Again thanks for putting up this guide. lol, Dan
Milhouse
01-12-2008, 07:25 PM
http://www.internettablettalk.com/forums/attachment.php?attachmentid=793&stc=1&d=1200176199
Did you really get the above screenshot when entering the command
apt-get install wget
?
If so, it looks like a previous application installation has gone awry and needs to be completed, or removed... what have you done up to this stage because that error doesn't appear to have anything to do with wget. :confused:
Milhouse,
Thanks for your quick response. I was out on errands.
I've loaded several apps( osso-status bar[works well], vlc[which would not let me complete a change the developer said I should change in nano], p7zip-7z[works], quiver[works well], MobileVDR[which never loads], typespeed[never used, actually I can't find], omweather[works well], nako[works well], mplayer[doesn't work well]Izop[never used],Doom[works well],fbreader[works], eboard[works well]gnumeric[works well], sgt puzzles[work well], load-applet[works well]. I get warnings of excessive memory use[probably because I only have about 16 mgb on the unit. Should I start removing apps that don't function or I don't know how they function?
Any further help would be greatly appreciated.
Thanks,
Dan
Milhouse,
I also get excessive cpu warnings.
Dan
Milhouse
01-12-2008, 08:50 PM
Removing apps you don't use might help, but I still don't know why you get the above errors when apparently trying to install wget as it has none of the dependencies listed in your screenshot... apt seems to be confused about something and we need to clear that up first. What happens if you run "apt-get update" - does it complete without errors? If you get errors, what are they?
Milhouse,
I get this at bottom of apt-get update.
Dan
Milhouse,
Should I now try again 'apt-get install wget' ?
I have never done this so it makes me very cautious.
Dan
Milhouse
01-12-2008, 09:16 PM
Milhouse,
Should I now try again 'apt-get install wget' ?
I have never done this so it makes me very cautious.
Dan
Yes, give that a try - best of luck. :)
Note that the screenshot you posted in your previous message is taken only part way through the "apt-get update" process so I can only assume it completed without errors.
Milhouse,
That's the bottom of apt-get update message. it ended at 99%.
I will try to apt-get install wget. I'll cry for help if things don't improve. :) lol, Dan
Thanks,
Milhouse,
tried 'apt-get install wget' same message as before. :(
Milhouse,
Ran update again and got this message at bottom.
I guess there is some missing keys, whatever that means. Any suggestions?
I really need to get your project done by Monday, so I guess no sleep for me.
Any additional guidance would be appreciated.
Dan
Milhouse
01-12-2008, 09:38 PM
I'm running out of ideas; try "apt-get -f install" which it recommends in the error message - it may help clear the error, but beyond that I don't know how you've got it into this state, something is pretty messed up. :(
Milhouse,
Did you see my last screen shot. Much different than the first two. I think I beat your post by a second. :) Any ideas?
Dan
Guys,
Anyone know how and where I can get the following app's:
Libgnomecanvas2-common
Libgnomecanvas2.0
Libgnomeprint2.2-data
I already have:
Libart-2.0.2
Libgnomeprint2.2.0
I need these apps to be able to install wget.
The apps I need show up on my 'Browse installable applications' but everytime I try to install them it says they are not installable.
What do I need to do to get them to install?
Is there a complete library that I could install?
And which library do I need to remove or alter?
I have no knowledge of Linux.
I have an n800 running os2008 flawlessly. I can use xterm, becomeroot, nano, sudo gainroot, vi sudoers, etc... on the n800.
Many Thanks,
Dan
Milhouse
01-12-2008, 11:10 PM
Sorry missed that final screenshot. Believe it or not those complaints about missing keys are only warnings and can be ignored. So it looks like you can update from the repositories OK, but you still can't install wget? If you still have errors I'm really out of ideas - try "apt-get -f install" and see if that gets you anywhere, but beyond that hopefully someone else can chime in with advice (my only other advice would be to reflash and start again - a bit drastic and I'm sure you don't really have the time!)
Zebee
01-12-2008, 11:23 PM
I'd be inclined to uninstall vlc. I had apt-get errors till I removed the remains of a failed vlc install.
Milhouse,
Again we missed each other by seconds.
I followed your instructions and did '-f install' and as you can see in my last post it came back with five files needing to be uploaded. Two of them are in my applications manager showing as installed and three not installed. Where and how can I get them? Bunanson on this thread http://www.internettablettalk.com/forums/showthread.php?t=8631&page=6
says he went and installed wget from Maemo.org, but I can't find the direct download for wget. Can you instruct me and do you think that might be a way of getting wget loaded. It would probably have the 3 missing app's I need.
Thanks again for your help.
I'm learning alot which is always good. :)
Dan
Zebee,
I removed VLC and several others and it helped somewhat but I'm now missing three files that I need to load wget. See my last two posts.
Thanks for your help and Milhouse.
dan
Milhouse
01-12-2008, 11:50 PM
wget is not dependent on those files - some other previous installation has confused apt and won't let you proceed until whatever problem it thinks it has is resolved. I'll get you a direct deb link for wget in a second, but I'm not sure it will help much.
Milhouse
01-12-2008, 11:52 PM
Here's the deb link for Chinook wget:
http://repository.maemo.org/pool/maemo4.0/free/w/wget/wget_1.10.2-2osso2_armel.deb
Download it to the device and install (if you can) with "dpkg -i <filename>".
Milhouse,
Thanks I will try.
Questions:
Where do I download to?
Once I place the file in the right directory.
The "dpkg -i <filename>" is that after the "#" once I'm in sudo gainroot?
Idea when I tried "-f install" it asked if I had solution to missing files. Can I put the "dpkg -i <filename>" in there and what filename should I give it?
I'm trying to understand how I can be missing so many files and my n800 works flawlessly so far.
Thanks,
Dan
Milhouse
01-13-2008, 12:17 AM
Where do I download to?
Once I place the file in the right directory.
Anywhere you like - not sure where the default download location is, but I tend to favour /tmp as temporary location which is easy to find.
The "dpkg -i <filename>" is that after the "#" once I'm in sudo gainroot?
Yes.
Idea when I tried "-f install" it asked if I had solution to missing files. Can I put the "dpkg -i <filename>" in there and what filename should I give it?
I don't think so.
I'm trying to understand how I can be missing so many files and my n800 works flawlessly so far.
While attempting to install an application in the past something (I have no idea what) has become corrupted within the database that is maintained by apt - the device itself is fine, it's just the application installer (apt) that is a bit screwed up and is now preventing you from installing any further applications until whatever corruption has occurred is corrected. Unfortunately I don't know an easy way to achieve that in your situation.
Milhouse,
I went and loaded wget file directly to application manager. it says it loaded wget successfully! Thanks for getting me the file. I guess my research paid off. Bunanson had a fifferent problem but he needed wget like I did.
Do I go straight to loading "e2fsprogs package" can you get me the direct link so I can just load to application manager like I did with wget.
Many many thanks bro! :) Still have a ways to go but I'm getting there thanks to you and many others. lol, Dan
Milhouse
01-13-2008, 12:38 AM
Chinook e2fsprogs:
http://repository.maemo.org/pool/maemo4.0/free/e/e2fsprogs/e2fsprogs_1.37-2sarge1_armel.deb
bunanson
01-13-2008, 12:45 AM
Milhouse,
Bunanson had a fifferent problem but he needed wget like I did.
I am not quite where does that come from. I somehow able to clone to 4G/2G/1G SD cards, I just cannot do 8G. And I keep getting this partition error message that not a soul has mentioned. Waiting to see your partition message........
bun
Milhouse,
Many thanks. Screen shot message below.
Any idea where I could get these files?
Just trying to understand this mess and how it occurred and how to fix. Is there another way to load 'e2fsprogs'
Thanks,
Dan
Bunanson,
Hey thanks for the tip on 'wget".
Any ideas how to get 'e2fsprogs' loaded?
I can't wait to see what the memory portion brings? :)
Is your n800 running fine overall?
Mine runs flawlessly. This is the first time this has ever come up. I've been using sudo gainroot, nano, etc... for two weeks with no errors.
Now it's fireworks everytime I try to load through xterm.
Any input would greatly be appreciated.
Thanks, lol, Dan
bunanson
01-13-2008, 12:58 AM
Milhouse,
Do I go straight to loading "e2fsprogs package" can you get me the direct link
try here, http://gronmayer.com/it/index.php, 1st entry.
if not, here, http://gronmayer.com/it/index.php?lang=en&system=maemo4&sort=hits&show_pck=123#123.
bun
Bunanson,
No luck finding missing files above.
I'm using an n800 with os2008 so the first entry would not work for me since that is for os2007.
Any help you can offer would be greatly appreciated.
Dan
Bunanson,
My mistake they are all in the same three depositories on the os2008 link above.
Maemo Chinook
Maemo Bora
Temp fix for broken Chinook.
I will now try to download into application manager.
Thanks,
Dan
Dan
Guys,
When they were loading this file at Nokia store in NYC they experienced a power outage. They said it would not affect the download. now I see were the problem began.
Now how to solve it.
Dan
Guys,
Big question, Do I delete the the three repositories( Maemo Chinook
Maemo Bora,Temp fix for broken Chinook) from application catalog that already have with missing apps or will the new repositories replace themselves?
Dan
Edit: Gronmayer site says yes to deleting catalogs and refreshing application list before adding catalogs.
Who is Gronmayer? :)
Learning a lot. Hope others are too.
Dan
Chinook e2fsprogs:
http://repository.maemo.org/pool/maemo4.0/free/e/e2fsprogs/e2fsprogs_1.37-2sarge1_armel.deb
Milhouse,
See below the screen shot I took of e2fsprogs. It's not installable from this repository on my n800 with os2008! Do you have an alternate repository?
Bunanson this might be causing your problems with memory. Corrupted repositories!
Any ideas would be greatly appreciated. lol, Dan:confused:
Milhouse
01-13-2008, 02:29 AM
Dan, have you enabled the "maemo Extras" repository and added the main Maemo repository (http://repository.maemo.org, leave "Distribution" blank, and set "Components" to "free non-free")?
Milhouse
01-13-2008, 02:34 AM
See below the screen shot I took of e2fsprogs. It's not installable from this repository on my n800 with os2008! Do you have an alternate repository?
My advice is to reflash and start over... limit what repositories you add, avoid Bora repositories if possible. Stick with official maemo.org repositories where possible and avoid third-party repositories. Don't use red pill mode.
Take things a step at a time.
Milhouse,
Very novice but:
How do I enable "maemo extras" repository?
How do I add the Main Maemo repository at (http://repository.maemo.org)?
How do I leave "Distribution" blank and set "Components" to "free non-free"?
I got a feeling we are getting close to solving this mess Milhouse!
Any additional help would be greatly appreciated.
Dan
Milhouse I love you bro. :)
I went and googled all that you were talking about learned about red pill(no clue) enabled it , hit maemo extras and refreshed installable applications and HOORAY!!!! There was e2fsprogs!!!!! I hit install and now I have that also.
Do I need to follow that procedure for each catalog??
Also should I get out of this 'red pill mode' before proceeding with your project???
I'm going to finish this tonight celebrate tomorrow(wait it is tomorrow already) :)
Please walk me through the rest.
Question I want to put at least 10gb on my 16gb card for os. I have big plans for that space. Starting woith KDE and a few others. Can you show me the exact numbers I need to put down??
lol, Dan
bunanson
01-13-2008, 03:44 AM
OMG, you really really want to do it.
I have done it more than 20 times and everytime I learn something new.
How big is your SD card, the one inside the battery cover, the mmc2.
bun
bunanson
01-13-2008, 03:57 AM
Two other useful links, http://schmots.blogspot.com/, read the 2nd section "dual boot" onward. Another one, http://examplified.net/guide/Nokia_770/Booting_from_MMC/, it is for 770, so do not follow verbatum, just an exercise for you to get familiar with.
1) set up a boot menu, http://fanoush.wz.cz/maemo/#initfs
2) Gather the two programs, wget and e2fsprogs, which you already did.
3) Partition the card using sfdisk; if not sure, post it and I will help you.
4) Format only the mkdosfs /dev/mmcblk0p1
5) follow this thread #1 step by step,
_________________________________
2.2007.50-2 N800/4G/8G/KDE MMC boot
bun
Bunanson,
16gb inside and external 16gb.
Can you walk me through the next couple of steps?
I downloaded the Fanoush tar to my user file and opened using Squishee.
How can I check to see that the file is in the right place?
Also now I do the memory partition. I want to put about 12gb to os and the rest for storage. How do I do that properly. Any pitfalls.
Any help would be appreciated.
I'm going to take about a 45 minute break and finish this tonight.
It's been fun and hard. :)
Thanks for your help and support, same to Milhouse. lol, Dan
bunanson
01-13-2008, 04:10 AM
Bunanson,
16gb inside and external 16gb.
Can you walk me through the next couple of steps?
I downloaded the Fanoush tar to my user file and opened using Squishee.
How can I check to see that the file is in the right place?
Also now I do the memory partition. I want to put about 12gb to os and the rest for storage. How do I do that properly. Any pitfalls.
Any help would be appreciated.
I'm going to take about a 45 minute break and finish this tonight.
It's been fun and hard. :)
Thanks for your help and support, same to Milhouse. lol, Dan
I follow straightly from Fanoush's instruction and I have no idea about Sqhishee. Here are my steps, (more details here, http://examplified.net/guide/Nokia_770/Booting_from_MMC/)
Commands are explained on Schmots "dual boot" section, the 2nd topic, http://schmots.blogspot.com/:
1) dl Fanoush bootmenu.tar to documents folder
2) xterm
3) sudo gainroot
4) cd ~/MyDocs/.documents/
5) tar zxvf initfas_flasher.tgz
6) cd initfs_flasher
7) ./initfs-flash
This will ask you several questions, here is what I recommend (type what's in bold):
backup? no
remove extra stuff? yes
found, do you want to add it to initfs? yes
ready for flashing this image? yes
Press enter to reboot device
Now you have boot menu. I am goin to get a cup of coffee, will you buy me one? Now post to see where you are....
bun
bunanson & Milhouse,
Do I need to be red to be in red pill mode or should I turn it off?
I have no idea what this red pill, heck I have no idea what i've been doing for two weeks but I haven't destroy this little beast! :)
Look I need a break to refocus(45 min). Can you guys stay on and walk me through the rest when I get back?
I don't understand the memory part because I can't do math(dyslexic).
I read what you sent Bunanson but I barely comprehend most it.
Okay breaktime hopefully someone will be here. lol, Dan
bunanson
01-13-2008, 04:13 AM
bunanson & Milhouse,
Do I need to be red to be in red pill mode or should I turn it off?
I have no idea what this red pill, heck I have no idea what i've been doing for two weeks but I haven't destroy this little beast! :)
Look I need a break to refocus(45 min). Can you guys stay on and walk me through the rest when I get back?
I don't understand the memory part because I can't do math(dyslexic).
I read what you sent Bunanson but I barely comprehend most it.
Okay breaktime hopefully someone will be here. lol, Dan
Turn off your red pill mode now. you have no business with red pill mode, it is kind of dangerous. Just type in those steps that I use, they should work. But please, please, please, check the spelling/typing before hitting the return, I cannot bail you out if you type something different, I am NOT a linux guru.
once you made the boot menu, the rest is a piece of cake, and will finish in something like 30 min, if it works.
The references I quote talk about the same thing, and explained about the steps I use, only for your learning. It is getting late, just type the commands very carefully, you will be fine.
bun
Bunanson,
Thanks Bro.
I'm going to take a break and jump back in.
Thanks for everything.
Later I will get it done.
have a good night my friend you too Milhouse.
Dan
bunanson
01-13-2008, 04:33 AM
Follow thread #180,
__________________________________________________ ______
1) set up a boot menu, http://fanoush.wz.cz/maemo/#initfs
2) Gather the two programs, wget and e2fsprogs, which you already did.
3) Partition the card using sfdisk; if not sure, post it and I will help you.
4) Format only the mkdosfs /dev/mmcblk0p1
5) follow this thread #1 step by step,
__________________________________________________ ___________
Hope you got boot menu done. You can test it by boot up your N800, there should be a menu, and choose 1st item, boot from int flash, as you have not clone the OS yet.
step 2) you already finished, good job.
Now we are onto step 3), partition the card
you should turn off your virtual mem, control panel>memory>Virtual mem and uncheck.
a) xterm
b) sudo gainroot
c) umount /media/mmc2
d) sfdisk -uM /dev/mmcblk0
__________________________________________
16GB Card (~15.5GB real size - partition 1: 14.5GB, partition 2: ~1GB):
___________________________________________
/dev/mmcblk0p1: 0,14500,0C
/dev/mmcblk0p2: ,,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
The above are my recommendation, feel free to change it to suit your taste. This gives you 14.5G storage and 1 G Os, that should be plenty; the OS is about 320 mb, so you left with 680 MB to install programs.
take a break,
bun
bunanson
01-13-2008, 04:38 AM
We continue, you done boot menu, gather programs, partition mmcblk0, now format your mmcblk0
you have to reboot the N800, then
again, VM should be turned off
a) xterm
b) sudo gainroot
c) mkdosfs /dev/mmcblk0p1
d) reboot
bun
bunanson
01-13-2008, 04:41 AM
Now, you are all ready for this thread #1, carefully go thru step 7. Good nite and good luck,
bun
Bunanson and Milhouse,
Can you look at screen below and tell me what's wrong. I'm so close to finishing and this popped up. I downloaded the Fanoush app to apprpriate directory. Any suggestions?
Thanks, Dan
fanoush
01-13-2008, 08:46 AM
Perhaps you extracted initfs_flasher.tgz on PC or mmc card. Don't do this. Extract the archive directly somewhere to /home/user. If you did it and it still fails then redownload and make sure tar does not print any error when you extract it (tar zxvf initfs_flasher.tgz).
Fanosh,
Thanks that worked!
I forgot to turn off internet before starting, './initfs_flash' How should I answer and proceed?
Many thanks to you, Milhouse and Bunanson and others for all the help and support I have received. lol, Dan
Milhouse
01-13-2008, 02:06 PM
Glad you've made progress - I needed to get some sleep! :)
Answer "no" to the Telnet prompt.
Fanoush, Milhouse, Bunanson,
I typed 'yes' to above question on network recovery because all online posts said no problem typing 'yes' to all further questions. The app asked to reboot I said 'yes' system rebooted but no menu to select? Am I ok to proceed with the following step from Bunanson?
Now we are onto step 3), partition the card
you should turn off your virtual mem, control panel>memory>Virtual mem and uncheck.
a) xterm
b) sudo gainroot
c) umount /media/mmc2
d) sfdisk -uM /dev/mmcblk0
Any help will be appreciated.
Thanks,
Dan
Milhouse,
Thanks get some zzz's I got about 4 hours.
Now to finish.
See my last post should I proceed or start again?
Dan
Guys,
Question,
Is there a way to check after system reboots if I'm I have accompolish the Fanoush part of the project?
Any help is greatly appreciated.
Dan
Fanoush,
Questions,
If an app shows in red pill mode how come it doesn't show in blue pill?
How do you get apps into blue pill mode that are in red pill mode?
Dan
Milhouse, Bunanson, Fanoush,
I got the boot menu prompt and selected first choice. So far so good. I checked the 'installed applications' list and it shows both wget and e2fsprogs installed.
I then go into xterm to make partitions and I get the message below. Why? Any ideas? I'm so close. Can someone walk me through this part.
Thanks, Dan
Edit:
I missed typed 'unmount', but 'umount' and forgot the space.
I'm now going to partition.
Thanks for all your help.
Dan
Milhouse and Bunanson,
I've made it to part 7 on #1 of this thread!
Thanks guys,
Dan
Milhouse
01-14-2008, 02:47 AM
Fantastic news! Best of luck with your project! :)
Milhouse,
I had to manually create the bin file and download the nupgrade.sh and tar directly into the bin file like Fanoush showed me earlier because of those messed up files. Now I'm confused what command before "chmod +x nupgrade.sh tar" to get it to execute?
Also how do I start "Super Root" What is Super Root"?
One last Question
Is the last step just following these commands verbatam?
sudo gainroot
cd /home/user/bin
./nupgrade.sh 0
./nupgrade.sh 1
./nupgrade.sh 2
./nupgrade.sh 3
./nupgrade.sh 4
reboot
Oh and having n800 with os2008 I don't have to do steps 5, and 6?
and lastly when it reboots i'm done/
Thanks for all your help. It's been really difficult because i barely understand this process and I'm having to work through a major glitch in my setup.
Hey I will in London in about two weeks I'd like to buy you a couple of rounds of drinks for all your help if you don't mind.
Dan
Milhouse
01-14-2008, 03:56 AM
chmod is a Unix command to change the access permission on files, in this case "chmod +x nupgrade.sh tar" is adding the eXecute permission to the two files "nupgrade.sh" and "tar".
Super Root - I think you mean super user, aka root. Just type "sudo gainroot" and you should become root, the super user.
Is the last step just following these commands verbatam?
If you have everything setup and working the answer is a definite "yes". :) Check for errors each time that you execute "nupgrade.sh" as this is the first time you have run it and it's been a slightly fraught process to get this far! :)
Oh and having n800 with os2008 I don't have to do steps 5, and 6?
Yes you need to partition your internal memory card (step 5) and install bootmenu (step 6) but I think you've already done this, haven't you? Don't proceed to step 7 if you haven't completed steps 5 and 6.
Hey I will in London in about two weeks I'd like to buy you a couple of rounds of drinks for all your help if you don't mind.
Thanks for the kind offer but I'm actually about 15 miles from the center of London, on the outskirts - technically I'm in south London, verging on the county of Surrey! :) Bring warm clothes with you, it's bl**dy cold!
Milhouse,
Thanks for info.
I've been up for 24 hours trying to finish this project.
Please bear with my newbie questions.
I type in sudo gainroot
then after the
/home/user # I type in "chmode +x nupgrade.sh tar"
or is their something I need to type in?
Also step 5 if that's the step where I allocated how much memory for the os, yes I did that. Now this line confuses me " 6 - Initiate Sardine operating system upgrade of cloned OS on memory card". What is Sardine? I have not yet cloned the OS to the memory card? I thought that what's step 7-3 does. Just too new, but I did make it this far with your help and Fanoush and Bunanson. I just want to finish, celebrate and go to sleep. :)
Dan
Bunanson,
I need your help I'm almost done.
Dan
bunanson
01-14-2008, 06:15 AM
Yes Dan, what can I help you with? Where are you with your project?
I am goin to be in China (?) or Middle East (?) coming March,... are you offering to buy me a drink, like what you offer to Milhouse? I am waiting... :rolleyes:
You need to check your typing.........as I said, I cant bail you out with poor typing, it is "umount", not "unmount", I am sure you got it by now.
You know what? Dan, the more you ask for help, the more I do not like this tablet, it should not be that hard! I have done this cloning more than 20 times and still, got surprise every now and then. But, on the other side, I have used Milhouse's more than 10 times and everytime the result is so reproducible, auto pilot. Just imagine the early days, I have to enter commands one by one, carefully, and wondering what are they for.............
bun
Hey Bro.
Any kind of drink you want.
Actually I will be in Hong Kong March and Shanghai in May?
Ok I'm at the start of step 7 if you can believe that.
I have somehow made it through that far.
Your steps were great and the sites you put help check everything and explain.
Now what i need is how toget the chmode line going.
Any ideas?
bunanson
01-14-2008, 06:25 AM
Hey Bro.
Any kind of drink you want.
Actually I will be in Hong Kong March and Shanghai in May?
Now what i need is how toget the chmode line going.
Any ideas?
How are you going to get wifi in Shanghai? If you need wifi in HK, you have to ask an expert,.............., where would you find one :D?
First, and everytime after partition or format, always reboot, if you are at root and xterm,
try this and its faster,
shutdown -r now
more beers, more instructions...................
bun
bunanson
01-14-2008, 06:30 AM
You can just type the commands, they should work.
After reboot,
- xterm
- NOT root, i.e., do not gainroot, just regular user right after xterm,
- mkdir ~/bin
- cd ~/bin
- wget http://www.nmacleod.com/nokia/bin/nupgrade.sh
- wget http://www.nmacleod.com/nokia/bin/tar
- chmod +x nupgrade.sh tar
any problems, so far.............
bun
can't seem to shutdown that way.
It shows me a help menu
bunanson
01-14-2008, 06:35 AM
The final ectasy, or orgasmic move...............
sudo gainroot
cd ~/bin
./nupgrade.sh 0
./nupgrade.sh 1
./nupgrade.sh 2
./nupgrade.sh 3 (Takes about 4 min, it is OK to let the screen go dark!)
./nupgrade.sh 4
reboot
Hey, bro, where is my beer?
Enjoy,
I got to go to sleep now, it is 5:30 Am in America, man and I got to be in my office at 8 am. Have fun,
Post back now, if you want to catch me for more "hic up" on the project,
bun
bunanson
01-14-2008, 06:38 AM
can't seem to shutdown that way.
It shows me a help menu
dont worry about that, just turn the power off is fine when there is NO action, i.e., not disk writing etc. Shutdown works only when you are at root.
bun
I already made a file menu called bin and downloaded the two files directly. How about calling files sin?
ok I'm rebooted.
bunanson
01-14-2008, 06:42 AM
I already made a file menu called bin and downloaded the two files directly. How about calling files sin?
ok I'm rebooted.
Another typo, bro, Dont "sin" Milhouse's script, he is goin to skin you rather than drink with you :eek:. I know, it is a joke....
bun
your way worked. It downloaded first file! Getting to finish line.
I'm in NYC till tomorrow if you are in NYC I'll buy the drinks. :)
bunanson
01-14-2008, 07:07 AM
Dan, how is the project?
bun
./nupgrade.sh 3 says "not found"
bunanson
01-14-2008, 07:10 AM
did ./nupgrade.sh 0 1 2 went thru?
bun
after "not found" message it says "Done"
./nupgrade.sh 3 is is the one that says, "Copying Flash filesystem to Internal partition #2". Looks important!
bunanson
01-14-2008, 07:15 AM
Well, apparantly it did not work. You will have to wait for the big guys, Mr. Milhouse himself. He wrote the script, he can help you. I now hit the bed...good luck.
bun
Can the process be restarted??
Reboot and start over?
bunanson
01-14-2008, 07:18 AM
go control panel>memory and what does it say?
what is your partition on mmc2, the internal SD card?
do this
- cat /proc/partitions > part.txt and post part.txt
bun
bunanson
01-14-2008, 07:21 AM
Can the process be restarted??
Reboot and start over?
You can try, I doubt it is going to work
reboot,
then,
- xterm
- sudo gainroot
- cd ~/bin
- ./nupgrade.sh 0
- .........
just repeat ./upgrade.sh 0-4 ONLY, nothing else needs to repeat
that is the beauty of Mil's script, you only have to do it once
from now on, all upgrade is the same, only ./nupgrade.sh 0-4
no dl, no chmod.... at least for the same Os.
bun
Internal memory says 4.87gb. Which is what I partitioned.
The "- cat /" I do that in root where I'm at?
bunanson
01-14-2008, 07:25 AM
Internal memory says 4.87gb. Which is what I partitioned.
The "- cat /" I do that in root where I'm at?
after reboot,
- xterm
- cat /proc/partitions
(Do not type the preceeding "-")
bun
bunanson
01-14-2008, 07:30 AM
Dan, one last suggestions, if that wont get you mad,
Repeat what you have learned, but on a 2 G card, if you have one.
You do not have to repeat a lot of things, in fact, you only have to:
1) partition 1G:1G is fine
2) format the /mmcblk0p1
3) go straight to ./nupgrade 0-4
And that is all, only if you still want to boot from the MMC. I was able to make it boot from 1G, 2G, 4G and I am still stuck at 8G, and I think you are doing 16G, right? Or sure, you can wait for the big guys and see what they say. I have seen people succeed on 8G though, not sure what is my own problem......may be an inferior quality card?
Sorry, I really have to go, I cant hardly get my body up for this bl00dy Monday 8 oclock office. good luck
bun
on "cd ~/bin" I used "cd ~/sin" because I already had put a file called bin with the two downloaded apps.
Well it rebooted ok.
if you can hold out for a few minutes I can screen shot the "cat" numbers
bunanson
01-14-2008, 07:34 AM
Reboot from what? from mmc? Congratulation!
bun
bunanson
01-14-2008, 07:37 AM
if you can hold out for a few minutes I can screen shot the "cat" numbers
Dan, forget about the cat. Just try to follow thru the ./nupgrade.sh scripts 0-4 again, see whether it work........ go back to the cat only if you stuck....
bun
no from flash. haven't tried mmc .
how do the numbers look?
Should I reboot and try to start from mmc?
bunanson
01-14-2008, 07:47 AM
how do the numbers look?
Should I reboot and try to start from mmc?
Yours 0 1 2 3 4 are fine, I do not know how to read 8 and 9. I would reboot,
- xterm
- sudo gainroot
- cd ~/bin (DO NOT change Mil's script, follow exactly what the script is. No joking.)
- ./nupgrade.sh 0
- ./nupgrade.......
bun
booted from mmc but only shows 4.87gb internal memory?
Where's my other 11gb?
bunanson
01-14-2008, 07:54 AM
booted from mmc but only shows 4.87gb internal memory?
Where's my other 11gb?
Thank god, mother and child are fine!
Now you are on your own
You have not format the mkdosfs yet, dont worry, that is a very simple part
- xterm
- sudo gainroot
- umount /dev/mmcblk0p1
- mkdosfs /dev/mmcblk0p1
Or somebody said you can do it with file manager.
good nite..........thank god.
bun
Bunanson,
Can you explain the numbers at all.
I'm tempted to just sit on it and wait for comments from Mil.
What do you think?
bunanson
01-14-2008, 07:56 AM
Bunanson,
Can you explain the numbers at all.
I'm tempted to just sit on it and wait for comments from Mil.
What do you think?
What do you mean "sit on it"? You are done, you are MMC boot from a 16G card, man, you make All tablet users jealous.
control panel>mem? details? available?
bun
You are hysterical.
What is mkdosf?
Good night.
Thanks,
Dan
But where are my other 11gb??
:) :)
Can you explain.
I'm cofused.
Where is the 11gb? :)
bunanson
01-14-2008, 08:02 AM
But where are my other 11gb??
:) :)
get to control panel>memory and give me the results
I think your 11 gb is with the dos format, do the mkdosfs, it will then show up
bun
I wanted 5gb for os(internal memory and the rest for storage.
Do I still need to do something?
It doesn't make sense to me at least.
Everything works though, but I feel perplexed.
What do you think?
bunanson
01-14-2008, 08:07 AM
Can you explain.
I'm cofused.
Where is the 11gb? :)
Sorry to tell you, it is still int flash boot, not mmc boot yet. For mmc boot, you would see a large number under device, something that you partition for, i.e., if you partition 2G, the device memory will show 2.0-.3, approximately 1.6G available.
Try a small SD card or wait for the big guy.
bun
bunanson
01-14-2008, 08:09 AM
I wanted 5gb for os(internal memory and the rest for storage.
Do I still need to do something?
It doesn't make sense to me at least.
Everything works though, but I feel perplexed.
What do you think?
try another reboot and on boot menu, select option 3 and what does it say?
bun
What does mkdosfs do.
I feel like I'm conversing in Chinese and everyone understands me but I don't understand them. Strange feeling. :)
ok will reboot and try option 3.
option 3 failed booting from flash.
I will wait for Mil.
Thanks for your help. Get some sleep.
Dan
Milhouse,
Quick question can your app for mmc boot be completely removed so I can start the whole process again or do I need to reflash os2008 and reformat the mmc card I used.
Please look at all my comments and see where I went wrong. I think I went wrong in several places but the big one might be naming file ./sin instead of ./bin. What do you think.
Everthing works. it still boots from flash and it says it boots from mmc but I don't see all the memory. Only 4.87 out of 16gb.
Any help you give me will be greatly appreciated.
If I need to flash I will have to go the Nokia store in NYC and redo everyhting tonight. I leave tomorrow morning.
I get the strange feeling that I missed a step and nothing was harmed or damaged permanently. You have way more experience in this than I do. I'm just thinking out loud. I have learned a termendous amount. I'm begining to see how Linux works and how the n800 operates behind the screen. It's all good.
Thanks,
Dan
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.