* [Xenomai-help] prepare_kernel.sh for PowerPC
@ 2010-04-14 10:55 Luc ANTOLINOS
2010-04-14 11:06 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Luc ANTOLINOS @ 2010-04-14 10:55 UTC (permalink / raw)
To: xenomai
Hi,
(Xenomai 2.5.2, Linux 2.6.33, PowerPC)
I noticed the following behaviour in the prepare_kernel.sh script.
When using target name "powerpc" all is fine, but when using "ppc" the
script hangs after patching all files.
Strace indicate the script hangs waiting for an entry (probably a file
not found and a grep or other tool wait on the stdin). Strace output
is at the end of this email.
Is ppc a correct target name ? In the prepare_kernel.sh script the
variable $linux_arch seams to have a different value when using ppc.
arch/ppc directory does not exists in Linux 2.6.33 sources.
ppc|ppc32)
linux_arch=ppc
xenomai_arch=powerpc
;;
ppc64|powerpc64)
linux_arch=ppc64
xenomai_arch=powerpc
;;
powerpc)
linux_arch=powerpc
xenomai_arch=powerpc
;;
Strace output :
patching file lib/ioremap.c
patching file lib/smp_processor_id.c
patching file mm/memory.c
patching file mm/mmu_context.c
patching file mm/vmalloc.c
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 9764
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfdb3f38, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7df76f8) = 9765
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 9765
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfdb4598, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
stat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/src", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
stat64("/usr/src/xenomai-2.5.2", {st_mode=S_IFDIR|S_ISGID|0777,
st_size=4096, ...}) = 0
stat64("/usr/src/xenomai-2.5.2/scripts",
{st_mode=S_IFDIR|S_ISGID|0777, st_size=4096, ...}) = 0
chdir("/usr/src/xenomai-2.5.2/scripts") = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\nasm_ipipe_h=unknown\nif test -r $"..., 8176) = 4781
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/usr/src/linux-2.6.33/arch/ppc/include/asm/ipipe.h",
0xbfdb4a8c) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -4365, [11554], SEEK_CUR) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7df76f8) = 9766
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3, ""..., 128) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807ef30, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 9766
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfdb44f8, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x807ef30, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\nadeos_version=`grep '^#define.*I"..., 8176) = 4365
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -4249, [11670], SEEK_CUR) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7df76f8) = 9769
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e320, [], 0}, {0x807e320, [], 0}, 8) = 0
close(4) = 0
read(3,
--
Luc
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Xenomai-help] prepare_kernel.sh for PowerPC
2010-04-14 10:55 [Xenomai-help] prepare_kernel.sh for PowerPC Luc ANTOLINOS
@ 2010-04-14 11:06 ` Gilles Chanteperdrix
2010-04-14 12:05 ` Luc ANTOLINOS
0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2010-04-14 11:06 UTC (permalink / raw)
To: Luc ANTOLINOS; +Cc: xenomai
Luc ANTOLINOS wrote:
> Hi,
> (Xenomai 2.5.2, Linux 2.6.33, PowerPC)
> I noticed the following behaviour in the prepare_kernel.sh script.
> When using target name "powerpc" all is fine, but when using "ppc" the
> script hangs after patching all files.
> Strace indicate the script hangs waiting for an entry (probably a file
> not found and a grep or other tool wait on the stdin). Strace output
> is at the end of this email.
>
> Is ppc a correct target name ? In the prepare_kernel.sh script the
> variable $linux_arch seams to have a different value when using ppc.
> arch/ppc directory does not exists in Linux 2.6.33 sources.
arch/ppc existed in other versions of Linux sources, with which we
maintain compatibility.
Could you show us the output of prepare-kernel.sh when you use ppc as
architecture?
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] prepare_kernel.sh for PowerPC
2010-04-14 11:06 ` Gilles Chanteperdrix
@ 2010-04-14 12:05 ` Luc ANTOLINOS
2010-04-14 13:13 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Luc ANTOLINOS @ 2010-04-14 12:05 UTC (permalink / raw)
To: xenomai
On 14 April 2010 13:06, Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org> wrote:
> arch/ppc existed in other versions of Linux sources, with which we
> maintain compatibility.
> Could you show us the output of prepare-kernel.sh when you use ppc as
> architecture?
/usr/src/xenomai-2.5.2# scripts/prepare-kernel.sh
Linux tree [default /lib/modules/2.6.26-2-486/source]: /usr/src/linux-2.6.33
Target architecture [default i686]: ppc
Adeos patch [default
/usr/src/xenomai-2.5.2/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.33-powerpc-2.9-00.patch]:
patching file arch/powerpc/Kconfig
patching file arch/powerpc/boot/Makefile
patching file arch/powerpc/include/asm/exception-64s.h
patching file arch/powerpc/include/asm/ftrace.h
patching file arch/powerpc/include/asm/hw_irq.h
patching file arch/powerpc/include/asm/ipipe.h
patching file arch/powerpc/include/asm/ipipe_base.h
patching file arch/powerpc/include/asm/ipipe_hwirq.h
patching file arch/powerpc/include/asm/irqflags.h
patching file arch/powerpc/include/asm/mmu_context.h
patching file arch/powerpc/include/asm/mpic.h
patching file arch/powerpc/include/asm/paca.h
patching file arch/powerpc/include/asm/ptrace.h
patching file arch/powerpc/include/asm/qe_ic.h
patching file arch/powerpc/include/asm/reg.h
patching file arch/powerpc/include/asm/smp.h
patching file arch/powerpc/include/asm/thread_info.h
patching file arch/powerpc/include/asm/time.h
patching file arch/powerpc/kernel/Makefile
patching file arch/powerpc/kernel/asm-offsets.c
patching file arch/powerpc/kernel/cputable.c
patching file arch/powerpc/kernel/entry_32.S
patching file arch/powerpc/kernel/entry_64.S
patching file arch/powerpc/kernel/exceptions-64s.S
patching file arch/powerpc/kernel/fpu.S
patching file arch/powerpc/kernel/head_32.S
patching file arch/powerpc/kernel/head_40x.S
patching file arch/powerpc/kernel/head_44x.S
patching file arch/powerpc/kernel/head_64.S
patching file arch/powerpc/kernel/head_8xx.S
patching file arch/powerpc/kernel/head_booke.h
patching file arch/powerpc/kernel/head_fsl_booke.S
patching file arch/powerpc/kernel/idle.c
patching file arch/powerpc/kernel/idle_power4.S
patching file arch/powerpc/kernel/ipipe.c
patching file arch/powerpc/kernel/irq.c
patching file arch/powerpc/kernel/ppc_ksyms.c
patching file arch/powerpc/kernel/process.c
patching file arch/powerpc/kernel/prom_init_check.sh
patching file arch/powerpc/kernel/setup_32.c
patching file arch/powerpc/kernel/setup_64.c
patching file arch/powerpc/kernel/smp.c
patching file arch/powerpc/kernel/time.c
patching file arch/powerpc/kernel/traps.c
patching file arch/powerpc/lib/code-patching.c
patching file arch/powerpc/lib/feature-fixups.c
patching file arch/powerpc/mm/fault.c
patching file arch/powerpc/mm/hash_low_32.S
patching file arch/powerpc/mm/hash_native_64.c
patching file arch/powerpc/mm/hash_utils_64.c
patching file arch/powerpc/mm/mmu_context_nohash.c
patching file arch/powerpc/mm/slb.c
patching file arch/powerpc/mm/stab.c
patching file arch/powerpc/mm/tlb_hash32.c
patching file arch/powerpc/platforms/82xx/pq2ads-pci-pic.c
patching file arch/powerpc/platforms/85xx/tqm85xx.c
patching file arch/powerpc/platforms/cell/spu_base.c
patching file arch/powerpc/platforms/iseries/irq.c
patching file arch/powerpc/platforms/powermac/pic.c
patching file arch/powerpc/platforms/ps3/htab.c
patching file arch/powerpc/platforms/ps3/interrupt.c
patching file arch/powerpc/platforms/pseries/lpar.c
patching file arch/powerpc/sysdev/cpm2_pic.c
patching file arch/powerpc/sysdev/i8259.c
patching file arch/powerpc/sysdev/ipic.c
patching file arch/powerpc/sysdev/mpc8xx_pic.c
patching file arch/powerpc/sysdev/mpic.c
patching file arch/powerpc/sysdev/qe_lib/qe_ic.c
patching file arch/powerpc/sysdev/tsi108_pci.c
patching file arch/powerpc/sysdev/uic.c
patching file drivers/pci/htirq.c
patching file drivers/serial/8250.c
patching file fs/exec.c
patching file fs/proc/array.c
patching file include/asm-generic/atomic.h
patching file include/asm-generic/bitops/atomic.h
patching file include/asm-generic/cmpxchg-local.h
patching file include/asm-generic/percpu.h
patching file include/linux/autoconf.h
patching file include/linux/bounds.h
patching file include/linux/compile.h
patching file include/linux/hardirq.h
patching file include/linux/ipipe.h
patching file include/linux/ipipe_base.h
patching file include/linux/ipipe_lock.h
patching file include/linux/ipipe_percpu.h
patching file include/linux/ipipe_tickdev.h
patching file include/linux/ipipe_trace.h
patching file include/linux/irq.h
patching file include/linux/kernel.h
patching file include/linux/preempt.h
patching file include/linux/rwlock.h
patching file include/linux/rwlock_api_smp.h
patching file include/linux/sched.h
patching file include/linux/spinlock.h
patching file include/linux/spinlock_api_smp.h
patching file include/linux/spinlock_up.h
patching file include/linux/utsrelease.h
patching file init/Kconfig
patching file init/main.c
patching file kernel/Makefile
patching file kernel/exit.c
patching file kernel/fork.c
patching file kernel/ipipe/Kconfig
patching file kernel/ipipe/Kconfig.debug
patching file kernel/ipipe/Makefile
patching file kernel/ipipe/core.c
patching file kernel/ipipe/tracer.c
patching file kernel/irq/chip.c
patching file kernel/irq/handle.c
patching file kernel/lockdep.c
patching file kernel/panic.c
patching file kernel/power/hibernate.c
patching file kernel/printk.c
patching file kernel/sched.c
patching file kernel/signal.c
patching file kernel/spinlock.c
patching file kernel/time/tick-common.c
patching file kernel/time/tick-sched.c
patching file kernel/timer.c
patching file kernel/trace/ftrace.c
patching file lib/Kconfig.debug
patching file lib/bust_spinlocks.c
patching file lib/ioremap.c
patching file lib/smp_processor_id.c
patching file mm/memory.c
patching file mm/mmu_context.c
patching file mm/vmalloc.c
<== Here the scripts hangs
I think the problem is line 412 :
asm_ipipe_h=`ls
$linux_tree/include/asm-{$linux_arch,$xenomai_arch}/ipipe.h
2>/dev/null|head -n1`
In this case, ls fail and then asm_ipipe_h is empty.
Line 415 wait forever on stdin :
adeos_version=`grep '^#define.*IPIPE_ARCH_STRING.*"' $asm_ipipe_h
2>/dev/null|head -n1|sed -e 's,.*"\(.*\)"$,\1,'`
--
Luc
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Xenomai-help] prepare_kernel.sh for PowerPC
2010-04-14 12:05 ` Luc ANTOLINOS
@ 2010-04-14 13:13 ` Philippe Gerum
0 siblings, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2010-04-14 13:13 UTC (permalink / raw)
To: Luc ANTOLINOS; +Cc: xenomai
On Wed, 2010-04-14 at 14:05 +0200, Luc ANTOLINOS wrote:
> On 14 April 2010 13:06, Gilles Chanteperdrix
> <gilles.chanteperdrix@xenomai.org> wrote:
> > arch/ppc existed in other versions of Linux sources, with which we
> > maintain compatibility.
> > Could you show us the output of prepare-kernel.sh when you use ppc as
> > architecture?
> /usr/src/xenomai-2.5.2# scripts/prepare-kernel.sh
> Linux tree [default /lib/modules/2.6.26-2-486/source]: /usr/src/linux-2.6.33
> Target architecture [default i686]: ppc
You want powerpc there.
> Adeos patch [default
> /usr/src/xenomai-2.5.2/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.33-powerpc-2.9-00.patch]:
> patching file arch/powerpc/Kconfig
> patching file arch/powerpc/boot/Makefile
> patching file arch/powerpc/include/asm/exception-64s.h
> patching file arch/powerpc/include/asm/ftrace.h
> patching file arch/powerpc/include/asm/hw_irq.h
> patching file arch/powerpc/include/asm/ipipe.h
> patching file arch/powerpc/include/asm/ipipe_base.h
> patching file arch/powerpc/include/asm/ipipe_hwirq.h
> patching file arch/powerpc/include/asm/irqflags.h
> patching file arch/powerpc/include/asm/mmu_context.h
> patching file arch/powerpc/include/asm/mpic.h
> patching file arch/powerpc/include/asm/paca.h
> patching file arch/powerpc/include/asm/ptrace.h
> patching file arch/powerpc/include/asm/qe_ic.h
> patching file arch/powerpc/include/asm/reg.h
> patching file arch/powerpc/include/asm/smp.h
> patching file arch/powerpc/include/asm/thread_info.h
> patching file arch/powerpc/include/asm/time.h
> patching file arch/powerpc/kernel/Makefile
> patching file arch/powerpc/kernel/asm-offsets.c
> patching file arch/powerpc/kernel/cputable.c
> patching file arch/powerpc/kernel/entry_32.S
> patching file arch/powerpc/kernel/entry_64.S
> patching file arch/powerpc/kernel/exceptions-64s.S
> patching file arch/powerpc/kernel/fpu.S
> patching file arch/powerpc/kernel/head_32.S
> patching file arch/powerpc/kernel/head_40x.S
> patching file arch/powerpc/kernel/head_44x.S
> patching file arch/powerpc/kernel/head_64.S
> patching file arch/powerpc/kernel/head_8xx.S
> patching file arch/powerpc/kernel/head_booke.h
> patching file arch/powerpc/kernel/head_fsl_booke.S
> patching file arch/powerpc/kernel/idle.c
> patching file arch/powerpc/kernel/idle_power4.S
> patching file arch/powerpc/kernel/ipipe.c
> patching file arch/powerpc/kernel/irq.c
> patching file arch/powerpc/kernel/ppc_ksyms.c
> patching file arch/powerpc/kernel/process.c
> patching file arch/powerpc/kernel/prom_init_check.sh
> patching file arch/powerpc/kernel/setup_32.c
> patching file arch/powerpc/kernel/setup_64.c
> patching file arch/powerpc/kernel/smp.c
> patching file arch/powerpc/kernel/time.c
> patching file arch/powerpc/kernel/traps.c
> patching file arch/powerpc/lib/code-patching.c
> patching file arch/powerpc/lib/feature-fixups.c
> patching file arch/powerpc/mm/fault.c
> patching file arch/powerpc/mm/hash_low_32.S
> patching file arch/powerpc/mm/hash_native_64.c
> patching file arch/powerpc/mm/hash_utils_64.c
> patching file arch/powerpc/mm/mmu_context_nohash.c
> patching file arch/powerpc/mm/slb.c
> patching file arch/powerpc/mm/stab.c
> patching file arch/powerpc/mm/tlb_hash32.c
> patching file arch/powerpc/platforms/82xx/pq2ads-pci-pic.c
> patching file arch/powerpc/platforms/85xx/tqm85xx.c
> patching file arch/powerpc/platforms/cell/spu_base.c
> patching file arch/powerpc/platforms/iseries/irq.c
> patching file arch/powerpc/platforms/powermac/pic.c
> patching file arch/powerpc/platforms/ps3/htab.c
> patching file arch/powerpc/platforms/ps3/interrupt.c
> patching file arch/powerpc/platforms/pseries/lpar.c
> patching file arch/powerpc/sysdev/cpm2_pic.c
> patching file arch/powerpc/sysdev/i8259.c
> patching file arch/powerpc/sysdev/ipic.c
> patching file arch/powerpc/sysdev/mpc8xx_pic.c
> patching file arch/powerpc/sysdev/mpic.c
> patching file arch/powerpc/sysdev/qe_lib/qe_ic.c
> patching file arch/powerpc/sysdev/tsi108_pci.c
> patching file arch/powerpc/sysdev/uic.c
> patching file drivers/pci/htirq.c
> patching file drivers/serial/8250.c
> patching file fs/exec.c
> patching file fs/proc/array.c
> patching file include/asm-generic/atomic.h
> patching file include/asm-generic/bitops/atomic.h
> patching file include/asm-generic/cmpxchg-local.h
> patching file include/asm-generic/percpu.h
> patching file include/linux/autoconf.h
> patching file include/linux/bounds.h
> patching file include/linux/compile.h
> patching file include/linux/hardirq.h
> patching file include/linux/ipipe.h
> patching file include/linux/ipipe_base.h
> patching file include/linux/ipipe_lock.h
> patching file include/linux/ipipe_percpu.h
> patching file include/linux/ipipe_tickdev.h
> patching file include/linux/ipipe_trace.h
> patching file include/linux/irq.h
> patching file include/linux/kernel.h
> patching file include/linux/preempt.h
> patching file include/linux/rwlock.h
> patching file include/linux/rwlock_api_smp.h
> patching file include/linux/sched.h
> patching file include/linux/spinlock.h
> patching file include/linux/spinlock_api_smp.h
> patching file include/linux/spinlock_up.h
> patching file include/linux/utsrelease.h
> patching file init/Kconfig
> patching file init/main.c
> patching file kernel/Makefile
> patching file kernel/exit.c
> patching file kernel/fork.c
> patching file kernel/ipipe/Kconfig
> patching file kernel/ipipe/Kconfig.debug
> patching file kernel/ipipe/Makefile
> patching file kernel/ipipe/core.c
> patching file kernel/ipipe/tracer.c
> patching file kernel/irq/chip.c
> patching file kernel/irq/handle.c
> patching file kernel/lockdep.c
> patching file kernel/panic.c
> patching file kernel/power/hibernate.c
> patching file kernel/printk.c
> patching file kernel/sched.c
> patching file kernel/signal.c
> patching file kernel/spinlock.c
> patching file kernel/time/tick-common.c
> patching file kernel/time/tick-sched.c
> patching file kernel/timer.c
> patching file kernel/trace/ftrace.c
> patching file lib/Kconfig.debug
> patching file lib/bust_spinlocks.c
> patching file lib/ioremap.c
> patching file lib/smp_processor_id.c
> patching file mm/memory.c
> patching file mm/mmu_context.c
> patching file mm/vmalloc.c
>
> <== Here the scripts hangs
>
> I think the problem is line 412 :
> asm_ipipe_h=`ls
> $linux_tree/include/asm-{$linux_arch,$xenomai_arch}/ipipe.h
> 2>/dev/null|head -n1`
> In this case, ls fail and then asm_ipipe_h is empty.
> Line 415 wait forever on stdin :
> adeos_version=`grep '^#define.*IPIPE_ARCH_STRING.*"' $asm_ipipe_h
> 2>/dev/null|head -n1|sed -e 's,.*"\(.*\)"$,\1,'`
>
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-14 13:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-14 10:55 [Xenomai-help] prepare_kernel.sh for PowerPC Luc ANTOLINOS
2010-04-14 11:06 ` Gilles Chanteperdrix
2010-04-14 12:05 ` Luc ANTOLINOS
2010-04-14 13:13 ` Philippe Gerum
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.