LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-26-2003, 10:48 AM   #1
sub-genius
LQ Newbie
 
Registered: Jun 2003
Distribution: slacking off
Posts: 4

Rep: Reputation: 0
Quick Sanity Check


Contrary to what my tag implies, I am a bit of kernel compiling n00b. I am hoping that someone may assist in validating my understanding of what needs to be done in my particular scenario. Here it goes... (apologies for the long-windedness)

I am looking to integrate a CrystalFontz 634 USB LCD Disply into my system and use the LCDProc as the software that supplies my display data.

According to the directions found at LCDProc lcdproc.omnipotent.net it states that I should add a few tweaks to the kernel source files prior to compiling. And I quote...

"In linux-2.4.20/drivers/usb/serial/, there are two files that need to be changed to add the vendor and product IDs in use by the serial displays: ftdi_sio.c and ftdi_sio.h. The files are the serial drivers for FTDI’s 8U232AM chips, which is what the 632 & 634 use to convert from USB to serial."

Here are the tweaks (cut & pasted) from webbastards.com/projects/CF632/CF632-USB.html

The actual details of the patch are as follows:


--- serial/ftdi_sio.h 2003-02-13 21:59:58.000000000 -0500
+++ /home/wayne/linux-2.4.20/drivers/usb/serial/ftdi_sio.h 2002-11-28 18:53:14.000000000 -0500

@@ -25,14 +25,6 @@

#define FTDI_NF_RIC_VID 0x0DCD /* Vendor Id */
#define FTDI_NF_RIC_PID 0x0001 /* Product Id */
-/*
- * The following are the values for the Crystal Fontz Orbital LCD displays,

- * which use the 8U232AM
- */
-#define FTDI_CF_VID FTDI_VID /* Crystal Fontz Product Id */
-#define FTDI_CF_0_PID 0xFC08 /* Crystal Fontz Product Id */
-#define FTDI_CF_1_PID 0xFC09 /* Crystal Fontz Product Id */
-
#define FTDI_SIO_RESET 0 /* Reset the port */
#define FTDI_SIO_MODEM_CTRL 1 /* Set the modem control register */
#define FTDI_SIO_SET_FLOW_CTRL 2 /* Set flow control register */

--- serial/ftdi_sio.c 2003-02-13 22:00:25.000000000 -0500
+++ /home/wayne/linux-2.4.20/drivers/usb/serial/ftdi_sio.c 2002-11-28 18:53:14.000000000 -0500

@@ -154,8 +154,6 @@

static struct usb_device_id id_table_8U232AM [] = {
{ USB_DEVICE(FTDI_VID, FTDI_8U232AM_PID) },
{ USB_DEVICE(FTDI_NF_RIC_VID, FTDI_NF_RIC_PID) },
- { USB_DEVICE(FTDI_CF_VID, FTDI_CF_0_PID) },
- { USB_DEVICE(FTDI_CF_VID, FTDI_CF_1_PID) },
{ } /* Terminating entry */
};

@@ -164,8 +162,6 @@

{ USB_DEVICE(FTDI_VID, FTDI_SIO_PID) },
{ USB_DEVICE(FTDI_VID, FTDI_8U232AM_PID) },
{ USB_DEVICE(FTDI_NF_RIC_VID, FTDI_NF_RIC_PID) },
- { USB_DEVICE(FTDI_CF_VID, FTDI_CF_0_PID) },
- { USB_DEVICE(FTDI_CF_VID, FTDI_CF_1_PID) },
{ } /* Terminating entry */



So, the way I look at it is that I need to ADD the entries above to the files specified in the specific locations within the files (@@ -25,14 +25,6 @@ and @@ -154,8 +154,6 @@). I do not need to CHANGE the existing entries nor DELETE the existing entries in the specified files.

Am I on the right path? Thanks in advance...
sub-"genius"
 
Old 06-26-2003, 10:51 AM   #2
emence
Member
 
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81

Rep: Reputation: 15
Yup add the entries. After that do the recompile, and enjoy the flat screen.
 
Old 06-26-2003, 10:56 PM   #3
alisonken1
LQ Newbie
 
Registered: Jun 2003
Location: Rancho Cucamonga, CA
Distribution: Slackware
Posts: 22

Rep: Reputation: 9
Actually, this looks like a DIFF file - you would have to use the diff utility to update those files from this one. Have to check the man page, but the diff uitility takes this file as input, then modifies the target files at the appropriate locations where the changes should be.
 
Old 06-26-2003, 11:45 PM   #4
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Rep: Reputation: 30
yes, use the diff command, but use the backup option for diff, or copy the original file, in case you do something wrong. That way you won't lose the original file.
 
Old 06-27-2003, 10:20 AM   #5
sub-genius
LQ Newbie
 
Registered: Jun 2003
Distribution: slacking off
Posts: 4

Original Poster
Rep: Reputation: 0
I get what ur saying about the diff utility, but the changes that are listed above are not actually within a separate and distinct file per se. The changes are written into an html procedural document located at the URL posted above. Is it possible to cut and paste the changes into a diff utility "consumable: document?

-Sub
 
Old 07-15-2003, 11:28 AM   #6
sub-genius
LQ Newbie
 
Registered: Jun 2003
Distribution: slacking off
Posts: 4

Original Poster
Rep: Reputation: 0
Update

Got the USB LCD working and I didn't even have to REcompile

I just compiled from 2.4.21, which includes support for my brand of USB LCD (CrystalFontz).

Bless you all!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
./configure sanity check xushi Slackware 9 06-18-2005 04:47 PM
cpp fails sanity check? linux-rulz Linux - Software 4 05-16-2005 04:00 AM
cpp sanity check alexrait1 Slackware 6 04-24-2005 08:43 AM
sanity check failed for g++ pablovschby Programming 2 11-08-2004 02:39 AM
IPTables Sanity Check Crashed_Again Linux - Networking 3 03-06-2003 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration