Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Problem about porting mips kernel
@ 2002-11-25 12:47 henaldohzh
  2002-11-25 12:53 ` Ralf Baechle
  0 siblings, 1 reply; 8+ messages in thread
From: henaldohzh @ 2002-11-25 12:47 UTC (permalink / raw)
  To: linux-mips

Dear gentlemen,
  these days, I am busy with porting mips kernel to a board with vr4131 
core. This board has only SIU serial port, and some hw have been modified. 
Now, I have ported the kernel to it, and modified hw run well. But so 
puzzling me, the execution file cann't run at all. If some one can help me 
or give some advices. I have been crazy for the problem. Off hat for your 
help. Thanks a lot.
 btw, I use the ramdisk with busybox.

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/lccn/ 

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

* Re: Problem about porting mips kernel
  2002-11-25 12:47 henaldohzh
@ 2002-11-25 12:53 ` Ralf Baechle
  0 siblings, 0 replies; 8+ messages in thread
From: Ralf Baechle @ 2002-11-25 12:53 UTC (permalink / raw)
  To: henaldohzh; +Cc: linux-mips

On Mon, Nov 25, 2002 at 12:47:28PM +0000, henaldohzh@hotmail.com wrote:

>   these days, I am busy with porting mips kernel to a board with vr4131 
> core. This board has only SIU serial port, and some hw have been modified. 
> Now, I have ported the kernel to it, and modified hw run well. But so 
> puzzling me, the execution file cann't run at all. If some one can help me 
> or give some advices. I have been crazy for the problem. Off hat for your 
> help. Thanks a lot.
>  btw, I use the ramdisk with busybox.

In general this kind of problem means the tlb or cache code for a particular
platform is faulty or the kernel not configured properly.

  Ralf

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

