On 06.09.19 15:16, Davy via Xenomai wrote:
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


Yeah, one "detail": When you move to 4.19, you also need to switch to xenomai master branch.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Reply via email to