Installing Xenomai 2.6.2.1 on kernel 3.10.53
Dear All,
I have a ipipe patched Kernel 3.10.53 that runs normally with Xenomai 2.6.4 on an ARM imx6. Now I have to patch Xenomai 2.6.2.1 into this Kernel ipipe combination for testing purpose. When I run
# ./scripts/prepare-kernel.sh --linux=~/kernelDev/ipipe-3.10.53_clean/ipipe --arch=arm --default everything works fine, but when I start compilation with # make LOADADDR=0x10008000 LOCALVERSION= uImage I get the following error
In file included from /home/netwol/Develop/kernelDev/ipipe-3.10.53_clean/ipipe/arch/arm/include/asm/xenomai/syscall.h:29:0,
from include/xenomai/nucleus/shadow.h:27,
from include/asm-generic/xenomai/system.h:42,
from/home/netwol/Develop/kernelDev/ipipe-3.10.53_clean/ipipe/arch/arm/include/asm/xenomai/system.h:29,
from include/xenomai/nucleus/types.h:36,
from include/xenomai/nucleus/queue.h:24,
from include/xenomai/nucleus/heap.h:25,
from kernel/xenomai/nucleus/bufd.c:144:include/asm-generic/xenomai/syscall.h: In function '__xn_safe_strncpy_from_user':include/asm-generic/xenomai/syscall.h:148:2: error: implicit declaration of function '__strncpy_from_user' [-Werror=implicit-function-declaration] In file included from include/xenomai/nucleus/timebase.h:33:0,
from include/xenomai/nucleus/timer.h:26,
from include/xenomai/nucleus/thread.h:159,
from include/xenomai/nucleus/sched.h:31,
from include/xenomai/nucleus/pod.h:34,
from kernel/xenomai/nucleus/bufd.c:145:include/xenomai/nucleus/vfile.h: In function 'xnvfile_reg_p':include/xenomai/nucleus/vfile.h:579:9: error: dereferencing pointer to incomplete typeinclude/xenomai/nucleus/vfile.h: In function 'xnvfile_dir_p':include/xenomai/nucleus/vfile.h:584:9: error: dereferencing pointer to incomplete typeinclude/xenomai/nucleus/vfile.h: In function 'xnvfile_link_p':include/xenomai/nucleus/vfile.h:589:9: error: dereferencing pointer to incomplete type
cc1: some warnings being treated as errors
make[3]: *** [kernel/xenomai/nucleus/bufd.o] Fehler 1
make[2]: *** [kernel/xenomai/nucleus] Fehler 2
make[1]: *** [kernel/xenomai] Fehler 2
make: *** [kernel] Fehler 2
If I fix this I get another error and so on and so forth.
Is it possible to run Xenomai 2.6.2.1 with Kernel 3.10.53 and ipipe ?
If yes can you please tell me where I choose the wrong way.
Kind regards
Signature · 2 lines
Wolfgang Netbal Softwareentwicklung
Quoted 50 lines · Wolfgang Netbal
Dear All,
I have a ipipe patched Kernel 3.10.53 that runs normally with Xenomai 2.6.4 on an ARM imx6.
Now I have to patch Xenomai 2.6.2.1 into this Kernel ipipe combination for testing purpose.
When I run# ./scripts/prepare-kernel.sh --linux=~/kernelDev/ipipe-3.10.53_clean/ipipe --arch=arm --default everything works fine, but when I start compilation with # make LOADADDR=0x10008000 LOCALVERSION= uImage I get the following errorIn file included from
/home/netwol/Develop/kernelDev/ipipe-3.10.53_clean/ipipe/arch/arm/include/asm/xenomai/syscall.h:29:0,from
include/xenomai/nucleus/shadow.h:27,
frominclude/asm-generic/xenomai/system.h:42,
from/home/netwol/Develop/kernelDev/ipipe-3.10.53_clean/ipipe/arch/arm/include/asm/xenomai/system.h:29,from
include/xenomai/nucleus/types.h:36, frominclude/xenomai/nucleus/queue.h:24, frominclude/xenomai/nucleus/heap.h:25,
fromkernel/xenomai/nucleus/bufd.c:144:include/asm-generic/xenomai/syscall.h: In function '__xn_safe_strncpy_from_user':include/asm-generic/xenomai/syscall.h:148:2: error: implicit declaration of function '__strncpy_from_user' [-Werror=implicit-function-declaration] In file included frominclude/xenomai/nucleus/timebase.h:33:0,
frominclude/xenomai/nucleus/timer.h:26, frominclude/xenomai/nucleus/thread.h:159, frominclude/xenomai/nucleus/sched.h:31, frominclude/xenomai/nucleus/pod.h:34,
fromkernel/xenomai/nucleus/bufd.c:145:include/xenomai/nucleus/vfile.h: In function 'xnvfile_reg_p':include/xenomai/nucleus/vfile.h:579:9: error: dereferencing pointer to incomplete typeinclude/xenomai/nucleus/vfile.h: In function 'xnvfile_dir_p':include/xenomai/nucleus/vfile.h:584:9: error: dereferencing pointer to incomplete typeinclude/xenomai/nucleus/vfile.h: In function 'xnvfile_link_p':include/xenomai/nucleus/vfile.h:589:9: error: dereferencing pointer to incomplete type
cc1: some warnings being treated as errors
make[3]: *** [kernel/xenomai/nucleus/bufd.o] Fehler 1 make[2]: *** [kernel/xenomai/nucleus] Fehler 2
make[1]: *** [kernel/xenomai] Fehler 2
make: *** [kernel] Fehler 2
Quoted 4 lines
If I fix this I get another error and so on and so forth.
Is it possible to run Xenomai 2.6.2.1 with Kernel 3.10.53 and ipipe ?
No. The most recent kernel this release can run on is 3.5.7.
If you want to use this combo, you need to fix up your Xenomai 2.6.2.1 tree. This said, I really don't understand why you insist on sticking with outdated Xenomai release (2013?), given the sheer number of bugs fixed since then in later releases.
I can understand the requirement for limiting the amount of new code introduced in production systems up to some point, but releases in the 2.6.x series are about fixing bugs, not adding new features. This is why we maintain ABI compatibility there.
Signature · 1 line
Philippe.