Project

General

Profile

OpenMoko » History » Version 5

gnutoo, 02/19/2016 10:48 PM
openmoko: make it more clear that it's an alternate solution

1 1 plotr
Open source phone project: see http://wiki.openmoko.org/wiki/Main_Page for details.
2 1 plotr
3 4 gnutoo
== How to load osmocom-bb from the phone Application CPU: ==
4 2 daves
Osmocom can be run directly on the phone. The communication flow is:
5 1 plotr
6 2 daves
[[Image(osmocon-on-OpenMoko.png)]]
7 2 daves
8 2 daves
For details see [wiki:osmocon] and [wiki:CalypsoRomloader]. IP networking between the host and the phone must be set up.
9 1 plotr
10 4 gnutoo
=== On the phone: ===
11 2 daves
12 2 daves
 * disable ogsmd, ousaged, ophoned via /etc/frameworkd.conf
13 3 daves
 * prevent fsogsmd from accessing modem by commenting following variables in /etc/freesmartphone/conf/GTA02/fsogsmd.conf:
14 2 daves
   * device_port
15 2 daves
   * modem_access
16 3 daves
 * re-check that nothing uses the modem: fuser /dev/ttySAC0
17 2 daves
 * open three SSH terminals to the phone
18 2 daves
 * transfer layer1.highram.bin and osmocon binary to the phone
19 2 daves
 * in the first terminal, make L2 socket externally available via socat:
20 1 plotr
{{{
21 2 daves
socat -v -x tcp-l:16661,reuseaddr,fork unix-connect:/tmp/osmocom_l2
22 2 daves
}}}
23 2 daves
 * in the second terminal, run osmocon:
24 2 daves
{{{
25 1 plotr
./osmocon -i 13 -m romload -p /dev/ttySAC0 layer1.highram.bin
26 1 plotr
}}}
27 2 daves
 * in the third terminal, turn power off/on:
28 1 plotr
{{{
29 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
30 1 plotr
}}}
31 1 plotr
32 4 gnutoo
=== on the host machine ===
33 2 daves
34 2 daves
 * Connect the socket:
35 1 plotr
{{{
36 1 plotr
socat -v -x unix-l:/var/tmp/l2,fork  tcp:192.168.0.202:16661,fork
37 1 plotr
}}}
38 1 plotr
Note: 192.168.0.202 is default address of the device when you use shr linux distribution.
39 1 plotr
40 2 daves
After this you can run various tools on host machine, for example:
41 1 plotr
{{{
42 1 plotr
./cell_log -s /var/tmp/l2 -l /var/tmp/osmocom.log
43 1 plotr
}}}
44 4 gnutoo
45 4 gnutoo
== How to load osmocom-bb from a computer ==
46 5 gnutoo
Alternatively you can also load a firmware on the openmoko modem from your computer, without needing to cross compile or install something on the phone CPU running GNU/Linux.
47 4 gnutoo
48 4 gnutoo
 * like with the previous explanations be sure that nothing access the modem.
49 4 gnutoo
 * Then run the following command on the phone:
50 4 gnutoo
{{{
51 4 gnutoo
echo 1 > /sys/bus/platform/devices/gta02-pm-gsm.0/download
52 4 gnutoo
}}}
53 4 gnutoo
That will connect the second serial port of the modem(named IRDA) to the audio jack.
54 4 gnutoo
 * Then connect a 3.3V serial cable(a normal serial port will probably kill your modem because of the higher voltage) to the audio jack(for the pins you can refer to the schematics of the phone that are freely available)
55 4 gnutoo
Then on a computer do(replace /dev/ttyUSB0 by your computer serial port):
56 4 gnutoo
{{{
57 4 gnutoo
./osmocon -i 13 -m romload -p /dev/ttyUSB0 layer1.highram.bin
58 4 gnutoo
}}}
59 4 gnutoo
And back on the phone do:
60 4 gnutoo
{{{
61 4 gnutoo
echo 0 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on && echo 1 >/sys/bus/platform/devices/gta02-pm-gsm.0/power_on
62 4 gnutoo
}}}
63 4 gnutoo
That will load the firmware, and you will be able to interact with it from your computer like if it was a regular supported(by osmocom-bb) feature phone.
Add picture from clipboard (Maximum size: 48.8 MB)