Commit Graph

  • a99c6a1921 There's no painless way to do this, but it needs to be done -- the only reason any of the Windows code was in CPP files was because the MS compiler doesn't support C99. Switch to using MinGW, and that problem goes away, so we can rename the files back. bushing 2009-12-22 12:42:54 +00:00
  • a146075d74 remove most of the references to translate.h bushing 2009-12-22 12:35:36 +00:00
  • 3a8464f067 change usb_cmd struct to be more sane wean ourselves off translate.h bushing 2009-12-22 12:34:24 +00:00
  • cd00aa3043 merge linux and windows clients into one directory... will consolidate makefiles shortly bushing 2009-12-22 12:11:15 +00:00
  • e3dfa42772 Amontec JTAGKey config d18c7db 2009-12-15 06:28:40 +00:00
  • 258a9f3899 Fix MPFR URL henryk@ploetzli.ch 2009-12-13 22:55:49 +00:00
  • d6e91bf086 Change gcc source URL henryk@ploetzli.ch 2009-12-13 11:35:46 +00:00
  • 8d40aba58b Add capability to correlate against subcarriers of 212kHz (argument FPGA_HF_READER_RX_XCORR_QUARTER_FREQ | FPGA_HF_READER_RX_XCORR_848_KHZ) and 106kHz (argument FPGA_HF_READER_RX_XCORR_QUARTER_FREQ) henryk@ploetzli.ch 2009-12-09 02:31:01 +00:00
  • 78d647da02 Limit hexsamples to just the amount of requested samples henryk@ploetzli.ch 2009-12-03 16:21:44 +00:00
  • 68d9d60a4d Add generic CRC calculation code henryk@ploetzli.ch 2009-11-25 20:41:41 +00:00
  • c86cc30801 Added the new SRIX4K reading routine, thanks to jonor. Regression tested against SRI512 tags, but I do not have SRIX4K tags to test this with. edouard@lafargue.name 2009-11-23 09:34:57 +00:00
  • e70140224f Fix define typo d18c7db 2009-11-12 08:04:40 +00:00
  • c0d04e9540 Also defines to carve out LF related code d18c7db 2009-11-12 07:23:12 +00:00
  • b1083ec9f7 #ifdef out the calls to the ISO15693/14443/14443a functions so that the -D on the make command line actually can be used to reduce code size henryk@ploetzli.ch 2009-11-10 05:10:01 +00:00
  • dcc10e5e31 Add basic communication shell for Legic RF in reader mode. Needs the new receive function of hi_read_tx. henryk@ploetzli.ch 2009-11-06 15:37:53 +00:00
  • 24fe4dffb4 Jerry-rig a simply hysteresis based receiver into hi_read_tx. Output is via SSC_DIN, which wasn't used in that mode before. henryk@ploetzli.ch 2009-11-06 15:36:57 +00:00
  • add16a6287 Refactor things around to make it easier to add a reader mode with code reuse henryk@ploetzli.ch 2009-11-05 11:13:46 +00:00
  • 4014b814fb Make canned responsed const henryk@ploetzli.ch 2009-10-25 09:58:23 +00:00
  • ccedd6ae6b Simplify data types, now that I believe that 'frames' will always be rather short henryk@ploetzli.ch 2009-10-23 21:40:17 +00:00
  • ec81f90ec3 replaced strncasecmp with strcmp to get rid of compile errors d18c7db 2009-10-22 20:21:12 +00:00
  • aac23b2434 Fix and generify legic response code henryk@ploetzli.ch 2009-10-16 22:07:00 +00:00
  • a7247d858b Add basic LEGIC RF communication in tag simulation mode henryk@ploetzli.ch 2009-10-12 11:47:39 +00:00
  • bb4d2cca76 Add defines for TIMER_CLOCK? henryk@ploetzli.ch 2009-10-12 11:46:50 +00:00
  • ecf53cb215 Add HF simulator modulation mode for 212kHz subcarrier henryk@ploetzli.ch 2009-10-12 07:46:03 +00:00
  • 789d706a7d Fix commit 232, reenable GUI henryk@ploetzli.ch 2009-10-11 18:40:44 +00:00
  • 5fc8250f7f Add command to manually set ADC mux source henryk@ploetzli.ch 2009-10-09 15:57:07 +00:00
  • 6949aca9fa Pushed standard AT91 defines into main code d18c7db 2009-09-29 12:13:41 +00:00
  • 5d32e2bf60 Rename at91sam7s512.h for case sensitive filesystems henryk@ploetzli.ch 2009-09-28 11:29:17 +00:00
  • aafd94b868 Change over to standard AT91 header file d18c7db 2009-09-27 20:46:47 +00:00
  • d3ae0de746 Small changes to some armsrc makefile to allow conditional compilation of various protocols via defines, change winsrc makefile to allow override of compiler location via external defines, finally change fpgaloader to actually check that the image upload succeeded instead of just blindly sending it and hoping for the best. d18c7db 2009-09-22 09:57:03 +00:00
  • c3adc9fd60 Create a stamp file for download completion so that it won't have to be redone later Unpack newlib before compiling gcc, fixes the bug where header files were not installed henryk@ploetzli.ch 2009-09-19 21:55:22 +00:00
  • a93bd81d88 tool to find UIDs in bitstream adam@algroup.co.uk 2009-09-12 08:11:24 +00:00
  • 709b784c16 Change variable assignments to make it easier to compile static and/or x86 binaries henryk@ploetzli.ch 2009-09-11 02:25:48 +00:00
  • ac86b65681 fix mandemod initialisation and add Transit tag trace adam@algroup.co.uk 2009-09-10 15:12:20 +00:00
  • ccb6ae9169 Change flashos.bat for the new flash procedure henryk@ploetzli.ch 2009-09-09 07:40:14 +00:00
  • 1b2c893632 Fix data segement. You may now use stuff like int foo = 1; in global context (as opposed to both int foo = 0; which is bss and const int foo = 1; which is rodata) without having the sky come crashing down henryk@ploetzli.ch 2009-09-08 15:40:22 +00:00
  • 715d74c5be Fixed up last gcc 4.1 and 4.4 warnings, added OpenOCD wiggler config d18c7db 2009-09-08 10:08:43 +00:00
  • 45dcfac2cc Hopefully correct code for C's strict aliasing rules henryk@ploetzli.ch 2009-09-08 02:36:50 +00:00
  • 9dbe0941fd Change section_start pointer to char** to prevent aliasing warnings on old toolchain henryk@ploetzli.ch 2009-09-08 00:37:13 +00:00
  • 57fcd2d7d1 added eh_frame needed for gcc 4.4.1 or higher d18c7db 2009-09-07 09:53:45 +00:00
  • a8120704f7 Updated the windows Makefile to be compatible with both nmake and make d18c7db 2009-09-07 09:03:45 +00:00
  • d4086fe2b7 Re-enable -Wall henryk@ploetzli.ch 2009-09-06 19:19:38 +00:00
  • bb03181744 Fix FPGA load code for the generic case where a new style bitstream is not DWORD aligned Completely switch to byte-wise load, shouldn't make much of a difference since this is not timing-critical henryk@ploetzli.ch 2009-09-06 19:08:56 +00:00
  • 64b8119836 Add make targets for flashing (Windows version untested) henryk@ploetzli.ch 2009-09-05 22:45:53 +00:00
  • 83288efc7d Remove unused code from hitag2.c Mark intermittently used code in iso15693.c as attribute unused Change CFLAGS to -Werror to enforce warning free code henryk@ploetzli.ch 2009-09-05 22:17:18 +00:00
  • 7cea81eea6 oops, missed a bit! adam@algroup.co.uk 2009-09-05 13:11:31 +00:00
  • 98af9ddf8c fix wrong terminology - LRC/CRC and calulate result instead of matching (thanks Henryk!) adam@algroup.co.uk 2009-09-05 13:10:17 +00:00
  • c5847014fd clarify output adam@algroup.co.uk 2009-09-05 08:46:59 +00:00
  • 4962d41420 tool to find correct byte for 8-bit XOR CRC adam@algroup.co.uk 2009-09-05 07:14:35 +00:00
  • c2c80de8ab enforce askdemod argument 0 or 1 adam@algroup.co.uk 2009-09-02 09:17:34 +00:00
  • 3cc63bdf91 Updated windows client to handle new flashing method d18c7db 2009-09-02 08:30:22 +00:00
  • 523f4c90a1 amp command - amplify sample peaks adam@algroup.co.uk 2009-09-01 23:17:57 +00:00
  • 4f3bd9738f Fix mkversion.pl for the case where the global svn revision is different from the last changed revision henryk@ploetzli.ch 2009-09-01 22:56:07 +00:00
  • 8fcbf652da New bootrom + Add common area at end of RAM to communicate between main os and bootrom + Lower stack end to make room for common area + Implement CMD_DEVICE_INFO in both OS and bootrom to give information about the current state and supported features + Allow hands-free firmware update: When CMD_START_FLASH is received over USB in OS mode, the device will reset and enter the bootrom Pressing the button in hands-free update mode takes precedence: releasing the button will immediately abort firmware update and perform a reset. Do not press the button. + Require each flash sequence to be preceded by a CMD_START_FLASH to set up the boundaries for the following flash sequence Not compatible with linux flasher before SVN revision 200 Currently no compatible flasher for Windows. WINDOWS USERS: DO NOT UPDATE YOUR BOOTROM YET + Protect bootrom flash area unless magic unlock sequence is given in CMD_START_FLASH henryk@ploetzli.ch 2009-09-01 14:44:38 +00:00
  • a5b1ba2023 New flash tool, needs to be ported to Windows. + [f]ast is gone, current mode will be autodetected + uses hands-free firmware update if supported by the bootrom (to be committed) + uses new bootrom safety features against accidental misflashes (to be committed) + supports S19 files with base address 0x0 or base address 0x100000 + supports old bootroms which expect 0x0 and new bootroms which expect 0x100000 (to be committed) + new argument style: first argument is comma-separated (no spaces!) list of partition names, remaining arguments are file names os and fpga may be abbreviated, bootrom must be given in full Examples: ./flasher os ../armsrc/obj/osimage.s19 ./flasher bootrom,o,f ../bootrom/obj/bootrom.s19 ../armsrc/obj/osimage.s19 ../armsrc/obj/fpgaimage.s19 henryk@ploetzli.ch 2009-09-01 14:35:13 +00:00
  • d5d42c0a4b Add defines for reset type henryk@ploetzli.ch 2009-09-01 05:00:33 +00:00
  • 0c13c669cf Fix argument check for the case of both and not fast henryk@ploetzli.ch 2009-09-01 04:59:52 +00:00
  • e3ae025783 Eradicate all occurences of hardcoded memory addresses from all sources files, except for the FPGA bitstream fallback henryk@ploetzli.ch 2009-08-31 14:52:59 +00:00
  • 52b3d184ce Have the Windows batch files check for make henryk@ploetzli.ch 2009-08-31 03:12:45 +00:00
  • 3742d90563 Add forgotten file henryk@ploetzli.ch 2009-08-31 00:47:12 +00:00
  • 2e68bd4065 Add forgotten file henryk@ploetzli.ch 2009-08-31 00:37:29 +00:00
  • db335b3de0 Make objcopy call less verbose Add master Makefile henryk@ploetzli.ch 2009-08-30 22:35:12 +00:00
  • 269a820f9e maintain alphabetic order! adam@algroup.co.uk 2009-08-30 18:57:28 +00:00
  • 4271e82d56 Only re-compile version.c as often as necessary Make bootrom version information pointer a proper symbol (with hacky ld strangeness workaround) henryk@ploetzli.ch 2009-08-29 06:14:28 +00:00
  • 0fa9ca5b53 Add command and code for bidirectional LF emulation of Hitag2. Should be extended for other types of tags henryk@ploetzli.ch 2009-08-28 21:56:43 +00:00
  • 802a36162a New FPGA code for bidirectional LF emulation henryk@ploetzli.ch 2009-08-28 21:54:47 +00:00
  • aae8787c03 Add defines for the timer/counter peripheral henryk@ploetzli.ch 2009-08-28 21:53:54 +00:00
  • 3927b707bd Our windows perl doesn't like use strict henryk@ploetzli.ch 2009-08-28 07:31:36 +00:00
  • 8a6aec16d8 Implement version information storage and retrieval for the bootrom and the osimage. Use perl to create the version information (thereby re-creating the perl dependency and adding an svn dependency) but fall back in case of missing perl or svn henryk@ploetzli.ch 2009-08-28 06:40:44 +00:00
  • 42bc3be31c Trying automagic version stuff henryk@ploetzli.ch 2009-08-28 02:40:22 +00:00
  • 8e19377db1 Send Stall in response to USB SET FEATURE or CLEAR FEATURE requests. Speeds up device enumeration on linux by 10s. henryk@ploetzli.ch 2009-08-28 00:44:09 +00:00
  • ba8a80b30c Add version command henryk@ploetzli.ch 2009-08-28 00:37:28 +00:00
  • 7af790aa03 Jump to the correct physical address in Flash. (The comment was wrong, it never used RAM) henryk@ploetzli.ch 2009-08-28 00:36:02 +00:00
  • 47c872f48f termcap is deprecated and doesn't seem to be needed anyway henryk@ploetzli.ch 2009-08-28 00:35:27 +00:00
  • e73e717239 Add Makefile for fpga directory (Windows codepath is untested, in any case, go.bat is still there) Retire rbt2c.pl, instead use objcopy to directly convert the .bit file into an .o that can be linked with the flash image Rename armsrc/fpga.c to armsrc/fpgaloader.c (since there is now a new fpga.o, created from fpga.bit) Remove fpgaimg.c from subversion, add fpga.bit Instead of creating fpgaimage.elf and osimage.elf separately, now create a joined fullimage.elf first (obsoleting ldscript-full), then extract only the fpga and os sections with objcopy (This creates unspecific warnings about an empty segment, need to investigate) Implement a rudimentary .bit parser in the firmware, use that to locate the bitstream in the new fpgaimage (which is just a plain copy of the fpga.bit file) and send it to the FPGA The code will check the format that's in flash and fall back to the legacy format henryk@ploetzli.ch 2009-08-27 23:29:49 +00:00
  • 391a974f53 (Our Windows ARM toolchain really likes its glue sections) henryk@ploetzli.ch 2009-08-27 16:12:00 +00:00
  • 2bfed17db2 Add a common linker script with the memory map for the complete project Use the correct physical addresses in the memory map, and instead translate the addresses during postprocessing with objcopy henryk@ploetzli.ch 2009-08-27 16:07:35 +00:00
  • fb6e5aa863 The older gnuarm in the windows toolchain seems to need the glue_7t section henryk@ploetzli.ch 2009-08-27 04:46:31 +00:00
  • 8652988d62 Merge linker scripts in bootrom to have a single linker script for the bootloader proper (previously known as bootrom-merged.s19) Remove the now unnecessary files (merge-srec.pl, ldscript-ram-jtag) Note that this drops the dependency on perl for bootrom build, so end-users who don't touch the FPGA bitstream will not need perl anymore henryk@ploetzli.ch 2009-08-27 04:25:34 +00:00
  • 0fc0fca583 Move most rules to Makefile.common Add automatic dependency generation Compile ISO14443 files in ARM mode, as was the case with the Linux Makefile before henryk@ploetzli.ch 2009-08-26 17:34:19 +00:00
  • 97a82e8f36 Change make calls in the cockpit batch files henryk@ploetzli.ch 2009-08-26 11:21:05 +00:00
  • 7e931bbd32 Consolidate Linux/Windows Makefiles into one, see http://www.proxmark.org/forum/topic/312/consolidating-makefile/ + Needs GNU make for Windows, a new release of the Windows development environment will follow + Is based on the Windows Makefile, so will build everything in Thumb mode, doesn't have flash commands (yet) henryk@ploetzli.ch 2009-08-26 11:17:05 +00:00
  • 5435eb0ca2 switch off reader field after hi14areader command adam@algroup.co.uk 2009-08-24 12:20:54 +00:00
  • 093cbaf63e fix Mifare AUTH for hi14areader command adam@algroup.co.uk 2009-08-24 12:09:43 +00:00
  • bea2a8660e Add pretty field strength lights for ListenReaderField() also in LF mode. henryk@ploetzli.ch 2009-08-19 23:35:35 +00:00
  • a5d5146c48 Junk Eclipse environment files. Not source code. d18c7db 2009-08-11 10:05:52 +00:00
  • 2ff385b2a8 unnecessary skamkar 2009-08-08 07:43:57 +00:00
  • 50722269b6 detect usb or no usb for standalone mode [ryan] skamkar 2009-08-08 07:42:51 +00:00
  • 14ac2f1ea0 look for binary data in other data skamkar 2009-08-08 05:50:54 +00:00
  • 7381e8f2f2 Added tiread command to demod TI tags on the PM3 d18c7db 2009-08-06 12:53:06 +00:00
  • c0bc73bc35 Junk Eclipse environment files. Not source code. d18c7db 2009-08-05 08:11:09 +00:00
  • 48e6e0a65a compile in OS X skamkar 2009-08-04 18:21:55 +00:00
  • 77d9355e65 added ignores skamkar 2009-07-30 22:09:36 +00:00
  • 3749f430e5 keri tag trace skamkar 2009-07-30 21:49:51 +00:00
  • 3628c31882 Add checks in em4x50read to avoid segfaults in case loops go over the GraphTraceLen. edouard@lafargue.name 2009-07-30 15:24:03 +00:00
  • 890bf4be90 [henryk] memory map for linux build adam@algroup.co.uk 2009-07-29 16:03:16 +00:00
  • 0422e2a471 Reduced the size of BigBuf to make more room for stack/vars d18c7db 2009-07-29 13:37:09 +00:00
  • f81c82c342 fix crash in client when no buffer is loaded d18c7db 2009-07-28 01:21:24 +00:00
  • 49209d37da merge-srec.pl create proper S19 file with checksums. d18c7db 2009-07-28 01:03:09 +00:00
  • 9bea179a71 added tiwrite command, split LF code from appmain into lfops.c d18c7db 2009-07-25 11:47:43 +00:00