dmesg | tail -20
wlan1: link state changed to DOWN
wlan1: bpf attached
wlan1: bpf attached
wlan1: Ethernet address: 7c:5c:f8:68:5a:c9
lo0: link state changed to UP
wlan1: link state changed to UP
ugen0.7: <Black Sphere Technologies Black Magic Probe> at usbus0
umodem0 on uhub2
umodem0: <Black Magic GDB Server> on usbus0
umodem0: data interface 1, has no CM over data, has no break
umodem1 on uhub2
umodem1: <Black Magic UART Port> on usbus0
umodem1: data interface 3, has no CM over data, has no break/
Setup Umodem0 or Umodem1 non existent ports in /dev under FreeBSD
or how I learned to use the existing /dev/ttyU0 for gdb and /dev/ttyU1 for the virtual serial port
25.2.2. Connecting to USB Device Mode Serial Ports from FreeBSD
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. Use pstat -t
on the host to list the terminal lines. Near the end of the list you should see a USB serial port, eg "ttyU0". To open the connection, use:
#
cu -l /dev/ttyU0
After pressing the Enter key a few times you will see a login prompt.
The ucom driver attaches to USB modems, serial ports, and other devices
that need to look like a tty.
https://www.freebsd.org/cgi/man.cgi?query=uslcom&sektion=4
NAME
uslcom -- Silicon Laboratories CP2101/CP2102/CP2103/CP2104/CP2105 based
USB serial adapter
NAME
uchcom -- WinChipHead CH341/CH340 serial adapter driver
DESCRIPTION
The uchcom driver provides support for the WinChipHead CH341/CH340 USB-
to-RS-232 Bridge chip.
The device is accessed through the ucom(4) driver which makes it behave
like a tty(4).
FreeBSD + Crystalfontz USB LCD Displays
Matt Simerson (matt@tnpi.biz)
v1.0, 17 Feb 2004
This document describes how to get a Crystalfontz USB LCD display to work with FreeBSD.
Introduction
There are a quite a variety of LCD displays now available. Many are serial versions and thus work quite well on any platform, assuming you can run some version of LCD software on your platform or plan to write your own. Considering that options are available ranging from client/server packages to simple Perl modules, it shouldn't be beyond the average sysadmin's abilities to add a LCD to his mod'ed system. However, the newer USB variants can present significant issues.
(Happily) knowing next to nothing about USB devices beyond plugging them in and using them, I accepted an offer to spend some time seeing if I could get a Crystalfontz USB LCD display to work with FreeBSD. I scoured the Internet for a while rummaging around to find a documented solution and turned up very little. According to rumors on the lcdproc mailing list, a few developer types had gotten it working but nobody bothered publishing HOW they did it.
I feel it's important to note that the Crystalfontz LCD family seems to have the best reputation among the developers that write software for interacting with LCD displays. I read a lot of posts while researching this project and the general consensus is that "Crystalfontz LCD's cost more but they just work". I have no affiliation with Crystalfontz beyond them contributing several LCD panels to me for testing. I have not used any other LCD panels.
My care package of LCD's arrived from Crystalfontz and I plugged the USB LCD 634 into my development server (FreeBSD 5.2, dual PIII, 2U) and it immediately registered the device:
JTAG_Debug1_usbconfig-show_ifdrv.txt: 57 lines, 3984 characters.
fred@fredTC93-pc ~/A/JTAG_FreeBSD_Debug> cat JTAG_Debug1_usbconfig-show_ifdrv.txt
fred@fredTC93-pc ~/A/JTAG_FreeBSD_Debug> usbconfig show_ifdrv
ugen2.1: <Intel EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen2.1.0: uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1>
ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1.0: uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1>
ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.1.0: uhub2: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1>
ugen0.2: <Logitech USB Receiver> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (98mA)
ugen0.2.0: ukbd0: <Logitech USB Receiver, class 0/0, rev 2.00/12.11, addr 1>
ugen0.2.1: ums0: <Logitech USB Receiver, class 0/0, rev 2.00/12.11, addr 1>
ugen0.2.2: uhid0: <Logitech USB Receiver, class 0/0, rev 2.00/12.11, addr 1>
ugen1.2: <vendor 0x8087 product 0x8008> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.2.0: uhub3: <vendor 0x8087 product 0x8008, class 9/0, rev 2.00/0.04, addr 2>
ugen2.2: <vendor 0x8087 product 0x8000> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen2.2.0: uhub4: <vendor 0x8087 product 0x8000, class 9/0, rev 2.00/0.04, addr 2>
ugen0.3: <Kingston DataTraveler 3.0> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA)
ugen0.3.0: umass0: <Kingston DataTraveler 3.0, class 0/0, rev 2.10/2.00, addr 2>
ugen0.4: <PixArt Dell MS116 USB Optical Mouse> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
ugen0.4.0: ums1: <PixArt Dell MS116 USB Optical Mouse, class 0/0, rev 2.00/1.00, addr 3>
ugen0.6: <ULT-Best Best USB Device> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA)
ugen0.6.0: umass1: <ULT-Best Best USB Device, class 0/0, rev 3.10/41.03, addr 5>
ugen0.5: <vendor 0x8087 product 0x07dc> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.7: <Black Sphere Technologies Black Magic Probe> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.7.0: umodem0: <Black Magic GDB Server>
ugen0.7.2: umodem1: <Black Magic UART Port>
fred@fredTC93-pc ~/A/JTAG_FreeBSD_Debug>
fred@fredTC93-pc ~/A/JTAG_FreeBSD_Debug> usbconfig show_ifdrv ugen0.7
ugen0.7: <Black Sphere Technologies Black Magic Probe> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.7.0: umodem0: <Black Magic GDB Server>
ugen0.7.2: umodem1: <Black Magic UART Port>
fred@fredTC93-pc ~/A/JTAG_FreeBSD_Debug> pstat -t
LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE
ttyu2 0 0 0 0 0 0 0 0 0 0 IC
ttyv0 1920 0 0 192 1984 0 199 11199 19177 19177 Oicl
ttyv1 1920 171 0 192 1984 0 199 0 23531 23531 Oi
ttyv2 1920 0 0 192 1984 0 199 7 19179 19179 Oil
ttyv3 1920 0 0 192 1984 0 199 7 19180 19180 Oil
ttyv4 1920 0 0 192 1984 0 199 7 19181 19181 Oil
ttyv5 1920 0 0 192 1984 0 199 7 19182 19182 Oil
ttyv6 1920 0 0 192 1984 0 199 7 19183 19183 Oil
ttyv7 1920 0 0 192 1984 0 199 7 19184 19184 Oil
ttyv8 1920 1920 0 192 1984 0 199 0 0 0 OiHil
ttyv9 0 0 0 0 0 0 0 0 0 0 -
ttyva 0 0 0 0 0 0 0 0 0 0 -
ttyvb 0 0 0 0 0 0 0 0 0 0 -
pts/0 1920 0 0 192 1984 0 199 13 26930 17456 Oi
pts/1 1920 0 0 192 1984 0 199 4 29881 29881 Oi
pts/2 1920 0 0 192 1984 0 199 4 70907 70907 Oi
ttyU0 0 0 0 0 0 0 0 0 0 0 IC
ttyU1 0 0 0 0 0 0 0 0 0 0 IC
pts/3 1920 1 0 192 1984 0 199 0 15991 15992 Oi
pts/4 1920 0 0 192 1984 0 199 130 16024 16024 Oi
pts/5 1920 0 0 192 1984 0 199 0 17659 25163 Oi
Comments
Post a Comment