* Re: Problem about porting mips kernel
@ 2002-11-26  2:06 henaldohzh
  2002-11-26  2:23 ` jeff
  0 siblings, 1 reply; 8+ messages in thread
From: henaldohzh @ 2002-11-26  2:06 UTC (permalink / raw)
  To: ralf; +Cc: linux-mips

I think that kernel had been configured properly, because I can open the 
ttyS0 device in ramdisk. It means no ramdisk problem. But I have not any 
experience to fix tlb or cache bug. If you can give some more advice? Thx.




>From: Ralf Baechle <ralf@linux-mips.org>
>To: henaldohzh@hotmail.com
>CC: linux-mips@linux-mips.org
>Subject: Re: Problem about porting mips kernel
>Date: Mon, 25 Nov 2002 13:53:10 +0100
>
>On Mon, Nov 25, 2002 at 12:47:28PM +0000, henaldohzh@hotmail.com wrote:
>
> >   these days, I am busy with porting mips kernel to a board with vr4131
> > core. This board has only SIU serial port, and some hw have been 
modified.
> > Now, I have ported the kernel to it, and modified hw run well. But so
> > puzzling me, the execution file cann't run at all. If some one can help 
me
> > or give some advices. I have been crazy for the problem. Off hat for 
your
> > help. Thanks a lot.
> >  btw, I use the ramdisk with busybox.
>
>In general this kind of problem means the tlb or cache code for a 
particular
>platform is faulty or the kernel not configured properly.
>
>   Ralf


_________________________________________________________________
免费下载 MSN Explorer:  http://explorer.msn.com/lccn/ 

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

* RE: Problem about porting mips kernel
@ 2002-11-26  2:22 henaldohzh
  0 siblings, 0 replies; 8+ messages in thread
From: henaldohzh @ 2002-11-26  2:22 UTC (permalink / raw)
  To: jeff_lee; +Cc: linux-mips


  Yes. I have disabled the cache once on menuconfig. But still same 
problem.


>From: "jeff" <jeff_lee@coventive.com>
>To: <henaldohzh@hotmail.com>, <ralf@linux-mips.org>
>CC: <linux-mips@linux-mips.org>
>Subject: RE: Problem about porting mips kernel
>Date: Tue, 26 Nov 2002 10:23:05 +0800
>
>Hi, can you turn off the cache on menuconfig and try again?
>
>Regards,
>
>Jeff
>
>-----Original Message-----
>From: linux-mips-bounce@linux-mips.org 
[mailto:linux-mips-bounce@linux-mips.org]On Behalf Of 
henaldohzh@hotmail.com
>Sent: Tuesday, November 26, 2002 10:06 AM
>To: ralf@linux-mips.org
>Cc: linux-mips@linux-mips.org
>Subject: Re: Problem about porting mips kernel
>
>
>I think that kernel had been configured properly, because I can open the
>ttyS0 device in ramdisk. It means no ramdisk problem. But I have not any
>experience to fix tlb or cache bug. If you can give some more advice? Thx.
>
>
>
>
> >From: Ralf Baechle <ralf@linux-mips.org>
> >To: henaldohzh@hotmail.com
> >CC: linux-mips@linux-mips.org
> >Subject: Re: Problem about porting mips kernel
> >Date: Mon, 25 Nov 2002 13:53:10 +0100
> >
> >On Mon, Nov 25, 2002 at 12:47:28PM +0000, henaldohzh@hotmail.com wrote:
> >
> > >   these days, I am busy with porting mips kernel to a board with 
vr4131
> > > core. This board has only SIU serial port, and some hw have been
>modified.
> > > Now, I have ported the kernel to it, and modified hw run well. But so
> > > puzzling me, the execution file cann't run at all. If some one can 
help
>me
> > > or give some advices. I have been crazy for the problem. Off hat for
>your
> > > help. Thanks a lot.
> > >  btw, I use the ramdisk with busybox.
> >
> >In general this kind of problem means the tlb or cache code for a
>particular
> >platform is faulty or the kernel not configured properly.
> >
> >   Ralf
>
>
>_________________________________________________________________
>免费下载 MSN Explorer:  http://explorer.msn.com/lccn/


_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/lccn/ 

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

* RE: Problem about porting mips kernel
  2002-11-26  2:06 henaldohzh
@ 2002-11-26  2:23 ` jeff
  2002-11-26  2:23   ` jeff
  0 siblings, 1 reply; 8+ messages in thread
From: jeff @ 2002-11-26  2:23 UTC (permalink / raw)
  To: henaldohzh, ralf; +Cc: linux-mips

Hi, can you turn off the cache on menuconfig and try again?

Regards,

Jeff

-----Original Message-----
From: linux-mips-bounce@linux-mips.org [mailto:linux-mips-bounce@linux-mips.org]On Behalf Of henaldohzh@hotmail.com
Sent: Tuesday, November 26, 2002 10:06 AM
To: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Subject: Re: Problem about porting mips kernel


I think that kernel had been configured properly, because I can open the 
ttyS0 device in ramdisk. It means no ramdisk problem. But I have not any 
experience to fix tlb or cache bug. If you can give some more advice? Thx.




>From: Ralf Baechle <ralf@linux-mips.org>
>To: henaldohzh@hotmail.com
>CC: linux-mips@linux-mips.org
>Subject: Re: Problem about porting mips kernel
>Date: Mon, 25 Nov 2002 13:53:10 +0100
>
>On Mon, Nov 25, 2002 at 12:47:28PM +0000, henaldohzh@hotmail.com wrote:
>
> >   these days, I am busy with porting mips kernel to a board with vr4131
> > core. This board has only SIU serial port, and some hw have been 
modified.
> > Now, I have ported the kernel to it, and modified hw run well. But so
> > puzzling me, the execution file cann't run at all. If some one can help 
me
> > or give some advices. I have been crazy for the problem. Off hat for 
your
> > help. Thanks a lot.
> >  btw, I use the ramdisk with busybox.
>
>In general this kind of problem means the tlb or cache code for a 
particular
>platform is faulty or the kernel not configured properly.
>
>   Ralf


_________________________________________________________________
免费下载 MSN Explorer:  http://explorer.msn.com/lccn/ 

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

* RE: Problem about porting mips kernel
  2002-11-26  2:23 ` jeff
@ 2002-11-26  2:23   ` jeff
  0 siblings, 0 replies; 8+ messages in thread
From: jeff @ 2002-11-26  2:23 UTC (permalink / raw)
  To: henaldohzh, ralf; +Cc: linux-mips

Hi, can you turn off the cache on menuconfig and try again?

Regards,

Jeff

-----Original Message-----
From: linux-mips-bounce@linux-mips.org [mailto:linux-mips-bounce@linux-mips.org]On Behalf Of henaldohzh@hotmail.com
Sent: Tuesday, November 26, 2002 10:06 AM
To: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Subject: Re: Problem about porting mips kernel


I think that kernel had been configured properly, because I can open the 
ttyS0 device in ramdisk. It means no ramdisk problem. But I have not any 
experience to fix tlb or cache bug. If you can give some more advice? Thx.




>From: Ralf Baechle <ralf@linux-mips.org>
>To: henaldohzh@hotmail.com
>CC: linux-mips@linux-mips.org
>Subject: Re: Problem about porting mips kernel
>Date: Mon, 25 Nov 2002 13:53:10 +0100
>
>On Mon, Nov 25, 2002 at 12:47:28PM +0000, henaldohzh@hotmail.com wrote:
>
> >   these days, I am busy with porting mips kernel to a board with vr4131
> > core. This board has only SIU serial port, and some hw have been 
modified.
> > Now, I have ported the kernel to it, and modified hw run well. But so
> > puzzling me, the execution file cann't run at all. If some one can help 
me
> > or give some advices. I have been crazy for the problem. Off hat for 
your
> > help. Thanks a lot.
> >  btw, I use the ramdisk with busybox.
>
>In general this kind of problem means the tlb or cache code for a 
particular
>platform is faulty or the kernel not configured properly.
>
>   Ralf


_________________________________________________________________
免费下载 MSN Explorer:  http://explorer.msn.com/lccn/ 

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

* Re: Problem about porting mips kernel
@ 2002-11-28  2:42 henaldohzh
  2002-12-02 19:20 ` Jun Sun
  0 siblings, 1 reply; 8+ messages in thread
