From: Jostein A. J. <jos...@st...> - 2009-03-25 13:10:09
|
I'm trying to compile a kernel module for a verdex motherboard, but I'm having a problem. I've installed gcc and make onto the verdex, but when running make on the module I want to make, I get "/lib/modules/2.6.21/build: No such file or directory". I can verify that /lib/modules/2.6.21/build doesn't exist, so that's ok, but what can I do to fix this problem? I tried copying the ~/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21 directory onto a usb memory stick and changing the /lib/modules/2.6.21/build entry in the makefile to /media/sdb1/linux-2.6.21. Now there's a lot of files not found and consequently a massive amount of other compile errors. What am I doing wrong? -Jostein |
From: hypo <hyp...@gm...> - 2009-03-25 19:20:04
|
are you trying to build the module on the gumstix? why? you should be able to cross-compile the module on your host and then transfer it over as part of the image... your host environment should have all paths set up correctly. there should be several modules in your buildroot, and you cold look at their .mk files as an example. i do remember reading somewhere that building / linking in a buildroot created environment is tricky because of symbol stripping (or some such). hth, hypo josteinaj wrote: > > I'm trying to compile a kernel module for a verdex motherboard, but I'm > having a problem. I've installed gcc and make onto the verdex, but when > running make on the module I want to make, I get > "/lib/modules/2.6.21/build: > No such file or directory". I can verify that /lib/modules/2.6.21/build > doesn't exist, so that's ok, but what can I do to fix this problem? > I tried copying the > ~/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21 > directory onto a usb memory stick and changing the > /lib/modules/2.6.21/build > entry in the makefile to /media/sdb1/linux-2.6.21. Now there's a lot of > files not found and consequently a massive amount of other compile errors. > > What am I doing wrong? > > -Jostein > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/How-to-compile-kernel-modules--tp22701609p22708610.html Sent from the Gumstix mailing list archive at Nabble.com. |