CFA-635 and FreeBSD 6-stable

jwilson

New member
Hello folks.

I had received shipment of a CFA635-YYE kit yesterday, and needless to say, I'm very pleased with the purchase.

As my primary OS is FreeBSD, I was anticipating a less than clear road in getting this unit working. Thankfully, it was a lot less painful than I had thought. Initially, I had looked at a website describing getting a CFA634 up and running under FreeBSD, but that site, altho informative, was based on an older version of FreeBSD.

I've included a unified diff against /usr/src/sys/dev/usb/uftdi.c and /usr/src/sys/dev/usb/usbdevs that will add support for the CFA635. After patching and rebuilding, the unit will appear as:

ucom0: Crystalfontz Crystalfontz CFA-635 USB LCD, rev 2.00/2.00, addr 2

And can be accessed via either device node: /dev/cuaU0 or /dev/ttyU0, with the latter being preferred.

LCDproc works great with this setup. Shortly, I should be able to post some test C source based on the CFA635 data sheet. It's in a rough state at the moment, but functional.

Hope this helps other FreeBSD users out there.

- John.
Code:
--- usbdevs.orig        Thu Jan  4 11:00:31 2007
+++ usbdevs     Thu Jan  4 10:50:24 2007
@@ -790,6 +790,7 @@
 product FTDI CFA_632           0xfc08  Crystalfontz CFA-632 USB LCD
 product FTDI CFA_633           0xfc0b  Crystalfontz CFA-633 USB LCD
 product FTDI CFA_634           0xfc09  Crystalfontz CFA-634 USB LCD
+product FTDI CFA_635           0xfc0d  Crystalfontz CFA-635 USB LCD
 product FTDI SEMC_DSS20                0xfc82  SEMC DSS-20 SyncStation
 
 /* Cambridge Silicon Radio Ltd. products */
--- uftdi.c.orig        Thu Jan  4 11:00:45 2007
+++ uftdi.c     Thu Jan  4 10:49:26 2007
@@ -163,6 +163,7 @@
             uaa->product == USB_PRODUCT_FTDI_CFA_632 ||
             uaa->product == USB_PRODUCT_FTDI_CFA_633 ||
             uaa->product == USB_PRODUCT_FTDI_CFA_634 ||
+            uaa->product == USB_PRODUCT_FTDI_CFA_635 ||
             uaa->product == USB_PRODUCT_FTDI_USBSERIAL ||
             uaa->product == USB_PRODUCT_FTDI_MX2_3 ||
             uaa->product == USB_PRODUCT_FTDI_MX4_5 ||
@@ -242,6 +243,7 @@
                case USB_PRODUCT_FTDI_CFA_632:
                case USB_PRODUCT_FTDI_CFA_633:
                case USB_PRODUCT_FTDI_CFA_634:
+               case USB_PRODUCT_FTDI_CFA_635:
                case USB_PRODUCT_FTDI_USBSERIAL:
                case USB_PRODUCT_FTDI_MX2_3:
                case USB_PRODUCT_FTDI_MX4_5:
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 
USB LCD Displays - Graphic and Character LCDs with a Keypad

eckberg

New member
Hey!

These patches just worked like a charm, and with the linux.ko module loaded the the linux test demo
program also worked fine on my FreeBSD 6.2 system.
I am definately looking forward to use the CFA-635.

Cheers!
-- Lars
 
Top