hi, I am reading the book Linux Device Drivers 3rd edition(alessandro rubini) ,in the second chapter about 'Building and Running Modules', the book says that : ------------------------- % make make[1]: Entering directory `/usr/src/linux-2.6.10' CC [M] /home/ldd3/src/misc-modules/hello.o Building modules, stage 2. MODPOST CC /home/ldd3/src/misc-modules/hello.mod.o LD [M] /home/ldd3/src/misc-modules/hello.ko make[1]: Leaving directory `/usr/src/linux-2.6.10' % su root# insmod ./hello.ko Hello, world root# rmmod hello Goodbye cruel world root#
Please note once again that , for the above sequence of commands to work,you must have a properly configured and built kernel tree in a place where the makefile is able to find it(/usr/src/linux-2.6.10 in the example shown). ---------------------------- what does it means to have a configured and built kernel? , does it mean that i need to compile the kernel? I have the source of kernel 2.6.16.18 in the /root directory, how do i configure and build it? Please help I am totally new to device drivers!