[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Lisa m firmware upload problem help needed

From: Gerard Toonstra
Subject: Re: [Paparazzi-devel] Lisa m firmware upload problem help needed
Date: Thu, 4 Oct 2012 11:14:36 -0300

Hmm... well, from your regular user the manufacturer and product are empty, which may indicate that udev also didn't see the info.
If udev doesn't see this information, it won't be able to assign the proper access to it.

You could dump what udev sees as follows. Expand the rule in paparazzi as follows:

ATTR{manufacturer}=="Transition Robotics Inc.", ATTR{product}=="Lisa/M (Upgrade)*", GROUP="plugdev", RUN+="/home/<your-username-here>/ %M %m '%s{manufacturer}' '%s{product}'" ,$major,$minor,$attr{manufacturer},$attr{product}

Add this shell script in home dir and chmod 755 :



echo >> ${HOMEDIR}/udevtest.out
echo "Major is: $1" >> ${HOMEDIR}/udevtest.out
echo "Minor is: $2" >>  ${HOMEDIR}/udevtest.out
echo "ATTR{manufacturer} is: $3" >>  ${HOMEDIR}/udevtest.out
echo "ATTR{product} is: $4" >>  ${HOMEDIR}/udevtest.out

exit 0

Then cat /home/<your=username-here>/udevtest.out to see the results.
Note that when i ran this, the product's brackets ( ) showed up as _ _ ,probably due to some weird shell expansion.

"sudo udevadm control --reload-rules"   by the way reloads the rules, if you ever change them.



On Thu, Oct 4, 2012 at 10:47 AM, Chris <address@hidden> wrote:
Hi Gerard
I get this when i type " lsusb -vvv" but the same as yours when i type "sudo  lsusb -vvv"
I guess this "Couldn't open device, some information will be missing" on line 2 is the problem.

Bus 003 Device 005: ID 1d50:600f OpenMoko, Inc.
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x1d50 OpenMoko, Inc.
  idProduct          0x600f
  bcdDevice            1.00
  iManufacturer           1
  iProduct                2
  iSerial                 3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           27
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       254 Application Specific Interface
      bInterfaceSubClass      1 Device Firmware Update
      bInterfaceProtocol      2
      iInterface              4
      Device Firmware Upgrade Interface Descriptor:
        bLength                             9
        bDescriptorType                    33
        bmAttributes                        9
          Will Detach
          Manifestation Intolerant
          Upload Unsupported
          Download Supported
        wDetachTimeout                    255 milliseconds
        wTransferSize                    2048 bytes
        bcdDFUVersion                   1.1a

Paparazzi-devel mailing list

Gerard Toonstra

reply via email to

[Prev in Thread] Current Thread [Next in Thread]