lepingouin.tux | 1 Aug 2005 11:04
Favicon

Re: using usb HID under netBSD 2.0.2

Michael wrote:

>Hello,
>
>  
>
>>There are lots of mailing list for netbsd and sorry if it's not the
>>good list !
>>    
>>
>
>We'll see...
>
>  
>
>>I installed netbsd 2.0.2 with the iso cd and I want to make an 
>>application to read and write on USB-HID device.
>>
>>I read, for use HID devices I have to use the device file uhidx !
>>    
>>
>
>... with x being a number of some sort. See man uhid and man uhidev.
>
>  
>
>>But netbsd seems to not reconize my device, and i have no usb 
>>informations under dmesg !!
>>    
>>
(Continue reading)

Manuel Bouyer | 3 Aug 2005 11:15

Re: using usb HID under netBSD 2.0.2

On Mon, Aug 01, 2005 at 10:04:38AM +0100, lepingouin.tux wrote:
> [...]
> dmesg :
> 
> NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005
>    
> jmc <at> faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC
> total memory = 223 MB
> avail memory = 211 MB
> BIOS32 rev. 0 found at 0xfb3f0
> mainbus0 (root)
> cpu0 at mainbus0: (uniprocessor)
> cpu0: AMD Duron (686-class), 1303.05 MHz, id 0x671
> cpu0: features c3c3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
> cpu0: features c3c3fbff<PGE,MCA,CMOV,PAT,PSE36,MMXX,MMX>
> cpu0: features c3c3fbff<FXSR,SSE,3DNOW2,3DNOW>
> cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
> cpu0: L2 cache 64 KB 64B/line 16-way
> cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully 
> associative
> cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
> cpu0: 8 page colors
> isa0 at mainbus0

There's something really wrong here, it doens't find any PCI bus (and so no
PCI devices). What motherboard is it ?

--

-- 
Manuel Bouyer <bouyer <at> antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
(Continue reading)

Frank van der Linden | 3 Aug 2005 21:15
Picon

Re: using usb HID under netBSD 2.0.2

Ok, since no PCI buses show up, try compiling a kernel with the 
following in the config file:

acpi0 at mainbus0

options MPACPI
options MPACPI_SCANPCI

..and see if a PCI bus shows up then.

If you can't compile a kernel, I can compile one for you if you want to.

- Frank

lepingouin.tux | 8 Aug 2005 10:22
Favicon

Re: using usb HID under netBSD 2.0.2

Frank van der Linden wrote:

> Ok, since no PCI buses show up, try compiling a kernel with the 
> following in the config file:
>
> acpi0 at mainbus0
>
> options MPACPI
> options MPACPI_SCANPCI
>
> ..and see if a PCI bus shows up then.
>
> If you can't compile a kernel, I can compile one for you if you want to.
>
> - Frank
>
>
Yes I'm very interested by a ready compiled kernel, thank you !

fabien

Frank van der Linden | 9 Aug 2005 01:04
Picon

Re: using usb HID under netBSD 2.0.2

lepingouin.tux wrote:

 > Yes I'm very interested by a ready compiled kernel, thank you !

Ok. It's at ftp://ftp.netbsd.org/pub/NetBSD/misc/fvdl/netbsd.bz2

I compiled it off a netbsd-2 branch tree from a while ago, but that 
shouldn't matter.

- Frank

lepingouin.tux | 9 Aug 2005 11:19
Favicon

Re: using usb HID under netBSD 2.0.2

Frank van der Linden wrote:

> lepingouin.tux wrote:
>
> > Yes I'm very interested by a ready compiled kernel, thank you !
>
> Ok. It's at ftp://ftp.netbsd.org/pub/NetBSD/misc/fvdl/netbsd.bz2
>
> I compiled it off a netbsd-2 branch tree from a while ago, but that 
> shouldn't matter.
>
> - Frank
>
>
I tested your kernel, but that doesn't work :

...
ACPI : unable to load tables: AE_NO_ACPI_TABLES
...
cpu0: Cyrix MMX-enhanced MediaGX (GXm) (586-class), 299.16 Mz, id 0x540
...
NOTICE: this kernel does not support Pentium CPU class
NOTICE: this kernel does not support i486 CPU class
NOTICE: this kernel does not support i386 CPU class
panic: no appropriate CPU class available
Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:      leave
db{0}>

Have you compiled the kernel for x86 ?

(Continue reading)

Frank van der Linden | 9 Aug 2005 16:31
Picon

Re: using usb HID under netBSD 2.0.2

lepingouin.tux wrote:

>
> ...
> ACPI : unable to load tables: AE_NO_ACPI_TABLES
> ...
> cpu0: Cyrix MMX-enhanced MediaGX (GXm) (586-class), 299.16 Mz, id 0x540
> ...
> NOTICE: this kernel does not support Pentium CPU class
> NOTICE: this kernel does not support i486 CPU class
> NOTICE: this kernel does not support i386 CPU class
> panic: no appropriate CPU class available
> Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:      leave
> db{0}>

Ok.. let's try that again. It looks like ACPI won't work, so I included 
MPBIOS and MPBIOS_SCANPCI as a last resort. I also added I585_CPU, so 
that panic should be gone.

The new kernel is now available from the same location.

- Frank

lepingouin.tux | 9 Aug 2005 17:05
Favicon

Re: using usb HID under netBSD 2.0.2

Frank van der Linden wrote:

> lepingouin.tux wrote:
>
>>
>> ...
>> ACPI : unable to load tables: AE_NO_ACPI_TABLES
>> ...
>> cpu0: Cyrix MMX-enhanced MediaGX (GXm) (586-class), 299.16 Mz, id 0x540
>> ...
>> NOTICE: this kernel does not support Pentium CPU class
>> NOTICE: this kernel does not support i486 CPU class
>> NOTICE: this kernel does not support i386 CPU class
>> panic: no appropriate CPU class available
>> Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:      leave
>> db{0}>
>
>
> Ok.. let's try that again. It looks like ACPI won't work, so I 
> included MPBIOS and MPBIOS_SCANPCI as a last resort. I also added 
> I585_CPU, so that panic should be gone.
>
> The new kernel is now available from the same location.
>
> - Frank
>
>
that doesn't work again, I have the same message than beginning (ohci0: 
couldn't establish interrupt at irq 15 ) and the system freeze on login: 
(i can't enter my login).
(Continue reading)


Gmane