Project

General

Profile

Osmocon » History » Version 7

Anonymous, 02/19/2016 10:49 PM
Name changed from compal_dnload to osmocon

1 2 laforge
[[PageOutline]]
2 6 laforge
= osmocon =
3 1 laforge
4 6 laforge
Using osmocon on your (Linux) PC, you can
5
 * download arbitrary object code (such as the osomcomBB apps) into your Compal-made Calypso-based phone,
6
   using the protocol described at [wiki:CompalRamloader]
7
 * establish HDLC multiplexed communications channels with the software on the phone
8
  * /tmp/osmocom_l2 is the socket for the [wiki:L1A_L23_Interface]
9
  * the terminal itself acts as sercomm console to read text messages generated by the phone
10 1 laforge
11
== Usage ==
12
13
 * Connect your Compal phone to a serial port of your PC, using a [wiki:CalypsoSerialCable] (3.3V RS232 on 2.5mm headphone jack)
14 6 laforge
 * Start the osmocon program like this
15 1 laforge
{{{
16 6 laforge
$ ./osmocon -m c123xor -p /dev/ttyUSB0 /path/to/your/object_code.bin
17 1 laforge
}}}
18
 * Push the power-on button of your phone (short push, not like a regular phone boot!)
19
 * Observe the following output:
20
{{{
21
got 1 bytes from modem, data looks like: 04 
22
got 1 bytes from modem, data looks like: 81 
23
got 1 bytes from modem, data looks like: 1b 
24
got 1 bytes from modem, data looks like: f6 
25
got 1 bytes from modem, data looks like: 02 
26
got 1 bytes from modem, data looks like: 00 
27
got 1 bytes from modem, data looks like: 41 
28
got 1 bytes from modem, data looks like: 01 
29
got 1 bytes from modem, data looks like: 40 
30
Received PROMPT1 from phone, responding with CMD
31
got 1 bytes from modem, data looks like: 1b 
32
got 1 bytes from modem, data looks like: f6 
33
got 1 bytes from modem, data looks like: 02 
34
got 1 bytes from modem, data looks like: 00 
35
got 1 bytes from modem, data looks like: 41 
36
got 1 bytes from modem, data looks like: 02 
37
got 1 bytes from modem, data looks like: 43 
38
Received PROMPT2 from phone, starting download
39
got 1 bytes from modem, data looks like: 1b 
40
got 1 bytes from modem, data looks like: f6 
41
got 1 bytes from modem, data looks like: 02 
42
got 1 bytes from modem, data looks like: 00 
43
got 1 bytes from modem, data looks like: 41 
44
got 1 bytes from modem, data looks like: 03 
45
got 1 bytes from modem, data looks like: 42 
46
Received DOWNLOAD ACK from phone, your code is running now!
47
}}}
48
 * Observe further output of the serial port generated by the code you have downloaded
49
{{{
50
Hello World from C program code
51
======================================================================
52
Device ID code: B4FB
53
Device Version code: 0000
54
ARM ID code: FFF3
55
cDSP ID code: 0128
56
Die ID code: 6397191EFA039BE7
57
======================================================================
58
REG_DPLL=2002
59
CNTL_ARM_CLK=F081
60
CNTL_CLK=FF51
61
CNTL_RST=FFF7
62
CNTL_ARM_DIV=FFF9
63
======================================================================
64
REG_DPLL=2193
65
CNTL_ARM_CLK=F081
66
CNTL_CLK=FF51
67
CNTL_RST=FFF7
68
CNTL_ARM_DIV=FFF9
69
======================================================================
70
Releasing DSP from Reset
71
Loading initial DSP bootcode
72
Releasing DSP from Reset
73
Setting some api_ndb values
74
Setting API NDB parameters
75
DSP Download Status: 0001
76
DSP API Version: 0DC4 6308
77
Finishing download phase
78
DSP Download Status: 0002
79
DSP API Version: 3606 0000
80
}}}
81
82
== Known Problems ==
83 4 roh
84 5 laforge
For some USB-Serial converters (most notably FTDI based cables), you might need the {{{-m c123}}} mode, not the {{{-m c123xor}}} mode.
Add picture from clipboard (Maximum size: 48.8 MB)