Author Topic: Wi-spy And X/qt  (Read 41945 times)

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #15 on: June 21, 2006, 10:07:33 pm »
Quote
Quote
Beats me.  I'm not a programmer.  I mostly just break stuff.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131780\"][{POST_SNAPBACK}][/a][/div]

Color me dumb. I have been looking around trying to find libusb, only to see (tonight) that Meanie included it in his zip file.

Barry, you did install libusb as well as the wispy-tools, right? Can you give us the last 10 lines (or so) of your dmesg command output right after inserting the wispy.

thanks,

Craig...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132296\"][{POST_SNAPBACK}][/a][/div]
I had already installed the same libusb that Meanie included.  I tried Meanie's just incase it was different.

here you go!


usbh: monitor_int_hndlr:
usbh: monitor_bh:
usbh: udc_connected: ACTIVE_LOW: 1<7>usbh: monitor_connected: 1
usbh: monitor_load: 4
usbh: monitor_hotplug: agent: usbh interface: monitor action: load
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xfe000000, IRQ 3
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device -2, assigned address 2
usb.c: USB device 2 (vend/prod 0x1781/0x83e) is not claimed by any active driver.
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Wi-spy And X/qt
« Reply #16 on: June 21, 2006, 10:17:25 pm »
Quote
Quote
Quote
Beats me.  I'm not a programmer.  I mostly just break stuff.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131780\"][{POST_SNAPBACK}][/a][/div]

Color me dumb. I have been looking around trying to find libusb, only to see (tonight) that Meanie included it in his zip file.

Barry, you did install libusb as well as the wispy-tools, right? Can you give us the last 10 lines (or so) of your dmesg command output right after inserting the wispy.

thanks,

Craig...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132296\"][{POST_SNAPBACK}][/a][/div]
I had already installed the same libusb that Meanie included.  I tried Meanie's just incase it was different.

here you go!


usbh: monitor_int_hndlr:
usbh: monitor_bh:
usbh: udc_connected: ACTIVE_LOW: 1<7>usbh: monitor_connected: 1
usbh: monitor_load: 4
usbh: monitor_hotplug: agent: usbh interface: monitor action: load
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xfe000000, IRQ 3
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device -2, assigned address 2
usb.c: USB device 2 (vend/prod 0x1781/0x83e) is not claimed by any active driver.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132300\"][{POST_SNAPBACK}][/a][/div]

usb.c: USB device 2 (vend/prod 0x1781/0x83e) is not claimed by any active driver.

yep, no kernel module/driver
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #17 on: June 21, 2006, 10:38:55 pm »
Quote
This gives me a:
wispy_gtk: error while loading shared libraries:  libusb-0.1.4: cannot load shared object file: No such file or directory

Same for curses.  Both with root and the normal zaurus user.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132299\"][{POST_SNAPBACK}][/a][/div]

