On 11/11/14 19:46, Johan Hovold wrote:
On Tue, Nov 11, 2014 at 04:43:52PM +0000, Sid Boyce wrote:
Results
-----------
root@sdrbox:~# lsusb
Bus 002 Device 004: ID 13fd:1840 Initio Corporation INIC-1608 SATA bridge
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 15ba:000c Olimex Ltd.
The failure due to AtMega32 not attached.
root@sdrbox:~# avrdude -p m32 -F -c stk500v2 -P /dev/ttyACM1
avrdude: stk500v2_command(): warning: Command timed out
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0xc807c6
avrdude: Expected signature for ATmega32 is 1E 95 02
avrdude done. Thank you.
I'm really not sure what I'm supposed to make of the above.
Care to submit the patch on a format that I can apply (i.e. with proper
subject and commit message and patch inline in body)? See
Documentation/SubmittingPatches for details.
Also why are you using an ACM node above? That's a different driver
(cdc-acm).
Could you provide "lsusb -v" output for your device as well?
Thanks,
Johan
root@sdrbox:~# lsusb
Bus 002 Device 004: ID 13fd:1840 Initio Corporation INIC-1608 SATA bridge
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 15ba:000c Olimex Ltd.
Bus 004 Device 002: ID 195d:1009 Itron Technology iONE
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 04f3:0103 Elan Microelectronics Corp. ActiveJet
K-2024 Multimedia Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I have done another patch, please let me know if it needs a cleanup.
Details from the original code for kernel 2.6.x which uses
linux/smp_lock.h and no longer builds.
root@sdrbox:/b2/drivers/usb/serial# grep OLIMEX ftdi_sio.c
{ USB_DEVICE(OLIMEX_VID, OLIMEX_ARM_USB_OCD_PID),
{ USB_DEVICE(OLIMEX_VID, OLIMEX_ARM_USB_OCD_H_PID),
{ USB_DEVICE(OLIMEX_VID, OLIMEX_AVR_ISP500_ISO_PID) },
root@sdrbox:/b2/drivers/usb/serial# grep OLIMEX ftdi_sio_ids.h
#define OLIMEX_VID 0x15BA
#define OLIMEX_ARM_USB_OCD_PID 0x0003
#define OLIMEX_AVR_ISP500_ISO_PID 0x000B
#define OLIMEX_ARM_USB_OCD_H_PID 0x002b
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Senior Staff Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks
This patch adds support for the OLIMEX ISP500 AVR Programmer to kernel 3.18-rc4.
Signed off by: Sid Boyce (sboyce@xxxxxxxxxxxxxxxx)
Tested by: Sid Boyce (sboyce@xxxxxxxxxxxxxxxx)
---
drivers/usb/serial/ftdi_sio.c 1 +
drivers/usb/serial/ftdi_sio_ids.h b/drivers/usb/serial/ftdi_sio_ids.h 1 +
2 files changed, 2 insertion(+)
INDEX: linux/drivers/usb/serial/ftdi_sio.c
diff -ur a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
--- a/drivers/usb/serial/ftdi_sio.c 2014-11-10 20:14:22.492905152 +0000
+++ b/drivers/usb/serial/ftdi_sio.c 2014-11-10 19:59:53.000000000 +0000
@@ -770,6 +770,7 @@
.driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
{ USB_DEVICE(OLIMEX_VID, OLIMEX_ARM_USB_OCD_H_PID),
.driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
+ { USB_DEVICE(OLIMEX_VID, OLIMEX_AVR_ISP500_ISO_PID) },
{ USB_DEVICE(FIC_VID, FIC_NEO1973_DEBUG_PID),
.driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
{ USB_DEVICE(FTDI_VID, FTDI_OOCDLINK_PID),
INDEX: linux/drivers/usb/serial/ftdi_sio_ids.h
diff -ur a/drivers/usb/serial/ftdi_sio_ids.h b/drivers/usb/serial/ftdi_sio_ids.h
--- a/drivers/usb/serial/ftdi_sio_ids.h 2014-11-10 20:14:33.411527535 +0000
+++ b/drivers/usb/serial/ftdi_sio_ids.h 2014-11-10 20:00:07.000000000 +0000
@@ -838,6 +838,7 @@
/* Olimex */
#define OLIMEX_VID 0x15BA
#define OLIMEX_ARM_USB_OCD_PID 0x0003
+#define OLIMEX_AVR_ISP500_ISO_PID 0x000B
#define OLIMEX_ARM_USB_OCD_H_PID 0x002b
/*