SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
#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 */
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...
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.
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?