public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* Problem with user-space programs on 405GP
@ 2004-11-02  0:54 Vladimir
  2004-11-02 19:24 ` Problem with user-space programs on 405GP: linux 2.6 oops Vladimir
       [not found] ` <41879A89.5020104@rossvideo.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Vladimir @ 2004-11-02  0:54 UTC (permalink / raw)
  To: linuxppc-embedded

Hello All !
I'm trying to run linux (2.4.22) on embedded PowerPC (405GP). It boots nice,
but when it tries to execute /sbin/init it hangs. Last console messages
are:

VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 56k init 4k prep

I've tried to replace /sbin/init by my own executable - it's definitely have 
not been executed.
I've traced it to the "last point" in kernel-mode (instruction rfi in file 
arch/ppc/kernel/entry.S:389). Before this point everything is all right. But 
after this instruction kernel just hangs.
After this sysrq-t prints that process init are running at c0007190 (this is 
in the arch_kernel_thread).
sysrq-p does not print any registers, just the line "SysRq : Show Regs".

Could someone give me any tips how to fix this trouble ?

-- 
         Vladimir

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

* Re: Problem with user-space programs on 405GP: linux 2.6 oops
  2004-11-02  0:54 Problem with user-space programs on 405GP Vladimir
@ 2004-11-02 19:24 ` Vladimir
  2004-11-02 22:17   ` Dale Farnsworth
       [not found] ` <41879A89.5020104@rossvideo.com>
  1 sibling, 1 reply; 5+ messages in thread
From: Vladimir @ 2004-11-02 19:24 UTC (permalink / raw)
  To: linuxppc-embedded

On Tuesday 02 November 2004 03:54, Vladimir wrote:
> Hello All !
> I'm trying to run linux (2.4.22) on embedded PowerPC (405GP). It boots
> nice, but when it tries to execute /sbin/init it hangs. Last console
> messages are:
>
> VFS: Mounted root (nfs filesystem).
> Freeing unused kernel memory: 56k init 4k prep
>
> I've tried to replace /sbin/init by my own executable - it's definitely
> have not been executed.
> I've traced it to the "last point" in kernel-mode (instruction rfi in file
> arch/ppc/kernel/entry.S:389). Before this point everything is all right.
> But after this instruction kernel just hangs.
> After this sysrq-t prints that process init are running at c0007190 (this
> is in the arch_kernel_thread).
> sysrq-p does not print any registers, just the line "SysRq : Show Regs".
>
> Could someone give me any tips how to fix this trouble ?

Hello All !
I've tried linux 2.6.8.1 and it gives me the following oops:

VFS: Mounted root (nfs filesystem) readonly.
Freeing unused kernel memory: 68k init
Oops: kernel access of bad area, sig: 11 [#1]
NIP: C00C032C LR: C00C0518 SP: C3F87D90 REGS: c3f87ce0 TRAP: 0300    Not 
tainted
MSR: 00029230 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: 00000000, DSISR: 00000000
TASK = c3f859c0[1] 'init' THREAD: c3f86000Last syscall: 5
PLB0: bear= 0x00a2f48e acr=   0x00000000 besr=  0x00000000
PLB0 to OPB: bear= 0x0a201000 besr0= 0x00000000 besr1= 0x00000000

GPR00: 00000000 C3F87D90 C3F859C0 00000000 00000001 00000000 C027EF50 C3FED0D0
GPR08: 00000080 00000000 C027EE00 C027EE00 22000022 1001F0B8 03FE3200 007FFF2B
GPR16: 00000000 00000001 007FFF00 FFFFFFFF 03FDE850 00000000 03F9FE88 00000001
GPR24: 00000102 10005844 C01D1410 00000001 00000000 C01D1794 00000000 00000000
NIP [c00c032c] visual_init+0xa0/0x1c4
LR [c00c0518] vc_allocate+0xc8/0x150
Call trace:
 [c00c0518] vc_allocate+0xc8/0x150
 [c00c42c0] con_open+0x50/0xc0
 [c00b200c] tty_open+0x2a4/0x548
 [c0057c44] chrdev_open+0xf0/0x184
 [c004cc74] dentry_open+0x164/0x26c
 [c004cb0c] filp_open+0x68/0x6c
 [c004d030] sys_open+0x68/0xa0
 [c0004540] ret_from_syscall+0x0/0x48
Kernel panic: Attempted to kill init!
 <0>Rebooting in 180 seconds..

-- 
         Vladimir

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

* Re: Problem with user-space programs on 405GP: linux 2.6 oops
  2004-11-02 19:24 ` Problem with user-space programs on 405GP: linux 2.6 oops Vladimir
@ 2004-11-02 22:17   ` Dale Farnsworth
  2004-11-03 11:10     ` Vladimir
  0 siblings, 1 reply; 5+ messages in thread
From: Dale Farnsworth @ 2004-11-02 22:17 UTC (permalink / raw)
  To: Vladimir, linuxppc-embedded

I suspect you're missing this patch, which is in the current tree.

-Dale

===== setup.c 1.59 vs 1.60 =====
--- 1.59/arch/ppc/kernel/setup.c	2004-07-26 15:27:53 -07:00
+++ 1.60/arch/ppc/kernel/setup.c	2004-08-16 09:04:08 -07:00
@@ -744,6 +744,10 @@
 	if ( ppc_md.progress ) ppc_md.progress("ocp: exit", 0x3eab);
 #endif
 
+#ifdef CONFIG_DUMMY_CONSOLE
+	conswitchp = &dummy_con;
+#endif
+
 	ppc_md.setup_arch();
 	if ( ppc_md.progress ) ppc_md.progress("arch: exit", 0x3eab);

 
