usb tuesday

At Home.

Nothing much to report, my eldest asked for a chemical brothers CD for his birthday - pretty cool Huh!

At Work.

Spent half the day trying to decode what a customer's problem really was. We had several iterations of decoding techno babble until a clear problem statement emerged. With that we have a plan to work to a solution so lets wait and see what happens.

Connected the webcam to a sunblade 2000 in our lab, pulled down the usbskel driver from http://docs.sun.com/app/docs/doc/816-4854/6mb1o3ah2?q=usbskel&a=view the only thing missing is a Makefile. Here is what I used..

all: usbskel

usbskel: usbskel.c usbskel.h
        cc -D_KERNEL -xarch=v9 -c usbskel.c
        ld -dy -r -o usbskel usbskel.o -N misc/usba

Not the most elegant but enough to get a driver to put in /kernel/drv/sparcv9 together with this in /kernel/drv/usbskel.conf

usbskel_dumptree=1;
usbskel_parse_level=1;

and when I add_drv the usbskel driver to own interface 0 of the device thus..

add_drv -m '\* 0666 bin bin' -i  'usbif46d,8f0.100.config1.0' usbskel

I get this in /var/adm/messages...

 usbskel0: parse_level set to dump specific interface
 Port2:      USB descriptor tree for  Camera
 Port2:      highest configuration found=0
 Port2:      Configuration #0 (Addr= 0x300027f11b8)
 Port2:      String descr=<null string>
 Port2:      config descr: len=9 tp=2 totLen=173 numIf=3 cfgVal=1 att=0xa0 pwr=50
 Port2:      usb_cfg_data_t shows max if=2 and 0 cv descr(s).
 Port2:               interface #0 (0x300025068b0)
 Port2:              Alt #0 (0x300027ff0b0)
 Port2:              String descr=<none>
 Port2:              if descr: len=9 type=4 if=0 alt=0 n_ept=2 cls=255 sub=255 proto=255
 Port2:              usb_alt_if_data_t shows max ep=1 and 0 cv descr(s).
 Port2:                  endpoint[0], epaddr=0x81 (0x30003f02918)
 Port2:                  len=7 type=5 attr=0x1 pktsize=0 interval=1
 Port2:                  endpoint[1], epaddr=0x82 (0x30003f02930)
 Port2:                  len=7 type=5 attr=0x3 pktsize=1 interval=16
 Port2:              Alt #1 (0x300027ff0e8)
 Port2:              String descr=<none>
 Port2:              if descr: len=9 type=4 if=0 alt=1 n_ept=2 cls=255 sub=255 proto=255
 Port2:              usb_alt_if_data_t shows max ep=1 and 0 cv descr(s).
 Port2:                  endpoint[0], epaddr=0x81 (0x3000250b0b0)
 Port2:                  len=7 type=5 attr=0x1 pktsize=1023 interval=1
 Port2:                  endpoint[1], epaddr=0x82 (0x3000250b0c8)
 Port2:                  len=7 type=5 attr=0x3 pktsize=1 interval=16
 Port2:               interface #1 (0x300025068c0)
 Port2:               interface #2 (0x300025068d0)
 Port2:      Returning dev_curr_cfg:0x300027f11b8, dev_curr_if:0

I just need to work out what that means...

In Between.

15 miles in the bus ( ford galaxy - one of the best buys I have ever made).

0 miles on the bike, but I will ride it tomorrow as the bus gets serviced.

200 pounds on a set of front tyres for the bus, mind you they have done 35000 miles.

tim

Comments:

Post a Comment:
Comments are closed for this entry.
About

timatworkhomeandinbetween

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today
News

No bookmarks in folder

Blogroll

No bookmarks in folder