13
A Web Operating System for GTA02 Rezart Muco freelancer open source passionate

Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Embed Size (px)

DESCRIPTION

I developed a small linux operating system for openmoko GTA02 devices, the system is written using QT framework, i would like to speak about advantages and disadvantages of using this opensource framework to develop applications, or entire "operating systems"

Citation preview

Page 1: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

A Web Operating System for GTA02

Rezart Muco freelancer

open source passionate

Page 2: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

What is OpenMoko

Openmoko™ - Open. Mobile. Free.

Openmoko™ is a project dedicated to delivering mobile phones with an open source software stack. Openmoko was formerly

associated with Openmoko Inc, but is nowadays simply a gathering of people with the shared goal of "Free The Phone".

Distributors are currently selling updated versions of the Openmoko Inc's phone released in 2008.

Page 3: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

The phone

Cpu - 400 mhz, ARMv4 !!!Ram - 128 MB SDRAM totalMemory - 256MB NAND Flash

WiFi 802.11 b/g transceiver, Accelerometer, A-GPS

Its a very old phone !!

Page 4: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

The phone

Its seems that no decent distribution runs decently on this device.

So no Android. Linux runs well, but x11 was horrible!!!

I lost my

Page 5: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Hacking with the phone

Let's grab the sources and Crosscompile :-)

●Linux Kernel●FreeSmartphone.org●Qt Framework

Page 6: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Hacking with the phone

After 2 years hacking with the openmoko I came up with this

Page 7: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Hacking with the phone

Using HTML and Javascript to make the UI of the system

<html> <head>

<script> ….... </script>

</head></html>

Page 8: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Hacking with the phone

A quick view of the system browser

<html> <head>

<script> device.vibro(1000,70);

….... </script>

</head></html>

The system browser , its a very simple Webkit Browser, enriched with special javascript objects.Those objects are able to control the phone

GSM DEVICE

Call to Sysfs to make the phone vibrate

Page 9: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Hacking with the phone

Example application for scanning wifi networks

<ul id="list"> <li> Scanning for Wifi </li></ul><script>

function scanfornets(){var nets=device.shell_exec("iwlist eth0 scan | awk '/ESSID/ {print $1 $2 } ' ","");var p=nets.split('\n');for(var i=0;i<p.length;i++){ var v=p[i].split(":"); if(v[1]!=undefined){ icon('wifi_'+i,"Net : ",v[1],"list","systemjs/dstatus.html"); } }}

scanfornets();icon('back',"Back",'',"list","systemjs/dstatus.html"); </script>

Page 10: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Hacking with the phone

Advantages of using this approach

●There are no 'Native Applications'

●Can use the power of css and jquery, to make a beatifull UI for my phone

●IF you dont like, you can write yourself

your OS. That's a free phonefree phone

Page 11: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Show phone

Page 12: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)

Questions

Page 13: Rezart muco - A Web System for OpenMoko GTA02 (OSCAL2014)