error while validing and permission errors ??
Jorid
joridporeci at gmail.com
Tue Jul 17 23:19:49 UTC 2007
to Milosch,
i can flash the device using sam7 but not with dfu-prgrammer.
$lsusb
Bus 002 Device 010: ID 03eb:6124 Atmel Corp.
$dmesg | grep ttyUSB
[74521.940404] usb 2-3: generic converter now attached to ttyUSB0
$ sam7 -l /dev/ttyUSB0
Chip Version: 0
Embedded Processor: ARM7TDMI
NVRAM Region 1 Size: 128 K
NVRAM Region 2 Size: 0 K
SRAM Size: 128 K
Series: AT91SAM7Sxx
Page Size: 256 bytes
Lock Regions: 8
sam7> set_clock
sam7> unlock_regions
unlocking region 0: done
unlocking region 1: done
sam7> flash /home/user/Desktop/myfirmware.samba
sam7>
$
after i unplug and plug back the device the red led lights.
thos are the outputs of some commands after i flashed the device using sam7
$lsusb
Bus 002 Device 011: ID 16c0:076b
$ sudo /home/user/Desktop/rfid/dfu-programmer-0.3.0-hmw4/src/dfu-programmer
openpcd dfu_dnload /home/user/Desktop/main_dumbreader.bin
looking for 16c0:076b
determining device status: state = 0, status = 0
Device in Runtime Mode, send DFU detach request...
Resetting USB...
error resetting after detach: could not reset: No such device
looking for 16c0:076b
dfu-programmer: no device present.
$ sudo /home/user/Desktop/rfid/dfu-programmer-0.3.0-hmw4/src/dfu-programmer
openpcd dfu_dnload /home/user/Desktop/main_dumbreader.bin
looking for 16c0:076b
determining device status: state = 2, status = 0
dfuIDLE, continuing
wTransferSize = 0x0100
Starting download:
[#########################################################################################################]
finished!
Resetting USB...
error resetting after download: could not reset: No such device
dfu-programmer: failed to release interface 0.
$ sudo /home/user/Desktop/rfid/dfu-programmer-0.3.0-hmw4/src/dfu-programmer
openpcd dfu_dnload /home/user/Desktop/main_dumbreader.bin
looking for 16c0:076b
determining device status: state = 0, status = 0
Device in Runtime Mode, send DFU detach request...
Resetting USB...
error resetting after detach: could not reset: No such device
looking for 16c0:076b
dfu-programmer: no device present.
if i try to upload a file it says:
$ sudo /home/user/Desktop/rfid/dfu-programmer-0.3.0-hmw4/src/dfu-programmer
openpcd dfu_upload ~/Desktop/test2.bin
looking for 16c0:076b
determining device status: state = 2, status = 0
dfuIDLE, continuing
wTransferSize = 0x0100
Download failed.
---------------------------------------------------------------------------------------------------------
to Kn1ght L0rd,
i downladed librfid-0.1.0 and i built it with no errors. when i try to
run it says:
----
$ librfid-tool
librfid-tool - (C) 2006 by Harald Welte
This program is Free Software and has ABSOLUTELY NO WARRANTY
initializing librfid
you have to specify --protocol
----
you have to specify protocol?? how do i do that??
i also dowloaded svn.openpcd.org/trunk/host to test opcd_test but it looks
like something is missing
$ls
ausb
Makefile
opcd_sh.c
opcd_usb.c
zebvty
benchmark-20060824.txt
opcd_presence.c
opcd_test.c
opcd_usb.h
$ sudo sh Makefile
Makefile: 2: -lcrypt: not found
Makefile: 3: -I../firmware/include: not found
Makefile: 5: all:: not found
Makefile: 7: clean:: not found
Makefile: 8: -rm: not found
Makefile: 9: MAKE: not found
Makefile: 9: -C: not found
Makefile: 11: ausb/libausb.a:: not found
Makefile: 12: MAKE: not found
Makefile: 12: -C: not found
Makefile: 14: opcd_presence:: not found
Makefile: 15: CC: not found
Makefile: 15: LDFLAGS: not found
Makefile: 15: -L/usr/lib: not found
Makefile: 17: opcd_test:: not found
Makefile: 18: CC: not found
Makefile: 18: LDFLAGS: not found
Makefile: 18: -o: not found
Makefile: 20: opcd_sh:: not found
Makefile: 21: CC: not found
Makefile: 21: LDFLAGS: not found
Makefile: 21: -o: not found
Makefile: 24: %.o:: not found
Makefile: 25: Syntax error: newline unexpected
---------------------------------------------------------------------------------------------------
any idea what's wrong? i am getting kind of confused now
thanks again for your time and help guys.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openpcd.org/pipermail/openpcd-devel/attachments/20070717/8882a68f/attachment.html
More information about the openpcd-devel
mailing list