* [Xenomai-help] Error : Compiling 2.6.15 with xenomai-2.3.4
@ 2008-08-11 5:10 韩菲
2008-08-11 8:16 ` Sebastian Smolorz
2008-08-11 9:04 ` Gilles Chanteperdrix
0 siblings, 2 replies; 3+ messages in thread
From: 韩菲 @ 2008-08-11 5:10 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 7655 bytes --]
Hello :
I've got errors when I compiled linux kernel 2.6.15 with
adeos-ipipe-2.6.15-arm-1.5-08.patch, my gcc version is 3.4.1, my target
board is at91rm9200(arm) which is said to be supported by xenomai-2.3.4,
I've changed arch and cross-compile in Makefile. Here are my steps:
# zcat 2.6.15-at91.patch.gz |patch -p1
# xenomai_root=/usr/local/arm/xenomai-2.3.4
# linux_tree=/usr/local/arm/linux-2.6.15
# $xenomai_root/scripts/prepare-kernel.sh --arch=arm \
--adeos=$xenomai_root/ksrc/arch/arm/patches/adeos-ipipe-2.6.15-arm-1.5-08.patch
\
--linux=$linux_tree
# make at91rm9200dk_defconfig
# make menuconfig
# make zImage
Then I got errors:
arch/arm/kernel/built-in.o(.text+0x6174): In function
`__ipipe_init_platform':
: undefined reference to `__ipipe_mach_ticks_per_jiffy'
arch/arm/kernel/built-in.o(.text+0x61c8): In function `ipipe_get_sysinfo':
: undefined reference to `__ipipe_mach_ticks_per_jiffy'
arch/arm/kernel/built-in.o(.text+0x61cc): In function `ipipe_get_sysinfo':
: undefined reference to `__ipipe_mach_timerint'
arch/arm/kernel/built-in.o(.text+0x6244): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
arch/arm/kernel/built-in.o(.text+0x626c): In function `$a':
: undefined reference to `__ipipe_mach_set_dec'
arch/arm/kernel/built-in.o(.text+0x62e8): In function `ipipe_tune_timer':
: undefined reference to `__ipipe_mach_ticks_per_jiffy'
arch/arm/kernel/built-in.o(.text+0x6534): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
arch/arm/kernel/built-in.o(.text+0x6540): In function `$a':
: undefined reference to `__ipipe_mach_get_dec'
arch/arm/kernel/built-in.o(.text+0x664c): In function
`__ipipe_enable_pipeline':
: undefined reference to `__ipipe_mach_get_tsc'
arch/arm/kernel/built-in.o(.text+0x6658): In function
`__ipipe_enable_pipeline':
: undefined reference to `__ipipe_mach_get_dec'
arch/arm/kernel/built-in.o(.text+0x6680): In function
`__ipipe_enable_pipeline':
: undefined reference to `__ipipe_mach_timerint'
arch/arm/kernel/built-in.o(.text+0x673c): In function
`__ipipe_ack_timerirq':
: undefined reference to `__ipipe_mach_acktimer'
arch/arm/kernel/built-in.o(.text+0x69c8): In function `__ipipe_grab_irq':
: undefined reference to `__ipipe_mach_get_tsc'
arch/arm/kernel/built-in.o(.text+0x69e4): In function `__ipipe_grab_irq':
: undefined reference to `__ipipe_mach_set_dec'
arch/arm/kernel/built-in.o(.text+0x69f0): In function `__ipipe_grab_irq':
: undefined reference to `__ipipe_mach_irq_mux_p'
arch/arm/kernel/built-in.o(.text+0x6a04): In function `__ipipe_grab_irq':
: undefined reference to `__ipipe_mach_demux_irq'
arch/arm/kernel/built-in.o(.text+0x6a58): In function `__ipipe_grab_irq':
: undefined reference to `__ipipe_mach_timerint'
arch/arm/kernel/built-in.o(.text+0x6a64): In function `__ipipe_grab_irq':
: undefined reference to `__ipipe_mach_ticks_per_jiffy'
kernel/built-in.o(.text+0x23a30): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x23b48): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x23b7c): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x23ba8): In function `$a':
: undefined reference to `__ipipe_mach_timerint'
kernel/built-in.o(.text+0x23f04): In function `xnintr_irq_proc':
: undefined reference to `__ipipe_mach_timerint'
kernel/built-in.o(.text+0x240ac): In function `xnintr_query':
: undefined reference to `__ipipe_mach_timerint'
kernel/built-in.o(.text+0x246bc): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x25400): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x25c38): In function `xnpod_fatal_helper':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x25f60): In function `xnpod_fatal_helper':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x26ecc): In function `xnpod_schedule_runnable':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2707c): more undefined references to
`__ipipe_mach_get_tsc' follow
kernel/built-in.o(.text+0x291a4): In function `xnpod_start_timer':
: undefined reference to `__ipipe_mach_timerint'
kernel/built-in.o(.text+0x29b64): In function `xnpod_wait_thread_period':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x29bb8): In function `xnpod_wait_thread_period':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2aeb4): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2b148): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2b1f8): In function `$a':
: undefined reference to `__ipipe_mach_set_dec'
kernel/built-in.o(.text+0x2b220): In function `$a':
: undefined reference to `__ipipe_mach_timerint'
kernel/built-in.o(.text+0x2b2d0): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2b384): In function `$a':
: undefined reference to `__ipipe_mach_set_dec'
kernel/built-in.o(.text+0x2b3c4): In function `$a':
: undefined reference to `__ipipe_mach_timerint'
kernel/built-in.o(.text+0x2b4e8): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2b754): In function
`xntimer_get_jiffies_aperiodic':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2b858): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2b8bc): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2ba7c): In function `$a':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x2bb30): In function `$a':
: undefined reference to `__ipipe_mach_set_dec'
kernel/built-in.o(.text+0x2bb50): In function `$a':
: undefined reference to `__ipipe_mach_timerint'
kernel/built-in.o(.text+0x33ad0): In function `rt_timer_inquire':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x33bf8): In function `rt_timer_tsc':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x33c18): In function `rt_timer_spin':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x33d18): In function `rt_timer_spin':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x3f808): In function
`pse51_cond_timedwait_prologue':
: undefined reference to `__ipipe_mach_get_tsc'
kernel/built-in.o(.text+0x42568): more undefined references to
`__ipipe_mach_get_tsc' follow
arch/arm/xenomai/built-in.o(.text+0x70): In function `rthal_timer_request':
: undefined reference to `__ipipe_mach_set_dec'
arch/arm/xenomai/built-in.o(.text+0xa8): In function `rthal_timer_request':
: undefined reference to `__ipipe_mach_timerstolen'
arch/arm/xenomai/built-in.o(.text+0xb0): In function `rthal_timer_request':
: undefined reference to `__ipipe_mach_ticks_per_jiffy'
arch/arm/xenomai/built-in.o(.text+0xb4): In function `rthal_timer_request':
: undefined reference to `__ipipe_mach_timerint'
arch/arm/xenomai/built-in.o(.text+0xf0): In function `rthal_timer_release':
: undefined reference to `__ipipe_mach_release_timer'
arch/arm/xenomai/built-in.o(.text+0x11c): In function `rthal_timer_release':
: undefined reference to `__ipipe_mach_timerint'
arch/arm/xenomai/built-in.o(.text+0x120): In function `rthal_timer_release':
: undefined reference to `__ipipe_mach_timerstolen'
make: *** [.tmp_vmlinux1] Error 1
I've tried several times, and I got similar errors relate to variables and
functions in i-pipe patch. Please help me. Thank you very much!
[-- Attachment #2: Type: text/html, Size: 8627 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Error : Compiling 2.6.15 with xenomai-2.3.4
2008-08-11 5:10 [Xenomai-help] Error : Compiling 2.6.15 with xenomai-2.3.4 韩菲
@ 2008-08-11 8:16 ` Sebastian Smolorz
2008-08-11 9:04 ` Gilles Chanteperdrix
1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Smolorz @ 2008-08-11 8:16 UTC (permalink / raw)
To: ??; +Cc: xenomai
> Hello :
> I've got errors when I compiled linux kernel 2.6.15 with
> adeos-ipipe-2.6.15-arm-1.5-08.patch, my gcc version is 3.4.1, my target
> board is at91rm9200(arm) which is said to be supported by xenomai-2.3.4,
The I-pipe patch 1.5 does not support your board. There is a second
patch shipped with this Xenomai version which should work for you. It is
for kernel 2.6.20.
--
Sebastian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Error : Compiling 2.6.15 with xenomai-2.3.4
2008-08-11 5:10 [Xenomai-help] Error : Compiling 2.6.15 with xenomai-2.3.4 韩菲
2008-08-11 8:16 ` Sebastian Smolorz
@ 2008-08-11 9:04 ` Gilles Chanteperdrix
1 sibling, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2008-08-11 9:04 UTC (permalink / raw)
To: 韩菲; +Cc: xenomai
韩菲 wrote:
> Hello :
> I've got errors when I compiled linux kernel 2.6.15 with
> adeos-ipipe-2.6.15-arm-1.5-08.patch, my gcc version is 3.4.1, my target
> board is at91rm9200(arm) which is said to be supported by xenomai-2.3.4,
No, it is not clear from the documentation, but at91rm9200 is not
supported by the 2.6.15 patch, you should pick the 2.6.20 one. However,
why picking this version of Xenomai ? There are more recent ones in the
same branch, and there is a more recent branch (v2.4.x). If you are
starting a new development and have no particular constraint to stay
with an old kernel, I suggest you go with Xenomai 2.4.4, using the
2.6.26 kernel.
> I've changed arch and cross-compile in Makefile. Here are my steps:
> # zcat 2.6.15-at91.patch.gz |patch -p1
> # xenomai_root=/usr/local/arm/xenomai-2.3.4
> # linux_tree=/usr/local/arm/linux-2.6.15
> # $xenomai_root/scripts/prepare-kernel.sh --arch=arm \
>
> --adeos=$xenomai_root/ksrc/arch/arm/patches/adeos-ipipe-2.6.15-arm-1.5-08.patch
> \
> --linux=$linux_tree
> # make at91rm9200dk_defconfig
> # make menuconfig
> # make zImage
> Then I got errors:
> arch/arm/kernel/built-in.o(.text+0x6174): In function
> `__ipipe_init_platform':
> : undefined reference to `__ipipe_mach_ticks_per_jiffy'
> arch/arm/kernel/built-in.o(.text+0x61c8): In function `ipipe_get_sysinfo':
> : undefined reference to `__ipipe_mach_ticks_per_jiffy'
> arch/arm/kernel/built-in.o(.text+0x61cc): In function `ipipe_get_sysinfo':
> : undefined reference to `__ipipe_mach_timerint'
> arch/arm/kernel/built-in.o(.text+0x6244): In function `$a':
> : undefined reference to `__ipipe_mach_get_tsc'
Your version of binutils is outdated, you will run into problem, see the
arm linux FAQ. Also, 3.4.1 is a too old version of gcc, I think the
oldest version supported to build the linux kernel is 3.4.4.
--
Gilles.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-11 9:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-11 5:10 [Xenomai-help] Error : Compiling 2.6.15 with xenomai-2.3.4 韩菲
2008-08-11 8:16 ` Sebastian Smolorz
2008-08-11 9:04 ` Gilles Chanteperdrix
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.