Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2010-01-21 14:05:35

adam@algroup.co.uk
Contributor
From: UK
Registered: 2009-05-01
Posts: 203
Website

Commands getting bitflipped?

I've just built and flashed the latest version, and a bunch of commands no longer work...

I added a debugger to UsbPacketReceived in armsrc/appmain.c, and it looks like the 2nd byte of the command is getting flipped:

  proxmark3> tune
  > tune
  #db# processing: 0x0400
  proxmark3> #db# Measuring antenna characteristics, please wait.
  unrecognized command: 0x0410

the command should be 0x0401.

other commands fail in the same way... such as 0x0420 becoming 0x0402

I'm running under linux with the following dev:

$ arm-elf-gcc -v
Using built-in specs.
Target: arm-elf
Configured with: ../configure --enable-interwork --target=arm-elf --program-prefix=arm-elf- --prefix=/home/addy/bin/arm-toolchain --disable-werror --enable-languages=c,c++ --enable-multilib --disable-shared --disable-nls --disable-threads --with-gcc --with-gnu-ld --with-gnu-as --with-dwarf2 --with-newlib --with-headers=../newlib-1.17.0/newlib/libc/include --disable-libssp --disable-libstdcxx-pch --disable-libmudflap --disable-libgomp -v
Thread model: single
gcc version 4.3.3 (GCC)

btw, 'flasher' in the client directory doesn't seem to work:

client/flasher bootrom,os,fpga bootrom/obj/bootrom.s19 armsrc/obj/osimage.s19 armsrc/obj/fpgaimage.s19
Waiting for Proxmark to appear on USB... Found.
Flashing bootrom from bootrom/obj/bootrom.s19
Bad file format
Flashing os from armsrc/obj/osimage.s19
Bad file format
Flashing fpga from armsrc/obj/fpgaimage.s19
Bad file format
Have a nice day!

but the one in linux works just fine:

linux$ ./flasher bootrom,fpga,os ../bootrom/obj/bootrom.s19 ../armsrc/obj/fpgaimage.s19 ../armsrc/obj/osimage.s19
Waiting for Proxmark to appear on USB... Found.
Flashing bootrom from ../bootrom/obj/bootrom.s19
expected = 00101a1c flush, c.ext1 = 00101a00
done.
Flashing fpga from ../armsrc/obj/fpgaimage.s19
expected = 0010c4bc flush, c.ext1 = 0010c400
done.
Flashing os from ../armsrc/obj/osimage.s19
expected = 00122312 flush, c.ext1 = 00122300
done.
Have a nice day!

Offline

#2 2010-01-21 15:08:50

henryk
Contributor
Registered: 2009-07-27
Posts: 99

Re: Commands getting bitflipped?

Moin,

adam@algroup.co.uk wrote:

  unrecognized command: 0x0410

the command should be 0x0401.

So it's a classic case of byte order confusion.

adam@algroup.co.uk wrote:

btw, 'flasher' in the client directory doesn't seem to work:

client/flasher bootrom,os,fpga bootrom/obj/bootrom.s19 armsrc/obj/osimage.s19 armsrc/obj/fpgaimage.s19
Waiting for Proxmark to appear on USB... Found.
Flashing bootrom from bootrom/obj/bootrom.s19
Bad file format

The new flasher code uses ELF files, not S19 anymore.

adam@algroup.co.uk wrote:

but the one in linux works just fine:

There is no linux directory any more, that's just laying around from a previous build (you didn't make clean before svn update). You should delete it.

--
Henryk Plötz
Grüße aus Berlin

Offline

#3 2010-01-21 16:54:26

adam@algroup.co.uk
Contributor
From: UK
Registered: 2009-05-01
Posts: 203
Website

Re: Commands getting bitflipped?

OK, thanks. I've deleted my old linux directory and fixed the top level Makefile so it uses the .elf instead of .s19 and now 'make flash...' commands work.

Oh, and flashing with the elf version also fixed the other problem, so double thanks! smile

Offline

Board footer

Powered by FluxBB