Osmocon » History » Version 11
Anonymous, 02/19/2016 10:49 PM
Changed default path so it works on master.
1 | 2 | laforge | [[PageOutline]] |
---|---|---|---|
2 | 6 | laforge | = osmocon = |
3 | 1 | laforge | |
4 | 8 | laforge | Osmocon is a console tool for our baseband implementation. |
5 | |||
6 | It is used to download a firmware or bootloader into the phone over the serial interface, which is currently implemented for the CompalE88 and the CompalE99. |
||
7 | |||
8 | After uploading a firmware, it turns into an HDLC mux/demux, allowing multichannel communication with the device. |
||
9 | |||
10 | The phones console is on one such channel and will be redirected to the terminal on which osmocom runs. |
||
11 | |||
12 | Several other HDLC channels are accessible by means of the following unix domain sockets: |
||
13 | * /tmp/osmocom_l2 for the [wiki:L1A_L23_Interface] |
||
14 | * /tmp/osmocon_loader for the [wiki:Bootloader] |
||
15 | |||
16 | 9 | laforge | == General Usage == |
17 | 1 | laforge | |
18 | * Connect your Compal phone to a serial port of your PC, using a [wiki:CalypsoSerialCable] (3.3V RS232 on 2.5mm headphone jack) |
||
19 | 9 | laforge | * Determine what you want to run (see [wiki:Applications]) |
20 | * Start the console like this, filling in your phone type and binary path: |
||
21 | 1 | laforge | {{{ |
22 | 11 | laforge | $ ./osmocon -p /dev/ttyUSB0 -m c123xor ../../target/firmware/board/compal_e88/loader.bin |
23 | 1 | laforge | }}} |
24 | * Push the power-on button of your phone (short push, not like a regular phone boot!) |
||
25 | 9 | laforge | * Observe output resembling the following |
26 | 1 | laforge | {{{ |
27 | 9 | laforge | got 2 bytes from modem, data looks like: 2f c8 |
28 | got 5 bytes from modem, data looks like: 1b f6 02 00 41 |
||
29 | 1 | laforge | got 1 bytes from modem, data looks like: 01 |
30 | got 1 bytes from modem, data looks like: 40 |
||
31 | Received PROMPT1 from phone, responding with CMD |
||
32 | 9 | laforge | read_file(../../target/firmware/board/compal_e88/loader.ramload.bin): file_size=13404, hdr_len=4, dnload_len=13411 |
33 | 1 | laforge | got 1 bytes from modem, data looks like: 1b |
34 | got 1 bytes from modem, data looks like: f6 |
||
35 | got 1 bytes from modem, data looks like: 02 |
||
36 | got 1 bytes from modem, data looks like: 00 |
||
37 | got 1 bytes from modem, data looks like: 41 |
||
38 | got 1 bytes from modem, data looks like: 02 |
||
39 | got 1 bytes from modem, data looks like: 43 |
||
40 | Received PROMPT2 from phone, starting download |
||
41 | 9 | laforge | handle_write(): 1023 bytes (1023/13411) |
42 | handle_write(): 768 bytes (1791/13411) |
||
43 | handle_write(): 768 bytes (2559/13411) |
||
44 | handle_write(): 768 bytes (3327/13411) |
||
45 | handle_write(): 768 bytes (4095/13411) |
||
46 | handle_write(): 768 bytes (4863/13411) |
||
47 | handle_write(): 768 bytes (5631/13411) |
||
48 | handle_write(): 768 bytes (6399/13411) |
||
49 | handle_write(): 768 bytes (7167/13411) |
||
50 | handle_write(): 768 bytes (7935/13411) |
||
51 | handle_write(): 768 bytes (8703/13411) |
||
52 | handle_write(): 768 bytes (9471/13411) |
||
53 | handle_write(): 768 bytes (10239/13411) |
||
54 | handle_write(): 768 bytes (11007/13411) |
||
55 | handle_write(): 768 bytes (11775/13411) |
||
56 | handle_write(): 768 bytes (12543/13411) |
||
57 | handle_write(): 768 bytes (13311/13411) |
||
58 | handle_write(): 100 bytes (13411/13411) |
||
59 | handle_write(): finished |
||
60 | 1 | laforge | got 1 bytes from modem, data looks like: 1b |
61 | got 1 bytes from modem, data looks like: f6 |
||
62 | got 1 bytes from modem, data looks like: 02 |
||
63 | got 1 bytes from modem, data looks like: 00 |
||
64 | got 1 bytes from modem, data looks like: 41 |
||
65 | got 1 bytes from modem, data looks like: 03 |
||
66 | got 1 bytes from modem, data looks like: 42 |
||
67 | Received DOWNLOAD ACK from phone, your code is running now! |
||
68 | 9 | laforge | |
69 | |||
70 | OSMOCOM Calypso loader (revision f45c5ee-modified) |
||
71 | 1 | laforge | ====================================================================== |
72 | 9 | laforge | Running on compal_e88 in environment ramload |
73 | |||
74 | 1 | laforge | }}} |
75 | 10 | laforge | * You can now interact with the phone through [wiki:layer23] and [wiki:osmoload], depending on the firmware you loaded. |
76 | |||
77 | 1 | laforge | |
78 | == Known Problems == |
||
79 | 4 | roh | |
80 | 9 | laforge | In some situations (like, apparently, using FTDI serial cables), you might need the {{{-m c123}}} mode for your [wiki:MotorolaC123] instead of the normal {{{-m c123xor}}}. |