Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am learning how to write linux device driver and wrote a simple usb driver for my Microchip PIC 32 usb starter board.
In the "probe" and "disconnect" function of my kernel module code, several usb functions (interface_to_usbdev, usb_get_intfdata, usb_get_dev, usb_set_intfdata, usb_put_dev) are used.
Compiling succeeded (there are some warnings though). However, when I tried to load the module with "insmod mydriver.o", I got the following error messages:
mydriver.o: unresolved symbol interface_to_usbdev
mydriver.o: unresolved symbol usb_get_intfdata
mydriver.o: unresolved symbol usb_get_dev
mydriver.o: unresolved symbol usb_set_intfdata
mydriver.o: unresolved symbol usb_put_dev
I googled for a while without any luck. Somebody said kernel source should be installed. But I already had kernel-source-2.4.20-8.i386.rpm installed. I am using redhat9 with kernel 2.4.20-8.
I also checked the loaded modules and made sure that usbcore module has been loaded.
The standard setup for linux programming is:
gcc - compiler
kernel headers - include functions
glibc - = all the main pc basic stuff (cfopy, write, print, etc) &
ld - the linker. also utilities to see what libs are missing. Try ldd </path/to/your_program>
That lot form your toolchain, upon which the integrity of your program depends. Now add
Makefiles - in every directory
./configure script - to check for all needed parts and twead the Makefiles
There's a HOWTO on tldp.org for programming in linux. Grab that.