Subject: USB - current
To: Cobalt port <port-cobalt@NetBSD.org>
From: Arne Jensen <afj@web-it.dk>
List: port-cobalt
Date: 10/04/2005 23:39:37
Anyone ever tries to patch -current (3.99.9) to include USB support?
I know there was a discussion some while ago about patching gt.c, but, I
tried without luck..
I got this:
dmesg: (boot with an old Maxtor plucked in)
[snip]
viaide0: secondary channel interrupting at irq 15
atabus1 at viaide0 channel 1
uhci0 at pci0 dev 9 function 2: VIA Technologies VT83C572 USB Controller
(rev. 0x02)
uhci0: can't map i/o space
uhci1 at pci0 dev 10 function 0: VIA Technologies VT83C572 USB
Controller (rev. 0x61)
uhci1: interrupting at irq 9
usb0 at uhci1: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 10 function 1: VIA Technologies VT83C572 USB
Controller (rev. 0x61)
uhci2: interrupting at irq 0
usb1 at uhci2: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
VIA Technologies VT8237 EHCI USB Controller (USB serial bus, interface
0x20, revision 0x63) at
pci0 dev 10 function 2 not configured
tlp1 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
[snip..]
umass0 at uhub1 port 1 configuration 1 interface 0
umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Maxtor 9, 1366U4, 0\0000> disk fixed
sd0: 13029 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 26684784 sectors
wd0 at atabus0 drive 0: <ST360021A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 57241 MB, 116301 cyl, 16 head, 63 sec, 512 bytes/sect x 117231408
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
[snap..]
Up runningm, and connecting a USBmem-stick:
umass1 at uhub1 port 2 configuration 1 interface 0
umass1: USB Flash Disk, rev 2.00/2.00, addr 3
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd1 at scsibus1 target 0 lun 0: <JetFlash, TS512MJF2B, 2.00> disk removable
sd1: fabricating a geometry
sd1: 500 MB, 500 cyl, 64 head, 32 sec, 512 bytes/sect x 1024000 sectors
My config look likes this (diff from GENERIC):
[snip]
options PCI_NETBSD_CONFIGURE
options USBVERBOSE # verbose USB device autoconfig messages
options PCIBIOS
options PCIBIOS_ADDR_FIXUP
options PCIBIOS_BUS_FIXUP
options PCIBIOS_INTR_FIXUP
# USB Controller and Devices
# PCI USB controllers
# The EHCI is not ready for prime time.
#ehci* at pci? dev ? function ? # Enhanced Host Controller
ohci* at pci? dev ? function ? # Open Host Controller
uhci* at pci? dev ? function ? # Universal Host Controller (Intel)
# CardBus USB controllers
#ehci* at cardbus? dev ? function ? # Enhanced Host Controller
#ohci* at cardbus? dev ? function ? # Open Host Controller
# USB bus support
#usb* at ehci?
usb* at ohci?
usb* at uhci?
# USB Hubs
uhub* at usb?
uhub* at uhub? port ? configuration ? interface ?
# USB Generic driver
ugen* at uhub? port ?
# USB Mass Storage
umass* at uhub? port ? configuration ? interface ?
scsibus* at umass?
[snip]
Regard
Arne Jensen