summaryrefslogtreecommitdiffstats
path: root/src/host/osmocon
Commit message (Collapse)AuthorAgeFilesLines
* osmocon: if we ignore a return value, we don't need to assign it to a variableHarald Welte2011-07-161-3/+1Star
|
* osmocon: get rid of some Smash warningsHarald Welte2011-07-161-6/+6
|
* src: use namespace prefix osmo_* for crc16 functionsPablo Neira Ayuso2011-05-151-4/+4
| | | | | | | | Summary of changes: s/crc16_table/osmo_crc16_table/g s/crc16/osmo_crc16/g s/crc16_byte/osmo_crc16_byte/g
* src: use namespace prefix osmo_* for utilsPablo Neira Ayuso2011-05-152-9/+9
| | | | | | | | | | | | Summary of changes: s/bcd2char/osmo_bcd2char/g s/char2bcd/osmo_char2bcd/g s/hexparse/osmo_hexparse/g s/hexdump/osmo_hexdump/g s/hexdump_nospc/osmo_hexdump_nospc/g s/ubit_dump/osmo_ubit_dump/g s/static_assert/osmo_static_assert/g
* src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso2011-05-152-17/+17
| | | | | | | | | Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
* src: use namespace prefix osmo_timer*Pablo Neira Ayuso2011-05-152-13/+13
| | | | | | | | | | | | | | Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
* src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso2011-04-263-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes include paths to get osmocom-bb working with the current libosmocore tree. Among all these renames, you can notice several tweaks that I added on purpose, and that require some explanation, they are: * hexdump() in osmocon.c and osmoload.c has been renamed to avoid clashing with hexdump() defined in libosmocore. * gsmmap now depends on libosmogsm. Actually I had to cleanup Makefile.am because I was experiencing weird linking problems, probably due to a bug in the autotools. With the change included in this patch, I got it compiled and linked here correctly. This patch has been tested with the phone Motorola C123 and the following images files: * firmware/board/compal_e88/hello_world.compalram.bin * firmware/board/compal_e88/layer1.compalram.bin Using the osmocon, bcch_scan and mobile tools. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
* osmocon: make beacon interval configurable via cmdlineAlex Badea2010-11-171-10/+16
| | | | | | | | | | | | Beacons with the default 50 mS interval are too far apart to be picked up by the OpenMoko gta0x Calypso chip. Make them configurable via a -i commandline argument. As recommended in the OpenMoko wiki[1], an interval of 13 mS works. [1] http://wiki.openmoko.org/wiki/GSM/Flashing (-od fluid argument) Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
* osmoload.c: Cast to uint8_t from char* to fix a compiler warningHolger Hans Peter Freyther2010-10-021-2/+2
|
* osmocom.c: rc is not assigned and contains garbage, return 0.Holger Hans Peter Freyther2010-10-021-2/+2
|
* osmocon.c: Use C99 inttypes instead of u_intX_t.Holger Hans Peter Freyther2010-10-021-5/+5
|
* misc: update .gitignore filesSylvain Munaut2010-09-141-2/+28
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* [osmocon] add a chainloading mode for the compal ramloaderSteve Markgraf2010-07-201-6/+27
| | | | | | | | | The idea is to load a small application to the phone, which activates and executes the Calypso romloader. The payload itself then is loaded with the romloader, bypassing the magic and the resulting size limit on the C139/C140 and J100i. Signed-off-by: Steve Markgraf <steve@steve-m.de>
* loader: meaner. now supports address ranges for all relevant flash ↵Ingo Albrecht2010-07-201-116/+274
| | | | operations. reports better.
* osmoload: better messageIngo Albrecht2010-07-201-1/+1
|
* osmocon: new debug option, allows selective dumping of rx and/or tx.Ingo Albrecht2010-07-201-24/+49
|
* osmoload: fixed programming abortIngo Albrecht2010-07-201-1/+1
|
* osmoload: flash programmingIngo Albrecht2010-07-201-6/+137
|
* osmoload: allow running without firmware imageIngo Albrecht2010-07-201-12/+13
|
* loader: flash locking commands, various flash reworkIngo Albrecht2010-07-201-9/+173
|
* loader: new state handling for memdump, added missing crc handling to memputIngo Albrecht2010-07-201-22/+34
|
* loader: incomplete crc support and query timeoutsIngo Albrecht2010-07-201-26/+64
|
* osmoload: fix some printfs.Ingo Albrecht2010-07-201-2/+2
|
* loader: reply dump mode. additional information in init reply.Ingo Albrecht2010-07-201-5/+14
|
* osmoload: command reorg, state machine reorg, query timeoutsIngo Albrecht2010-07-201-78/+172
|
* osmoload: Added a jump command.Ingo Albrecht2010-07-201-0/+30
|
* osmoload: Print something when loader starts. Fix handling of unknown replies.Ingo Albrecht2010-07-201-1/+4
|
* osmoload: memload commandIngo Albrecht2010-07-201-4/+102
|
* osmoload: memdump commandIngo Albrecht2010-07-201-37/+203
|
* Add a copyright message to osmoload.Ingo Albrecht2010-07-201-0/+21
|
* Loader with memory read/write and various lifecycle operations.Ingo Albrecht2010-07-201-7/+101
|
* osmocon.c: enable hdlc console for mtk romloader targetsSteve Markgraf2010-07-151-5/+5
| | | | | | Since the mt622x uart driver is now in a working state, we can actually use the sercomm console. Signed-off-by: Steve Markgraf <steve@steve-m.de>
* osmocon: extend hexdump to show all printable charactersJan Luebbe2010-05-191-3/+9
|
* osmocon: change mtk load address for MT6223 romloaderSteve Markgraf2010-05-191-1/+1
| | | | | | | The romloader of the MT6223 uses more of the internal SRAM than the loader of the MT6227, thus we need to change the load address. Signed-off-by: Steve Markgraf <steve@steve-m.de>
* osmocon: Add experimental support for the MTK romloaderSteve Markgraf2010-05-171-10/+291
| | | | | | | | Currently the switch to a higher baudrate is missing, which has to be done by a direct UART autobaud register write, plus sending an autobaud sample. As a result, the maximum download speed is currently 19.200 Baud. Signed-off-by: Steve Markgraf <steve@steve-m.de>
* osmocon: use a global load addressSteve Markgraf2010-05-171-9/+11
| | | Signed-off-by: Steve Markgraf <steve@steve-m.de>
* osmocon: cosmetic cleanupSteve Markgraf2010-05-171-19/+22
| | | Signed-off-by: Steve Markgraf <steve@steve-m.de>
* osmocon: use osmocore timers, minor fixesSteve Markgraf2010-05-171-42/+15Star
| | | Signed-off-by: Steve Markgraf <steve@steve-m.de>
* osmocon.c: Fix serial_set_baudrate functionDaniel Willmann2010-05-171-0/+5
| | | | | We have to call tcgetattr prior to changing the baudrate and writing the struct again.
* osmocom: Fix serial init (CSIZE field)Sylvain Munaut2010-04-211-1/+1
| | | | | | | Since we clear the whole CSIZE, we need to set CS8 _after_ the clearing or it'll just get erased ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* osmocon: fix c140xor, fix compiler warnings due to unhandled cases, cleanupSteve Markgraf2010-04-071-15/+20
| | | | Signed-off-by: Steve Markgraf <steve@steve-m.de>
* osmocon: use git-version-gen and PACKAGE_VERSION for 'osmocon -v'Harald Welte2010-04-065-6/+165
|
* osmocon: cosmetic cleanup (mostly 80character line length)Harald Welte2010-04-061-80/+128
|
* osmocon: * introduce support for "non-secure" romloader inside ↵Steve Markgraf2010-04-061-31/+464
| | | | | | | | | | | Calypso/Calypso lite, "-m romload", tested on the BenQ Siemens A38 * automatically add the required 1003 magic for the C139, C140 and J100i "-m c140/c140xor", intended for loading loader.ramload.bin, and loading the application itself with "osmoload memload" on these targets * replace null-terminated string "ftmtool" with uint8_t (length was 8, so the ftmtool message was only recognized when the byte following to our allocated buffer memory was 0x00) * fix minor compiler warnings * add copyright message Signed-off-by: Steve Markgraf <steve@steve-m.de>
* osmocon: use serial port initialization code from openbsc/src/rs232.cHarald Welte2010-03-301-43/+38Star
| | | | | | Both have the same goal: put the RS232 port into a completely raw, binary-transparent mode. So there's no point in keeping two completely different functions for this.
* osmocon: calcluate unix domain socket length in a portable wayHarald Welte2010-03-301-2/+15
| | | | | | Let's hope this concept (as seen in Xorg sources) is portable enough to calculate the length of the sockaddr_un properly on all architectures.
* misc compiler warning fixesHarald Welte2010-03-222-4/+4
| | | | | | | | * added missing param in call to gsm48_rx_bcch * added 'extern' to declarations of rsl_rlm_cause_strs and target_board * added several 'const' for strings * removed useless 'bufptr,' from hexdump (From: itsme <itsme@xs4all.nl>)
* Two more small patchesErik Ekman2010-03-191-2/+2
| | | | | | | | | | | | | | | | Hi Found a spelling error while testing my C139, and also fixed the warning discussed in my earlier patch. /Erik From 9d8a7454367f3d095e6d4c046e84a22126ff887a Mon Sep 17 00:00:00 2001 From: Erik Ekman <yarrick@kryo.se> Date: Wed, 17 Mar 2010 22:48:57 +0100 Subject: [PATCH 1/2] Remove operand which has no effect Signed-off-by: Ingo Albrecht <prom@berlin.ccc.de>
* Handle EAGAIN. Print errors properly.Ingo Albrecht2010-03-071-2/+8
|
* Fixed transmit path of osmocon in various ways.Ingo Albrecht2010-03-071-16/+28
|