All of lore.kernel.org
 help / color / mirror / Atom feed
* ipipe kernel image compile error
@ 2020-03-31 21:42 C Smith
  2020-04-01  6:49 ` Henning Schild
  2020-04-01  7:06 ` Jan Kiszka
  0 siblings, 2 replies; 3+ messages in thread
From: C Smith @ 2020-03-31 21:42 UTC (permalink / raw)
  To: Xenomai List

Hi,

I'm having a problem compiling Kernel 4.19.109 with
ipipe-core-4.19.109-cip22-x86-11.patch using Xenomai-3.1.

$ scripts/prepare-kernel.sh --linux=../linux/
--ipipe=../ipipe-core-4.19.109-cip22-x86-11.patch --arch=x86

I'm compiling with:
$ m -j4 bzImage

I'm getting following error:

arch/x86/kernel/apb_timer.c: In function ‘apbt_set_mapping’:
arch/x86/kernel/apb_timer.c:122:21: error: too few arguments to function
‘dw_apb_clocksource_init’
  clocksource_apbt = dw_apb_clocksource_init(APBT_CLOCKSOURCE_RATING,
                     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/kernel/apb_timer.c:31:
./include/linux/dw_apb_timer.h:50:1: note: declared here
 dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem
*base,
 ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:303: arch/x86/kernel/apb_timer.o]
Error 1
make[1]: *** [scripts/Makefile.build:544: arch/x86/kernel] Error 2
make[1]: *** Waiting for unfinished jobs....


 config_20200331
<https://drive.google.com/file/d/1n3gdgMogUUKjleWzEgAEGu_330mYX_io/view?usp=drive_web>


Thank you
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config_20200331
Type: application/octet-stream
Size: 208519 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20200331/ed753c3a/attachment.obj>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ipipe kernel image compile error
  2020-03-31 21:42 ipipe kernel image compile error C Smith
@ 2020-04-01  6:49 ` Henning Schild
  2020-04-01  7:06 ` Jan Kiszka
  1 sibling, 0 replies; 3+ messages in thread
From: Henning Schild @ 2020-04-01  6:49 UTC (permalink / raw)
  To: C Smith via Xenomai

Hi,

i do not know what that timer is or whether it is wise to choose it for
an ipipe kernel.

You can probably work around the issue by not setting CONFIG_APB_TIMER
in your kernel configuration. And my guess is that you will not be
missing any features. In order to reproduce the issue, your config
would be useful.

Henning

On Tue, 31 Mar 2020 14:42:45 -0700
C Smith via Xenomai <xenomai@xenomai.org> wrote:

> Hi,
> 
> I'm having a problem compiling Kernel 4.19.109 with
> ipipe-core-4.19.109-cip22-x86-11.patch using Xenomai-3.1.
> 
> $ scripts/prepare-kernel.sh --linux=../linux/
> --ipipe=../ipipe-core-4.19.109-cip22-x86-11.patch --arch=x86
> 
> I'm compiling with:
> $ m -j4 bzImage
> 
> I'm getting following error:
> 
> arch/x86/kernel/apb_timer.c: In function ‘apbt_set_mapping’:
> arch/x86/kernel/apb_timer.c:122:21: error: too few arguments to
> function ‘dw_apb_clocksource_init’
>   clocksource_apbt = dw_apb_clocksource_init(APBT_CLOCKSOURCE_RATING,
>                      ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from arch/x86/kernel/apb_timer.c:31:
> ./include/linux/dw_apb_timer.h:50:1: note: declared here
>  dw_apb_clocksource_init(unsigned rating, const char *name, void
> __iomem *base,
>  ^~~~~~~~~~~~~~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:303: arch/x86/kernel/apb_timer.o]
> Error 1
> make[1]: *** [scripts/Makefile.build:544: arch/x86/kernel] Error 2
> make[1]: *** Waiting for unfinished jobs....
> 
> 
>  config_20200331
> <https://drive.google.com/file/d/1n3gdgMogUUKjleWzEgAEGu_330mYX_io/view?usp=drive_web>
> 
> 
> Thank you
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: config_20200331
> Type: application/octet-stream
> Size: 208519 bytes
> Desc: not available
> URL:
> <http://xenomai.org/pipermail/xenomai/attachments/20200331/ed753c3a/attachment.obj>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ipipe kernel image compile error
  2020-03-31 21:42 ipipe kernel image compile error C Smith
  2020-04-01  6:49 ` Henning Schild
@ 2020-04-01  7:06 ` Jan Kiszka
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2020-04-01  7:06 UTC (permalink / raw)
  To: C Smith, Xenomai List

On 31.03.20 23:42, C Smith via Xenomai wrote:
> Hi,
>
> I'm having a problem compiling Kernel 4.19.109 with
> ipipe-core-4.19.109-cip22-x86-11.patch using Xenomai-3.1.
>
> $ scripts/prepare-kernel.sh --linux=../linux/
> --ipipe=../ipipe-core-4.19.109-cip22-x86-11.patch --arch=x86
>
> I'm compiling with:
> $ m -j4 bzImage
>
> I'm getting following error:
>
> arch/x86/kernel/apb_timer.c: In function ‘apbt_set_mapping’:
> arch/x86/kernel/apb_timer.c:122:21: error: too few arguments to function
> ‘dw_apb_clocksource_init’
>    clocksource_apbt = dw_apb_clocksource_init(APBT_CLOCKSOURCE_RATING,
>                       ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from arch/x86/kernel/apb_timer.c:31:
> ./include/linux/dw_apb_timer.h:50:1: note: declared here
>   dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem
> *base,
>   ^~~~~~~~~~~~~~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:303: arch/x86/kernel/apb_timer.o]
> Error 1
> make[1]: *** [scripts/Makefile.build:544: arch/x86/kernel] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
>   config_20200331
> <https://drive.google.com/file/d/1n3gdgMogUUKjleWzEgAEGu_330mYX_io/view?usp=drive_web>
>

I thought we came across this already and fixed it but... no:

https://gitlab.denx.de/Xenomai/ipipe-noarch/-/commit/a1cfa77db06c3967fc8c790eefa656562f0fba5d
is broken as it is not arch-agnostic. I'll rip that off from the x86
tree for the next release.

Meanwhile, you can work around that by disabling CONFIG_X86_INTEL_MID -
unless you are on an Intel MID platform. Are you?

Jan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-01  7:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31 21:42 ipipe kernel image compile error C Smith
2020-04-01  6:49 ` Henning Schild
2020-04-01  7:06 ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.