Installation

From QtMoko

Jump to: navigation, search

Danish Deutsch English Esperanto Français Italiano Nederlands Sardu Español


There are two different images for Qt Moko:

  • the debian-based one which you can find here, and
  • the FSO-based one which you can find here.

The main differences are in:

  • the repositories (the debian-based one uses deb repositories while the FSO-based one uses src/gz repositories), and
  • the package manager (the debian-based one uses the well-known apt-get while the FSO-based one uses opkg).

Contents

[edit] Tools

To flash an image you need dfu-util.

If you are using dfu-util from a distribution package, simply invoke:

sudo dfu-util [arguments]

If you have downloaded the dfu-util executable, invoke:

sudo /path/to/dfu-util [arguments]

[edit] Method 1: Installing on NAND

To flash an image you just have to download it along with the given kernel and flash them with these commands:

sudo dfu-util -a kernel -R -D name-of-file.bin
sudo dfu-util -a rootfs -R -D name-of-file.jffs2

If you flash it you also need U-boot which is flashed with this command:

sudo dfu-util -a u-boot -R -D name-of-file.bin

[edit] Method 2: Installing on microSD

To install QtMoko on your microSD you need Qi bootloader.

You can check how Qi works in the wiki page of Qi, but normally Qi is flashed easily on your Neo device with this simple command:

sudo dfu-util -a u-boot -R -D name-of-file.udfu

After you have Qi active on your Neo, you simply need to:

  • Make a partition in Ext3 on the microSD
  • Untar all the content of the QtMoko root file version in *.tar.gz format, that can be get from the QtMoko download page.
  • Then you simply re-boot and it will start automatically first from your microSD with QtMoko

[edit] Important post-install security step

BEWARE! The image you just installed uses an empty root password, so as soon as you connect to the internet, anyone in the world could log into your phone via ssh. Therefore the first thing to do after installing the image, is to change/set the root password, e.g. by logging in via ssh-over-usb.

You should also recreate the ssh key. In order to do this, you should type in the following commands through console using either the terminal on your phone, or through ssh (make sure the second command finishes execution before logging out):

rm /etc/ssh/ssh_host*key*
dpkg-reconfigure openssh-server

[edit] Version specific

V26:
  # get the matching bootloader here and save it in /tmp
# download the kernel here and save it in /tmp
# download the rootfs hereand save it in /tmp
# Flash the bootloader dfu-util -a u-boot -R -D /tmp/u-boot_glamo242.udfu
# Flash the kernel dfu-util -a kernel -R -D /tmp/uImage-v26.bin
# Flash the rootfs dfu-util -a rootfs -R -D /tmp/qtmoko-debian-v26.jffs2
# powerdown the freerunner and power it on again. # in a console, uname -a should give you: # Linux neo 2.6.29-rc3-v26 #1 Sat Aug 28 13:11:14 CEST 2010 armv4tl GNU/Linux
Personal tools
Navigation