Meego Wiki
Views

SDK/Docs/1.1/Setting up N900 device

From MeeGo wiki
< SDK | Docs | 1.1(Difference between revisions)
Jump to: navigation, search
(Setting up the connection)
m (Fixed wiki links and changed the link for latest test reports)
 
(6 intermediate revisions not shown)
Line 3: Line 3:
[[Category:tutorial]]
[[Category:tutorial]]
[[Category:application-developer]]
[[Category:application-developer]]
-
 
-
'''Note:''' This page is work-in-progress (26 Oct 2010).
 
This page instructs in installing the MeeGo image and configuring device access when using a N900 device for your development work.  
This page instructs in installing the MeeGo image and configuring device access when using a N900 device for your development work.  
Line 14: Line 12:
= Installing the MeeGo image on your N900 device =
= 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 more information on this way of installing MeeGo, see http://wiki.meego.com/ARM/N900/Install/MMC. For information on other ways of installing MeeGo, see http://wiki.meego.com/ARM/N900.
+
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 more information on this way of installing MeeGo, see [[ARM/N900/Install/MMC]]. For information on other ways of installing MeeGo, see [[ARM/N900]].
On Ubuntu and openSUSE:
On Ubuntu and openSUSE:
Line 24: Line 22:
#: <pre>sudo umount <sd card></pre>
#: <pre>sudo umount <sd card></pre>
# Download MeeGo image from http://repo.meego.com/MeeGo/builds/ > folder <code>1.0.99</code> > folder with the latest update* > <code>handset/</code> > <code>images/</code> > <code>meego-handset-armv7l-n900/</code> > <code>meego-handset-armv7l-n900-<meego image version number>-mmcblk0p.raw.bz2</code>.
# Download MeeGo image from http://repo.meego.com/MeeGo/builds/ > folder <code>1.0.99</code> > folder with the latest update* > <code>handset/</code> > <code>images/</code> > <code>meego-handset-armv7l-n900/</code> > <code>meego-handset-armv7l-n900-<meego image version number>-mmcblk0p.raw.bz2</code>.
-
#: '''Note:''' For information on how much functionality is known to work on the N900, see the most recent N900 sanity test results at Quality/HandsetTestReport.
+
#: '''Note:''' For information on how much functionality is known to work on the N900, see the most recent N900 sanity test results at [http://qa-reports.meego.com/ qa-reports.meego.com].
# Download kernel image from the same URL (http://repo.meego.com/MeeGo/builds/). The kernel image file name is of the format <code>meego-handset-armv7l-n900-<meego image version number>-vmlinuz-<kernel version number>-n900</code>.
# Download kernel image from the same URL (http://repo.meego.com/MeeGo/builds/). The kernel image file name is of the format <code>meego-handset-armv7l-n900-<meego image version number>-vmlinuz-<kernel version number>-n900</code>.
# Decompress the MeeGo image (.bz2) file.
# Decompress the MeeGo image (.bz2) file.
# Copy the MeeGo image to the SD card:
# Copy the MeeGo image to the SD card:
#: <pre>$ sudo dd bs=4096 if=<raw_image> of=/dev/<SD card></pre>
#: <pre>$ sudo dd bs=4096 if=<raw_image> of=/dev/<SD card></pre>
-
#: '''Note:''' Copying takes some time. For instructions on how to see the status of the process, see http://wiki.meego.com/ARM/N900/Install/MMC.
+
#: '''Note:''' Copying takes some time. For instructions on how to see the status of the process, see [[ARM/N900/Install/MMC]].
# Flash the N900:
# Flash the N900:
## Insert the SD card into the N900, attach the battery, and close the back cover. Do not start the N900.
## Insert the SD card into the N900, attach the battery, and close the back cover. Do not start the N900.
Line 56: Line 54:
'''To use USB connection''':  
'''To use USB connection''':  
# Connect the device to your computer with the USB cable.  
# Connect the device to your computer with the USB cable.  
 +
# Open a terminal and to set your computer USB IP address, use the following command:
 +
