Wednesday, September 26, 2012

Quartus jtagd and Linux kernel 3.5

Usbfs support, which is used by jtagd in Quartus, was dropped completely in kernel 3.5. I've seen quite invasive suggestion to patch path in jtagd's binary in one Altera forum, but there's a really simple workaround:

# mount -t debugfs none /sys/kernel/debug
# ln -s /sys/kernel/debug/usb/devices /dev/bus/usb
# mount /dev/bus /proc/bus -o bind


I've lost /proc/bus/input and /proc/bus/pci, of course, but I'm not sure if something in the system uses it. Anyway, jtag works again.

$ uname -r
3.5.4-1-ARCH
$ jtagconfig
1) USB-Blaster [USB 1-1.1.2.6]
  024030DD   EP4SGX530/ES

No comments: