I am trying to compile a module for a Realtek 8168 for thinstation. I have pulled the developer tarball and executed the script to enter its build environment. I also have the source for the module I want to compile, but when I execute #make clean modules it errors out. Reading the errors, I can see it tried to look for the kernel source of the systems actual running kernel. From within the chroot build environment, I run a #uname -r and see it displays exactly that, and not the build environments expected 2.6.21.1 that it has in the /source/kernel-2.6.21.1/linux-2.6.21.1 dir. I have ran an #export KERNELSRC=/source/kernel-2.6.21.1/linux-2.6.21.1
Any ideas on what's left to convince make it is running with the expected kernel and not my actual one?
Thanks! jlc
On Fri, 2008-07-04 at 13:59 -0600, Joseph L. Casale wrote:
<snip>
running kernel. From within the chroot build environment, I run a #uname -r and see it displays exactly that, and not the build environments expected 2.6.21.1 that it has in the /source/kernel-2.6.21.1/linux-2.6.21.1 dir. I have ran an #export KERNELSRC=/source/kernel-2.6.21.1/linux-2.6.21.1
Any ideas on what's left to convince make it is running with the expected kernel and not my actual one?
I don't normally dink with this stuff anymore. But from watching the lists, IIRC, you need a kernel development rpm to be installed. Use the yum available stuff and if you see something promising, give it a shot. Being a holiday here, I don't know how long until someone knowledgeable will reply.
Thanks! jlc
<snip sig stuff>
HTH
I don't normally dink with this stuff anymore. But from watching the lists, IIRC, you need a kernel development rpm to be installed. Use the yum available stuff and if you see something promising, give it a shot. Being a holiday here, I don't know how long until someone knowledgeable will reply.
Actually, Looking at the output from make, I just edited the expansion in the makefile's and put what I wanted in there. It built w/o error, but the module isn't loading.
Back to the drawing board:)
jlc