gnupic: Re: [gnupic] pk2 on amd64 fc4


Previous by date: 21 Mar 2006 12:04:54 +0000 Re: [gnupic] pk2 on amd64 fc4, John Sheahan
Next by date: 21 Mar 2006 12:04:54 +0000 Re: [gnupic] Beginner, Xiaofan Chen
Previous in thread: 21 Mar 2006 12:04:54 +0000 Re: [gnupic] pk2 on amd64 fc4, John Sheahan
Next in thread: 21 Mar 2006 12:04:54 +0000 Re: [gnupic] pk2 on amd64 fc4, John Sheahan

Subject: Re: [gnupic] pk2 on amd64 fc4
From: "Xiaofan Chen" ####@####.####
Date: 21 Mar 2006 12:04:54 +0000
Message-Id: <a276da400603210404w127835e5h7a47bc0319442252@mail.gmail.com>

On 3/21/06, John Sheahan ####@####.#### wrote:
> CFLAGS=$(OPTS) -I$(LIBUSB)/include -DLINUX -DCLAIM_USB
> Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033)
> Found USB PICkit as device '010' on USB bus 001, devnum 10
> Fatal error> Error setting USB configuration.
>
> also not there, but the prior worked.
>
> thanks a lot for your help Xiaofan.
> I gather I need to update the firmware next?
> (and also to persuade the code not to need to be root)
> John

If you still has the original version 1.01 firmware, you need to upgrade
the firmware. V1.10 is the latest firmware.

You can try Python based pyk to upgrade the firmware as well or use
Windows for that job,

You can set up hotplug script so that pk2 can work without being root.
You can try the following. It works for me under Ubuntu Breezy and FC4
32-bit Linux. This may not work under FC5. It is said that you need to use
udev rules for FC5.

mcuee@ubuntu:/etc/hotplug$ cat usb.usermap
pickit2 0x0003 0x04d8 0x0033 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00
0x00 0x00000 000

mcuee@ubuntu:/etc/hotplug/usb$ cat pickit2
#!/bin/bash

if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
    echo "changing ${DEVICE} pickit 1 or 2" >> /tmp/debug-hotplug

        chown root "${DEVICE}"
        chgrp pickit "${DEVICE}"
        chmod 660 "${DEVICE}"
fi


Regards,
Xiaofan

Previous by date: 21 Mar 2006 12:04:54 +0000 Re: [gnupic] pk2 on amd64 fc4, John Sheahan
Next by date: 21 Mar 2006 12:04:54 +0000 Re: [gnupic] Beginner, Xiaofan Chen
Previous in thread: 21 Mar 2006 12:04:54 +0000 Re: [gnupic] pk2 on amd64 fc4, John Sheahan
Next in thread: 21 Mar 2006 12:04:54 +0000 Re: [gnupic] pk2 on amd64 fc4, John Sheahan


Powered by ezmlm-browse 0.20.