summaryrefslogtreecommitdiffstats
path: root/src/host/osmocon
AgeCommit message (Collapse)AuthorFilesLines
2013-06-19osmocon: Improve performance by handling several serial bytes at a timeAndreas Eversberg1-8/+19
2013-05-23host/osmocon: fix some printf format specifier in handle_write_dnloadBhaskar1-1/+1
From: Bhaskar <niceguy108@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-05-23osmoload: Fix fall-out from msgb_get() / msgb_pull() transitionBhaskar1-1/+1
Bugfix in Osmoload.c: Assigning correct value to data pointer in LOADER_MEM_READ. Wrong value was introduced in last update when msgb_get() was replaced by msgb_pull() which returns end of data instead of start of data.
2013-04-07osmocon: embed chainloaderSteve Markgraf1-44/+65
This allows to directly load highram-images on compal phones with the commandline-switch -c. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-05osmocon: make romloader output much less verboseSteve Markgraf1-20/+5
Most of the output was only for debug purposes anyway. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-09-08use msgb_pull() to get bytes from start of message, not msgb_get()Harald Welte1-26/+26
msgb_get() is for getting bytes from the end of a message, but it was broken in libosmocore for a long time (until it was fixed today).
2012-02-08host/osmocon: allow uploading of files > 64kb in romload-modeSteve Markgraf1-1/+1
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-12-14host/osmocon: correct parsing of -mAlexander Huemer1-2/+3
Written-by: Alexander Huemer <alexander.huemer@xx.vu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-06osmocom: Address warning about aliasingHolger Hans Peter Freyther1-1/+2
We alias the uint8_t buf[..] to a uint16_t* which is violating the aliases rule of C. Use an explicit memcpy to copy the first two byte of the buffer. GCC 4.6.2 (debian) is clever enough to use a normal load does not generate a memcpy call. osmocon.c: In function ‘un_tool_read’: osmocon.c:1239:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
2011-11-06misc: u_intX -> uintX in the host directoryHolger Hans Peter Freyther1-2/+2
Use C99 stdint.h for the inttypes.
2011-09-05host/osmocon: make auto-reload/reboot feature work in chainloading-modeSteve Markgraf1-2/+17
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2011-09-02host/osmocon: Make use of the libosmcore serial helpersSylvain Munaut1-72/+10
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-07-16osmocon: if we ignore a return value, we don't need to assign it to a variableHarald Welte1-3/+1
2011-07-16osmocon: get rid of some Smash warningsHarald Welte1-6/+6
2011-05-15src: use namespace prefix osmo_* for crc16 functionsPablo Neira Ayuso1-4/+4
Summary of changes: s/crc16_table/osmo_crc16_table/g s/crc16/osmo_crc16/g s/crc16_byte/osmo_crc16_byte/g
2011-05-15src: use namespace prefix osmo_* for utilsPablo Neira Ayuso2-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
2011-05-15src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso2-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
2011-05-15src: use namespace prefix osmo_timer*Pablo Neira Ayuso2-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
2011-04-26src: use new libosmogsm and include/osmocom/[gsm|core] path to headersPablo Neira Ayuso3-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>
2010-11-17osmocon: make beacon interval configurable via cmdlineAlex Badea1-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>
2010-10-03osmoload.c: Cast to uint8_t from char* to fix a compiler warningHolger Hans Peter Freyther1-2/+2
2010-10-03osmocom.c: rc is not assigned and contains garbage, return 0.Holger Hans Peter Freyther1-2/+2
2010-10-03osmocon.c: Use C99 inttypes instead of u_intX_t.Holger Hans Peter Freyther1-5/+5
2010-09-14misc: update .gitignore filesSylvain Munaut1-2/+28
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-20[osmocon] add a chainloading mode for the compal ramloaderSteve Markgraf1-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>
2010-07-20loader: meaner. now supports address ranges for all relevant flash ↵Ingo Albrecht1-116/+274
operations. reports better.
2010-07-20osmoload: better messageIngo Albrecht1-1/+1
2010-07-20osmocon: new debug option, allows selective dumping of rx and/or tx.Ingo Albrecht1-24/+49
2010-07-20osmoload: fixed programming abortIngo Albrecht1-1/+1
2010-07-20osmoload: flash programmingIngo Albrecht1-6/+137
2010-07-20osmoload: allow running without firmware imageIngo Albrecht1-12/+13
2010-07-20loader: flash locking commands, various flash reworkIngo Albrecht1-9/+173
2010-07-20loader: new state handling for memdump, added missing crc handling to memputIngo Albrecht1-22/+34
2010-07-20loader: incomplete crc support and query timeoutsIngo Albrecht1-26/+64
2010-07-20osmoload: fix some printfs.Ingo Albrecht1-2/+2
2010-07-20loader: reply dump mode. additional information in init reply.Ingo Albrecht1-5/+14
2010-07-20osmoload: command reorg, state machine reorg, query timeoutsIngo Albrecht1-78/+172
2010-07-20osmoload: Added a jump command.Ingo Albrecht1-0/+30
2010-07-20osmoload: Print something when loader starts. Fix handling of unknown replies.Ingo Albrecht1-1/+4
2010-07-20osmoload: memload commandIngo Albrecht1-4/+102
2010-07-20osmoload: memdump commandIngo Albrecht1-37/+203
2010-07-20Add a copyright message to osmoload.Ingo Albrecht1-0/+21
2010-07-20Loader with memory read/write and various lifecycle operations.Ingo Albrecht1-7/+101
2010-07-15osmocon.c: enable hdlc console for mtk romloader targetsSteve Markgraf1-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>
2010-05-19osmocon: extend hexdump to show all printable charactersJan Luebbe1-3/+9
2010-05-19osmocon: change mtk load address for MT6223 romloaderSteve Markgraf1-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>
2010-05-17osmocon: Add experimental support for the MTK romloaderSteve Markgraf1-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>
2010-05-17osmocon: use a global load addressSteve Markgraf1-9/+11
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-17osmocon: cosmetic cleanupSteve Markgraf1-19/+22
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2010-05-17osmocon: use osmocore timers, minor fixesSteve Markgraf1-42/+15
Signed-off-by: Steve Markgraf <steve@steve-m.de>