#: <pre> ifconfig usb0 192.168.2.14 up </pre>
# [[#Configuring device access in Qt Creator |Configure the device access in Qt Creator]].  
# [[#Configuring device access in Qt Creator |Configure the device access in Qt Creator]].  
Line 68: Line 68:
# [[#Configuring device access in Qt Creator |Configure the device access in Qt Creator]].
# [[#Configuring device access in Qt Creator |Configure the device access in Qt Creator]].
-
= Configuring access to a real device in Qt Creator =
+
= Configuring device access in Qt Creator =
[[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 in Qt Creator:
+
'''To configure device access:'''
# Open '''Tools''' > '''Options''' > '''Projects''' > '''MeeGo Device Configurations'''.
# Open '''Tools''' > '''Options''' > '''Projects''' > '''MeeGo Device Configurations'''.
-
# In the dialog box, 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:
-
#* Device type: choose Remote device
+
#* Device type: Remote device
#* Authentication type: Password
#* Authentication type: Password
-
#* Host name: <device IP address> (USB port IP address 192.168.2.15 by default)
+
#* Host Name: <device IP address> (USB port IP address 192.168.2.15 by default)
-
#* Ports, SSH: 22
+
#* SSH Port: 22
-
#* Ports, Gdb Server: 10000
+
#* Gdb server: 10000
#: '''Note:''' If this port is not free, you can select another one.
#: '''Note:''' If this port is not free, you can select another one.
#* Connection Timeout: 30
#* Connection Timeout: 30
Line 86: Line 86:
# Click '''Apply'''.  
# Click '''Apply'''.  
# To test the settings, click '''Test'''.
# To test the settings, click '''Test'''.
-
#: If successful, you'll see a dialog box with the message "Device configuration successful".
+
#: The message "Device configuration successful." is displayed in Device Configuration Test window.  
-
#: If the message "Could not connect to host" is displayed, check your setting selections and make sure that the network is connected.
+
# Click '''Close''' and '''OK'''.
# Click '''Close''' and '''OK'''.
 +
 +
If the message "Could not connect to host" is displayed, check your setting selections and make sure that the network is connected.

Latest revision as of 12:39, 18 March 2011


This page instructs in installing the MeeGo 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 more information on this way of installing MeeGo, see ARM/N900/Install/MMC. For information on other ways of installing MeeGo, see ARM/N900.

On Ubuntu and openSUSE:

  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://repo.meego.com/MeeGo/builds/ > folder 1.0.99 > folder with the latest update* > handset/ > images/ > meego-handset-armv7l-n900/ > meego-handset-armv7l-n900-<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://repo.meego.com/MeeGo/builds/). The kernel image file name is of the format meego-handset-armv7l-n900-<meego image version number>-vmlinuz-<kernel version number>-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:
      • On Ubuntu:
        1. Download maemo_flasher-3.5_2.5.2.2_i386.deb.
        2. In a 32-bit architecture, install flasher with:
          $ sudo dpkg -i maemo_flasher-<version number>i386.deb
        3. Accept license agreements.
        4. Run flasher:
          $ sudo flasher-3.5 -l -k <kernel image> -b
      • On openSUSE:
        1. Download maemo_flasher-3.5_2.5.2.2.tar.gz and decompress it with the command:
          tar xzvf <name of tar file>
          The file is decompressed into the directory maemo_flasher-3.5_2.5.2.2.
        2. Run flasher:
          $ sudo <path to flasher>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 MeeGo OS should boot normally.

Setting up the connection

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

To use USB connection:

  1. Connect the device to your computer with the USB cable.
  2. Open a terminal and to set your computer USB IP address, use the following command:
     ifconfig usb0 192.168.2.14 up 
  3. Configure the device access in Qt Creator.

To use WLAN connection:

  1. Connect the device to your computer with the USB cable.
  2. To log into the device, use the following command:
     ssh root@192.168.2.15 
    (password: meego)
  3. To view the WLAN IP address of the device, use the following command:
    ifconfig
  4. Unplug the USB cable.
  5. Configure the device access in Qt Creator.

Configuring device access in Qt Creator

Qt Creator configuring N900 device access usb.png

To configure device access:

  1. 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
    • Gdb server: 10000
    Note: If this port is not free, you can select another one.
    • Connection Timeout: 30
    • User Name: root
    • Password: meego
  4. Click Apply.
  5. To test the settings, click Test.
    The message "Device configuration successful." is displayed in Device Configuration Test window.
  6. Click Close and OK.

If the message "Could not connect to host" is displayed, check your setting selections and make sure that the network is connected.

Personal tools