Differences between revisions 16 and 17
Revision 16 as of 2013-06-13 18:31:54
Size: 5991
Editor: Timo Jyrinki
Comment: the meego.com moslo link updated to merproject one, but where's the marquiz' dual-boot kernel nowadays?
Revision 17 as of 2013-06-13 19:03:06
Size: 6077
Editor: Timo Jyrinki
Comment: added a link to some configuration files
Deletions are marked like this. Additions are marked like this.
Line 75: Line 75:
Some configuration files that may be helpful at http://people.debian.org/~timo/N9/

Nokia N9

Nokia N9 is a relatively FLOSS friendly phone running on top of Linux + freedesktop.org + Qt stack, with partially open UI or "User eXperience" layer.

A lot of progress on free OS for Nokia N9 (and its developer sibling Nokia N950) has been made in the hardware adaptation and UX project formerly known as MeeGo CE, now "Nemo Mobile" running on top of Mer core (continuation of MeeGo).


The first available bootloader was "moslo" (MeeGo OS loader, sources included but behind license agreement page): http://tablets-dev.nokia.com/moslo.php ; it was meant for N950. Community maintains a version suitable for N9 as well / OBS page (moslo-0.*), which however has a problem of requiring booting with a flasher command every time - see persistent bootloader nowadays.

The easier moslo bootloader is explained at http://wiki.merproject.org/wiki/Nemo/Installing#Nokia_N9, while a more "from ground up" booting approach is explained at http://jon.severinsson.net/NemoN9/Nemo-Mobile-N9-instructions.txt.

Hardware adaptation

Hardware adaptation for Nokia N9 and N950 is mostly done in upstream Linux kernel for the TI OMAP3 support, and the most complete adaptation including various sensors et cetera is available in source (where available) and binary forms at the Nemo Mobile repositories:

Newer kernel (3.5 instead of 2.6.32) is being developed at github:

It was successfully used as part of Nemo Mobile (formerly MeeGo CE) release, so it should be possible to bring to Debian. Also, Debian user space should boot with Nemo kernel.

Among else phone calls work with oFono.

Appendix: UI layers and Apps

Not directly related to hardware, but the MeeGo Touch Framework used also in the partially proprietary shipping software on Nokia N9 is/was free software, although without future plans as Qt5/QML are taking its place. It was however productized and is used as part of Nemo. It is located (repository/source package wise) at http://repo.merproject.org/obs/nemo:/devel:/mw/ (middleware, including libmeegotouch) and http://repo.merproject.org/obs/nemo:/devel:/ux/ (control panel among else). Some of the Nemo MW/UX work is nowadays not MTF based anymore, ie works with normal Qt5, but some remain non-ported as requiring the whole MTF stack.

KDE Plasma Active and associated libraries for Mer is at: http://repo.merproject.org/obs/kde:/devel:/ux/latest_armv7hl/src/

See all current Mer / Nemo projects at https://build.merproject.org/project/list_public

A kickstart file used in the RPM world is attached to this page, explaining all the repositories and packages that are used for a functional software image. It should be guiding in getting Debian support as well.


Various applications from Mer/Nemo would also be suitable for Debian, see eg. http://repo.merproject.org/obs/nemo:/devel:/apps/latest_armv7hl/src/

Crude hacking of Debian based rootfs

It should be possible to get a Debian booting with Nemo's kernel without big issues. That means unpacking Nemo's kernel & kernel modules on top of a Debian rootfs (debootstrap armhf, chroot in and expand, or use a ready made rootfs from somewhere). Anything extra besides a black screen and possibly configured SSH + USB network will be a matter of either copying files from inside Nemo rpm:s and/or recompiling them from sources when available. The following is a list of packages in Nemo that should be interesting for hacking some hardware functionality in on top of Debian rootfs on N9:

  • - bme-libs-rm-680-bin # battery loading
    - bme-rm
    - dsme # device state management
    - libcal-rm-680-bin
    - libdsme
    - libiphb
    - n950-camera-fw
    - ti-wl1271-firmware
    - ti-wl1273-bt-firmware
    - ti-wl1273-fm-radio-firmware
    - wl1271-cal-bin
    - gst-omapfb
    - libcmtspeechdata
    - libcreds3
    - libsmack
    - libsysfs
    - mtdev # needed for xorg input driver
    - mtdev-devel
    - nokia-n950-configs
    - omap-update-display
    - sysfsutils
    - ti-omap3-sgx # binary blobs for OpenGL ES
    - ti-omap3-sgx-libEGL
    - ti-omap3-sgx-libGLESv1
    - ti-omap3-sgx-libGLESv2
    - udev-rules-n950
    - xorg-x11-drv-fbdev-sgx
    - xorg-x11-drv-mtev

Some configuration files that may be helpful at http://people.debian.org/~timo/N9/

Corruption in filesystem?

Possibly helping black magic on how to boot, if you encounter corrupted filesystem:

  1. Run the bootloader flasher command (nowadays there's the persistent bootloader method as well)
  2. Attach USB which also powers on N9, drive gets mounted to host
  3. Play around in the mounted partition
  4. Unmount partition(s)
  5. Detach USB cable (causes boot to start)
  6. Attach the cable back in 2-3 seconds.
  7. Unmount the partition(s) again if they get remounted, before the actual boot begins

MeeGo wiki (might move at some point as MeeGo as a brand name is shutting itself down): http://wiki.meego.com/ARM/N9

N9:s default software stack (?MeeGo compatible "Harmattan") free software components, mostly in Debian already: http://harmattan-dev.nokia.com/pool/harmattan/free/ (no longer available, backups made by maemo.org people in various places)

The upstream for hw adaptation and UX: http://wiki.merproject.org/wiki/Nemo (Nemo Mobile)