Vendor syntax error

Net Llama! netllama
Mon May 17 12:02:10 PDT 2004


On 05/09/04 07:38, Klaus-Peter Schrage wrote:
> Net Llama! wrote:
> 
>> On 05/08/04 17:05, Harry G wrote:
>>
>>> On Sat, 2004-05-08 at 19:35, Net Llama! wrote:
>>>
>>>> On 05/08/04 14:23, Harry G wrote:
>>>>
>>>>> On Sat, 2004-05-08 at 16:39, Net Llama! wrote:
>>>>>
>>>>>
>>>>>> On 05/08/04 12:34, Harry G wrote:
>>>>>>
>>>>>>
>>>>>>> On Sat, 2004-05-08 at 12:17, Net Llama! wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> On 05/08/04 08:58, Harry G wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> I am installing a HP scanner on my wifes system.  I do a cat
>>>>>>>>> /proc/bus/usb/devices, and it returns the following info for the
>>>>>>>>> scanner:
>>>>>>>>> P:  Vendor=03f0 ProdID=2b11 Rev= 1.00
>>>>>>>>> S:  Manufacturer=Hewlett-Packard
>>>>>>>>> S:  Product=PSC 2170 Series
>>>>>>>>> S:  SerialNumber=MY38OF85N873
>>>>>>>>>
>>>>>>>>> But when I try to do a insmod command using the given specs, I 
>>>>>>>>> get:
>>>>>>>>>
>>>>>>>>> Harry:/# insmod scanner vendor=03f0 product=2b11
>>>>>>>>> Using /lib/modules/2.4.24-x1/kernel/drivers/usb/scanner.o
>>>>>>>>> /lib/modules/2.4.24-x1/kernel/drivers/usb/scanner.o: invalid 
>>>>>>>>> argument
>>>>>>>>> syntax for vendor: 'f'
>>>>>>>>>
>>>>>>>>> Any ideas why it returns the error?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> perhaps the value that you're supplying for the vendor parameter 
>>>>>>>> of the scanner module isn't valid?  what if you leave out the 
>>>>>>>> vendor parameter?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> It will work only if I leave both the vendor and product= parameter:
>>>>>>> Using /lib/modules/2.4.24-x1/kernel/drivers/usb/scanner.o
>>>>>>>
>>>>>>> But then I try to do a scanimage --list-devices, I get:
>>>>>>>
>>>>>>> No scanners were identified. If you were expecting something 
>>>>>>> different,
>>>>>>
>>>>>>
>>>>>>
>>>>>> what do you get if you run that scanner module through modinfo ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> modinfo -d scanner
>>>>> "USB Scanner Driver 0.4.15"
>>>>
>>>>
>>>>
>>>> Try without -d
>>>
>>>
>>>
>>>
>>> OK.
>>>
>>> Harry:/home/harry# modinfo scanner
>>> filename:    /lib/modules/2.4.24-x1/kernel/drivers/usb/scanner.o
>>> description: "USB Scanner Driver 0.4.15"
>>> author:      "Henning Meier-Geinitz, henning at meier-geinitz.de"
>>> license:     "GPL"
>>> parm:        vendor int, description "User specified USB idVendor"
>>> parm:        product int, description "User specified USB idProduct"
>>> parm:        read_timeout int, description "User specified read timeout
>>> in seconds"
>>
>>
>>
>> That's your problem then.  vendor & product both must be integers. 
>> You're entering hex values.
>>
> Harry, try
>     insmod scanner vendor=0x03f0 product=0x2b11
> According to scanner.txt in the kernel source documentation, the numbers 
> should be given with the leading 0x's.
> Lonni, sorry to correct you: 'integer' designates the format of the 
> internal representation (I think it is a two-byte number), not the input 
> format. Integers may well be written in hex.

No need to apologize.  I'm quite happy to admit i'm out of my league on 
this stuff.  :)

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                       	       netllama at linux-sxs.org
Linux Step-by-step & TyGeMo: 		    http://netllama.ipfox.com

  08:40:01  up 154 days, 12:11,  1 user,  load average: 0.05, 0.05, 0.08



More information about the Linux-users mailing list