From: Arnar B. <ar...@gm...> - 2007-03-07 16:28:14
|
Hello Daniel, On 3/7/07, fo...@it... <fo...@it...> wrote: > make[1]: Entering directory > `/projects/SensorNet/gumstix/gumstix-buildroot/build_arm_nofpu/linux-2.6.20gum' > CC [M] /projects/SensorNet/gumstix/robostix/gumstix/robostix_drv.o > /projects/SensorNet/gumstix/robostix/gumstix/robostix_drv.c:31:26: error: > linux/config.h: No such file or directory I guess you have to configure (and perhaps build?) the linux kernel under /projects/SensorNet/gumstix/gumstix-buildroot/build_arm_nofpu/linux-2.6.20gum first. This will create config.h which is needed to build the kernel module. > Once the gumstix files are built, where do I place them on the gumstix? The robostix_drv.ko can be loaded from anywhere if you point insmod to it. To load it automatically with /etc/modules I'm not sure, but somewhere below /lib/modules/2.6.20gum The executables can be anywhere, but it's convenient to have them in your path - such as in /bin or /usr/bin. For testing I keep all that stuff in /root/robostix and just run stuff from there: cd robostix insmod robostix_drv.ko uisp whatever -or- i2c-load etc. robostix reset off <- this starts execution of the robostix code Arnar |