On Tue, Nov 02, 2004 at 07:24:11PM +0000, Vladimir wrote:
> On Tuesday 02 November 2004 03:54, Vladimir wrote:
> > Hello All !
> > I'm trying to run linux (2.4.22) on embedded PowerPC (405GP). It boots
> > nice, but when it tries to execute /sbin/init it hangs. Last console
> > messages are:
> >
> > VFS: Mounted root (nfs filesystem).
> > Freeing unused kernel memory: 56k init 4k prep
> >
> > I've tried to replace /sbin/init by my own executable - it's definitely
> > have not been executed.
> > I've traced it to the "last point" in kernel-mode (instruction rfi in file
> > arch/ppc/kernel/entry.S:389). Before this point everything is all right.
> > But after this instruction kernel just hangs.
> > After this sysrq-t prints that process init are running at c0007190 (this
> > is in the arch_kernel_thread).
> > sysrq-p does not print any registers, just the line "SysRq : Show Regs".
> >
> > Could someone give me any tips how to fix this trouble ?
> 
> Hello All !
> I've tried linux 2.6.8.1 and it gives me the following oops:
> 
> VFS: Mounted root (nfs filesystem) readonly.
> Freeing unused kernel memory: 68k init
> Oops: kernel access of bad area, sig: 11 [#1]
> NIP: C00C032C LR: C00C0518 SP: C3F87D90 REGS: c3f87ce0 TRAP: 0300    Not 
> tainted
> MSR: 00029230 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
> DAR: 00000000, DSISR: 00000000
> TASK = c3f859c0[1] 'init' THREAD: c3f86000Last syscall: 5
> PLB0: bear= 0x00a2f48e acr=   0x00000000 besr=  0x00000000
> PLB0 to OPB: bear= 0x0a201000 besr0= 0x00000000 besr1= 0x00000000
> 
> GPR00: 00000000 C3F87D90 C3F859C0 00000000 00000001 00000000 C027EF50 C3FED0D0
> GPR08: 00000080 00000000 C027EE00 C027EE00 22000022 1001F0B8 03FE3200 007FFF2B
> GPR16: 00000000 00000001 007FFF00 FFFFFFFF 03FDE850 00000000 03F9FE88 00000001
> GPR24: 00000102 10005844 C01D1410 00000001 00000000 C01D1794 00000000 00000000
> NIP [c00c032c] visual_init+0xa0/0x1c4
> LR [c00c0518] vc_allocate+0xc8/0x150
> Call trace:
>  [c00c0518] vc_allocate+0xc8/0x150
>  [c00c42c0] con_open+0x50/0xc0
>  [c00b200c] tty_open+0x2a4/0x548
>  [c0057c44] chrdev_open+0xf0/0x184
>  [c004cc74] dentry_open+0x164/0x26c
>  [c004cb0c] filp_open+0x68/0x6c
>  [c004d030] sys_open+0x68/0xa0
>  [c0004540] ret_from_syscall+0x0/0x48
> Kernel panic: Attempted to kill init!
>  <0>Rebooting in 180 seconds..

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

* Re: Problem with user-space programs on 405GP
       [not found] ` <41879A89.5020104@rossvideo.com>
@ 2004-11-03 11:09   ` Vladimir
  0 siblings, 0 replies; 5+ messages in thread
From: Vladimir @ 2004-11-03 11:09 UTC (permalink / raw)
  To: linuxppc-embedded

On Tuesday 02 November 2004 17:32, Ralph Siemsen wrote:
> Vladimir wrote:
> > I've tried to replace /sbin/init by my own executable - it's definitely
> > have not been executed.
>
> Try enabling CONFIG_MATH_EMULATION=y in your kernel .config file.
I've tried this. It steel doesn't work. Now I've switched to 2.6 kernel - it 
doesn't have this problem.
Anyway, thanks for reply.

-- 
         Vladimir

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

* Re: Problem with user-space programs on 405GP: linux 2.6 oops
  2004-11-02 22:17   ` Dale Farnsworth
@ 2004-11-03 11:10     ` Vladimir
  0 siblings, 0 replies; 5+ messages in thread
From: Vladimir @ 2004-11-03 11:10 UTC (permalink / raw)
  To: linuxppc-embedded

Thanks a lot. It helps.

-- 
         Vladimir

On Wednesday 03 November 2004 01:17, Dale Farnsworth wrote:
> I suspect you're missing this patch, which is in the current tree.
>
> -Dale
>
> ===== setup.c 1.59 vs 1.60 =====
> --- 1.59/arch/ppc/kernel/setup.c 2004-07-26 15:27:53 -07:00
> +++ 1.60/arch/ppc/kernel/setup.c 2004-08-16 09:04:08 -07:00
> @@ -744,6 +744,10 @@
>   if ( ppc_md.progress ) ppc_md.progress("ocp: exit", 0x3eab);
>  #endif
>
> +#ifdef CONFIG_DUMMY_CONSOLE
> + conswitchp = &dummy_con;
> +#endif
> +
>   ppc_md.setup_arch();
>   if ( ppc_md.progress ) ppc_md.progress("arch: exit", 0x3eab);
>

-- 
         Vladimir

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

end of thread, other threads:[~2004-11-03 11:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-02  0:54 Problem with user-space programs on 405GP Vladimir
2004-11-02 19:24 ` Problem with user-space programs on 405GP: linux 2.6 oops Vladimir
2004-11-02 22:17   ` Dale Farnsworth
2004-11-03 11:10     ` Vladimir
     [not found] ` <41879A89.5020104@rossvideo.com>
2004-11-03 11:09   ` Problem with user-space programs on 405GP Vladimir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox