[ELDK] How to correctly build a Xenomai ready kernel with ads8272_defconfig

Goldberger, Yigal YGoldberger at nds.com
Wed Mar 25 17:31:17 CET 2009


Hi All,
I downloaded the latest ELDK from the DENX website and installed it on my machine .
It contains 2 kernels 2.6.24 and 2.6.24-xenomai which I assumed was patched with xenomai .
I then tried to build the xenomai ready kernel as follows :

> make ads8272_defconfig (with ARCH=ppc and CROSS_COMPILE=ppc_82xx-)
> make uImage

A) With the initial configuration it doesn't compile , it fails
due to a missing function declaration on mac-fcc.c file .
as far as I remember it was cmp_command.

B) After adding and removing several options in the menuconfig I managed to compile the kernel but it now fails on link phase :

LD vmlinux
kernel/built-in.o: In function `rthal_exit':
(.text+0x2cb18): undefined reference to `rthal_arch_cleanup'
kernel/built-in.o: In function `rthal_init':
(.text+0x2cbd4): undefined reference to `rthal_arch_init'
kernel/built-in.o: In function `rthal_init':
(.text+0x2cc70): undefined reference to `rthal_arch_cleanup'
kernel/built-in.o: In function `rthal_init':
(.text+0x2cc9c): undefined reference to `rthal_arch_cleanup'
kernel/built-in.o: In function `rthal_init':
(.text+0x2cd42): undefined reference to `rthal_domain_entry'
kernel/built-in.o: In function `rthal_init':
(.text+0x2cd56): undefined reference to `rthal_domain_entry'
kernel/built-in.o: In function `xnintr_enable':
(.text+0x2fc58): undefined reference to `rthal_irq_enable'
kernel/built-in.o: In function `xnintr_disable':
(.text+0x2fc7c): undefined reference to `rthal_irq_disable'
kernel/built-in.o: In function `xnintr_irq_handler':
intr.c:(.text+0x3022c): undefined reference to `rthal_irq_end'
kernel/built-in.o: In function `xnarch_calibrate_timer':
(.text+0x31558): undefined reference to `rthal_timer_calibrate'
kernel/built-in.o: In function `xnpod_disable_timesource':
(.text+0x32a00): undefined reference to `rthal_timer_release'
kernel/built-in.o: In function `xnpod_welcome_thread':
(.text+0x32b00): undefined reference to `rthal_save_fpu'
kernel/built-in.o: In function `xnpod_welcome_thread':
(.text+0x32b4c): undefined reference to `rthal_init_fpu'
kernel/built-in.o: In function `xnpod_enable_timesource':
(.text+0x331c8): undefined reference to `rthal_timer_request'
kernel/built-in.o: In function `xnpod_schedule':
(.text+0x33a8c): undefined reference to `rthal_save_fpu'
kernel/built-in.o: In function `xnpod_schedule':
(.text+0x33acc): undefined reference to `rthal_restore_fpu'
kernel/built-in.o: In function `xnpod_schedule':
(.text+0x33fd4): undefined reference to `rthal_thread_switch'
kernel/built-in.o: In function `xnpod_schedule':
(.text+0x34168): undefined reference to `rthal_thread_switch'
kernel/built-in.o: In function `xnpod_restart_thread':
(.text+0x368e6): undefined reference to `rthal_thread_trampoline'
kernel/built-in.o: In function `xnpod_restart_thread':
(.text+0x368ea): undefined reference to `rthal_thread_trampoline'
kernel/built-in.o: In function `xnpod_switch_fpu':
(.text+0x377f0): undefined reference to `rthal_save_fpu'
kernel/built-in.o: In function `xnpod_switch_fpu':
(.text+0x37834): undefined reference to `rthal_restore_fpu'
kernel/built-in.o: In function `xnpod_start_thread':
(.text+0x37a36): undefined reference to `rthal_thread_trampoline'
kernel/built-in.o: In function `xnpod_start_thread':
(.text+0x37a3a): undefined reference to `rthal_thread_trampoline'
kernel/built-in.o: In function `xnpod_migrate_thread':
(.text+0x38338): undefined reference to `rthal_save_fpu'
kernel/built-in.o: In function `xnpod_schedule_runnable':
(.text+0x39778): undefined reference to `rthal_thread_switch'
kernel/built-in.o: In function `xnpod_schedule_runnable':
(.text+0x397c0): undefined reference to `rthal_save_fpu'
kernel/built-in.o: In function `xnpod_schedule_runnable':
(.text+0x39800): undefined reference to `rthal_restore_fpu'
kernel/built-in.o: In function `xnpod_schedule_runnable':
(.text+0x39dc8): undefined reference to `rthal_thread_switch'
make: *** [vmlinux] Error 1

My question is why isn't the kernel compiling at first place as is ( I assume I'm skipping some important configuration stage)
And also why isn't it linking now.
In short what's the right way to go.

Regards,
Yigal Goldberger.

________________________________
This e-mail is confidential, the property of NDS Ltd and intended for the addressee only. Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited. If you have received this message in error, please immediately notify the postmaster at nds.com and destroy the original message. Messages sent to and from NDS may be monitored. NDS cannot guarantee any message delivery method is secure or error-free. Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission. You should carry out your own virus checks before opening any attachment. Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered Office: One London Road, Staines,Middlesex TW18 4EX, United Kingdom. A company registered in England and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00


More information about the eldk mailing list