Xenomai for SH4
Hello,
I'd like to use Xenomai on SH4 architecture and it seems it is not in the list of supported architectures now. There were some attempt in the past to port Xenomai to SH4 architecture
(http://article.gmane.org/gmane.linux.real-time.xenomai.users/858/match=xenomai+sh4)
Unfortunately, it seems it the patch hasn't been integrated to the mainstream Xenomai. Does somebody have the patch or is somebody working on the port for SH4 now ?
Thanks for your answers
Pavel Bartůšek
[Xenomai-help] compile error xenomai 2.4.5
Tried to compile linux 2.6.26.5 kernel with xenomai 2.4.5 (also ran ./configure --disable-x86-tsc --enable-x86-sep)
./prepare-kernel.sh --arch=i386 --adeos=/usr/src/xenomai-2.4.5/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.patch --linux=/usr/src/linux-2.6.26.5
make gave the error:
arch/x86/xenomai/hal_32.c: In function ârthal_latency_above_maxâ:arch/x86/xenomai/hal_32.c:139: error: implicit declaration of function âdie_nmiâ make[1]: *** [arch/x86/xenomai/hal_32.o] Error 1
make: *** [arch/x86/xenomai] Error 2
Thanks
Re: [Xenomai-help] compile error xenomai 2.4.5
[ Don't start new topics by replying to unrelated ones! ]
Quoted 10 lines · George Pitich
Tried to compile linux 2.6.26.5 kernel with xenomai 2.4.5 (also ran ./configure --disable-x86-tsc --enable-x86-sep)
./prepare-kernel.sh --arch=i386 --adeos=/usr/src/xenomai-2.4.5/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.patch --linux=/usr/src/linux-2.6.26.5
make gave the error:
arch/x86/xenomai/hal_32.c: In function ârthal_latency_above_maxâ:arch/x86/xenomai/hal_32.c:139: error: implicit declaration of function âdie_nmiâ make[1]: *** [arch/x86/xenomai/hal_32.o] Error 1
make: *** [arch/x86/xenomai] Error 2
That's an issue of the 2.6.26 ipipe patch. Philippe, you dropped the nmi_32.h hunk:
include/asm-x86/nmi_32.h +2 -1
@@ -29,7 +29,8 @@ extern void setup_apic_nmi_watchdog (void *);extern void stop_apic_nmi_watchdog (void *);extern void disable_timer_nmi_watchdog (void );extern void enable_timer_nmi_watchdog (void ); -extern int nmi_watchdog_tick (struct pt_regs * regs,unsigned reason); +extern int (*nmi_watchdog_tick)(struct pt_regs * regs,unsigned reason); +extern void die_nmi (struct pt_regs *,const char *msg);extern atomic_t nmi_active;extern unsigned int nmi_watchdog;
Should be merged into the unified nmi.h now.
George, in the meantime you can simply disable NMI watchdog support in Xenomai, and then the build should succeed again.
Jan
Quoted 9 lines · Pavel Bartusek
Hello,
I'd like to use Xenomai on SH4 architecture and it seems it is not in the list of supported architectures now. There were some attempt in the past to port Xenomai to SH4 architecture
(http://article.gmane.org/gmane.linux.real-time.xenomai.users/858/match=xenomai+sh4)
Unfortunately, it seems it the patch hasn't been integrated to the mainstream Xenomai. Does somebody have the patch or is somebody working on the port for SH4 now ?
As far as I know, that patch never saw any public light, so we were unable to even review it. Dunno what happened to this effort, if it was stopped or if there is now some Xenomai-based SH4 product being shipped without providing the GPL sources... Maybe you want to contact that guy directly, asking for the state.
Otherwise, a new effort would be welcome, and I can only encourage doing it differently (release often, release early).
Jan
Re: [Xenomai-help] compile error xenomai 2.4.5
In reply to Jan KiszkaQuoted 9 lines · Jan Kiszka
[ Don't start new topics by replying to unrelated ones! ]
Quoted 6 lines · George Pitich
Tried to compile linux 2.6.26.5 kernel with xenomai 2.4.5 (also ran ./configure --disable-x86-tsc --enable-x86-sep)
./prepare-kernel.sh --arch=i386 --adeos=/usr/src/xenomai-2.4.5/ksrc/arch/x86/patches/adeos-ipipe-2.6.26-x86-2.0-09.patch --linux=/usr/src/linux-2.6.26.5
make gave the error:
Quoted 8 lines
Quoted 4 lines
arch/x86/xenomai/hal_32.c: In function ârthal_latency_above_maxâ:arch/x86/xenomai/hal_32.c:139: error: implicit declaration of function âdie_nmiâ make[1]: *** [arch/x86/xenomai/hal_32.o] Error 1
make: *** [arch/x86/xenomai] Error 2That's an issue of the 2.6.26 ipipe patch. Philippe, you dropped the
nmi_32.hhunk:
No I didn't, but the die_nmi() prototype is now different between the 32 and 64bit implementations; the i386 decl is missing. Here is the proper fix:
include/asm-x86/nmi.h +1 -0
@@ -42,6 +42,7 @@ extern void die_nmi(char *str, struct pt_regs *regs, int do_panic);extern void nmi_watchdog_default (void );#else #define nmi_watchdog_default () do {} while (0) +extern void die_nmi (struct pt_regs *regs,const char *msg);#endif extern int check_nmi_watchdog (void );
Quoted 22 lines
include/asm-x86/nmi_32.h +2
-1@@ -29,7 +29,8 @@ extern void setup_apic_nmi_watchdog (void *);extern void stop_apic_nmi_watchdog (void *);extern void disable_timer_nmi_watchdog (void );extern void enable_timer_nmi_watchdog (void ); -extern int nmi_watchdog_tick (struct pt_regs * regs,unsigned reason); +extern int (*nmi_watchdog_tick)(struct pt_regs * regs,unsigned reason); +extern void die_nmi (struct pt_regs *,const char *msg);extern atomic_t nmi_active;extern unsigned int nmi_watchdog;Should be merged into the unified
nmi.hnow.George, in the meantime you can simply disable NMI watchdog support in Xenomai, and then the build should succeed again.
Jan
Signature · 1 line
Philippe.