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 2012-03-15 16:15:27

tlou
Member
Registered: 2012-02-13
Posts: 7

[SOLVED] Flashing issues

So, I did something that was probably pretty stupid and added a DbpString in the UsbPacketReceived in appmain.c. First flash went okay, and I wanted to remove it because I realised that it was a stupid thing to do, but I couldn't flash the OS again, assuming because it is using the previously flashed OS which tries to send a lot of usb packets due to that addition. Any ideas how to solve this? I'm using Ubuntu 11.10.
I've been working on adding EM4100 stand-alone functionality to the Proxmark3, and then this... Hrmpf. Let me know if any additional info is needed. I basically want a "fresh" OS again...
EDIT: I've only recently started to "orient" myself in the code and thus, I might be wrong in my assumptions that this is the cause, but it was after this addition that things went downhill.

#db# Prox/RFID mark3 RFID instrument                 
#db# bootrom: svn 526 2012-03-05 09:01:37                 
#db# os: svn 526-unclean 2012-03-15 13:27:57                 
#db# FPGA image built on 2009/12/ 8 at  8: 3:54
Loading ELF file '../armsrc/obj/osimage.elf'...
Loading usable ELF segments:
1: V 0x00110000 P 0x00110000 (0x0000f8d0->0x0000f8d0) [R X] @0xb8
2: V 0x00200000 P 0x0011f8d0 (0x00002678->0x00002678) [RWX] @0xf988
Note: Extending previous segment from 0xf8d0 to 0x11f48 bytes

Waiting for Proxmark to appear on USB...
Connected units:
	1. SN: ChangeMe [002/028]
 Found.
Entering bootloader...
write failed: could not detach kernel driver from interface 0: No data available!
Trying to reopen device...

Connected units:
	1. SN:  [002/028]

Connected units:
	1. SN:  [002/028]

Connected units:
	1. SN:  [002/028]

Connected units:
	1. SN: ChangeMe [002/030]
proxmark3> Press and hold down button NOW if your bootloader requires it.
Waiting for Proxmark to reappear on USB...
Connected units:
	1. SN: ChangeMe [002/030]
 Found.
Note: Your bootloader does not understand the new START_FLASH command
      It is recommended that you update your bootloader


Flashing...
Writing segments for file: ../armsrc/obj/osimage.elf
 0x00110000..0x00121f47 [0x11f48 / 288 blocks]write failed: could not detach kernel driver from interface 0: No data available!
Trying to reopen device...

Connected units:
	1. SN:  [002/030]

Connected units:
	1. SN:  [002/030]

Connected units:
	1. SN:  [002/030]

Connected units:
	1. SN: ChangeMe [002/031]
proxmark3> ReceiveCommandPoll returned 0
Error: Unexpected reply 0x0000 (expected ACK)
 ERROR
Error writing block 0 of 288

Any help would be greatly appreciated!

- Tiina

Last edited by tlou (2012-03-16 10:56:12)

Offline

#2 2012-03-15 17:53:28

wil
Contributor
Registered: 2010-04-13
Posts: 14

Re: [SOLVED] Flashing issues

Hi tlou,

May be you could try to flash the ARM using the on board JTAG port.
I already used the Bus Blaster from DangerousPrototypes
(http://dangerousprototypes.com/docs/Bus_Blaster)
with some success to debug the ARM with gdb.
It should be possible to use it as a flasher.

Wil

Offline

#3 2012-03-15 20:06:44

tlou
Member
Registered: 2012-02-13
Posts: 7

Re: [SOLVED] Flashing issues

@wil: Thanks for the tip, I'll have a look at it, but I might have a possibility to get my hands on another JTAG programmer so I don't need to wait for stuff to ship (I really hope so if that is needed).

I should add that I can still use the proxmark and client, and when using the client and messages are being sent to the proxmark, I'm receiving a message for each USB packet... It's just that I can't flash the OS which makes it impossible for me to do any further developing.
Any other ideas/thoughts are welcome smile

-Tiina

Offline

#4 2012-03-16 10:55:25

tlou
Member
Registered: 2012-02-13
Posts: 7

Re: [SOLVED] Flashing issues

This is silly, but I need to update this for future reference, because it's so annoying when someone has a problem and there is no solution to be found!
I did not need a JTAG programmer to solve this and I don't know why I didn't try it earlier.
How I did it: Press and hold the button throughout the OS image flashing process. Easy as that.

I will, however, get a Segger J-Link for future use, if I manage to mess up for real wink

-Tiina

Last edited by tlou (2012-03-16 10:59:14)

Offline

Board footer

Powered by FluxBB