tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: porting udl(4) from OpenBSD



Hi,

> I've heavily modified udl(4). I think it is faster than before :)
> I made following patches,
> 
> - kernel driver and related changes to build kernel.
>   http://www.naobsd.org/udl/kern.diff

I've tried it on Cobalt Qube 2700 and the Century LCD-8000U,
http://www.century.co.jp/products/pc/monitor/lcd-8000u.html
and it just works on ttyE0 (the LCD wsdisplay + ukbd) terminal.
Very cool!
http://www.ceres.dti.ne.jp/~tsutsui/netbsd/cobalt-udl.jpg

I've also put some files and patches for trial on NetBSD/cobalt 5.0.1:
http://www.ceres.dti.ne.jp/~tsutsui/netbsd/cobalt-udl-20091108.tar.gz

dmesg is here:
---
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.0.1 (GENERIC_LARGE) #3: Sun Nov  8 21:49:44 JST 2009
        tsutsui@mirage:/r/work/src-udl/src/sys/arch/cobalt/compile/GENERIC_LARGE
Cobalt Qube 2700
total memory = 65536 KB
avail memory = 55608 KB
mainbus0 (root)
cpu0 at mainbus0: QED RM5200 CPU (0x2810) Rev. 1.0 with built-in FPU Rev. 1.0

 :

ehci0 at pci0 dev 10 function 2: NEC USB Host Controller (rev. 0x02)
ehci0: interrupting at irq 9
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub0 at usb0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2 at usb2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Composite USB PS2 Converter USB to PS2 Adaptor  v1.12, rev 1.10/0.01, 
addr 2, iclass 3/1
udl0 at uhub2 port 2
udl0: DisplayLink LCD-8000U, rev 2.00/0.02, addr 2
wsdisplay0 at udl0 kbdmux 1
wskbd0 at ukbd0 mux 1
uhidev1 at uhub1 port 2 configuration 1 interface 1
uhidev1: NOVATEK USB Keyboard, rev 1.10/1.12, addr 2, iclass 3/0
uhidev1: 4 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 4: input=2, output=0, feature=0
wd0 at atabus0 drive 0: <QUANTUM FIREBALLlct15 15>
wd0: 14324 MB, 29104 cyl, 16 head, 63 sec, 512 bytes/sect x 29336832 sectors
Kernelized RAIDframe activated
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

 :

NetBSD/cobalt (colt2700) (ttyZ0)

login: Nov  8 21:58:04 colt2700 login: ROOT LOGIN (root) ON ttyE0
---

> these can be applied to netbsd-5. userland binaries for evb{arm,ppc} are
> also available,

BTW, which major numbers for wscons devices on each port?
Maybe we can reserve device majors for such "serial only" ports
before importing udl(4) driver itself.

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index