(→Installing the MeeGo image on your N900 device) |
(→Configuring device access in Qt Creator) |
||
| (12 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
| - | + | 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. | |
=Prerequisites = | =Prerequisites = | ||
| Line 7: | Line 7: | ||
= 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 information on other ways of installing MeeGo, see [[ARM/N900]]. | + | These instructions cover installing the MeeGo 1.2 DE 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: | On Ubuntu: | ||
| Line 16: | Line 16: | ||
# Unmount the SD card: | # Unmount the SD card: | ||
#: <pre>sudo umount <sd card></pre> | #: <pre>sudo umount <sd card></pre> | ||
| - | # Download MeeGo image from http://repository.maemo.org/meego/n900-de/daily/ > folder with the latest update > <code>images | + | # Download MeeGo image from http://repository.maemo.org/meego/n900-de/daily/ > folder with the latest update > <code>images</code> > <code>mg-handset-armv7nhl-n900-de-sanity</code> > <code>mg-handset-armv7nhl-n900-de-sanity-<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 [http://qa-reports.meego.com/ qa-reports.meego.com]. | #: '''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://repository.maemo.org/meego/n900-de/daily/). The kernel image file name is of the format <code>mg-handset-armv7nhl-n900-de-sanity-<meego image version number>-vmlinuz-<kernel version number>- adaptation-n900</code>. | # Download kernel image from the same URL (http://repository.maemo.org/meego/n900-de/daily/). The kernel image file name is of the format <code>mg-handset-armv7nhl-n900-de-sanity-<meego image version number>-vmlinuz-<kernel version number>- adaptation-n900</code>. | ||
| Line 25: | Line 25: | ||
# 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. | ||
| + | ## Navigate to http://tablets-dev.nokia.com/maemo-dev-env-downloads.php and accept the license agreement. | ||
| + | ## Download and run flasher: | ||
| + | ### Download maemo_flasher-3.5_2.5.2.2_i386.deb. | ||
| + | ### Install flasher: | ||
| + | ###* In a 32-bit architecture | ||
| + | ###*: <pre>$ sudo dpkg -i maemo_flasher-<version number>i386.deb</pre> | ||
| + | ###* In a 64-bit architecture, create a directory and extract maemo_flasher executable into it: | ||
| + | ###*: <pre>$ dpkg -x maemo_flasher-3.5_2.5.2.2_i386.deb <directory> </pre> | ||
| + | ###*: Then manually copy extracted flasher-3.5 from <directory>/usr/bin/ into /usr/bin/ | ||
| + | ### Run flasher: | ||
| + | ###: <pre>$ sudo flasher-3.5 -l -k <kernel image> -b </pre> | ||
| + | ### 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 = | =Setting up the connection = | ||
| - | You can use USB | + | You can use USB to connect your N900 device to your computer. |
'''To use USB connection''': | '''To use USB connection''': | ||
| Line 36: | Line 50: | ||
#: <pre> sudo ifconfig n900 192.168.2.14 up </pre> | #: <pre> sudo ifconfig n900 192.168.2.14 up </pre> | ||
# Configure the device access in Qt Creator as explained in below. | # Configure the device access in Qt Creator as explained in below. | ||
| + | |||
| + | = Configuring device access in Qt Creator = | ||
| + | |||
| + | [[File:QtCreator_configuring_N900DE_device_access_usb.png|thumb|500px]] | ||
| + | '''To configure device access:''' | ||
| + | |||
| + | # 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'''. | ||
| + | # Give the new Device Configuration a name in the Name text field, and add the following settings in the other 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 | ||
| + | # Click '''Apply'''. | ||
| + | # To test the settings, click '''Test'''. The message "Device configuration okay." is displayed in Device Configuration Test window. | ||
| + | # 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" | ||
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 |
These instructions cover installing the MeeGo 1.2 DE 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:
sudo fdisk -l
sudo -l fdisk output before and after inserting the SD card.)
sudo umount <sd card>
images > mg-handset-armv7nhl-n900-de-sanity > mg-handset-armv7nhl-n900-de-sanity-<meego image version number>-mmcblk0p.raw.bz2 .
mg-handset-armv7nhl-n900-de-sanity-<meego image version number>-vmlinuz-<kernel version number>- adaptation-n900.
$ sudo dd bs=4096 if=<raw_image> of=/dev/<SD card>
$ sudo dpkg -i maemo_flasher-<version number>i386.deb
$ dpkg -x maemo_flasher-3.5_2.5.2.2_i386.deb <directory>
$ sudo flasher-3.5 -l -k <kernel image> -b
Next time you boot the device, the original kernel is used and your device OS should boot normally.
You can use USB to connect your N900 device to your computer.
To use USB connection:
sudo ifconfig n900 192.168.2.14 up
To configure device access:
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"