Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Apr 2001 14:00:09 +0200
From:      Herbert <h.j.s@gmx.at>
To:        freebsd-stable@FreeBSD.org
Subject:   USB in FreeBSD 4.3 RCx?
Message-ID:  <20010415140008.A37371@freebsd2.rocks>

next in thread | raw e-mail | index | archive | help
Hei!

Is there something wrong with USB in FreeBSD 4.3 RCx? I got my
Handspring Visor working in FreeBSD 4.2, but not with the latest
release candidate. My Visor works under NetBSD-1.5.1_BETA
(pilot-link,malsync).

I compiled USB support into the kernel and later as modules. But my
Visor is not found, when I press the Hotsync button.

Something strange happened when I compiled USB as modules first time:

The USB devices where detected during the boot process:

uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 11 at device
7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered

although kldstat said:

Id Refs Address    Size     Name   
 1    5 0xc0100000 2b0944   kernel
 2    1 0xc03b1000 9cc0     agp.ko
 3    1 0xc12a8000 6000     linprocfs.ko
 4    1 0xc12d6000 4000     logo_saver.ko
 5    1 0xc12dc000 12000    linux.ko

When I did kldload usb and kldload ugen I got the following errors:

module_register: module usb/uhub already exists!
linker_file_sysinit "usb.ko" failed to register! 17

module_register: module uhub/ugen already exists!
linker_file_sysinit "ugen.ko" failed to register! 17

Kldstat reported afterwards:

Id Refs Address    Size     Name
 1    7 0xc0100000 2b0944   kernel
 2    1 0xc03b1000 9cc0     agp.ko
 3    1 0xc12a8000 6000     linprocfs.ko
 4    1 0xc12d6000 4000     logo_saver.ko
 5    1 0xc12dc000 12000    linux.ko
 6    1 0xc134f000 19000    usb.ko
 7    1 0xc1371000 5000     ugen.ko

I compiled the same kernel again and now my USB devices are reported as
unknown devices during boot. Loading the modules does work again.

kldload usb
kldload ugen
kldstat 

Id Refs Address    Size     Name
 1    9 0xc0100000 29b520   kernel
 2    1 0xc039c000 9cc0     agp.ko
 3    1 0xc12a3000 6000     linprocfs.ko
 4    1 0xc12cf000 4000     logo_saver.ko
 5    1 0xc12d4000 12000    linux.ko
 6    1 0xc1341000 19000    usb.ko
 9    1 0xc1381000 10000    mga.ko
10    1 0xc1392000 d000     drm.ko
13    1 0xc15c5000 5000     ugen.ko

I can kldunload ugen, but not usb :

kldunload -v usb
Unloading usb.ko, id=6
kldunload: can't unload file: Device not configured

When I got my Visor working under FreeBSD 4.2, I could only use
coldsync, but not malsync to sync my avantgo channels.
It always reported 'can't bind to /dev/ugen0'
As I mentioned earlier, I can sync my Visor under NetBSD-1.5.1_BETA,
both with pilot-link and malsync. 

Any comments?

Regards,
Herbert 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010415140008.A37371>