Projects/Mobile/KDE4 on n810: Difference between revisions

    From KDE TechBase
    m (State purpose of the exercise)
     
    (11 intermediate revisions by 6 users not shown)
    Line 1: Line 1:
    The flash memory which stores the maemo operating system on the n810 is too small to install KDE or do program development. In order to install KDE, you need to copy the maemo system from flash to the SD card, and enable booting from there.
    ==Flash your n810 with the R&D version of Nokia OS==
    ==Flash your n810 with the R&D version of Nokia OS==
    Update the n810 to the latest version of the operating system and software development environment:
    Update the n810 to the latest version of the operating system and software development environment:
    Line 7: Line 8:
    * Attach the USB cable to your n810 and computer.
    * Attach the USB cable to your n810 and computer.
    * Flash with diablo
    * Flash with diablo
      sudo ./flasher-3.0 -F RX-44_DIABLO_4.2008.23-14_PR_COMBINED_MR0_ARM.bin -f -R
      sudo ./flasher-3.0 -F RX-44_DIABLO_5.2008.43-7_PR_COMBINED_MR0_ARM.bin -f -R
    * When you get the message "Suitable USB device not found, waiting", plug the power supply in to the n810.  The flashing will commence.
    * When you get the message "Suitable USB device not found, waiting", plug the power supply in to the n810.  The flashing will commence.
    * When prompted, reboot the n810.  You can also disconnect the USB cable.
    * When prompted, reboot the n810.  You can also disconnect the USB cable.


    ==Setup Partitions and Boot Menu==
    ==Set Up Partitions and Boot Menu==
    Partition the SD card, clone the maemo system to it, and set up a boot menu:
    '''WARNING:''' This will erase all existing data on the SD card.
    * After booting in to the freshly flashed system...
    * After booting in to the freshly flashed system...
    * Setup networking on the device; this may involve typing your WPA key if it is a secure network.
    * Setup networking on the device; this may involve typing your WPA key if it is a secure network.
    * '''Do NOT''' install the Nokia Operating System update that's offered by the flashing button in the top bar, that will cause a mismatch in the initfs version and you won't get the boot menu
    * '''Do NOT''' install the Nokia Operating System update that's offered by the flashing button in the top bar, that will cause a mismatch in the initfs version and you won't get the boot menu (for a dual boot method that works with updated OS too see the tutorial at http://wiki.maemo.org/Booting_from_a_flash_card)
    * Open the Application manager and enable the maemo Extras repository
    * Open the Application manager and enable the maemo Extras repository
    * Install openssh and set root password
    * Install openssh and set root password
    * Optional: Create another backup (mainly as shortcut for enabling the extras repository
    * Optional: Create another backup (mainly as shortcut for enabling the extras repository
    * As root, ssh into the n810.  /sbin/ifconfig will tell you the associated IP address if you don't know it.
    * As root, ssh into the n810.  /sbin/ifconfig will tell you the associated IP address if you don't know it.
    * Install wget and download install-tools-N810e.deb in to /root
    * Install wget and download console-tools.deb in to /root
      apt-get install wget
      apt-get install wget
      cd /root
      cd /root
      wget http://penguinbait.com/install-tools-N810e.deb
      wget http://penguinbait.com/console-tools.deb
    * Unmount your external media card; if they are not already mounted you don't have to do this
    * Unmount your external media card; if they are not already mounted you don't have to do this
      umount /media/mmc1
      umount /media/mmc1
      umount /media/mmc2
      umount /media/mmc2
    * Install the n810 install tools. You cannot access the internal or external memory card in this process, otherwise you'll get an error from the clone package. Installing the package will repartition and formatsyour SD card and will '''ERASE''' all the data on it, so be careful when doing it. This process also clones the maemo system on the flash onto the SD card. When run successfully.
    * Install the n810 console-tools:
    dpkg -i install-tools-N810e.deb
    dpkg -i console-tools.deb
    * If this process fails, it is probably because you didn't umount your external media.  The medial is unmounted during this process so just try installing the install tools again.
    * Disable virtual memory if active, in the Control Panel.
    * Reboot the n810
    * The next step is to repartition and format your SD card. NOTE: This will '''ERASE''' all the data on it, so be careful when doing it.
    * Run pbeasy in an X-terminal on the n810, as a user (not root). Select the Partition option, and for a 1920 Mb SD card, enter 120 Mb for both VFAT and swap partitions, which leaves the rest for an EXT3 partition which will be used for the software development system. After partitioning, it will reboot.
    * After the reboot, run pbeasy again, and select the Clone option. This formats the new partitions, clones the maemo system from the flash onto the SD card's EXT3 partition and sets up a boot menu to allow either flash or SD card system to be selected at boot time.
    * Reboot the n810 and you should now see boot menu options.
    * Select the Internal MMC card option and check that it boots successfully. If not, try repeating the Clone process - it should work on the second attempt.


    ==Install KDE4==
    ==Install KDE4==
    Line 49: Line 56:
    * Install KDE4. This should pull in all the necessary dependencies (75MB of packages) as well. I had to force install kdebase-workspace to start plasma on the device. You can do that from a remote ssh session with su user and setting the display export DISPLAY=:0.
    * Install KDE4. This should pull in all the necessary dependencies (75MB of packages) as well. I had to force install kdebase-workspace to start plasma on the device. You can do that from a remote ssh session with su user and setting the display export DISPLAY=:0.
      apt-get install kdebase-workspace kdebase-runtime kdeplasma-addons
      apt-get install kdebase-workspace kdebase-runtime kdeplasma-addons
    * If you get a conflict between libqt4-phonon and libphonon4 you have to go to the /var/cache/apt/archives directory and install one manually via
    dpkg --force-overwrite --install libphonon4_4\%3a4.3.0-1_armel.deb
    * If that all works, you can replace the hildon desktop with plasma.  At the moment it crashes and reboots the n810, so you might not want to do this.  
    * If that all works, you can replace the hildon desktop with plasma.  At the moment it crashes and reboots the n810, so you might not want to do this.  
      cd /usr/bin/ && mv hildon-desktop hildon-desktop-real && ln -s plasma hildon-desktop
      cd /usr/bin/ && mv hildon-desktop hildon-desktop-real && ln -s plasma hildon-desktop

    Latest revision as of 07:56, 31 May 2010

    The flash memory which stores the maemo operating system on the n810 is too small to install KDE or do program development. In order to install KDE, you need to copy the maemo system from flash to the SD card, and enable booting from there.

    Flash your n810 with the R&D version of Nokia OS

    Update the n810 to the latest version of the operating system and software development environment:

    • Optional: Create backup on internal storage device (original state)
    • Download flasher-3.0 and Nokia OS2008 to the computer you will be flashing the n810 from
    • You will need your Product ID (MAC address) to download the Nokia OS. It can be found on your n810 in the Control Panel in About the product, or printed on your battery.
    • Turn off your n810 and unplug the power supply; be sure it is fully charged
    • Attach the USB cable to your n810 and computer.
    • Flash with diablo
    sudo ./flasher-3.0 -F RX-44_DIABLO_5.2008.43-7_PR_COMBINED_MR0_ARM.bin -f -R
    
    • When you get the message "Suitable USB device not found, waiting", plug the power supply in to the n810. The flashing will commence.
    • When prompted, reboot the n810. You can also disconnect the USB cable.

    Set Up Partitions and Boot Menu

    Partition the SD card, clone the maemo system to it, and set up a boot menu: WARNING: This will erase all existing data on the SD card.

    • After booting in to the freshly flashed system...
    • Setup networking on the device; this may involve typing your WPA key if it is a secure network.
    • Do NOT install the Nokia Operating System update that's offered by the flashing button in the top bar, that will cause a mismatch in the initfs version and you won't get the boot menu (for a dual boot method that works with updated OS too see the tutorial at http://wiki.maemo.org/Booting_from_a_flash_card)
    • Open the Application manager and enable the maemo Extras repository
    • Install openssh and set root password
    • Optional: Create another backup (mainly as shortcut for enabling the extras repository
    • As root, ssh into the n810. /sbin/ifconfig will tell you the associated IP address if you don't know it.
    • Install wget and download console-tools.deb in to /root
    apt-get install wget
    cd /root
    wget http://penguinbait.com/console-tools.deb
    
    • Unmount your external media card; if they are not already mounted you don't have to do this
    umount /media/mmc1
    umount /media/mmc2
    
    • Install the n810 console-tools:
    dpkg -i console-tools.deb
    
    • Disable virtual memory if active, in the Control Panel.
    • The next step is to repartition and format your SD card. NOTE: This will ERASE all the data on it, so be careful when doing it.
    • Run pbeasy in an X-terminal on the n810, as a user (not root). Select the Partition option, and for a 1920 Mb SD card, enter 120 Mb for both VFAT and swap partitions, which leaves the rest for an EXT3 partition which will be used for the software development system. After partitioning, it will reboot.
    • After the reboot, run pbeasy again, and select the Clone option. This formats the new partitions, clones the maemo system from the flash onto the SD card's EXT3 partition and sets up a boot menu to allow either flash or SD card system to be selected at boot time.
    • Reboot the n810 and you should now see boot menu options.
    • Select the Internal MMC card option and check that it boots successfully. If not, try repeating the Clone process - it should work on the second attempt.

    Install KDE4

    • During the boot up, hold the memory key (lower left on the drawer keyboard, right under the direction pad) and you'll get a boot menu. Choose the third option (External MMC card) to boot from SD, the first one will boot from flash.
    • From your computer, use Kwrite or Kate, and point it to sftp://[email protected]/etc/apt/sources.list.d/hildon-application-manager.list and add Marijn's repos. Alternatively you can ssh in to the n810 and edit the file with vi. Here is my complete list of repositories:
    deb http://catalogue.tableteer.nokia.com/certified/ diablo user
    deb http://catalogue.tableteer.nokia.com/non-certified/ diablo user
    deb http://catalogue.tableteer.nokia.com/updates/diablo/ ./
    deb http://repository.maemo.org/extras/ diablo free non-free
    deb http://repository.maemo.org/extras-devel/ diablo free non-free
    deb http://93.157.1.37/~marijn/maemo binary/
    deb http://qt4.garage.maemo.org/ diablo extras
    
    • SSH in to the n810 and update the package list
    apt-get update, 
    
    • Remove the install tools since you don't need them anymore
    dpkg --purge install-tools-n810e 
    
    • Install KDE4. This should pull in all the necessary dependencies (75MB of packages) as well. I had to force install kdebase-workspace to start plasma on the device. You can do that from a remote ssh session with su user and setting the display export DISPLAY=:0.
    apt-get install kdebase-workspace kdebase-runtime kdeplasma-addons
    
    • If you get a conflict between libqt4-phonon and libphonon4 you have to go to the /var/cache/apt/archives directory and install one manually via
    dpkg --force-overwrite --install libphonon4_4\%3a4.3.0-1_armel.deb
    
    • If that all works, you can replace the hildon desktop with plasma. At the moment it crashes and reboots the n810, so you might not want to do this.
    cd /usr/bin/ && mv hildon-desktop hildon-desktop-real && ln -s plasma hildon-desktop
    
    • Have fun!

    This is an updated version of Sebas' HowTo.