October 10, 2024, 10:45:35 AM

AVR-ISP500-ISO on Linux

Started by RazZziel, December 09, 2013, 12:45:18 PM

Previous topic - Next topic

RazZziel

I'm trying to build the AVR-ISP500-ISO driver, but it fails because <linux/smp_lock.h> doesn't exist since 2.6.39.

Where can I find up-to-date drivers?

Build log: http://pastebin.com/raw.php?i=W4Y51tNZ
Kernel: Linux Bebop 3.12.1-1-pae #1 SMP PREEMPT Sun Nov 24 20:40:03 EST 2013 i686 GNU/Linux

RazZziel

hwinfo shows this when I have the USB plugged in


69: USB 00.0: 0000 Unclassified device
  [Created at usb.122]
  Unique ID: hSuP.UzKTwAFER62
  Parent ID: pBe4.9NRh2dkXGyA
  SysFS ID: /devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb2/2-2/2-2:1.0
  SysFS BusID: 2-2:1.0
  Hardware Class: unknown
  Model: "Olimex AVR-ISP500-ISO COM"
  Hotplug: USB
  Vendor: usb 0x15ba "Olimex Ltd."
  Device: usb 0x000b "AVR-ISP500-ISO COM"
  Revision: "6.00"
  Serial ID: "OLUMA8VB"
  Speed: 12 Mbps
  Module Alias: "usb:v15BAp000Bd0600dc00dsc00dp00icFFiscFFipFFin00"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #68 (Hub)


but dmesg shows nothing more than


[29121.577231] usb 2-2: new full-speed USB device number 7 using xhci_hcd


And no ttyACM* nor ttyUSB* device is created

RazZziel

I somehow made it work, shoving the programmer down ftdi_sio's throat.


sudo bash -c "echo 0x15ba 0x000b > /sys/bus/usb-serial/drivers/ftdi_sio/new_id"


And programmed the thing with


avrdude -p m16 -c stk500v2 -P /dev/ttyUSB0 -v -U flash:w:ctrl_peana.hex



...
avrdude: 1976 bytes of flash written
avrdude: verifying flash memory against ctrl_peana.hex:
avrdude: load data flash data from input file ctrl_peana.hex:
avrdude: input file ctrl_peana.hex auto detected as Intel Hex
avrdude: input file ctrl_peana.hex contains 1976 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.31s

avrdude: verifying ...
avrdude: 1976 bytes of flash verified

avrdude: safemode: lfuse reads as CF
avrdude: safemode: hfuse reads as 89
avrdude: safemode: Fuses OK (H:FF, E:89, L:CF)

avrdude done.  Thank you.