Project

General

Profile

Osmoload » History » Version 6

Anonymous, 02/19/2016 10:49 PM

1 1
2 6
h1. osmoload
3 1
4 6
5
*NOTE: This is incomplete and experimental.*
6
7 1
This command line tool is used to write, dump and examine flash memory of supported phones.
8
9
Currently, it can be used to dump memory and semiautomatically write it.
10
11 6
In order to use it you have to first put appropriate loader into baseband chip using [[osmocon]].
12
In case of Calypso on [[OpenMoko]] it is loader.highram.bin
13 4
14 1
It can also do various things that are handy for firmware development, including
15
interactive memory examination and bootloader capabilities for various situations.
16
17 6
<pre>
18 1
user@host:~/osmocom-bb/src/host/osmocon$ ./osmoload help
19
Usage: ./osmoload [ -v | -h ] [ -d tr ] [ -m {c123,c155} ] [ -l /tmp/osmocom_loader ] COMMAND ...
20 3
21
  Memory commands:
22
    memget <hex-address> <hex-length>        - Peek at memory
23
    memput <hex-address> <hex-bytes>         - Poke at memory
24
    memdump <hex-address> <hex-length> <file>- Dump memory to file
25
    memload <hex-address> <file>             - Load file into memory
26
27
  Flash commands:
28
    finfo                             - Information about flash chips
29
    funlock <address> <length>        - Unlock flash block
30
    flock <address> <length>          - Lock flash block
31
    flockdown <address> <length>      - Lock down flash block
32
    fgetlock <address> <length>       - Get locking state of block
33
    ferase <address> <length>         - Erase flash range
34
    fprogram <chip> <address> <file>  - Program file into flash
35
36
  Execution commands:
37
    jump <hex-address>                 - Jump to address
38
    jumpflash                          - Jump to flash loader
39
    jumprom                            - Jump to rom loader
40
41
  Device lifecycle:
42 1
    ping                               - Ping the loader
43 3
    reset                              - Reset device
44
    off                                - Power off device
45
46
  Debug:
47
    dump                               - Dump loader traffic to console
48 6
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)