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