Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-16-2009, 10:47 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
recovering of build environment


I used Debian on host to cross compile kernel and driver modules for an embedded pc (same kernel and patch version)

unfortunately the host system with the source files and configuration is damaged. I have downloaded and patched the source again

I compiled a new driver module on the host, but it doesn't work on the target system. error message:

disagrees about version of struct_module

I can't rebuild the kernel+drivers on the target system because of the limited resources. How can I set-up a build environment on host again, which is compatible with the target? (What can cause the incompatibility?)

I must be very careful with the target system also, because I have only a network connection to this.

Old 03-16-2009, 03:34 PM   #2
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Welcome to LQ!
Check if kernel-headers for both kernels are the same,if they're not install kernel-headers on the host to match kernel-headers on the target then rebuild the driver/s.
Old 03-17-2009, 01:16 AM   #3
LQ Newbie
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0

Thanks for the fast response !

I copied the config file back from target to host and recompiled the kernel and the modules (may be the headers are relevant). Now I can compile modules, which are also working on the target system.

Thanks again.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Build an available Linux server environment with IBM blades LXer Syndicated Linux News 0 12-12-2008 08:30 PM
Trying to build a kde environment with emerge on W-Vista Virtuality Programming 1 01-29-2008 06:50 AM
Looking for build environment setup recommendations hq4ever Programming 1 11-09-2006 09:19 AM
build environment arkss Linux - Software 0 06-25-2005 03:54 PM
I've installed gcc, how do i build a complier environment? Derek-kun Linux - Newbie 4 09-23-2003 09:50 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration