Project

General

Profile

OpenMoko » History » Version 3

daves, 02/19/2016 10:48 PM
minor grammar fixes

1 1 plotr
Open source phone project: see http://wiki.openmoko.org/wiki/Main_Page for details.
2 1 plotr
3 2 daves
Osmocom can be run directly on the phone. The communication flow is:
4 1 plotr
5 2 daves
[[Image(osmocon-on-OpenMoko.png)]]
6 2 daves
7 2 daves
For details see [wiki:osmocon] and [wiki:CalypsoRomloader]. IP networking between the host and the phone must be set up.
8 2 daves
9 2 daves
== On the phone: ==
10 2 daves
11 2 daves
 * disable ogsmd, ousaged, ophoned via /etc/frameworkd.conf
12 3 daves
 * prevent fsogsmd from accessing modem by commenting following variables in /etc/freesmartphone/conf/GTA02/fsogsmd.conf:
13 2 daves
   * device_port
14 2 daves
   * modem_access
15 3 daves
 * re-check that nothing uses the modem: fuser /dev/ttySAC0
16 2 daves
 * open three SSH terminals to the phone
17 2 daves
 * transfer layer1.highram.bin and osmocon binary to the phone
18 2 daves
 * in the first terminal, make L2 socket externally available via socat:
19 1 plotr
{{{
20 2 daves
socat -v -x tcp-l:16661,reuseaddr,fork unix-connect:/tmp/osmocom_l2
21 2 daves
}}}
22 2 daves
 * in the second terminal, run osmocon:
23 2 daves
{{{
24 1 plotr
./osmocon -i 13 -m romload -p /dev/ttySAC0 layer1.highram.bin
25 1 plotr
}}}
26 2 daves
 * in the third terminal, turn power off/on:
27 1 plotr
{{{
28 2 daves
echo 0 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on && echo 1 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on
29 1 plotr
}}}
30 1 plotr
31 2 daves
== on the host machine ==
32 2 daves
33 2 daves
 * Connect the socket:
34 1 plotr
{{{
35 1 plotr
socat -v -x unix-l:/var/tmp/l2,fork  tcp:192.168.0.202:16661,fork
36 1 plotr
}}}
37 1 plotr
Note: 192.168.0.202 is default address of the device when you use shr linux distribution.
38 1 plotr
39 2 daves
After this you can run various tools on host machine, for example:
40 1 plotr
{{{
41 1 plotr
./cell_log -s /var/tmp/l2 -l /var/tmp/osmocom.log
42 1 plotr
}}}
Add picture from clipboard (Maximum size: 48.8 MB)