Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   OT: General Help in chroot build environment (http://www.linux-archive.org/centos/119070-ot-general-help-chroot-build-environment.html)

"Joseph L. Casale" 07-04-2008 07:59 PM

OT: General Help in chroot build environment
 
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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

"William L. Maltby" 07-04-2008 08:16 PM

OT: General Help in chroot build environment
 
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
--
Bill

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

"Joseph L. Casale" 07-04-2008 09:58 PM

OT: General Help in chroot build environment
 
>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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 04:49 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.