Harald Welte
849d20e29e
Add firmware/TODO.txt that was not committed so far
2018-05-11 15:49:31 +02:00
Harald Welte
af616ec4e2
CCID driver: Use USBD_GetDriver() instead of non-initialized state variable
2017-11-29 00:45:23 +01:00
Harald Welte
6051e126da
CCID: re-enable control request handler for CCID class requests
2017-11-29 00:26:34 +01:00
Harald Welte
7f62c24532
USB: Handle DFU requests by USBD.c to keep application callback
...
e.g. in CCID mode we need to treat class-specific control requests,
and we want to do this in a way how the CCID code doesn't need to
understand about DFU.
2017-11-29 00:24:28 +01:00
Harald Welte
75cf93e04d
rename ccid.c to mode_ccid.c to align with mode_cardemu.c
2017-11-28 23:00:40 +01:00
Harald Welte
2afd57f00a
cardem: Don't dispatch UART IRQs to possible NULL pointers
...
A given configuration might not expose callback functions for
the UART interrupts.
2017-11-28 22:52:56 +01:00
Harald Welte
0633b25974
iso7816_4: Re-trigger watchdog while waiting for character
2017-11-28 22:47:09 +01:00
Harald Welte
c1e2254854
simtrace: Boot into DFU when BOOTLOADER button is pressed
...
This recovers the old functionality of the SAM7 based OpenPCD firmware.
2017-11-28 22:29:53 +01:00
Harald Welte
27f5fc681c
DFU: Move "Override DFU" (force DFU) code to board-specific section
...
Each board can define its own conditions on which the controller should
boot into DFU mode rather than normal application mode. Let's move the
"UART loopback jumper" to QMOD specific part. For SIMtrace we have an
actual button and can use that in a future patch.
2017-11-28 22:15:56 +01:00
Harald Welte
7b250bfc8d
board_simtrace: Add minimal debug menu on debug USART
2017-11-28 22:10:49 +01:00
Harald Welte
ed75c62acf
{ccid,sniffer}.c: Add comments on USB callbacks
2017-11-28 21:23:12 +01:00
Harald Welte
5c081911a9
remove dead code (source/phone.c), superseded by card_emu.c/mode_cardemu.c
2017-11-28 21:21:50 +01:00
Harald Welte
5e6e8dcbde
Make build of CCID code succeed again on BOARD=simtrace
2017-11-28 20:58:06 +01:00
Harald Welte
c35998e20d
Makefile: Disable -Wundef and -Wsign-compare for now
...
This silences tons of warnings which are making it hard to identify
actual issues when looking at the compiler output.
2017-11-28 20:47:23 +01:00
Harald Welte
ba2ad563cc
fix build of APP=cardem on BOARD=simtrace
2017-11-28 19:49:41 +01:00
Harald Welte
fc87c24326
mode_cardem: Build on platforms without WWAN_PERST suppotrt
2017-11-28 19:17:27 +01:00
Harald Welte
f231541601
Fix typos in usb.c, llist_irqsafe.h and dfu.h
2017-11-28 19:16:57 +01:00
Harald Welte
119624f46f
WIP: use local_irq_{save,restore}()
2017-11-04 12:28:30 +01:00
Harald Welte
7b36306113
[firmware] WIP: make talloc irq-safe
2017-11-04 12:17:09 +01:00
Harald Welte
eb50c9f914
[firmware] sim_switch + wwan_perst: Don't re-initialize
...
The logic to detect if the respective module is already initialized
or not was broken. When performing initialization, we of course need
to set initialized=1.
2017-11-03 20:52:35 +01:00
Harald Welte
965d5c918a
[firmware] cardemu: Skip CARD_INSERT if board doesn't support it
2017-11-03 20:48:11 +01:00
Harald Welte
514c6d1da0
[firmware] wwan_perst: Print index when releasing WWAN_PERST
2017-11-03 20:40:56 +01:00
Harald Welte
e7f2f9a5e0
[firmware] wwam_led: use 0/1 instead of 1/2
...
most (all) other code modules have already moved over to
consistently using a 0-based index.
2017-11-03 20:38:31 +01:00
Harald Welte
4e837d45db
[firmware] card_pres: use modem number at start of line
...
... like most other code modules, too
2017-11-03 20:36:17 +01:00
Harald Welte
b52b886186
[firmware] card_pres: Use 0/1 index number instead of 1/2
...
We have moved most (all?) other code to work with slots 0/1
rather than 1/2.
2017-11-03 20:33:10 +01:00
Harald Welte
c47fc5febf
set local slot LED according to remote/local state.
...
The LED is illuminated as long as the slot is in local (physical SIM
card) mode.
2017-05-20 14:46:57 +01:00
Harald Welte
02d0ec6e08
uart_console: Re-start watchdog during busy-waiting for serial chars
2017-05-20 14:46:57 +01:00
Harald Welte
3b646955b9
Fix swapped manufacturer/product strings
...
the */usb_strings.txt files always assumed that the first line is the
manufacturer string, followed by the product string in the second line.
However, the enum strDescNum had it the other way around. Let's fix it
by adjusting the enum to reality.
Fixes: SYS#3591
2017-05-14 23:15:11 +02:00
Harald Welte
23c00b6ad3
cardemu: Fix interpretation of MSGC_MODEM messages
...
msg->l2h should always point at the first byte of the header after the
generic simtrace header. For some reason this doesn't work if used
globally, but it is required for the MSGC_MODEM messages to be
interpreted correctly.
2017-05-11 01:11:43 +02:00
Harald Welte
253991789a
dfu: make sure to not bloat the loader with main board init stuff.
2017-05-11 00:47:29 +02:00
Harald Welte
0709d2d842
perst/sim_switch: Log events using TRACE_INFO
2017-05-11 00:06:00 +02:00
Harald Welte
44622dfd8d
consistently use 0-based counting of modems/slots
2017-05-11 00:04:50 +02:00
Harald Welte
b91f6ad848
firmware: fix various compiler warnings
2017-05-10 23:20:50 +02:00
Harald Welte
5c583d3535
Generalize SIM switching code and allow local/remote switching via USB
2017-05-09 13:24:28 +02:00
Harald Welte
114e74d322
wwan_perst: Warn if somebody failed to initialize us
2017-05-09 13:24:28 +02:00
Harald Welte
2e9254ac3f
cardem: Implement WWAN Modem reset via USB
...
Using the SIMTRACE_MSGT_DT_MODEM_RESET message
2017-05-09 13:24:28 +02:00
Harald Welte
cb093ce878
wwan_perst: Support varying timeout and permanent active/inactive
2017-05-09 13:24:28 +02:00
Harald Welte
25a9a80ff5
Convert to new generalized SIMTRACE2 USB protocol
...
The current protocol was card-emulation specific. The new protocol is
generic/flexible enough to accommodate both tracing and card emulation,
as well as modem control and other future extensions.
2017-05-09 13:24:23 +02:00
Harald Welte
ed1efc5035
qmod: debug_cmd: Avoid 'Unknown command' for valid commands
2017-05-07 23:10:02 +02:00
Harald Welte
f8c83a4d64
Make hardfault handler a bit more verbose
2017-05-07 23:10:02 +02:00
Harald Welte
28174982b6
qmod: Initialize ST12 specific I/O pins only on ST12
2017-05-07 23:10:02 +02:00
Harald Welte
8e7fca3255
migrate from req_ctx to msgb
...
We now generalize the USB communiction and abandon the 'req_ctx'
structure inherited from openpcd. Instead we use the libosmocore 'msgb'
structure to handle incoming and outgoing USB tranfers. We also use
linuxlist-based msgb-queues for each endpoint.
2017-05-07 23:09:56 +02:00
Harald Welte
eb81d23a56
import libosmocore msgb handling (and dependencies)
...
This is supposed to be replaced with upstream libosmocore, as soon as
that has a proper maintained embedded build (again).
2017-05-07 13:18:36 +02:00
Harald Welte
0380d74405
Makefile: remove .p files during 'make clean'
2017-05-07 11:20:40 +02:00
Harald Welte
9457bf765d
Makefile: Don't warn about failed inlines
2017-05-07 11:20:24 +02:00
Harald Welte
9ac794c770
Add llist_add_irqsafe() similar to llist_add_tail_irqsafe()
2017-05-07 11:19:45 +02:00
Harald Welte
caca0b1e7a
Makefile: Add new 'combined' target to build combined DFU+APP image
2017-05-05 23:17:31 +02:00
Harald Welte
6d1128e9d1
QMOD: Add code to determine SIM Card presence
2017-05-05 23:17:27 +02:00
Harald Welte
7e4390f181
qmod: wwan_led.c: Fix handling of LED for second Modem
2017-05-05 20:58:53 +02:00
Harald Welte
9164a6d335
qmod: Disable various console commands on ST34
...
A number of commands related to the USB hub and the EEPROM are only
available on ST12, but not on ST34. Let's remove them if not
applicable.
2017-05-05 20:58:52 +02:00