I installed in VM the Mandriva Linux with 2.6.27 kernel.
But presently when I fire make the modules .ko does not get built.
I get the following output on firing command in the kernel module folder.
Code:
[rkp@localhost FirstDriver]$ make
Building first_driver.c ... make[1]: Entering directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
WARNING: Symbol version dump /usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb/Module.symvers
is missing; modules will have no dependencies and modversions.
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
done
Building Makefile~ ... make[1]: Entering directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
WARNING: Symbol version dump /usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb/Module.symvers
is missing; modules will have no dependencies and modversions.
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
done
Building modules.order ... make[1]: Entering directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
WARNING: Symbol version dump /usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb/Module.symvers
is missing; modules will have no dependencies and modversions.
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
done
Building Module.symvers ... make[1]: Entering directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
WARNING: Symbol version dump /usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb/Module.symvers
is missing; modules will have no dependencies and modversions.
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
done
Building xyz.txt ... make[1]: Entering directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
WARNING: Symbol version dump /usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb/Module.symvers
is missing; modules will have no dependencies and modversions.
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/linux-2.6.27.14/linux-2.6.27.14-1mnb'
done
After setting options in Kernel Hacking I get the following output for each of the commands:
make modules_prepare
[root@localhost linux-2.6.27.14-1mnb]# make modules prepare
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel .config file)
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
make: *** [modules] Error 1
I fired make config and added loadable modules support.
When I compile the Linux kernel I am getting the following error:-
"No rule to make target arch/x86/kernel/entry_32.o', needed by arch/x86/kernel/built-in.o'."
How to resolve this issue?
Last edited by rupeshkp728; 01-28-2012 at 05:23 AM..
Reason: addition
I'm a little embarrassed after all these years I've never really successfully compiled my own kernel. I used this guide to make the following files:
linux-headers-5.1.9_5.1.9-1_amd64.deb
linux-image-5.1.9_5.1.9-1_amd64.deb
linux-libc-dev_5.1.9-1_amd64.deb
When I first booted into this... (4 Replies)
Hi,
I am running CentOS 6.5 and I want to remove auto loading 8021q and garp modules, but there are no configure files in /etc/modprobe.d define bot modules.
I even added both module names to /etc/modprobe.d/blacklist.conf, both of them are still loaded after the reboot. How can I disable... (2 Replies)
Hey everyone. I have a question, doing an lsmod gives me a list of all the loaded modules for my system. But how did they know to load? my /etc/modules files is empty, so how did these modules know to load themselves on boot time? If I were to take this hard drive to another computer with a... (6 Replies)
This query is regarding the makefiles of linux kernel modules.
I saw at some sites on net it is suggesting to include the following path:
KERNEL_SOURCE := /usr/src/linux...
while at some places it is askibg to include /lib/modules path:
KERNEL_SOURCE := /lib/modules/2.6.27-7-generic/build... (0 Replies)
Hi,
I need to set qlogic qla2xxx parameters in /etc/modprobe.conf
(Oracle Linux Server release 5.7, almost equal to RedHat 5.7)
two questions:
how can I pass this parameters to the module while it is loaded (fibre channel luns are in use), if possible at all
and how can I check the... (3 Replies)
I am aware of debugging linux applications using gdb and ddd.
Now I have written a simple kernel module having init_module, exit _module and some functions for tasklets and workqueues.
I want to debug these kernel modules like I used to debug applications setting breakpoints etc.
How can I debug... (1 Reply)
I'm playing around with the kqemu accelerator for the QEMU virtualization software. I can't remember which version of gcc I used to build my kernel. I have 3.4.6 and 4.1.1 on this (Gentoo) system. I seem to remember there is some command I can run against binaries that will tell me what gcc (and... (5 Replies)
Hi all,
what do kernel modules libaudit, klog and strlog do?
Specifically I want to determine if it was possible for us to determine if kernel level auditing is enabled at all?
regards (0 Replies)
I'm using SuSE 9.2 Pro and trying to use a program call BestCrypt. I get it installed and type bctool and it says "Kernel modules not loaded". If you need to know anymore about it you can find it at http://www.jetico.com/linux/bcrypt-help/index.htm
linux:/home/chris/Desktop/Xtheater-0.9.2 #... (6 Replies)