Appendix D – Linux Installations
2. Installation Steps
Install the Kernel Sources
To build the TI USB driver you must have the matching kernel sources for your kernel.
To verify that you have matching kernel sources, run "uname
If you do not find the correct kernel source directory, you must find and install the kernel sources from your distribution CDs or other media.
Prepare the Kernel Sources
This step may or may not be necessary, depending on how your Linux distribution installs the kernel sources.
Log in as root and do the following:
Command | Explanation |
|
|
1. | Change to the source directory. |
|
|
2. make mrproper | Clean up any old files. |
|
|
3. Use either of these commands: | Make a configuration file to match your running |
| kernel. |
make oldconfig | for Red Hat |
| |
make cloneconfig | for SUSE |
| For other distributions these same commands |
| might work, or you might need to find a config |
| file in /boot or in a configs directory, copy it to |
| .config, and run "make oldconfig". |
|
|
4. make dep | Create the dependency and version files. |
|
|
If you have built your own kernel, the kernel sources will already be installed and prepared. If you are using a kernel that came with a Linux distribution, it can sometimes be difficult to get the kernel sources correctly installed and prepared, since each Linux distribution handles kernel sources slightly differently.
For example, if you get errors about the wrong kernel version, you may have installed the wrong kernel sources, or you may need to edit the kernel version in the top level Makefile of the kernel sources. If you get compilation errors, perhaps you forgot to run "make oldconfig" and "make dep".
If you have difficulties, look carefully at the error messages when installing the TGZ or RPM
34 |