LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   recovering of build environment (https://www.linuxquestions.org/questions/linux-software-2/recovering-of-build-environment-711988/)

janos72 03-16-2009 10:47 AM

recovering of build environment
 
Gents,

I used Debian 2.6.24.7-rt21 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.


thanks
Janos

alan_ri 03-16-2009 03:34 PM

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.

janos72 03-17-2009 01:16 AM

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.


All times are GMT -5. The time now is 04:55 PM.