Project

General

Profile

OpenMoko » History » Version 6

gnutoo, 02/19/2016 10:48 PM
openmoko: update to shr-core IP address

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