Kernel compilation error
Hi,
we have 4.9.90 linux kernel patched with xenomai 3.0.9 and patched with ipipe V4.x.
When we try to compile a simple module we have lot of errors. the first one is :
error: ‘struct ipipe_threadinfo’ has no member named ‘ptd’
As mentioned by Paolo in response to a similary issue, we tryed to set CONFIG_IPIPE_LEGACY=y in kernel config but now we are not able to compile the kernel. we have the following message :
IPIPE_ROOT_NPTDKEYS not define in sched.h
Could you give us some clues to fix our problem?
regards
Davy
Quoted 4 lines · Davy via Xenomai
Hi,
we have 4.9.90 linux kernel patched with xenomai 3.0.9 and patched with ipipe V4.x.
There is no "ipipe V4.x" - what exactly do you mean?
Quoted 5 lines
When we try to compile a simple module we have lot of errors. the first one is :
error: 'structipipe_threadinfo' has no member named 'ptd'
Quoted 7 lines
As mentioned by Paolo in response to a similary issue, we tryed to set
CONFIG_IPIPE_LEGACY=yin kernel config but now we are not able to compile the kernel. we have the following message :
IPIPE_ROOT_NPTDKEYSnot define insched.hCould you give us some clues to fix our problem?
Is the build error with the kernel or with an out-of-tree kernel module?
Note that 4.9 no longer receives official I-pipe updates. Current LTS kernels are 4.4 and 4.19. But even then your are on a suboptimal version with .90 because the last release was ipipe-core-4.9.146-x86-8 (assuming we are talking about x86, not some other arch).
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 31 lines · Davy via Xenomai
Quoted 4 lines
Hi,
we have 4.9.90 linux kernel patched with xenomai 3.0.9 and patched with ipipe V4.x.
There is no "ipipe V4.x" - what exactly do you mean?
Quoted 5 lines
When we try to compile a simple module we have lot of errors. the first one is :
error: 'structipipe_threadinfo' has no member named 'ptd'Quoted 8 lines
As mentioned by Paolo in response to a similary issue, we tryed to set
CONFIG_IPIPE_LEGACY=yin kernel config but now we are not able to compile
the kernel. we have the following message :
IPIPE_ROOT_NPTDKEYSnot define insched.hCould you give us some clues to fix our problem?
Is the build error with the kernel or with an out-of-tree kernel module?
Note that 4.9 no longer receives official I-pipe updates. Current LTS kernels
are 4.4 and 4.19. But even then your are on a suboptimal version with .90 because the last release was ipipe-core-4.9.146-x86-8 (assuming we are talking
about x86, not some other arch).
Quoted 6 lines
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi,
So, I started over with the linux kernel 4.19.66 and xenomai 3.0.9
I patched the kernel with the following command :
./scripts/prepare-kernel.sh --linux=../linux-4.19.66
--ipipe=../ipipe-core-4.19.66-x86-6.patch --arch=x86_64
First time I do make menuconfig, I get this error:
scripts/kconfig/mconf Kconfig
init/Kconfig:2056: can't open file "arch/$SRCARCH/xenomai/Kconfig" scripts/kconfig/Makefile:29 : la recette pour la cible « menuconfig » a échouée
I solved this by replace "$SRCARCH" by "x86" in init/Kconfig
I then tried to compile the kernel :
make bzImage modules
And I got an error which I solved by disable CONFIG_HYPERV and CONFIG_SCHED_MC (as indicated in this thread :
https://www.xenomai.org/pipermail/xenomai/2018-October/039679.html)
Now I have this error :
In file included from include/xenomai/cobalt/uapi/kernel/vdso.h:21:0,
from include/xenomai/cobalt/kernel/vdso.h:26, from kernel/xenomai/posix/clock.c:21:include/xenomai/cobalt/uapi/kernel/urw.h: In function ‘__try_read_start’:include/xenomai/cobalt/uapi/kernel/urw.h:60:2: error: implicit declaration of function ‘ACCESS_ONCE’ [-Werror=implicit-function-declaration]
token = ACCESS_ONCE(urw->sequence);
^
cc1: some warnings being treated as errors
Can you help me ?
I attach my .config
Davy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config
Type: application/octet-stream
Size: 193635 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20190906/496f86fa/attachment.obj>
Quoted 31 lines · Davy via Xenomai
Hi,
So, I started over with the linux kernel 4.19.66 and xenomai 3.0.9
I patched the kernel with the following command :
./scripts/prepare-kernel.sh --linux=../linux-4.19.66--ipipe=../ipipe-core-4.19.66-x86-6.patch --arch=x86_64
First time I do make menuconfig, I get this error:
scripts/kconfig/mconfKconfig
init/Kconfig:2056: can't open file "arch/$SRCARCH/xenomai/Kconfig" scripts/kconfig/Makefile:29 : la recette pour la cible « menuconfig » a échouéeI solved this by replace "$SRCARCH" by "x86" in init/Kconfig
I then tried to compile the kernel :
make bzImage modulesAnd I got an error which I solved by disable
CONFIG_HYPERVandCONFIG_SCHED_MC(as indicated in this thread :
https://www.xenomai.org/pipermail/xenomai/2018-October/039679.html)Now I have this error :
In file included frominclude/xenomai/cobalt/uapi/kernel/vdso.h:21:0,
frominclude/xenomai/cobalt/kernel/vdso.h:26, fromkernel/xenomai/posix/clock.c:21:include/xenomai/cobalt/uapi/kernel/urw.h: In function '__try_read_start':include/xenomai/cobalt/uapi/kernel/urw.h:60:2: error: implicit declaration of function 'ACCESS_ONCE' [-Werror=implicit-function-declaration]
Quoted 7 lines
token = ACCESS_ONCE(urw->sequence); ^cc1: some warnings being treated as errors
Can you help me ?
I attach my .config
Yeah, one "detail": When you move to 4.19, you also need to switch to xenomai master branch.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 47 lines · Davy via Xenomai
Quoted 34 lines
Hi,
So, I started over with the linux kernel 4.19.66 and xenomai 3.0.9
I patched the kernel with the following command :
./scripts/prepare-kernel.sh --linux=../linux-4.19.66--ipipe=../ipipe-core-4.19.66-x86-6.patch --arch=x86_64
First time I do make menuconfig, I get this error:
scripts/kconfig/mconfKconfig
init/Kconfig:2056: can't open file "arch/$SRCARCH/xenomai/Kconfig" scripts/kconfig/Makefile:29 : la recette pour la cible « menuconfig » a
échouéeI solved this by replace "$SRCARCH" by "x86" in init/Kconfig
I then tried to compile the kernel :
make bzImage modulesAnd I got an error which I solved by disable
CONFIG_HYPERVandCONFIG_SCHED_MC(as indicated in this thread :
https://www.xenomai.org/pipermail/xenomai/2018-October/039679.html)Now I have this error :
In file included frominclude/xenomai/cobalt/uapi/kernel/vdso.h:21:0,
frominclude/xenomai/cobalt/kernel/vdso.h:26, fromkernel/xenomai/posix/clock.c:21:include/xenomai/cobalt/uapi/kernel/urw.h: In function '__try_read_start':include/xenomai/cobalt/uapi/kernel/urw.h:60:2: error: implicit declaration
of function 'ACCESS_ONCE' [-Werror=implicit-function-declaration]Quoted 7 lines
token = ACCESS_ONCE(urw->sequence); ^cc1: some warnings being treated as errors
Can you help me ?
I attach my .configYeah, one "detail": When you move to 4.19, you also need to switch to xenomai
master branch.
Quoted 6 lines
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Jan,
Thank you for your quick reply. If I want to use the last stable release xenomai which kernel release I need to use ?
Regards,
Davy
Quoted 55 lines · On 06.09.19 15:38, [email protected] wrote:
Quoted 47 lines · Davy via Xenomai
Quoted 34 lines
Hi,
So, I started over with the linux kernel 4.19.66 and xenomai 3.0.9
I patched the kernel with the following command :
./scripts/prepare-kernel.sh --linux=../linux-4.19.66--ipipe=../ipipe-core-4.19.66-x86-6.patch --arch=x86_64
First time I do make menuconfig, I get this error:
scripts/kconfig/mconfKconfig
init/Kconfig:2056: can't open file "arch/$SRCARCH/xenomai/Kconfig" scripts/kconfig/Makefile:29 : la recette pour la cible « menuconfig » a
échouéeI solved this by replace "$SRCARCH" by "x86" in init/Kconfig
I then tried to compile the kernel :
make bzImage modulesAnd I got an error which I solved by disable
CONFIG_HYPERVandCONFIG_SCHED_MC(as indicated in this thread :
https://www.xenomai.org/pipermail/xenomai/2018-October/039679.html)Now I have this error :
In file included frominclude/xenomai/cobalt/uapi/kernel/vdso.h:21:0,
frominclude/xenomai/cobalt/kernel/vdso.h:26, fromkernel/xenomai/posix/clock.c:21:include/xenomai/cobalt/uapi/kernel/urw.h: In function '__try_read_start':include/xenomai/cobalt/uapi/kernel/urw.h:60:2: error: implicit declaration
of function 'ACCESS_ONCE' [-Werror=implicit-function-declaration]Quoted 7 lines
token = ACCESS_ONCE(urw->sequence); ^cc1: some warnings being treated as errors
Can you help me ?
I attach my .configYeah, one "detail": When you move to 4.19, you also need to switch to xenomai
master branch.Quoted 6 lines
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 5 lines
Hi Jan,
Thank you for your quick reply. If I want to use the last stable release xenomai which kernel release I need to use ?
We will soon release 3.1, then you can use 4.19 with an officially stable baseline. If you start now, that combination will have been released when you are done - unless you really need to release "tomorrow".
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Quoted 14 lines · On 06.09.19 15:38, [email protected] wrote:
Quoted 7 lines
Hi Jan,
Thank you for your quick reply. If I want to use the last stable release xenomai which kernel release I need to use ?
We will soon release 3.1, then you can use 4.19 with an officially stable baseline. If you start now, that combination will have been released when you
are done - unless you really need to release "tomorrow".
Quoted 6 lines
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi,
Thanks for Xenomai 3.1.
I compliled the linux kernel 4.19.66 with xenomai 3.1-rc1. No errors appeared during it.
When I try to boot with it I get stuck with the error :
can't find IRQ for PCI INT A; probably buggy MP table
I attach a image of the last messages before the freeze.
Do you have any idea how do I can fix this ?
I also send my .config
Regards,
Davy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boot.jpg
Type: image/jpeg
Size: 240953 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20190926/a2bcfa70/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config
Type: application/octet-stream
Size: 193837 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20190926/a2bcfa70/attachment.obj>
Quoted 28 lines · Davy via Xenomai
Quoted 14 lines · On 06.09.19 15:38, [email protected] wrote:
Quoted 7 lines
Hi Jan,
Thank you for your quick reply. If I want to use the last stable release xenomai which kernel release I need to use ?
We will soon release 3.1, then you can use 4.19 with an officially stable baseline. If you start now, that combination will have been released when you
are done - unless you really need to release "tomorrow".Quoted 6 lines
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded LinuxHi,
Thanks for Xenomai 3.1.
I compliled the linux kernel 4.19.66 with xenomai 3.1-rc1. No errors appeared during it.
Quoted 8 lines
When I try to boot with it I get stuck with the error :
can't find IRQ for PCI INT A; probably buggy MP tableI attach a image of the last messages before the freeze.
Do you have any idea how do I can fix this ?
I also send my .config
Does the error disappear when you disable Xenomai and I-pipe in the kernel configuration?
Jan
----- Den 27 sep 2019, på kl 15:07, xenomai [email protected] skrev:
Quoted 24 lines · Davy via Xenomai
Quoted 22 lines
Quoted 14 lines · On 06.09.19 15:38, [email protected] wrote:
Quoted 6 lines
Hi Jan,
Thank you for your quick reply. If I want to use the last stable release xenomai which kernel release I need to use ?
We will soon release 3.1, then you can use 4.19 with an officially stable baseline. If you start now, that combination will have been released when you
are done - unless you really need to release "tomorrow".Quoted 5 lines
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded LinuxHi,
Quoted 7 lines
Quoted 7 lines
Thanks for Xenomai 3.1.
I compliled the linux kernel 4.19.66 with xenomai 3.1-rc1. No errors appeared during it.
When I try to boot with it I get stuck with the error :
can't find IRQ for PCI INT A; probably buggy MP table
I recognize this, and I think I recall that I only had it on one of our hardware platforms. As I recall i read something about it being MSI-related. You could try turning off MSI at kernel boot using "pci=nomsi"
Per Öberg
Quoted 10 lines
Quoted 4 lines
I attach a image of the last messages before the freeze.
Do you have any idea how do I can fix this ?
I also send my .configDoes the error disappear when you disable Xenomai and I-pipe in the kernel configuration?
Jan