View Single Post
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#1
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
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):
    Code:
    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
    Code:
    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 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
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
    Code:
    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
    Code:
    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 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:

    Code:
    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 which details additional parameters for the nupgrade.sh script.

Last edited by Milhouse; 2008-01-30 at 16:30.
 

The Following 35 Users Say Thank You to Milhouse For This Useful Post: