USB Printer support

Pete Rushmere <[email protected]>
Newsgroups gmane.os.netbsd.ports.cobalt
Message-ID <[email protected]>
Hi All,

Trying to set the Qube up as a print server, but I have run into problems...

Compiled a new 4.0 kernel, added ehci support for good measure - all seems OK 
so far. Qube is equipped with a Belkin 5 port USB card. The Qube recognises 
the printer at ulpt0 as per dmesg...

NetBSD 4.0 (MYKERNEL) #2: Sat May 17 16:14:04 BST 2008
        [email protected]:/usr/src/sys/arch/cobalt/compile/MYKERNEL
Cobalt Qube 2
total memory = 256 MB
avail memory = 246 MB
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
com0: console
cpu0 at mainbus0: QED RM5200 CPU (0x28a0) Rev. 10.0 with built-in FPU Rev. 
10.0
cpu0: 32KB/32B 2-way set-associative L1 Instruction cache, 48 TLB entries
cpu0: 32KB/32B 2-way set-associative write-back L1 Data cache
mcclock0 at mainbus0 addr 0x10000070: mc146818 compatible time-of-day clock
panel0 at mainbus0 addr 0x1f000000
gt0 at mainbus0 addr 0x14000000
pci0 at gt0
pci0: i/o space, memory space enabled, rd/line, wr/inv ok
pchb0 at pci0 dev 0 function 0: Galileo GT-64111 System Controller, rev 1
tlp0 at pci0 dev 7 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at level 1
tlp0: Ethernet address 00:10:e0:00:49:c4
lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 9 function 0
pcib0: VIA Technologies VT82C586 PCI-ISA Bridge, rev 39
viaide0 at pci0 dev 9 function 1
viaide0: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
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
ohci0 at pci0 dev 10 function 0: NEC USB Host Controller (rev. 0x43)
ohci0: interrupting at irq 9
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 10 function 1: NEC USB Host Controller (rev. 0x43)
ohci1: interrupting at irq 9
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 10 function 2: NEC USB Host Controller (rev. 0x04)
ehci0: interrupting at irq 9
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
tlp1 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
tlp1: interrupting at level 2
tlp1: Ethernet address 00:10:e0:00:48:05
lxtphy1 at tlp1 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mips3_cp0_counter" frequency 125000000 Hz quality 
100
Kernelized RAIDframe activated
ulpt0 at uhub0 port 3 configuration 1 interface 0
ulpt0: Brother HL-2030 series, rev 2.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
wd0 at atabus0 drive 0: <SAMSUNG SP0411N>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 32253 MB, 65531 cyl, 16 head, 63 sec, 512 bytes/sect x 66055248 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
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

So, I do 'sh /dev/MAKEDEV usbs' which should build the device nodes for the 
usb subsystems, and I get:

root@qube:/home/pete sh /dev/MAKEDEV usbs
/dev/MAKEDEV: usb: unknown device
/dev/MAKEDEV: usb0: unknown device
/dev/MAKEDEV: usb1: unknown device
/dev/MAKEDEV: usb2: unknown device
/dev/MAKEDEV: usb3: unknown device
/dev/MAKEDEV: usb4: unknown device
/dev/MAKEDEV: usb5: unknown device
/dev/MAKEDEV: usb6: unknown device
/dev/MAKEDEV: usb7: unknown device
/dev/MAKEDEV: uhid0: unknown device
/dev/MAKEDEV: uhid1: unknown device
/dev/MAKEDEV: uhid2: unknown device
/dev/MAKEDEV: uhid3: unknown device
/dev/MAKEDEV: ulpt0: unknown device
/dev/MAKEDEV: ulpt1: unknown device
/dev/MAKEDEV: ttyU0: unknown device
/dev/MAKEDEV: ttyU1: unknown device
/dev/MAKEDEV: urio0: unknown device
/dev/MAKEDEV: uscanner0: unknown device
/dev/MAKEDEV: uscanner1: unknown device
/dev/MAKEDEV: ugen0: unknown device

As you can see, it won't build the ulpt* device node for the printer. I'm 
stuck now... Any ideas?

Cheers,
Pete.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.