linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: MPC860 onchip WatchDog
@ 2002-03-06 22:01 Banks, Kelly
  2002-03-06 22:22 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Banks, Kelly @ 2002-03-06 22:01 UTC (permalink / raw)
  To: 'Andres Chamorro Morillas', linuxppc-embedded


I just did this last week.  My test load is cooking in the test oven now.
You need to tickle the WD at several places within the kernel.  For me, it
worked by putting the tickle code in kernel/sched.c &
arch/ppc/boot/simple/misc-embedded.c.  Granted, there is likely a better
place to put chip specific code than in kernel/sched.c, but it did get the
job done.

I'm curious to know if there are any 'proper conventions' for doing this
sort of thing.

Kelly

-----Original Message-----
From: Andres Chamorro Morillas [mailto:achamorro@prodys.net]
Sent: Wednesday, March 06, 2002 6:57 PM
To: linuxppc-embedded@lists.linuxppc.org
Subject: MPC860 onchip WatchDog



Hi, I trying to use the MPC860 onchip WatchDog.I compile ppcboot-1.1.4
with include/config_MBX.h ( I have a MBX860 board) I compile the
linux-2.4.4-2002-02-14 kernel by denx. I activate the WatchDog support
for
MPC860.Well, I make tftpboot then I tray to boot the
kernel but...
Loading .text @ 0x00180000 (23052 bytes)
Loading .rodata @ 0x00185a10 (2320 bytes)
Loading .data @ 0x00187000 (808bytes)
Loading __ex_table @ 0x00187328 (24 bytes)
## Starting application at 0x00180000...
loaded at:  00210000 0021B59C
relocated to:  00180000 0018B59C
board data at: 043A0288 043A02BC
relocated to:  00200100 00200134
zimage at:  00218000 002A95D8
avail ram:  002AA000 04400000
Linux/PPC load:root=/dev/nfs rw
Uncompressing Linux...done.
Now booting the kernel

And reset.
Thats mean that WD works fine but I can't boot.
What can I do???
Modify the kernel code to service the watchdog????
Which part of kernel I have to modify???
Thanks a lot.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: MPC860 onchip WatchDog
  2002-03-06 23:56 MPC860 onchip WatchDog Andres Chamorro Morillas
@ 2002-03-06 22:19 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2002-03-06 22:19 UTC (permalink / raw)
  To: Andres Chamorro Morillas; +Cc: linuxppc-embedded


In message <3C86ACB3.C7445E95@prodys.net> you wrote:
>
> Hi, I trying to use the MPC860 onchip WatchDog.I compile ppcboot-1.1.4
> with include/config_MBX.h ( I have a MBX860 board) I compile the
> linux-2.4.4-2002-02-14 kernel by denx. I activate the WatchDog support

Remember that you have to build a PPCBoot image (i. e. either run the
mkimage tool manually, or type "make pImage" ...).

> MPC860.Well, I make tftpboot then I tray to boot the
> kernel but...
> Loading .text @ 0x00180000 (23052 bytes)
> Loading .rodata @ 0x00185a10 (2320 bytes)
> Loading .data @ 0x00187000 (808bytes)
> Loading __ex_table @ 0x00187328 (24 bytes)
> ## Starting application at 0x00180000...
> loaded at:  00210000 0021B59C
> relocated to:  00180000 0018B59C
> board data at: 043A0288 043A02BC
> relocated to:  00200100 00200134
> zimage at:  00218000 002A95D8
> avail ram:  002AA000 04400000
> Linux/PPC load:root=/dev/nfs rw
> Uncompressing Linux...done.
> Now booting the kernel

This is NOT a PPCBoot image booting! Make sure you read the README file.

> And reset.
> Thats mean that WD works fine but I can't boot.
> What can I do???

RTFM.

> Modify the kernel code to service the watchdog????

No need to moify anything. The driver is already included  with  that
version of the kernel sources. You have to enable it, though.

> Which part of kernel I have to modify???

Nothing.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
A fanatic is a person who can't change his mind and won't change  the
subject.                                          - Winston Churchill

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: MPC860 onchip WatchDog
  2002-03-06 22:01 Banks, Kelly
@ 2002-03-06 22:22 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2002-03-06 22:22 UTC (permalink / raw)
  To: Banks, Kelly; +Cc: linuxppc-embedded


In message <A3E34B558F5CD211B4980008C7A4A9900242418D@sparrow.gso.mcs.marconi.com> you wrote:
>
> I just did this last week.  My test load is cooking in the test oven now.
> You need to tickle the WD at several places within the kernel.  For me, it

Depends on what you want to do. Normally it's sufficient to make sure
one top-level application process is  running,  so  a  normal  device
driver  is sufficient - see for instance drivers/char/wdt_mpc8xx.c in
our kernel source tree.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
There are two ways of constructing a software design. One way  is  to
make  it  so  simple that there are obviously no deficiencies and the
other is to make it so complicated that there are  no  obvious  defi-
ciencies.                             - Charles Anthony Richard Hoare

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* MPC860 onchip WatchDog
@ 2002-03-06 23:56 Andres Chamorro Morillas
  2002-03-06 22:19 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Andres Chamorro Morillas @ 2002-03-06 23:56 UTC (permalink / raw)
  To: linuxppc-embedded


Hi, I trying to use the MPC860 onchip WatchDog.I compile ppcboot-1.1.4
with include/config_MBX.h ( I have a MBX860 board) I compile the
linux-2.4.4-2002-02-14 kernel by denx. I activate the WatchDog support
for
MPC860.Well, I make tftpboot then I tray to boot the
kernel but...
Loading .text @ 0x00180000 (23052 bytes)
Loading .rodata @ 0x00185a10 (2320 bytes)
Loading .data @ 0x00187000 (808bytes)
Loading __ex_table @ 0x00187328 (24 bytes)
## Starting application at 0x00180000...
loaded at:  00210000 0021B59C
relocated to:  00180000 0018B59C
board data at: 043A0288 043A02BC
relocated to:  00200100 00200134
zimage at:  00218000 002A95D8
avail ram:  002AA000 04400000
Linux/PPC load:root=/dev/nfs rw
Uncompressing Linux...done.
Now booting the kernel

And reset.
Thats mean that WD works fine but I can't boot.
What can I do???
Modify the kernel code to service the watchdog????
Which part of kernel I have to modify???
Thanks a lot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-03-06 23:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-06 23:56 MPC860 onchip WatchDog Andres Chamorro Morillas
2002-03-06 22:19 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2002-03-06 22:01 Banks, Kelly
2002-03-06 22:22 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).