From: deneme.true <den...@gm...> - 2012-04-17 17:42:57
|
I am trying to compile a kernel module for coLinux and I get /"bin/sh: scripts/mod/modpost: not found" error. As mentioned this thread: http://old.nabble.com/-Q--Building-additional-kernel-module-td4769274.html I couldn't find "conf/linux-config" kernel config file. Also I try this QA 38: http://colinux.wikia.com/wiki/CoLinux_FAQ#Q38._Howto_get_kernel_headers_for_coLinux_to_build_an_additional_module.3F At this website: http://translate.google.com/translate?sl=zh-CN&tl=en&js=n&prev=_t&hl=tr&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fblog.csdn.net%2Fsabalol%2Farticle%2Fdetails%2F2076610 I must execute "make scripts" command to create modpost but before executing "make scripts" command, kernel config file should be generated. Is there any method for coLinux without configuring kernel(or with default values)? because it takes a lot of time and it is possible to make errors when configuring kernel. Thanks in Advance. |
From: yin s. <sun...@gm...> - 2012-04-17 18:58:57
|
you need to follow the instructions in doc/building.txt to see how the kernel is patched for colinux. On Tue, Apr 17, 2012 at 10:42 AM, deneme.true <den...@gm...> wrote: > I am trying to compile a kernel module for coLinux and I get /"bin/sh: > scripts/mod/modpost: not found" error. > > As mentioned this thread: > > http://old.nabble.com/-Q--Building-additional-kernel-module-td4769274.html > > I couldn't find "conf/linux-config" kernel config file. > > Also I try this QA 38: > http://colinux.wikia.com/wiki/CoLinux_FAQ#Q38._Howto_get_kernel_headers_for_coLinux_to_build_an_additional_module.3F > > At this website: > http://translate.google.com/translate?sl=zh-CN&tl=en&js=n&prev=_t&hl=tr&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fblog.csdn.net%2Fsabalol%2Farticle%2Fdetails%2F2076610 > > I must execute "make scripts" command to create modpost but before > executing "make scripts" command, kernel config file should be > generated. > > Is there any method for coLinux without configuring kernel(or with > default values)? because it takes a lot of time and it is possible to > make errors when configuring kernel. > > Thanks in Advance. > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > coLinux-users mailing list > coL...@li... > https://lists.sourceforge.net/lists/listinfo/colinux-users |
From: deneme.true <den...@gm...> - 2012-04-18 18:11:26
|
I've prepared the kernel module programming environment as specified at this link: http://colinux.wikia.com/wiki/CoLinux_FAQ#Q38._Howto_get_kernel_headers_for_coLinux_to_build_an_additional_module.3F Even, it is not possible to compile a simple hello world module: This is hello world sample: http://www.faqs.org/docs/kernel/x145.html And this is Makefile: ------------------------------------------------------------------------------------------------------------- obj-m += hello.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean -------------------------------------------------------------------------------------------------------------- And this is the error: make -C /lib/modules/2.6.33.7-co-0.7.9/build M=/root/hello_world modules make[1]: Entering directory `/home/m/build/linux-2.6.33.7-build' make -C /home/m/build/linux-2.6.33.7-source O=/home/m/build/linux-2.6.33.7-build/. modules WARNING: Symbol version dump /home/m/build/linux-2.6.33.7-build/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /root/hello_world/hello.o Building modules, stage 2. MODPOST 1 modules /bin/sh: scripts/mod/modpost: not found make[4]: *** [__modpost] Error 127 make[3]: *** [modules] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/m/build/linux-2.6.33.7-build' make: *** [all] Error 2 ------------------------------------------------------------------------------------------------ It is same error. Probably, prepared kernel module environment doesn't fully functional. What can I do? Thanks in advance. 2012/4/18, Paolo Minazzi <pao...@gm...>: > If you are able to build a normal kernel module, you will be able to build > a module under colinux. > You only need to point to the header. > I do not remember if you need to use the header in the build/....source > folder. > Nothing different. > Paolo > > > On Tue, Apr 17, 2012 at 7:42 PM, deneme.true <den...@gm...> wrote: > >> I am trying to compile a kernel module for coLinux and I get /"bin/sh: >> scripts/mod/modpost: not found" error. >> >> As mentioned this thread: >> >> http://old.nabble.com/-Q--Building-additional-kernel-module-td4769274.html >> >> I couldn't find "conf/linux-config" kernel config file. >> >> Also I try this QA 38: >> >> http://colinux.wikia.com/wiki/CoLinux_FAQ#Q38._Howto_get_kernel_headers_for_coLinux_to_build_an_additional_module.3F >> >> At this website: >> >> http://translate.google.com/translate?sl=zh-CN&tl=en&js=n&prev=_t&hl=tr&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fblog.csdn.net%2Fsabalol%2Farticle%2Fdetails%2F2076610 >> >> I must execute "make scripts" command to create modpost but before >> executing "make scripts" command, kernel config file should be >> generated. >> >> Is there any method for coLinux without configuring kernel(or with >> default values)? because it takes a lot of time and it is possible to >> make errors when configuring kernel. >> >> Thanks in Advance. >> >> >> ------------------------------------------------------------------------------ >> Better than sec? Nothing is better than sec when it comes to >> monitoring Big Data applications. Try Boundary one-second >> resolution app monitoring today. Free. >> http://p.sf.net/sfu/Boundary-dev2dev >> _______________________________________________ >> coLinux-users mailing list >> coL...@li... >> https://lists.sourceforge.net/lists/listinfo/colinux-users >> > |
From: yin s. <sun...@gm...> - 2012-04-19 03:58:15
|
are you able to build the colinux kernel and its modules? (./configure; make) I think this is the way to verify your build environment is properly setup. then you can try to modify one of the modules, for example comouse.c after these practice, you should be able to figure what is wrong for your own module. /sunyin On Wed, Apr 18, 2012 at 11:11 AM, deneme.true <den...@gm...> wrote: > I've prepared the kernel module programming environment as specified > at this link: > http://colinux.wikia.com/wiki/CoLinux_FAQ#Q38._Howto_get_kernel_headers_for_coLinux_to_build_an_additional_module.3F > > Even, it is not possible to compile a simple hello world module: > This is hello world sample: > http://www.faqs.org/docs/kernel/x145.html > > And this is Makefile: > ------------------------------------------------------------------------------------------------------------- > obj-m += hello.o > > all: > make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules > > clean: > make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean > -------------------------------------------------------------------------------------------------------------- > > And this is the error: > > make -C /lib/modules/2.6.33.7-co-0.7.9/build M=/root/hello_world modules > make[1]: Entering directory `/home/m/build/linux-2.6.33.7-build' > make -C /home/m/build/linux-2.6.33.7-source > O=/home/m/build/linux-2.6.33.7-build/. modules > > > WARNING: Symbol version dump > /home/m/build/linux-2.6.33.7-build/Module.symvers is > missing; modules will have no dependencies and modversions. > > > CC [M] /root/hello_world/hello.o > Building modules, stage 2. > MODPOST 1 modules > > /bin/sh: scripts/mod/modpost: not found > make[4]: *** [__modpost] Error 127 > make[3]: *** [modules] Error 2 > make[2]: *** [sub-make] Error 2 > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/m/build/linux-2.6.33.7-build' > make: *** [all] Error 2 > > ------------------------------------------------------------------------------------------------ > > It is same error. > > Probably, prepared kernel module environment doesn't fully functional. > > What can I do? > > Thanks in advance. > > > 2012/4/18, Paolo Minazzi <pao...@gm...>: >> If you are able to build a normal kernel module, you will be able to build >> a module under colinux. >> You only need to point to the header. >> I do not remember if you need to use the header in the build/....source >> folder. >> Nothing different. >> Paolo >> >> >> On Tue, Apr 17, 2012 at 7:42 PM, deneme.true <den...@gm...> wrote: >> >>> I am trying to compile a kernel module for coLinux and I get /"bin/sh: >>> scripts/mod/modpost: not found" error. >>> >>> As mentioned this thread: >>> >>> http://old.nabble.com/-Q--Building-additional-kernel-module-td4769274.html >>> >>> I couldn't find "conf/linux-config" kernel config file. >>> >>> Also I try this QA 38: >>> >>> http://colinux.wikia.com/wiki/CoLinux_FAQ#Q38._Howto_get_kernel_headers_for_coLinux_to_build_an_additional_module.3F >>> >>> At this website: >>> >>> http://translate.google.com/translate?sl=zh-CN&tl=en&js=n&prev=_t&hl=tr&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fblog.csdn.net%2Fsabalol%2Farticle%2Fdetails%2F2076610 >>> >>> I must execute "make scripts" command to create modpost but before >>> executing "make scripts" command, kernel config file should be >>> generated. >>> >>> Is there any method for coLinux without configuring kernel(or with >>> default values)? because it takes a lot of time and it is possible to >>> make errors when configuring kernel. >>> >>> Thanks in Advance. >>> >>> >>> ------------------------------------------------------------------------------ >>> Better than sec? Nothing is better than sec when it comes to >>> monitoring Big Data applications. Try Boundary one-second >>> resolution app monitoring today. Free. >>> http://p.sf.net/sfu/Boundary-dev2dev >>> _______________________________________________ >>> coLinux-users mailing list >>> coL...@li... >>> https://lists.sourceforge.net/lists/listinfo/colinux-users >>> >> > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > coLinux-users mailing list > coL...@li... > https://lists.sourceforge.net/lists/listinfo/colinux-users |
From: deneme.true <den...@gm...> - 2012-04-19 20:57:57
|
I've seen the .config file. I didn't type ./configure again. I've just type only make command. I've seen that modpost.o object file is created when compiling. After that it is possible to compile kernel modules. But at wiki only './configure && make kernel' command isn't adequate to compile kernel modules. If configure file exists; make command should be call. Regards |