1. Add yourself to the right group to do stuff in /usr/src/

  2. Unpack the kernel sources with

    tar xvjf kernel-source-2.6.10.tar.bz2

  3. Get a config file to use as a starting point here and save it as /usr/src/kernel-source-2.6.10/.config.

  4. Put the new usb-obd driver in /usr/src/kernel-source-2.6.10/drivers/usb/misc/usb-obd.c

  5. Modify the files:

  6. Change directory to /usr/src/kernel-source-2.6.10 and run the commands

    make-kpkg --config=x clean
    make-kpkg --config=x configure
    	  
    This second command should put up a configuration GUI. Find the USB_OBD driver, and select it for building as a module (there should be a dot in the middle of the checkbox for the option). Save the new configuration, and quit.

  7. Run the command

    fakeroot make-kpkg kernel-image kernel-headers
    	
    To create a new kernel package (also a set of kernel headers so we can compile up new stuff against the kernel). If you're got any "special" modules in /usr/src/modules give the command
    fakeroot make-kpkg kernel-image kernel-headers modules-image
    	
    (this only applies to modules in /usr/src/modules - not the usbobd.c module)

  8. OK... it compiled for me. Go up a level to /usr/src and install the new kernel with

    	sudo dpkg --install kernel-image*2.6.10*deb kernel-headers*2.6.10*deb
    	

  9. With any luck, you can now boot from your new kernel! You can also insert the module into the kernel with the command

    #modprobe usbobd
    	


Last modified: Mon Feb 14 14:10:50 MST 2005