From: henaldohzh @ 2002-11-28  2:42 UTC (permalink / raw)
  To: linux-mips

 I carefully check the codes of TLB, but no any problem found.
 And I debug my kernel, I found that before init task jump into 
application, it means after do_execve, sp is 0. it is for 
__strnlen_user_asm function return invalid result. And I done a little 
change(only for test), the system stop after ret_from_syscall. In normal, 
it should jump to user space to execute user task.
before ret_from_syscall, the start_thread arguments 
is:"elf_entry:0x2aaa8a00,user_sp is:0x7fff7f40,cp0_status is:0x200cc13".I 
determine that the arguments are correct. But why my application cann't run 
at all?
> >   these days, I am busy with porting mips kernel to a board with vr4131
> > core. This board has only SIU serial port, and some hw have been 
modified.
> > Now, I have ported the kernel to it, and modified hw run well. But so
> > puzzling me, the execution file cann't run at all. If some one can help 
me
> > or give some advices. I have been crazy for the problem. Off hat for 
your
> > help. Thanks a lot.
> >  btw, I use the ramdisk with busybox.
>
>In general this kind of problem means the tlb or cache code for a 
particular
>platform is faulty or the kernel not configured properly.
>
>   Ralf


_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn 

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

* Re: Problem about porting mips kernel
  2002-11-28  2:42 Problem about porting mips kernel henaldohzh
@ 2002-12-02 19:20 ` Jun Sun
  0 siblings, 0 replies; 8+ messages in thread
From: Jun Sun @ 2002-12-02 19:20 UTC (permalink / raw)
  To: henaldohzh; +Cc: linux-mips, jsun


I have vr4131 board running just fine here for quite a while now.

A couple of basic things you may to check with:

. Make sure you have CONFIG_CPU_VR41XX set (obviously).
. Use your own init program that poke some devices other
  than console.  Just to make sure it is *not* the SIU
  console driver problem.

Other things you want to check is the CPU revision.  Make sure
it is 0x0c82, which is v2.2.  Otherwise there are some nasty
cache problems you need to work around.

What is your kernel base?  The latest linux-mips.org CVS tree?

Jun

On Thu, Nov 28, 2002 at 02:42:22AM +0000, henaldohzh@hotmail.com wrote:
>  I carefully check the codes of TLB, but no any problem found.
>  And I debug my kernel, I found that before init task jump into 
> application, it means after do_execve, sp is 0. it is for 
> __strnlen_user_asm function return invalid result. And I done a little 
> change(only for test), the system stop after ret_from_syscall. In normal, 
> it should jump to user space to execute user task.
> before ret_from_syscall, the start_thread arguments 
> is:"elf_entry:0x2aaa8a00,user_sp is:0x7fff7f40,cp0_status is:0x200cc13".I 
> determine that the arguments are correct. But why my application cann't run 
> at all?
> > >   these days, I am busy with porting mips kernel to a board with vr4131
> > > core. This board has only SIU serial port, and some hw have been 
> modified.
> > > Now, I have ported the kernel to it, and modified hw run well. But so
> > > puzzling me, the execution file cann't run at all. If some one can help 
> me
> > > or give some advices. I have been crazy for the problem. Off hat for 
> your
> > > help. Thanks a lot.
> > >  btw, I use the ramdisk with busybox.
> >
> >In general this kind of problem means the tlb or cache code for a 
> particular
> >platform is faulty or the kernel not configured properly.
> >
> >   Ralf
> 
> 
> _________________________________________________________________
> ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn 
> 
> 

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

end of thread, other threads:[~2002-12-02 19:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-28  2:42 Problem about porting mips kernel henaldohzh
2002-12-02 19:20 ` Jun Sun
  -- strict thread matches above, loose matches on Subject: below --
2002-11-26  2:22 henaldohzh
2002-11-26  2:06 henaldohzh
2002-11-26  2:23 ` jeff
2002-11-26  2:23   ` jeff
2002-11-25 12:47 henaldohzh
2002-11-25 12:53 ` Ralf Baechle

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