<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Proxmark developers community - Linux Client]]></title>
	<link rel="self" href="http://www.proxmark.org/forum/feed/atom/forum/15/"/>
	<updated>2010-08-31T08:44:35Z</updated>
	<generator>PunBB</generator>
	<id>http://www.proxmark.org/forum/</id>
		<entry>
			<title type="html"><![CDATA[no success in running on os x please help]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/623/no-success-in-running-on-os-x-please-help/new/posts/"/>
			<summary type="html"><![CDATA[<p>I&#039;v downloaded ProxSpace-20100226-r390.7z<br />I open it then go to the folder&nbsp; client<br />I type make at the terminal and I get this message <br />&quot;Makefile:23: Extraneous text after `else&#039; directive<br />Makefile:27: *** only one `else&#039; per conditional.&nbsp; Stop.<br />&quot; <br /> What do I due to fix this?</p>]]></summary>
			<author>
				<name><![CDATA[rumpeltux]]></name>
				<uri>http://www.proxmark.org/forum/user/401/</uri>
			</author>
			<updated>2010-08-31T08:44:35Z</updated>
			<id>http://www.proxmark.org/forum/topic/623/no-success-in-running-on-os-x-please-help/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to use JTAG to upgrade a proxmark]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/617/how-to-use-jtag-to-upgrade-a-proxmark/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hello, it&#039;s been days since I first started trying to flash a proxmark, but I really can&#039;t figure it out.</p><p>I bought a JTAG connector (an Olimex USB TINY)... but I can&#039;t connect it through openocd on my backtrack.</p><p>I compiled openocd for libftdi with<br /></p><div class="codebox"><pre><code>./configure --enable-ft2232_libftdi &amp;&amp; make &amp;&amp; make install</code></pre></div><p>Here is the configuration file that i used for openocd (0.4.0 version)<br /></p><div class="codebox"><pre><code># cat ~/openocd.cfg
source [find interface/olimex-jtag-tiny.cfg]
source [find target/sam7x256.cfg]

telnet_port 4444
#</code></pre></div><p>Then i connect both the proxmark and the olimex, and when i start openocd here&#039;s what i get:<br /></p><div class="codebox"><pre><code># openocd -f ~/openocd.cfg
Open On-Chip Debugger 0.4.0 (2010-08-12-11:08)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Info : clock speed 6000 kHz
Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Warn : Unexpected idcode after end of chain: 32 0x00000000
Warn : Unexpected idcode after end of chain: 64 0x00000000
Warn : Unexpected idcode after end of chain: 96 0x00000000
Warn : Unexpected idcode after end of chain: 128 0x00000000
Warn : Unexpected idcode after end of chain: 160 0x00000000
Warn : Unexpected idcode after end of chain: 192 0x00000000
Warn : Unexpected idcode after end of chain: 224 0x00000000
Warn : Unexpected idcode after end of chain: 256 0x00000000
Warn : Unexpected idcode after end of chain: 288 0x00000000
Warn : Unexpected idcode after end of chain: 320 0x00000000
Warn : Unexpected idcode after end of chain: 352 0x00000000
Warn : Unexpected idcode after end of chain: 384 0x00000000
Warn : Unexpected idcode after end of chain: 416 0x00000000
Warn : Unexpected idcode after end of chain: 448 0x00000000
Warn : Unexpected idcode after end of chain: 480 0x00000000
Warn : Unexpected idcode after end of chain: 512 0x00000000
Warn : Unexpected idcode after end of chain: 544 0x00000000
Warn : Unexpected idcode after end of chain: 576 0x00000000
Warn : Unexpected idcode after end of chain: 608 0x00000000
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Warn : Unexpected idcode after end of chain: 32 0x00000000
Warn : Unexpected idcode after end of chain: 64 0x00000000
Warn : Unexpected idcode after end of chain: 96 0x00000000
Warn : Unexpected idcode after end of chain: 128 0x00000000
Warn : Unexpected idcode after end of chain: 160 0x00000000
Warn : Unexpected idcode after end of chain: 192 0x00000000
Warn : Unexpected idcode after end of chain: 224 0x00000000
Warn : Unexpected idcode after end of chain: 256 0x00000000
Warn : Unexpected idcode after end of chain: 288 0x00000000
Warn : Unexpected idcode after end of chain: 320 0x00000000
Warn : Unexpected idcode after end of chain: 352 0x00000000
Warn : Unexpected idcode after end of chain: 384 0x00000000
Warn : Unexpected idcode after end of chain: 416 0x00000000
Warn : Unexpected idcode after end of chain: 448 0x00000000
Warn : Unexpected idcode after end of chain: 480 0x00000000
Warn : Unexpected idcode after end of chain: 512 0x00000000
Warn : Unexpected idcode after end of chain: 544 0x00000000
Warn : Unexpected idcode after end of chain: 576 0x00000000
Warn : Unexpected idcode after end of chain: 608 0x00000000
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Command handler execution failed
Warn : jtag initialization failed; try &#039;jtag init&#039; again.
^C</code></pre></div><p>I also tested openocd with ftd2xx (instead of libftdi) and the results are the same:<br /></p><div class="codebox"><pre><code># openocd -f ~/openocd.cfg
Open On-Chip Debugger 0.4.0 (2010-08-12-18:34)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Info : device: 4 &quot;2232C&quot;
Info : deviceID: 364511236
Info : SerialNumber: ��@
Info : Description: Olimex OpenOCD JTAG TINY A
Info : clock speed 6000 kHz
Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Warn : Unexpected idcode after end of chain: 32 0x00000000
Warn : Unexpected idcode after end of chain: 64 0x00000000
Warn : Unexpected idcode after end of chain: 96 0x00000000
Warn : Unexpected idcode after end of chain: 128 0x00000000
Warn : Unexpected idcode after end of chain: 160 0x00000000
Warn : Unexpected idcode after end of chain: 192 0x00000000
Warn : Unexpected idcode after end of chain: 224 0x00000000
Warn : Unexpected idcode after end of chain: 256 0x00000000
Warn : Unexpected idcode after end of chain: 288 0x00000000
Warn : Unexpected idcode after end of chain: 320 0x00000000
Warn : Unexpected idcode after end of chain: 352 0x00000000
Warn : Unexpected idcode after end of chain: 384 0x00000000
Warn : Unexpected idcode after end of chain: 416 0x00000000
Warn : Unexpected idcode after end of chain: 448 0x00000000
Warn : Unexpected idcode after end of chain: 480 0x00000000
Warn : Unexpected idcode after end of chain: 512 0x00000000
Warn : Unexpected idcode after end of chain: 544 0x00000000
Warn : Unexpected idcode after end of chain: 576 0x00000000
Warn : Unexpected idcode after end of chain: 608 0x00000000
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Warn : Unexpected idcode after end of chain: 32 0x00000000
Warn : Unexpected idcode after end of chain: 64 0x00000000
Warn : Unexpected idcode after end of chain: 96 0x00000000
Warn : Unexpected idcode after end of chain: 128 0x00000000
Warn : Unexpected idcode after end of chain: 160 0x00000000
Warn : Unexpected idcode after end of chain: 192 0x00000000
Warn : Unexpected idcode after end of chain: 224 0x00000000
Warn : Unexpected idcode after end of chain: 256 0x00000000
Warn : Unexpected idcode after end of chain: 288 0x00000000
Warn : Unexpected idcode after end of chain: 320 0x00000000
Warn : Unexpected idcode after end of chain: 352 0x00000000
Warn : Unexpected idcode after end of chain: 384 0x00000000
Warn : Unexpected idcode after end of chain: 416 0x00000000
Warn : Unexpected idcode after end of chain: 448 0x00000000
Warn : Unexpected idcode after end of chain: 480 0x00000000
Warn : Unexpected idcode after end of chain: 512 0x00000000
Warn : Unexpected idcode after end of chain: 544 0x00000000
Warn : Unexpected idcode after end of chain: 576 0x00000000
Warn : Unexpected idcode after end of chain: 608 0x00000000
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Command handler execution failed
Warn : jtag initialization failed; try &#039;jtag init&#039; again.
^C</code></pre></div><p>Other than those unexpected idcodes, another odd thing that I notice is the SerialNumber which has some strange characters in it (this looks like a non allocated buffer since every time I restart openocd the characters inside the SerialNumber are different)... Anyway... I still i don&#039;t know what to do.</p><p>Could it be useful, I have the same identical results with jtag_khz 6000, jtag_khz 3000 and jtag_khz 300</p><p>The proxmark3 and the olimex are connected through an usb1 hub (I even tested this on a old notebook that only has usb1, with Windows XP SP3 and libusb-win32, and I got the same exact results).</p><p>Any ideas please?</p><p>Thanks</p>]]></summary>
			<author>
				<name><![CDATA[kramxorpprompet]]></name>
				<uri>http://www.proxmark.org/forum/user/2032/</uri>
			</author>
			<updated>2010-08-23T21:12:02Z</updated>
			<id>http://www.proxmark.org/forum/topic/617/how-to-use-jtag-to-upgrade-a-proxmark/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Client working under OS X]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/422/client-working-under-os-x/new/posts/"/>
			<summary type="html"><![CDATA[<p>I have the Linux client -- at least the text-based version -- working under OS X.&nbsp; Using a codeless kext, we can prevent the HID driver from grabbing the device and can talk to it normally.&nbsp; &nbsp;Here is a patch against current SVN trunk; note that the &quot;linux&quot; directory should probably be renamed to &quot;unix&quot;.</p><div class="codebox"><pre><code>Index: linux/Info.plist
===================================================================
--- linux/Info.plist  (revision 0)
+++ linux/Info.plist  (revision 0)
@@ -0,0 +1,30 @@
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd &quot;&gt;
+&lt;plist version=&quot;1.0&quot;&gt;
+&lt;dict&gt;
+  &lt;key&gt;CFBundleDevelopmentRegion&lt;/key&gt; &lt;string&gt;English&lt;/string&gt;
+  &lt;key&gt;CFBundleIdentifier&lt;/key&gt; &lt;string&gt;org.proxmark&lt;/string&gt;
+  &lt;key&gt;CFBundleIconFile&lt;/key&gt; &lt;string&gt;&lt;/string&gt;
+  &lt;key&gt;CFBundleInfoDictionaryVersion&lt;/key&gt; &lt;string&gt;6.0&lt;/string&gt;
+  &lt;key&gt;CFBundlePackageType&lt;/key&gt; &lt;string&gt;KEXT&lt;/string&gt;
+  &lt;key&gt;CFBundleSignature&lt;/key&gt; &lt;string&gt;????&lt;/string&gt;
+  &lt;key&gt;CFBundleVersion&lt;/key&gt; &lt;string&gt;1.0.0&lt;/string&gt;
+  &lt;key&gt;IOKitPersonalities&lt;/key&gt;
+  &lt;dict&gt;
+    &lt;key&gt;Proxmark3&lt;/key&gt;
+    &lt;dict&gt;
+      &lt;key&gt;CFBundleIdentifier&lt;/key&gt;&lt;string&gt;com.apple.kernel.iokit&lt;/string&gt;
+      &lt;key&gt;IOClass&lt;/key&gt;&lt;string&gt;IOService&lt;/string&gt;
+      &lt;key&gt;IOProviderClass&lt;/key&gt;&lt;string&gt;IOUSBInterface&lt;/string&gt;
+      &lt;key&gt;bConfigurationValue&lt;/key&gt; &lt;integer&gt;1&lt;/integer&gt;
+      &lt;key&gt;bInterfaceNumber&lt;/key&gt; &lt;integer&gt;0&lt;/integer&gt;
+      &lt;key&gt;idProduct&lt;/key&gt;&lt;integer&gt;19343&lt;/integer&gt;
+      &lt;key&gt;idVendor&lt;/key&gt;&lt;integer&gt;39620&lt;/integer&gt;
+    &lt;/dict&gt;
+  &lt;/dict&gt;
+  &lt;key&gt;OSBundleLibraries&lt;/key&gt;
+  &lt;dict&gt;
+    &lt;key&gt;com.apple.iokit.IOUSBFamily&lt;/key&gt;&lt;string&gt;1.8&lt;/string&gt;
+  &lt;/dict&gt;
+&lt;/dict&gt;
+&lt;/plist&gt;
Index: linux/proxmark3.c
===================================================================
--- linux/proxmark3.c  (revision 262)
+++ linux/proxmark3.c  (working copy)
@@ -46,21 +46,17 @@
 {
   struct main_loop_arg *arg = (struct main_loop_arg*)targ;
   char *cmd = NULL;
+  pthread_t reader_thread;
 
-  while(1) {
+  if (arg-&gt;usb_present == 1) {
     struct usb_receiver_arg rarg;
-    pthread_t reader_thread;
-
     rarg.run=1;
-    if (arg-&gt;usb_present == 1) {
-      pthread_create(&amp;reader_thread, NULL, &amp;usb_receiver, &amp;rarg);
-    }
-    cmd = readline(PROXPROMPT);
-    rarg.run=0;
-    if (arg-&gt;usb_present == 1) {
-      pthread_join(reader_thread, NULL);
-    }
+    pthread_create(&amp;reader_thread, NULL, &amp;usb_receiver, &amp;rarg);
+  }
 
+  while(1) {
+
+    cmd = readline(PROXPROMPT);
     if (cmd) {
       if (cmd[0] != 0x00) {
         CommandReceived(cmd);
Index: linux/Makefile
===================================================================
--- linux/Makefile  (revision 262)
+++ linux/Makefile  (working copy)
@@ -1,7 +1,7 @@
 #COMMON_FLAGS = -m32
-LDLIBS = -L/usr/local/lib -lusb -lreadline -lpthread
+LDLIBS = -L/usr/local/lib -L/opt/local/lib -lusb -lreadline -lpthread
 LDFLAGS = $(COMMON_FLAGS)
-CFLAGS = -I. -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS)
+CFLAGS = -I. -I/usr/local/include -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS)
 
 CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2&gt;/dev/null) -Wall
 QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2&gt;/dev/null)
@@ -34,6 +34,17 @@
 proxguiqt.moc.cpp: proxguiqt.h
   $(MOC) -o$@ $^
 
+# must be run as root
+install_kext: Info.plist
+  mkdir -p /System/Library/Extensions/Proxmark3.kext/Contents
+  cp Info.plist /System/Library/Extensions/Proxmark3.kext/Contents
+  chown -R root:wheel /System/Library/Extensions/Proxmark3.kext
+  chmod 755 /System/Library/Extensions/Proxmark3.kext /System/Library/Extensions/Proxmark3.kext/Contents
+  chmod 644 /System/Library/Extensions/Proxmark3.kext/Contents/Info.plist
+  rm -rf /System/Library/Caches/com.apple.kext.caches
+  touch /System/Library/Extensions
+  @echo &quot;*** You may need to reboot for the kext to take effect.&quot;
+
 clean:
   rm -f cli flasher proxmark3 snooper *.o *.moc.cpp
 

Index: common/Makefile.common
===================================================================
--- common/Makefile.common  (revision 262)
+++ common/Makefile.common  (working copy)
@@ -14,19 +14,14 @@
 #  Windows yields literal &quot;&quot;, on Linux yields an empty line
 ifeq ($(shell echo &quot;&quot;),)
 
-# This is probably a proper system, so we can use uname
-UNAME := $(shell uname)
-ifeq ($(UNAME), Linux)
-# Linux. (Todo: Add MacOS X if appropriate)
 DELETE=rm -rf
 MOVE=mv
 COPY=cp
 PATHSEP=/
 FLASH_TOOL=linux/flasher
-DETECTED_OS=Linux
+DETECTED_OS=Unix
 # You may/should set this in your environment
 ARMLIB ?= /usr/local/lib/gcc/arm-elf/4.3.3/interwork
-endif
 
 else
 
@@ -41,7 +36,7 @@
 
 endif
 
-CROSS   = arm-elf-
+CROSS ?= arm-elf-
 CC  = $(CROSS)gcc
 AS  = $(CROSS)as
 LD  = $(CROSS)ld
Index: Makefile
===================================================================
--- Makefile  (revision 262)
+++ Makefile  (working copy)
@@ -1,6 +1,6 @@
 include common/Makefile.common
 
-ifeq ($(DETECTED_OS),Linux)
+ifeq ($(DETECTED_OS),Unix)
 HOST_BINARY=linux
 else
 HOST_BINARY=winsrc</code></pre></div>]]></summary>
			<author>
				<name><![CDATA[robertcu]]></name>
				<uri>http://www.proxmark.org/forum/user/171/</uri>
			</author>
			<updated>2010-08-14T03:29:47Z</updated>
			<id>http://www.proxmark.org/forum/topic/422/client-working-under-os-x/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[arm-eabi-gcc: Command not found]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/508/armeabigcc-command-not-found/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi everybody,</p><p>i&#039;m trying to compile the latest svn version. I used this manual to compile the new version: <a href="http://code.google.com/p/proxmark3/wiki/Compiling#Linux_Platform">http://code.google.com/p/proxmark3/wiki &#133; x_Platform</a></p><p>I&#039;m currently running Ubunty 9.10 x64. After the make command i get the following error message:</p><p>make: arm-eabi-gcc: Command not found.</p><p>I tried to find this command but it&#039;s not on my system. What did i wrong?</p>]]></summary>
			<author>
				<name><![CDATA[atrox]]></name>
				<uri>http://www.proxmark.org/forum/user/1390/</uri>
			</author>
			<updated>2010-07-27T12:30:21Z</updated>
			<id>http://www.proxmark.org/forum/topic/508/armeabigcc-command-not-found/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ELF or EABI? Recent install-gnuarm4.sh?]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/527/elf-or-eabi-recent-installgnuarm4sh/new/posts/"/>
			<summary type="html"><![CDATA[<p>When I use install-gnuarm4.sh to build the cross-compilation environment I end up with arm-elf cross compilers rather than elf-eabi. Is ELF now the preferred format for 20090905?</p><p>Thanks,<br />D</p>]]></summary>
			<author>
				<name><![CDATA[atrox]]></name>
				<uri>http://www.proxmark.org/forum/user/1363/</uri>
			</author>
			<updated>2010-06-09T21:58:28Z</updated>
			<id>http://www.proxmark.org/forum/topic/527/elf-or-eabi-recent-installgnuarm4sh/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Buffer overflow when issuing "data plot"]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/522/buffer-overflow-when-issuing-data-plot/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hi folks,</p><p>I am running into problems, when issuing the command &quot;data plot&quot; in my proxmark3 binary compiled with the lates svn sources on linux kernel 2.6.31-20 with libqt4-dev present. Compilation runs without errors:</p><p>(....)<br />g++ -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui&nbsp; &nbsp;-Wall -O3 -c -o obj/proxgui.o proxgui.cpp<br />g++ -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui&nbsp; &nbsp;-Wall -O3 -c -o obj/proxguiqt.o proxguiqt.cpp<br />/usr/bin/moc-qt4 -oproxguiqt.moc.cpp proxguiqt.h<br />g++ -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui&nbsp; &nbsp;-Wall -O3 -c -o obj/proxguiqt.moc.o proxguiqt.moc.cpp<br />g++ -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui&nbsp; &nbsp;-Wall -O3 obj/proxmark3.o obj/crc16.o obj/iso14443crc.o obj/data.o obj/graph.o obj/ui.o obj/cmddata.o obj/cmdhf.o obj/cmdhf14a.o obj/cmdhf14b.o obj/cmdhf15.o obj/cmdhflegic.o obj/cmdhw.o obj/cmdlf.o obj/cmdlfem4x.o obj/cmdlfhid.o obj/cmdlfti.o obj/cmdparser.o obj/cmdmain.o obj/proxusb.o obj/proxgui.o obj/proxguiqt.o obj/proxguiqt.moc.o -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread -lQtGui -lQtCore&nbsp; &nbsp;-o proxmark3<br />(....)</p><p>The binary works perfectly well - until it comes to the point where I want to plot the data. Here I get a buffer overflow with the following Backtrace:</p><p>proxmark3&gt; data plot<br />proxmark3&gt; *** buffer overflow detected ***: ./proxmark3 terminated<br />======= Backtrace: =========<br />/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x75ced8]<br />/lib/tls/i686/cmov/libc.so.6[0x75bf10]<br />/lib/tls/i686/cmov/libc.so.6[0x75b648]<br />/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0x9e)[0x6e559e]<br />/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0xe1c)[0x6b995c]<br />/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xad)[0x75b6fd]<br />/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x75b63d]<br />./proxmark3[0x805798c]<br />/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x524)[0xa65dd4]<br />/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xb4)[0xa10f54]<br />/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xda)[0xa185ca]<br />/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7b)[0x5886cb]<br />/usr/lib/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x525)[0xa6de25]<br />/usr/lib/libQtGui.so.4[0xbfc2f8]<br />/usr/lib/libQtGui.so.4[0xbfc77a]<br />/usr/lib/libQtGui.so.4(_ZN14QWidgetPrivate16syncBackingStoreERK7QRegion+0x65)[0xa5f055]<br />/usr/lib/libQtGui.so.4[0xa77090]<br />/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x1462)[0xa856f2]<br />/usr/lib/libQtGui.so.4[0xab2502]<br />/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f8)[0x7f9e88]<br />/lib/libglib-2.0.so.0[0x7fd730]<br />/lib/libglib-2.0.so.0(g_main_context_iteration+0x73)[0x7fd863]<br />/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x5c)[0x5b302c]<br />/usr/lib/libQtGui.so.4[0xab1be5]<br />/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x49)[0x586c79]<br />/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xfa)[0x5870ca]<br />/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xaf)[0x58953f]<br />/usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27)[0xa10dd7]<br />./proxmark3[0x8055c07]<br />./proxmark3[0x804b49f]<br />/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x692b56]<br />./proxmark3[0x804b391]</p><p>Has anybody here an idea how to solve this problem?!</p><p>Any help is greatly appreciated!</p><p>Regards,<br />Tom</p>]]></summary>
			<author>
				<name><![CDATA[TomCyber]]></name>
				<uri>http://www.proxmark.org/forum/user/1427/</uri>
			</author>
			<updated>2010-04-21T09:22:48Z</updated>
			<id>http://www.proxmark.org/forum/topic/522/buffer-overflow-when-issuing-data-plot/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OSX client crashes on command mandemod]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/537/osx-client-crashes-on-command-mandemod/new/posts/"/>
			<summary type="html"><![CDATA[<p>It seems the current SVN version of mandemod allocates too much stackspace which causes an EXC_BAD_ACCESS signal to the proxmark3 client process. It happens as soon as you enter the CmdManchesterDemod function. I&#039;ve found the cause of the issue, which could be of interest to anyone developing the proxmark3 client:</p><p>The default stack size of pthread on OSX is 512kB.</p><p>This, in combination with the stack allocation of </p><div class="codebox"><pre><code>int BitStream[MAX_GRAPH_TRACE_LEN];</code></pre></div><p> will cause a stack overrun. MAX_GRAPH_TRACE_LEN is currently 128*1024, multiplied by the number of bytes in an int (4) equals 512kB --&gt; BAM!</p><p>There are a couple of ways of dealing with this. Since at most two bits of each element of the array is used, it would work to change the type to uint8_t. It may still be justifiable to malloc() the array. Also, one could set the stack size of the main thread to something larger -- but why waste memory if you don&#039;t need to?</p><p>I&#039;m willing to fix this issue, I just need someone to either give me Commit permission to the repository or apply the patch. Thanks!</p><div class="codebox"><pre><code>===================================================================
--- cmddata.c  (revision 434)
+++ cmddata.c  (working copy)
@@ -561,7 +561,7 @@
 
   /* But it does not work if compiling on WIndows: therefore we just allocate a */
   /* large array */
-  int BitStream[MAX_GRAPH_TRACE_LEN];
+  uint8_t BitStream[MAX_GRAPH_TRACE_LEN];
 
   /* Detect high and lows */
   for (i = 0; i &lt; GraphTraceLen; i++)</code></pre></div>]]></summary>
			<author>
				<name><![CDATA[toffe]]></name>
				<uri>http://www.proxmark.org/forum/user/1493/</uri>
			</author>
			<updated>2010-04-02T22:19:09Z</updated>
			<id>http://www.proxmark.org/forum/topic/537/osx-client-crashes-on-command-mandemod/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Compiling Errors]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/520/compiling-errors/new/posts/"/>
			<summary type="html"><![CDATA[<p>Ok so I got the p3 and tried with Make had a few errors<br />came here and saw the post on the armdevkit<br />Tried that.<br />I am on a Debian Based System, BackTrack 4</p><p>When I go to the dir I get this:<br />bt4:~/proxmark3/linux/proxmark3-read-only# make<br />make -C bootrom all<br />make[1]: Entering directory `/root/proxmark3/linux/proxmark3-read-only/bootrom&#039;<br />perl ../tools/mkversion.pl .. &gt; version.c || cp ../common/default_version.c version.c<br />arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c<br />make[1]: arm-eabi-gcc: Command not found<br />make[1]: *** [obj/version.o] Error 127<br />make[1]: Leaving directory `/root/proxmark3/linux/proxmark3-read-only/bootrom&#039;<br />make: *** [bootrom/all] Error 2</p>]]></summary>
			<author>
				<name><![CDATA[loganWHD]]></name>
				<uri>http://www.proxmark.org/forum/user/1513/</uri>
			</author>
			<updated>2010-03-18T14:48:05Z</updated>
			<id>http://www.proxmark.org/forum/topic/520/compiling-errors/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Client survey]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/431/client-survey/new/posts/"/>
			<summary type="html"><![CDATA[<p>It&#039;d be nice if I could cross-post this between the Linux Client and Windows Client forums, but ... just for my own understanding of the playing field, how many people use the client on each platform?&nbsp; &nbsp;If you use multiple, pick your favorite (or what you would use most often, assuming support was equally good on all platforms.)</p>]]></summary>
			<author>
				<name><![CDATA[CardSaysMoops]]></name>
				<uri>http://www.proxmark.org/forum/user/171/</uri>
			</author>
			<updated>2010-03-17T00:15:54Z</updated>
			<id>http://www.proxmark.org/forum/topic/431/client-survey/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Proxmark3 not found]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/521/proxmark3-not-found/new/posts/"/>
			<summary type="html"><![CDATA[<p>/proxmark3/linux# ./proxmark3<br />detach kernel driver failed: (-113) could not detach kernel driver from interface 0: No route to host!<br />claim failed: could not claim interface 0: No such file or directory!<br />PROXMARK3: NOT FOUND!<br />proxmark3&gt; exit</p><br /><p>I am in a Mac Book running this thru a Linux VM.&nbsp; <br />Any ideas?</p>]]></summary>
			<author>
				<name><![CDATA[loganWHD]]></name>
				<uri>http://www.proxmark.org/forum/user/1513/</uri>
			</author>
			<updated>2010-03-12T22:01:03Z</updated>
			<id>http://www.proxmark.org/forum/topic/521/proxmark3-not-found/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problem running proxmark3 as a non-root user]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/320/problem-running-proxmark3-as-a-nonroot-user/new/posts/"/>
			<summary type="html"><![CDATA[<p>I am having problem connecting to a proxmark3 using a Linux client. The firmware version is&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;20090713 and I compile the Linux client from the latest version of code available at <a href="http://code.google.com/p/proxmark3/downloads.">http://code.google.com/p/proxmark3/downloads.</a> I can connect to the client as root; however when I tried connecting as a non-root user, I get the following message: </p><p>&quot;detach kernel driver failed: (-1) could not detach kernel driver from interface 0: Operation not permitted!<br />claim failed: could not claim interface 0: Operation not permitted!<br />PROXMARK3: NOT FOUND!&quot;</p><p>I get this message even though I added the following line to /etc/udev/rules.d/026-proxmark.rules <br />SYSFS{idVendor}==&quot;9ac4&quot;, SYSFS{idProduct}==&quot;4b8f&quot;, MODE=&quot;0660&quot;, GROUP=&quot;dgi&quot;</p><p>Any idea as to what I can do to resolve this problem?</p><p>Best regards,</p><p>-crd</p>]]></summary>
			<author>
				<name><![CDATA[Ground Loop]]></name>
				<uri>http://www.proxmark.org/forum/user/722/</uri>
			</author>
			<updated>2010-01-31T17:09:45Z</updated>
			<id>http://www.proxmark.org/forum/topic/320/problem-running-proxmark3-as-a-nonroot-user/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[some notes on building the client for OS X]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/427/some-notes-on-building-the-client-for-os-x/new/posts/"/>
			<summary type="html"><![CDATA[<p>After seeing a few people suffer while trying to build and install the client, I feel that I should post a few notes about how I made this all work (on my system, at least).</p><h5>Building the client</h5><p>The Makefile will build several binaries -- cli, flasher, snooper, proxmark.&nbsp; The &quot;cli&quot; and &quot;snooper&quot; tools are simple demo programs which most people will not use; the &quot;flasher&quot; program can be used to reprogram the FPGA and application sections of the device.&nbsp; &nbsp;The main binary you will use will be &#039;proxmark&#039;.</p><p>There are two different ways to build the &#039;proxmark&#039; program -- with and without Qt support.&nbsp; The program is fundamentally a console-mode program that you will run using Terminal; the Qt support is only used with the &#039;plot&#039; command, and not strictly necessary.</p><p>The non-Qt case is the easy one; running &quot;make&quot; should be sufficient.&nbsp; It&#039;s supposed to automagically detect if you have Qt installed, but that logic is broken right now, so you&#039;ll have to comment a couple of lines out in the Makefile to make it happen.</p><p>The Qt case is a little harder.&nbsp; As of right now in ToT SVN, the way that is easiest to accomplish this is to download and install <a href="http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.0.dmg,">http://get.qt.nokia.com/qt/source/qt-ma &#133; 4.6.0.dmg,</a> then run make; it will link against QtCore.framework and QtGui.framework (in /Library/Frameworks).&nbsp; &nbsp;Other options include using MacPorts to install the qt4-mac port -- in fact, that&#039;s originally what I was doing, but there are some issues with build architecture on SnowLeopard and the naming of the pkgconfig files.</p><p>(Ideally, we would build a standalone, statically-linked binary; however, the the Qt Cocoa implementation does not support static linking.&nbsp; Other options would be using an app bundle and including the framework, or switching to the Qt Carbon implementation, both of which have their own disadvantages;&nbsp; I may create a binary that has everything linked into it except for the above Qt libraries, which are easily installed using the Qt installer.)</p><h5>Installing</h5><p>There&#039;s not much to this -- copy the binaries to somewhere on your path.&nbsp; The only special thing to note here is the &quot;make install_kext&quot; target in the Makefile.&nbsp; This takes the place of the unbind-proxmark script for Linux -- running &quot;sudo make install_kext&quot; will create a &quot;codeless kext&quot; that will prevent OS X&#039;s built-in HID driver from binding to the Proxmark3.&nbsp; After this step completes, you will need to reboot your machine.</p><h5>Choosing an ARM toolchain</h5><p>There are a number of choices for an ARM toolchain to build the device firmware.</p><p>* Macports&#039;s arm-elf-gcc -- this doesn&#039;t seem to work at all right now <img src="http://www.proxmark.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>* the install-gnuarm4.sh script in the tools directory -- this shows promise, but seems a bit brittle in the face of bad network connections (... such as at CCC....) and I haven&#039;t had a chance to really dig into it to figure out why.</p><p>* Our BootMii/MINI &quot;buildit&quot; script -- <a href="http://gitweb.bootmii.org/?a=tree&amp;p=bootmii-utils&amp;hb=HEAD&amp;f=buildtoolchain.">http://gitweb.bootmii.org/?a=tree&amp;p &#133; toolchain.</a>&nbsp; &nbsp;I&#039;m obviously a bit biased towards this script, but it won&#039;t generate a libgcc that supports thumb interworking, which may case other problems (see below)</p><p>* devkitARM (a toolchain for building Nintendo DS games) -- this is what the Windows ProxSpace seems to use.&nbsp; <a href="http://sourceforge.net/projects/devkitpro/files/devkitARM/">http://sourceforge.net/projects/devkitp &#133; devkitARM/</a></p><p>Thumb interworking support is not (AFAIK) critical to the project -- not having it should only generate larger binaries.&nbsp; &nbsp;It&#039;s something we should get working eventually, but if your toolchain doesn&#039;t support it (and you&#039;re getting error messages about a missing interwork/libgcc.a), you may want to try backing out the patch that (re-)enabled it (<a href="http://code.google.com/p/proxmark3/source/detail?r=279">http://code.google.com/p/proxmark3/source/detail?r=279</a>) until we can get this sorted out.</p><p>Hope this helps people get started, I&#039;d be more than happy to answer any questions.</p>]]></summary>
			<author>
				<name><![CDATA[d18c7db]]></name>
				<uri>http://www.proxmark.org/forum/user/171/</uri>
			</author>
			<updated>2009-12-29T19:29:00Z</updated>
			<id>http://www.proxmark.org/forum/topic/427/some-notes-on-building-the-client-for-os-x/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[TouchaTag and Rfidiot]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/344/touchatag-and-rfidiot/new/posts/"/>
			<summary type="html"><![CDATA[<p>Is it possible to get a trace from the touchatag reader (tikitag) and rfidiot?</p><p>It uses the ACS pcsc protocol it this helps.</p>]]></summary>
			<author>
				<name><![CDATA[*dudux]]></name>
				<uri>http://www.proxmark.org/forum/user/903/</uri>
			</author>
			<updated>2009-12-12T23:11:48Z</updated>
			<id>http://www.proxmark.org/forum/topic/344/touchatag-and-rfidiot/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Linux Client in OSX - Some Success]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/303/linux-client-in-osx-some-success/new/posts/"/>
			<summary type="html"><![CDATA[<p>So after changing the pm3&#039;s USB descriptor to not be a HID device I was able to successfully prevent OSX from grabbing it so that libusb can talk to the pm3 without having to run the detach command.&nbsp; I know doing this creates other issues, so I&#039;m only doing it temporarily until a solution is decided upon.</p><p>The proxmark3 client can see the pm3, but it hangs when a command is entered because usb_bulk_read in the reader pthread does not appear to honor the timeout value and hangs indefinitely.&nbsp; If you then do something to get the device to transmit data (like unplug it and plug it back in, or enter standalone mode) it does receive the data.</p><p>Can anybody else try to replicate this?&nbsp; Any ideas for a workaround?</p>]]></summary>
			<author>
				<name><![CDATA[bushing]]></name>
				<uri>http://www.proxmark.org/forum/user/627/</uri>
			</author>
			<updated>2009-11-05T22:37:36Z</updated>
			<id>http://www.proxmark.org/forum/topic/303/linux-client-in-osx-some-success/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Compiler for FPGA]]></title>
			<link rel="alternate" href="http://www.proxmark.org/forum/topic/337/compiler-for-fpga/new/posts/"/>
			<summary type="html"><![CDATA[<p>Is there a compiler for the language used in FPGA?<br />The toolchain is only for arm? Is it correct?</p>]]></summary>
			<author>
				<name><![CDATA[jonor]]></name>
				<uri>http://www.proxmark.org/forum/user/887/</uri>
			</author>
			<updated>2009-09-17T21:28:59Z</updated>
			<id>http://www.proxmark.org/forum/topic/337/compiler-for-fpga/new/posts/</id>
		</entry>
</feed>
