Meego Wiki
Views

SDK/Docs/1.2/Setting up handset

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Configuring device access in Qt Creator)
Line 55: Line 55:
[[File:Qt Creator configuring N900 device access usb.png|thumb|500px]]
[[File:Qt Creator configuring N900 device access usb.png|thumb|500px]]
'''To configure device access:'''
'''To configure device access:'''
-
# Open '''Tools''' > '''Options''' > '''Projects''' > '''MeeGo Device Configurations'''.
+
# Open MeeGo SDK Qt Creator. Open '''Tools''' > '''Options''' > '''Projects''' > '''MeeGo Device Configurations'''.
# In the opened dialog, create a new Device Configuration by clicking on '''Add'''.
# In the opened dialog, create a new Device Configuration by clicking on '''Add'''.
# Give the new Device Configuration a name in the Configuration Name text field, and add the following settings in the other test fields:
# Give the new Device Configuration a name in the Configuration Name text field, and add the following settings in the other test fields:

Revision as of 09:54, 11 May 2011

This page instructs on installing the MeeGo 1.2 N900 Developer Edition image and configuring device access when using a N900 device for your development work.

Contents

Prerequisites

Installing the MeeGo image on your N900 device

These instructions cover installing the MeeGo image on the N900 using an external SD card without destroying the data from the internal memory of the N900. For information on other ways of installing MeeGo, see ARM/N900.

On Ubuntu:

  1. Insert the SD card into your computer.
  2. Find out what device the SD card is:
    sudo fdisk -l
    See the disk size information to recognize the SD card from other drives. (Optionally, you can identify the SD card based on differences in the sudo -l fdisk output before and after inserting the SD card.)
  3. Unmount the SD card:
    sudo umount <sd card>
  4. Download MeeGo image from http://repository.maemo.org/meego/n900-de/daily/ > folder with the latest update > images/ > mg-handset-armv7nhl-n900-de-sanity > mg-handset-armv7nhl-n900-de-sanity-<meego image version number>-mmcblk0p.raw.bz2 .
    Note: For information on how much functionality is known to work on the N900, see the most recent N900 sanity test results at qa-reports.meego.com.
  5. Download kernel image from the same URL (http://repository.maemo.org/meego/n900-de/daily/). The kernel image file name is of the format mg-handset-armv7nhl-n900-de-sanity-<meego image version number>-vmlinuz-<kernel version number>- adaptation-n900.
  6. Decompress the MeeGo image (.bz2) file.
  7. Copy the MeeGo image to the SD card:
    $ sudo dd bs=4096 if=<raw_image> of=/dev/<SD card>
    Note: Copying takes some time. For instructions on how to see the status of the process, see ARM/N900/Install/MMC.
  8. Flash the N900:
    1. Insert the SD card into the N900, attach the battery, and close the back cover. Do not start the N900.
    2. Navigate to http://tablets-dev.nokia.com/maemo-dev-env-downloads.php and accept the license agreement.
    3. Download and run flasher:
      1. Download maemo_flasher-3.5_2.5.2.2_i386.deb.
      2. Install flasher:
        • In a 32-bit architecture
          $ sudo dpkg -i maemo_flasher-<version number>i386.deb
        • In a 64-bit architecture, create a directory and extract maemo_flasher executable into it:
          $ dpkg -x maemo_flasher-3.5_2.5.2.2_i386.deb <directory> 
          Then manually copy extracted flasher-3.5 from <directory>/usr/bin/ into /usr/bin/
      3. Run flasher:
        $ sudo flasher-3.5 -l -k <kernel image> -b 
      4. The command prompt displays text "Suitable USB device not found, waiting." Attach USB cable. The device is booted and MeeGo image runs on your device. If the device does not boot, press the power button.

Next time you boot the device, the original kernel is used and your device OS should boot normally.

Setting up the connection

You can use USB or WLAN to connect your N900 device to your computer.

To use USB connection:

  1. After running "sudo flasher-3.5 -l -k <kernel image> -b", Connect the device to your computer with the USB cable. Wait a bit until you see "MeeGo 1.2 Developer Edition" logo on your N900 screen.
  2. Set your computer USB IP address. Note that your host usb port is named as "n900":
     sudo ifconfig n900 192.168.2.14 up 
  3. Configure the device access in Qt Creator as explained in below.

Configuring device access in Qt Creator

Qt Creator configuring N900 device access usb.png

To configure device access:

  1. Open MeeGo SDK Qt Creator. Open Tools > Options > Projects > MeeGo Device Configurations.
  2. In the opened dialog, create a new Device Configuration by clicking on Add.
  3. Give the new Device Configuration a name in the Configuration Name text field, and add the following settings in the other test fields:
    • Device type: Remote device
    • Authentication type: Password
    • Host Name: <device IP address> (USB port IP address 192.168.2.15 by default)
    • SSH Port: 22
    • Free ports: 10000-10100
    • Connection Timeout: 30
    • User Name: root
    • Password: meego
  4. Click Apply.
  5. To test the settings, click Test.
    The message "Device configuration okay." is displayed in Device Configuration Test window.
  6. Click Close and OK.

If the message "Could not connect to host: Timeout waiting for reply from server. " is displayed, check your setting selections and make sure that the network is connected. For example below setting might solve the problem:

Create the file /etc/udev/rules.d/99-nokia-n900.rules and put in the following lines. Notice! Ethernet module has changed from cdc_ether to cdc_eem:

SUBSYSTEM=="net", ACTION=="add", ENV{ID_USB_DRIVER}=="cdc_ether", ENV{ID_MODEL}="N900__PC-Suite_Mode", ENV{ID_VENDOR}=="Nokia", NAME="n900"
SUBSYSTEM=="net", ACTION=="add", ENV{ID_USB_DRIVER}=="cdc_phonet", ENV{ID_MODEL}="N900__PC-Suite_Mode", ENV{ID_VENDOR}=="Nokia", NAME="n900pn"
Personal tools