summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* make VCC / card detect more reliableHarald Welte2012-03-221-2/+2
|
* disable logging of PIO status in PIO interrupt routineHarald Welte2012-03-221-1/+1
|
* simtrace: Inform host of Fi/Di values (and flag change due to PPS)Harald Welte2012-02-122-0/+6
|
* simtrace: 7816 UART: Add missing entry in Di tableSylvain Munaut2012-01-261-1/+1
| | | | | | Add missing entry in Fi_table. It's apparently used as '64' in some reader and 'unsupported' in some other. For simtrace I guess we should consider it 64.
* Make sure we don't forward power _and_ supply SIM power at the same timeKevin Redon2011-12-182-1/+20
| | | | | | | | The FPF2005 has no reverse voltage blocker, this is why the 3.3V from the LDO flows back into VCC_PHONE. It even damages the chip (so says the datasheet) I corrected the double power source problem by disabling the LDO (see patch), but still 1.8V does not work and 3.0-3.3V is used. I have to look for other reasons.
* usb: Do not send ZLP when we have filled the windowv0.4Holger Hans Peter Freyther2011-12-143-49/+53
| | | | | | | | | | | | Only send the ZLP if we send less data than was required/asked for by the host and it is a multiple of the bMaxPacketSize0 (which is hardcoded to 8 right now). This is completing the change done in fe88b83e80df8be0351ff38ee6 to fix SIMtrace attached to OSX and not regress on windows. Introduce another parameter to udp_ep0_send_data to specify the window size (wLength) or if not available the default from USB 2.0 specification.
* dfu: Remove unused variable, mark method as not retuningHolger Hans Peter Freyther2011-11-102-3/+2
|
* dfu: Use {} for possible empty if statement (in case debug is off)Holger Hans Peter Freyther2011-11-101-1/+3
| | | | src/dfu/dfu.c:853:23: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
* dfu: Mark unsued variables as __unused for nowHolger Hans Peter Freyther2011-11-102-4/+6
|
* dfu: udp_ep0_recv_clean is static and is not called anywhereHolger Hans Peter Freyther2011-11-101-14/+0
|
* dfu: The i variable to disable interrupts shadows the outer indexHolger Hans Peter Freyther2011-11-101-3/+3
| | | | | | | | In case ram_app_entry() returns do not reset i to 32, otherwise we will never reset the watchdog. src/dfu/dfu.c:1077:7: warning: declaration of ‘i’ shadows a previous local [-Wshadow] src/dfu/dfu.c:1068:6: warning: shadowed declaration is here [-Wshadow]
* fix linking issue with latest binutils versionsv0.3Bjoern Kerler2011-10-211-1/+1
|
* Fix fi/di calculation for certain mobiles like GT-S770 or HTC RaphaelBjoern Kerler2011-10-211-3/+3
| | | | | There were some mistakes while copying the tables from ISO 7816-3, and also a quite old version of 7816-3 was used.
* Update TODO fileHarald Welte2011-08-161-5/+0
|
* SIMTRACE: ISO7816: Deal with ATR that don't have historical bytesv0.2Harald Welte2011-08-161-11/+21
| | | | | In case there are no historical bytes, we immediately transition from the last TD byte into the WAIT_TCK or WAIT_APDU state.
* ISO7816: Properly handle T=0 only cards without TCK in ATRHarald Welte2011-08-161-1/+13
|
* SIMTRACE UART: Reset error status on error related IRQHarald Welte2011-08-151-0/+9
| | | | | This prevents an IRQ-flood after a parity or overrun error, which in turn would cause a watchdog reset.
* simtrace UART: set INACK flag to make sure we ignore any parity errorHarald Welte2011-08-151-3/+3
| | | | | | | As a SIM card tracer, we want to remain completely passive and thus not signal back parity errors with the ISO 7816 NACK. The UART INACK flag does exactly that...
* DBGU: Print Reset controller Status Register on bootHarald Welte2011-08-151-0/+4
| | | | This helps us to discover _why_ the CPU has been rebooted.
* USB: Add support for the 3rd DFU interface (RAM)Harald Welte2011-08-151-0/+6
|
* add simtrace README fileHarald Welte2011-07-301-0/+9
|
* Merge branch 'simtrace'Harald Welte2011-07-3038-65/+1870
|\
| * update mkcompile_h to work with git repositoryHarald Welte2011-07-302-4/+155
| |
| * DFU: Fix execution of software that was loaded to RAM via DFUv0.1Harald Welte2011-07-301-8/+17
| |
| * DFU: Support re-flashing of DFU via DFUHarald Welte2011-07-302-18/+134
| | | | | | | | | | | | | | | | | | As we re-locate the entire sam7dfu program into RAM, we don't need to execute from flash and can thus re-program the DFU partition via the DFU protocol itself (alternate setting '1'). We also implement downloading executable code into RAM using alternate setting '2'. The latter part is not properly executed yet.
| * DFU: add third 'alternate configuration' for RAM loadHarald Welte2011-07-308-10/+36
| | | | | | | | | | This will allow us to load code directly into RAM without going through flash.
| * simtrace: add some early spi flash utility routinesHarald Welte2011-07-303-1/+225
| | | | | | | | This also adds a new 'main_factory' target for simtrace
| * Makefile: SIMtrace uses SAM7S128, not 256Harald Welte2011-07-302-2/+2
| |
| * add new RUN_FROM_RAM run-mode for direct DFU-to-RAM supportHarald Welte2011-07-304-3/+99
| |
| * use gcc/ld flags -ffunction-sections and --gc-sectionsHarald Welte2011-07-304-17/+17
| | | | | | | | This will discard unused functions from the resulting binary
| * sam7dfu: update copyright yearsHarald Welte2011-07-291-1/+1
| |
| * sam7dfu: make sure we can use USB reset to get from DFU -> APPHarald Welte2011-07-291-2/+14
| | | | | | | | | | | | | | When we went through a Download -> Manifest cycle, we can switch back to dfuIDLE. However, we need to memorize that manifest had already happened and thus should treat a host-initiated bus reset as trigger to switch back into application mode.
| * USB driver: use the DFU-provided function to send EP0 dataHarald Welte2011-07-071-48/+1
| | | | | | | | | | There is no point in replicating the functionality that already exists in the DFU section of the flash
| * dfu: fix EP0 IN trasnfers that are even multiple of 8Harald Welte2011-07-071-4/+14
| | | | | | | | | | | | We have to send a ZLP at the end of such transfers, otherwise the host will time out at the end of the transfer. This resulted in multi-second delays for recognizing the SIMtrace hardware by the USB host.
| * simtrace: initialize sniffer mode right after start-upHarald Welte2011-06-301-18/+22
| |
| * simtrace: switch VCC_SIM into output mode, as we use it to supply VccHarald Welte2011-06-211-2/+8
| | | | | | | | | | | | This is just a temp rework in the 1st generation prototype, as the bus switch has too high resistance for passing throuhg Vcc from the phone to the SIM.
| * simtrace: add VCC_PHINE IRQ detectionHarald Welte2011-06-211-0/+19
| |
| * simtrace: use better names for GPIO linesHarald Welte2011-06-211-4/+5
| |
| * simtrace: introduce mode sniffer / mitm switchingHarald Welte2011-06-174-8/+74
| |
| * simtrace: add support for the analog bus switchHarald Welte2011-06-165-3/+96
| |
| * simtrace: add more definitions regarding real hw prototypeHarald Welte2011-06-164-1/+32
| |
| * update USB strings (company name and some copy+paste mistakes)Harald Welte2011-06-152-3/+3
| |
| * typo: Fix typo, transform reqyests to requests.Holger Hans Peter Freyther2011-01-317-7/+7
| |
| * vsprintf.c: Fix compilation by including limits.hHolger Hans Peter Freyther2011-01-311-0/+1
| | | | | | | | | | | | The INT_MAX define was not known to this code with a GCC 4.5.2/binutils 2.21/newlib 1.19.0 toolchain as build for osmocomBB. Include limits.h to fix that.
| * add missing usb_strings_dfu.txt file to simtrace directoryHarald Welte2010-12-091-0/+5
| |
| * AT91SAM7.h: Fix computation of AT91C_IFLASH_LOCK_REGION_SIZEHarald Welte2010-11-211-1/+1
| |
| * simtrace: Make sure ATR is sent in its own RCTX and we re-allocate in timeHarald Welte2010-11-211-1/+11
| |
| * simtrace: Commit Makefile changes to support build of simtrace WARNINGHarald Welte2010-11-182-6/+18
| | | | | | | | | | | | | | These changes will enable the simtrace firmware to be built like this: make -f Makefile.dfu BOARD=OLIMEX make BOARD=SIMTRACE DEBUG=1 TARGET=main_simtrace
| * req_ctx: Increase size of small req_ctx to 128 and have 16 instead of 8Harald Welte2010-11-182-3/+3
| | | | | | | | | | This is required to deal with bursts in SIM comminication while using the SIMTRACE firmware
| * ausb: fix interrupt URB callbackHarald Welte2010-11-181-2/+14
| |
personal git repositories of Harald Welte. Your mileage may vary