Hmm, that is kind odd, because you did install libusb, right? I ran ldd against the wispy-tools and it looks like it is going to find libusb just fine on my Z:
bash-2.05# ldd wispy_curses
        libusb-0.1.4 => /usr/lib/libusb-0.1.4 (0x4002a000)
        libncurses.so.4 => /lib/libncurses.so.4 (0x4003b000)
        libc.so.6 => /lib/libc.so.6 (0x4009d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

(ldd is on devimg if you have played with that)

Can you check to see that you have libusb in /usr/lib/?

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #18 on: June 22, 2006, 12:36:21 am »
Quote
Quote
This gives me a:
wispy_gtk: error while loading shared libraries:  libusb-0.1.4: cannot load shared object file: No such file or directory

Same for curses.  Both with root and the normal zaurus user.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132299\"][{POST_SNAPBACK}][/a][/div]

Hmm, that is kind odd, because you did install libusb, right? I ran ldd against the wispy-tools and it looks like it is going to find libusb just fine on my Z:
bash-2.05# ldd wispy_curses
        libusb-0.1.4 => /usr/lib/libusb-0.1.4 (0x4002a000)
        libncurses.so.4 => /lib/libncurses.so.4 (0x4003b000)
        libc.so.6 => /lib/libc.so.6 (0x4009d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

(ldd is on devimg if you have played with that)

Can you check to see that you have libusb in /usr/lib/?

Craig...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132308\"][{POST_SNAPBACK}][/a][/div]
Yep, it's in there.

lrwxrwxrwx    1 501      501            19 Jun 22 01:58 libusb-0.1.so.4 -> libusb-0.1.so.4.4.2
-rwxr-xr-x    1 root     qpe         27592 Apr 11 20:46 libusb-0.1.so.4.4.2
lrwxrwxrwx    1 501      501            19 Jun 22 01:58 libusb.so -> libusb-0.1.so.4.4.2
lrwxrwxrwx    1 501      501            21 Jun 22 01:58 libusbpp-0.1.so.4 -> libusbpp-0.1.so.4.4.2
-rwxr-xr-x    1 root     qpe         18556 Apr 11 20:46 libusbpp-0.1.so.4.4.2
lrwxrwxrwx    1 501      501            21 Jun 22 01:58 libusbpp.so -> libusbpp-0.1.so.4.4.2


Should I chown it to root?
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #19 on: June 22, 2006, 07:34:30 am »
Quote
Yep, it's in there.

lrwxrwxrwx    1 501      501            19 Jun 22 01:58 libusb-0.1.so.4 -> libusb-0.1.so.4.4.2
-rwxr-xr-x    1 root     qpe         27592 Apr 11 20:46 libusb-0.1.so.4.4.2
lrwxrwxrwx    1 501      501            19 Jun 22 01:58 libusb.so -> libusb-0.1.so.4.4.2
lrwxrwxrwx    1 501      501            21 Jun 22 01:58 libusbpp-0.1.so.4 -> libusbpp-0.1.so.4.4.2
-rwxr-xr-x    1 root     qpe         18556 Apr 11 20:46 libusbpp-0.1.so.4.4.2
lrwxrwxrwx    1 501      501            21 Jun 22 01:58 libusbpp.so -> libusbpp-0.1.so.4.4.2


Should I chown it to root?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132316\"][{POST_SNAPBACK}][/a][/div]

Hmm, the sym links don't really matter (I believe) it is the actual ownership of the libusb library itself, and I can see that is owned by root, so it should be ok. Interestly enough your libusb library is a different size than mine.
bash-2.05$ cd /usr/lib
bash-2.05$ ls -l libusb*
lrwxrwxrwx    1 root     root           16 Jun 22 01:45 libusb -> libusb-0.1.4.4.0
lrwxrwxrwx    1 root     root           16 Jun 22 01:45 libusb-0.1.4 -> libusb-0.1.4.4.0
lrwxrwxrwx    1 root     root           19 Jun 22 01:45 libusb-0.1.4.4.0 -> libusb-0.1.4.4.0.so
-rwxr-xr-x    1 root     qpe         36968 Aug 12  2005 libusb-0.1.4.4.0.so
lrwxrwxrwx    1 root     root           19 Jun 22 01:45 libusb.so -> libusb-0.1.4.4.0.so

Not sure why mine is 36k and yours is 27k. I installed the libusb that was included in Meanie's zip file. Is that the one you installed?

Craig...
« Last Edit: June 22, 2006, 07:35:25 am by cvmiller »
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #20 on: June 22, 2006, 12:30:24 pm »
Quote
usb.c: USB device 2 (vend/prod 0x1781/0x83e) is not claimed by any active driver.

yep, no kernel module/driver
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132304\"][{POST_SNAPBACK}][/a][/div]

So isn't this just an issue of configuring hotplug to associate a driver with this device? Barry, do you know which driver is being used in your working slackware machine? Perhaps you can give us a list of your kernel modules (on the slackware machine) which include usb:
/sbin/lsmod | grep usb

Thanks,

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #21 on: June 22, 2006, 03:04:52 pm »
Quote
Quote
usb.c: USB device 2 (vend/prod 0x1781/0x83e) is not claimed by any active driver.

yep, no kernel module/driver
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132304\"][{POST_SNAPBACK}][/a][/div]

So isn't this just an issue of configuring hotplug to associate a driver with this device? Barry, do you know which driver is being used in your working slackware machine? Perhaps you can give us a list of your kernel modules (on the slackware machine) which include usb:
/sbin/lsmod | grep usb

Thanks,

Craig...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132415\"][{POST_SNAPBACK}][/a][/div]


It sees it as a keyboard.   I've also compiled it in a knoppix live environment, and it sees it as a keyboard there as well.

# /sbin/lsmod | grep usb
usbserial              21372   0  [pl2303]
usbkbd                  3096   0  (unused)
input                   3296   0  [keybdev mousedev hid usbkbd]
usbcore                62188   1  [pl2303 usbserial hid usbkbd uhci]
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #22 on: June 23, 2006, 09:16:45 pm »
Quote
It sees it as a keyboard.   I've also compiled it in a knoppix live environment, and it sees it as a keyboard there as well.
Hmm, that is interesting. Well the good news is that there is a keyboard driver for the Zaurus. I have hooked up a USB keyboard to the Z and it works (sort of), with the exception that the key mapping is all wrong.

So perhaps there is hope. Perhaps all that is needed is a hotplug config to link the device with the keyboard driver.

I am heading to California in the morning, so perhaps I'll find a wi-spy there, if not I'll be ordering one when I get back.

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #23 on: July 04, 2006, 05:22:35 pm »
Well, I looked all over the SF Bay Area for this device. No luck. I'll have to mail-order one. I hope to have some more info soon (after I receive it).

Craig....
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #24 on: July 04, 2006, 05:39:11 pm »
Quote
Well, I looked all over the SF Bay Area for this device. No luck. I'll have to mail-order one. I hope to have some more info soon (after I receive it).

Craig....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=133935\"][{POST_SNAPBACK}][/a][/div]


Good to see you're still looking into it.  My forhead hurts.  I have thought about flashing pdax just to see if it works that way.
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #25 on: July 07, 2006, 10:59:18 pm »
Quote
Good to see you're still looking into it.  My forhead hurts.  I have thought about flashing pdax just to see if it works that way.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=133939\"][{POST_SNAPBACK}][/a][/div]

OK, got the unit via mail-order. Got through the "device not claimed" (modprobe hid). Created /dev/hiddev0, but still getting "unable to find device" problem.

But I have only been working on this for a couple of hours. Unfortunately, I don't have strace to see exactly what the program (wispy_curses) is missing.

I did plug it into my LinuxPPC laptop, and after making wispy_curses and wispy_gtk, it works fine.

I do see differences between the LinuxPPC (kernel 2.6) and the Zaurus (2.4), which I am not sure about. On LinuxPPC, I see that it is the usbfs driver that is being used. I don't find a usbfs driver in the 2.4 kernel for the Zaurus (this could be a 2.6 only thing).

Barry, is your Slackware Linux 2.4 or 2.6? Can you do a cat /proc/bus/usb/devices and see what driver the wispy is using? Mine reports:
P:  Vendor=1781 ProdID=083e Rev= 1.00
S:  Manufacturer=MetaGeek
S:  Product=Wi-Spy
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 98mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbfs

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #26 on: July 07, 2006, 11:18:15 pm »
Quote
Quote
Good to see you're still looking into it.  My forhead hurts.  I have thought about flashing pdax just to see if it works that way.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=133939\"][{POST_SNAPBACK}][/a][/div]

OK, got the unit via mail-order. Got through the "device not claimed" (modprobe hid). Created /dev/hiddev0, but still getting "unable to find device" problem.

But I have only been working on this for a couple of hours. Unfortunately, I don't have strace to see exactly what the program (wispy_curses) is missing.

I did plug it into my LinuxPPC laptop, and after making wispy_curses and wispy_gtk, it works fine.

I do see differences between the LinuxPPC (kernel 2.6) and the Zaurus (2.4), which I am not sure about. On LinuxPPC, I see that it is the usbfs driver that is being used. I don't find a usbfs driver in the 2.4 kernel for the Zaurus (this could be a 2.6 only thing).

Barry, is your Slackware Linux 2.4 or 2.6? Can you do a cat /proc/bus/usb/devices and see what driver the wispy is using? Mine reports:
P:  Vendor=1781 ProdID=083e Rev= 1.00
S:  Manufacturer=MetaGeek
S:  Product=Wi-Spy
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 98mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbfs

Craig...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134290\"][{POST_SNAPBACK}][/a][/div]


It was 2.4.  Unfortunetly my laptop died on me over the weekend.  So no linux (other than my Z) till I can replace it.  That could be a while.
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #27 on: July 08, 2006, 10:49:09 am »
Quote
It was 2.4.  Unfortunetly my laptop died on me over the weekend.  So no linux (other than my Z) till I can replace it.  That could be a while.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134292\"][{POST_SNAPBACK}][/a][/div]

Bummers! I am sorry to hear that.

OK, I have a little more info on how this thing works. libusb requires usbfs to be available. Unfortunatley in the 2.4 kernel, this must be built into the kernel (not a module). The stock sharp kernel does not have usbfs built in.

I have the sharp kernel source, I can build a new kernel, but after that I am stuck. I don't know enough about how this thing boots to know where to put it, perhaps Meanie has some more info there. Perhaps the Guyhelm ROM includes usbfs, I'll have to do more research. But that appears to be the stopping point for the moment.

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Wi-spy And X/qt
« Reply #28 on: November 27, 2006, 03:19:56 am »
Quote
Beats me.  I'm not a programmer.  I mostly just break stuff.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131780\"][{POST_SNAPBACK}][/a][/div]


Yes and I can testify your honor!  He basterdized the sl-6000 with twinkly lights!

Anyway, Curious to see what this does cuz my c-3200 has no adhoc and cannot make it work with previous wifi sniffers.
« Last Edit: November 27, 2006, 03:24:00 am by Cresho »
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
Wi-spy And X/qt
« Reply #29 on: November 27, 2006, 12:11:26 pm »
Quote
Quote
Beats me.  I'm not a programmer.  I mostly just break stuff.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131780\"][{POST_SNAPBACK}][/a][/div]


Yes and I can testify your honor!  He basterdized the sl-6000 with twinkly lights!

Anyway, Curious to see what this does cuz my c-3200 has no adhoc and cannot make it work with previous wifi sniffers.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147309\"][{POST_SNAPBACK}][/a][/div]


You need to get yourself an ambicom wifi card.  Kismet works on my 3200.
« Last Edit: November 28, 2006, 02:30:24 am by BarryW »
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.