FSO

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(linkcorr)
m (Undo SPAMER revision 84270 by Waterremoval (Talk))
 
(6 intermediate revisions by 6 users not shown)
Line 2: Line 2:
 
{{FSO}}
 
{{FSO}}
  
'''FSO (freesmartphone.org)''' is a project to create a standardized service layer ([http://en.wikipedia.org/wiki/Middleware middleware]) for Linux-based phones. It was funded by Openmoko Inc. from January 2008 until March 2009. Focus is on stable highlevel services that you can access from whatever language or UI that supports [http://dbus.freesmartphone.org/ dbus]. The FSO middleware has been integrated into most of the current [[distributions]] including [[SHR]], [[Om 2009]], [[neovento]], [[Debian]] and [[Gentoo]]. For more information see http://www.freesmartphone.org, http://docs.freesmartphone.org, and http://trac.freesmartphone.org.  
+
'''FSO (freesmartphone.org)''' is a project to create a standardized service layer ([http://en.wikipedia.org/wiki/Middleware middleware]) for Linux-based phones. It was funded by Openmoko Inc. from January 2008 until March 2009. Focus is on stable highlevel services that you can access from whatever language or UI that supports [http://dbus.freesmartphone.org/ dbus]. The FSO middleware has been integrated into most of the current [[distributions]] including [[SHR]], [[Om 2009]], [[neovento]], [[Debian]] and [[Gentoo]]. At the moment FSO only works on the Openmoko phones. There is work in progress for bringing it to the Palm Pre and several HTC devices. For more information see http://www.freesmartphone.org, http://docs.freesmartphone.org, and http://trac.freesmartphone.org.  
  
==Q/A==
+
==Building FSO==
* ''Question'': Is this an Openmoko-only thing?
+
See [[Building_FSO]] for more information. The feeds are now at http://downloads.freesmartphone.org.
* ''Answer'': No. It's going to be available for all kinds of mobile hardware running Linux, i.e. OpenEZX, HTC, Glosfiish, etc.
+
* ''Question'': Is this a part of the current images yet?
+
* ''Answer'': Yes. It comes with SHR and Openmoko 2009.x testing images.
+
* ''Question'': What's the current status?
+
* ''Answer'': See right below or hop over to http://trac.freesmartphone.org .
+
** [[OpenmokoFramework/Status Update 1|Status Update 1]]
+
** [[OpenmokoFramework/Status Update 2|Status Update 2]]
+
** [[OpenmokoFramework/Status Update 3|Status Update 3]]
+
** [[OpenmokoFramework/Status Update 4|Status Update 4]]
+
** [http://wiki.openmoko.org/wiki/Fso-internal-om.pdf Openmoko Framework Presentation Taipei'08]
+
** [[OpenmokoFramework/Status Update 5|Status Update 5]]
+
** [[OpenmokoFramework/Status Update 6|Status Update 6]]
+
** [[OpenmokoFramework/Status Update 7|Status Update 7]]
+
* ''Question'': How do I work the Zhone (FSO demo app) UI?
+
* ''Answer'': [[FSO UI Tutorial]]
+
* ''Question'': What is the easiest way to build it?
+
* ''Answer'':  See [[Building_FSO]] for more information. The feeds are now at http://downloads.freesmartphone.org.
+
  
==Phases==
+
==History==
# Phase I is about getting the APIs right.
+
# Phase II is about getting the right APIs fast.
+
 
+
==Timeline (Phase I)==
+
 
* ''2009-10-31: [http://trac.freesmartphone.org/milestone/milestone6 milestone 6]''
 
* ''2009-10-31: [http://trac.freesmartphone.org/milestone/milestone6 milestone 6]''
 
* 2009-07-10: [[OpenmokoFramework/Status Update 7|milestone 5.5]] achieved
 
* 2009-07-10: [[OpenmokoFramework/Status Update 7|milestone 5.5]] achieved
Line 37: Line 16:
 
* 2008-06-01: [[OpenmokoFramework/Status Update 2|milestone 1]] achieved
 
* 2008-06-01: [[OpenmokoFramework/Status Update 2|milestone 1]] achieved
  
==Timeline (Phase II)==
+
The current progress is documented on the freesmartphone.org website
 
+
... to be defined ...
+
  
 
==Purposes==
 
==Purposes==
Line 62: Line 39:
 
* [http://adam.gomaa.us/blog/frameworks-exist-for-conceptual-integrity/ Frameworks exist for conceptual integrity]
 
* [http://adam.gomaa.us/blog/frameworks-exist-for-conceptual-integrity/ Frameworks exist for conceptual integrity]
 
* [http://humanized.com/weblog/2007/10/05/make_oss_humane/ Ten ways to make more humane open source software]
 
* [http://humanized.com/weblog/2007/10/05/make_oss_humane/ Ten ways to make more humane open source software]
* [http://www.freesmartphone.org FreeSmartPhone.org Wiki]
 
 
==What this is NOT about==
 
This initiative does not cover low level services such as
 
* Bootloader, Kernel, or System Init.
 
 
This initiative does not cover high level services such as
 
* X-Window-System, Window Manager, UI Toolkits,
 
* Application Launchers, Applications, or Fancy UIs.
 
  
 
==Architectural Overview==
 
==Architectural Overview==
Line 77: Line 45:
 
==Software Components==
 
==Software Components==
  
Please see the description at http://www.freesmartphone.org/index.php/Architecture
+
Please see the description at http://www.wiki.freesmartphone.org/index.php/Architecture
  
 
==Known API Consumers==
 
==Known API Consumers==
Line 90: Line 58:
 
* [[OpenmokoFramework/cli|cli-framework]] -- a python dbus command line interface.
 
* [[OpenmokoFramework/cli|cli-framework]] -- a python dbus command line interface.
 
* [[OpenmokoFramework/mickeyterm|mickeyterm]] -- a MUXer-aware minimal terminal emulator.
 
* [[OpenmokoFramework/mickeyterm|mickeyterm]] -- a MUXer-aware minimal terminal emulator.
 +
 
==Scripts==
 
==Scripts==
 
* Example [[OpenmokoFramework/scripts|Scripts]] that work over dbus
 
* Example [[OpenmokoFramework/scripts|Scripts]] that work over dbus
 +
 
==How to debug==
 
==How to debug==
 
# log in via ssh
 
# log in via ssh
Line 113: Line 83:
 
Once the APIs have been used by application programmers, we can start profiling and possibly reimplement some of the services with daemons written in Vala, ''if'' necessary. We might as well succeed in improving performance by using Pyrex/Cython/Ctypes to keep the benefits of Python.
 
Once the APIs have been used by application programmers, we can start profiling and possibly reimplement some of the services with daemons written in Vala, ''if'' necessary. We might as well succeed in improving performance by using Pyrex/Cython/Ctypes to keep the benefits of Python.
  
==Team & Roadmap==
+
==Team==
 
+
===Team===
+
  
 
* [[User:Mickey|Michael 'Mickey' Lauer]] (team leader) -- Openmoko freelancer, working in Frankfurt/Main, Germany.
 
* [[User:Mickey|Michael 'Mickey' Lauer]] (team leader) -- Openmoko freelancer, working in Frankfurt/Main, Germany.
Line 122: Line 90:
 
* [[User:StefanSchmidt|Stefan Schmidt]] -- Openmoko student, working part-time in Brunswick, Germany.
 
* [[User:StefanSchmidt|Stefan Schmidt]] -- Openmoko student, working part-time in Brunswick, Germany.
  
===Roadmap===
+
== Download and see also ==
 
+
The milestone releases are combined Openmoko Framework and [[Zhone]] releases. Remember: A feature that isn't visible, working, and tested in our framework testing application (Zhone) does ''not'' exist. Until Framework 1.0.0 (early 2009), we will not use any versioning in components. Afterwards, individual components may see individual releases.
+
 
+
'''Note: The milestones and tasks moved over to our [http://trac.freesmartphone.org issue tracker].'''
+
 
+
=== Download and see also ===
+
  
 
* [http://trac.freesmartphone.org/ Development tracker]
 
* [http://trac.freesmartphone.org/ Development tracker]
 
* [http://freesmartphone.org freesmartphone.org]
 
* [http://freesmartphone.org freesmartphone.org]
 
* [http://downloads.freesmartphone.org fso-testing and fso-unstable images and feeds] (maintained by Rod Whitby, MokoMakefile author)
 
* [http://downloads.freesmartphone.org fso-testing and fso-unstable images and feeds] (maintained by Rod Whitby, MokoMakefile author)
 +
* [http://linuxtogo.org/~mickeyl/fso-stable/ fso-stable images] - ready to install images for om-gta01 and om-gta-02
  
 
[[Category:Framework| ]]
 
[[Category:Framework| ]]
 
[[Category:FSO| ]]
 
[[Category:FSO| ]]

Latest revision as of 08:58, 25 August 2011

Key pages on:
FSO

(Other distributions)


FSO (freesmartphone.org) is a project to create a standardized service layer (middleware) for Linux-based phones. It was funded by Openmoko Inc. from January 2008 until March 2009. Focus is on stable highlevel services that you can access from whatever language or UI that supports dbus. The FSO middleware has been integrated into most of the current distributions including SHR, Om 2009, neovento, Debian and Gentoo. At the moment FSO only works on the Openmoko phones. There is work in progress for bringing it to the Palm Pre and several HTC devices. For more information see http://www.freesmartphone.org, http://docs.freesmartphone.org, and http://trac.freesmartphone.org.

Contents

[edit] Building FSO

See Building_FSO for more information. The feeds are now at http://downloads.freesmartphone.org.

[edit] History

The current progress is documented on the freesmartphone.org website

[edit] Purposes

  • Give people the infrastructure to create solid and exciting software products based on the Openmoko platform
  • Support competing UIs while collaborating on developing services
  • Encourage framework users (e.g. application developers) to also contribute to the framework

[edit] Requirements

  • Make it simple
  • Concentrate on core services
  • Be programming language agnostic
  • Be UI toolkit agnostic
  • Try to reuse existing technologies as much as possible, but not at the cost of a bad API

[edit] How to achieve that technically

  • Choose D-Bus as the collaboration line. Below dbus, we can work together. Above dbus, we can differentiate
  • Expose features through dbus APIs implemented by UI-agnostic and language-agnostic services (daemons)
  • Optimize for Openmoko devices, but support multiple architectures and purposes through plugin interfaces and suitable hardware abstraction mechanisms
  • By not being afraid of reinventing the wheel for a wheelbarrow if all the existing wheels are made for sports cars

[edit] Mandatory Reading

[edit] Architectural Overview

frontside

[edit] Software Components

Please see the description at http://www.wiki.freesmartphone.org/index.php/Architecture

[edit] Known API Consumers

[edit] Tools

  • mdbus -- a dbus introspection and interaction utility,
  • cli-framework -- a python dbus command line interface.
  • mickeyterm -- a MUXer-aware minimal terminal emulator.

[edit] Scripts

  • Example Scripts that work over dbus

[edit] How to debug

  1. log in via ssh
  2. killall python
  3. edit /etc/frameworkd.conf and add to the frameworkd section:
    1. log_level = DEBUG
    2. log_to = file
    3. log_destination = /somewhere/where/you/have/space (preferably SD or NFS, etc.)
  4. Read our documented frameworkd.conf configuration file to learn about the other options.
  5. relaunch frameworkd (/etc/init.d/frameworkd stop; /etc/init.d/frameworkd start)
  6. log in via ssh (yes, again)
  7. export DISPLAY=:0.0
  8. run your favourite client (zhone, cli-framework, ...)

Attach the logs to the tickets, please.

[edit] The role of Python

Where we write new code, we will use Python to implement the dbus services. The reason for that being the rapid prototyping nature of Python and the emphasis on the D-Bus APIs. Using Python, the turnaround times to experiment with APIs are incredibly faster than for using a compiled language such as C or C++.

Once the APIs have been used by application programmers, we can start profiling and possibly reimplement some of the services with daemons written in Vala, if necessary. We might as well succeed in improving performance by using Pyrex/Cython/Ctypes to keep the benefits of Python.

[edit] Team

[edit] Download and see also

Personal tools
Key pages on:
FSO

(Other distributions)


FSO (freesmartphone.org) is a project to create a standardized service layer (middleware) for Linux-based phones. It was funded by Openmoko Inc. from January 2008 until March 2009. Focus is on stable highlevel services that you can access from whatever language or UI that supports dbus. The FSO middleware has been integrated into most of the current distributions including SHR, Om 2009, neovento, Debian and Gentoo. For more information see http://www.freesmartphone.org, http://docs.freesmartphone.org, and http://trac.freesmartphone.org.

Q/A

Phases

  1. Phase I is about getting the APIs right.
  2. Phase II is about getting the right APIs fast.

Timeline (Phase I)

Timeline (Phase II)

... to be defined ...

Purposes

  • Give people the infrastructure to create solid and exciting software products based on the Openmoko platform
  • Support competing UIs while collaborating on developing services
  • Encourage framework users (e.g. application developers) to also contribute to the framework

Requirements

  • Make it simple
  • Concentrate on core services
  • Be programming language agnostic
  • Be UI toolkit agnostic
  • Try to reuse existing technologies as much as possible, but not at the cost of a bad API

How to achieve that technically

  • Choose D-Bus as the collaboration line. Below dbus, we can work together. Above dbus, we can differentiate
  • Expose features through dbus APIs implemented by UI-agnostic and language-agnostic services (daemons)
  • Optimize for Openmoko devices, but support multiple architectures and purposes through plugin interfaces and suitable hardware abstraction mechanisms
  • By not being afraid of reinventing the wheel for a wheelbarrow if all the existing wheels are made for sports cars

Mandatory Reading

What this is NOT about

This initiative does not cover low level services such as

  • Bootloader, Kernel, or System Init.

This initiative does not cover high level services such as

  • X-Window-System, Window Manager, UI Toolkits,
  • Application Launchers, Applications, or Fancy UIs.

Architectural Overview

frontside

Software Components

Please see the description at http://www.freesmartphone.org/index.php/Architecture

Known API Consumers

Tools

  • mdbus -- a dbus introspection and interaction utility,
  • cli-framework -- a python dbus command line interface.
  • mickeyterm -- a MUXer-aware minimal terminal emulator.

Scripts

  • Example Scripts that work over dbus

How to debug

  1. log in via ssh
  2. killall python
  3. edit /etc/frameworkd.conf and add to the frameworkd section:
    1. log_level = DEBUG
    2. log_to = file
    3. log_destination = /somewhere/where/you/have/space (preferably SD or NFS, etc.)
  4. Read our documented frameworkd.conf configuration file to learn about the other options.
  5. relaunch frameworkd (/etc/init.d/frameworkd stop; /etc/init.d/frameworkd start)
  6. log in via ssh (yes, again)
  7. export DISPLAY=:0.0
  8. run your favourite client (zhone, cli-framework, ...)

Attach the logs to the tickets, please.

The role of Python

Where we write new code, we will use Python to implement the dbus services. The reason for that being the rapid prototyping nature of Python and the emphasis on the D-Bus APIs. Using Python, the turnaround times to experiment with APIs are incredibly faster than for using a compiled language such as C or C++.

Once the APIs have been used by application programmers, we can start profiling and possibly reimplement some of the services with daemons written in Vala, if necessary. We might as well succeed in improving performance by using Pyrex/Cython/Ctypes to keep the benefits of Python.

Team & Roadmap

Team

Roadmap

The milestone releases are combined Openmoko Framework and Zhone releases. Remember: A feature that isn't visible, working, and tested in our framework testing application (Zhone) does not exist. Until Framework 1.0.0 (early 2009), we will not use any versioning in components. Afterwards, individual components may see individual releases.

Note: The milestones and tasks moved over to our issue tracker.

Download and see also