* problem with watchdog/reboot MPC5200
@ 2006-04-20 9:46 Arno Geissel
2006-04-20 10:21 ` Jaap-Jan Boor
0 siblings, 1 reply; 5+ messages in thread
From: Arno Geissel @ 2006-04-20 9:46 UTC (permalink / raw)
To: linuxppc-embedded
Hello all,
I have a custom board based on MPC5200 processor running
the latest linuxppc_2_4_devel.
Everything is working fine until a flash write access is performed
using MTD. After this a (soft) reboot stucks in mpc5xxx_restart()
where the watchdog timer is charged and linux waits with closed
interrupts until the MPC performs the reset. Only power off helps
in this situation.
It seems to me like a hardware problem, because the freescale
MPC5200lite reference board does not run into this.
The main difference of the custom board to the reference board
is, that it is using 16MB Intel Strada Flash instead of AMD flash,
which has an erase block size of 128kB.
Has anybody else experienced such behaviour?
Arno Geissel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with watchdog/reboot MPC5200
2006-04-20 9:46 problem with watchdog/reboot MPC5200 Arno Geissel
@ 2006-04-20 10:21 ` Jaap-Jan Boor
2006-04-20 11:34 ` Arno Geissel
0 siblings, 1 reply; 5+ messages in thread
From: Jaap-Jan Boor @ 2006-04-20 10:21 UTC (permalink / raw)
To: jgeissel; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]
Arno,
I think your problem is related to Intel Strataflash specifics.
After a write to strataflash, it remains in status mode until another
read (or reset) command is issued. This means you don't get the flash
contents when reading it, but a status bit (e.g. 0x8080 at every spot).
So when the processor start executing after a reset, it's not reading
proper instructions.
You first need to e.g. write a reset cmd (0x5050) to it or connect
the processor's hardreset line to the flash device.
Jaap-Jan
On Thu, 2006-04-20 at 11:46 +0200, Arno Geissel wrote:
> Hello all,
>
> I have a custom board based on MPC5200 processor running
> the latest linuxppc_2_4_devel.
> Everything is working fine until a flash write access is performed
> using MTD. After this a (soft) reboot stucks in mpc5xxx_restart()
> where the watchdog timer is charged and linux waits with closed
> interrupts until the MPC performs the reset. Only power off helps
> in this situation.
> It seems to me like a hardware problem, because the freescale
> MPC5200lite reference board does not run into this.
> The main difference of the custom board to the reference board
> is, that it is using 16MB Intel Strada Flash instead of AMD flash,
> which has an erase block size of 128kB.
> Has anybody else experienced such behaviour?
>
> Arno Geissel
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 1513 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with watchdog/reboot MPC5200
2006-04-20 10:21 ` Jaap-Jan Boor
@ 2006-04-20 11:34 ` Arno Geissel
0 siblings, 0 replies; 5+ messages in thread
From: Arno Geissel @ 2006-04-20 11:34 UTC (permalink / raw)
To: linuxppc-embedded
Jaap-Jan,
I'm not booting from flash. The kernel is loaded using bootp and
the rootfs is mounted over NFS. Flash is not needed for the boot
process at all. Fact is, that the mpc5200 watchdog timer
does not work, if I have written something to flash while runtime of
the system. If I have not, the reboot, which uses the watchdog,
performs OK.
On the other hand I would expect that the MTD package should
know how to handle an Intel Strataflash.
Arno
> Arno,
>
> I think your problem is related to Intel Strataflash specifics.
> After a write to strataflash, it remains in status mode until another
> read (or reset) command is issued. This means you don't get the flash
> contents when reading it, but a status bit (e.g. 0x8080 at every spot).
> So when the processor start executing after a reset, it's not reading
> proper instructions.
>
> You first need to e.g. write a reset cmd (0x5050) to it or connect
> the processor's hardreset line to the flash device.
>
> Jaap-Jan
>
> On Thu, 2006-04-20 at 11:46 +0200, Arno Geissel wrote:
> > Hello all,
> >
> > I have a custom board based on MPC5200 processor running
> > the latest linuxppc_2_4_devel.
> > Everything is working fine until a flash write access is performed
> > using MTD. After this a (soft) reboot stucks in mpc5xxx_restart()
> > where the watchdog timer is charged and linux waits with closed
> > interrupts until the MPC performs the reset. Only power off helps
> > in this situation.
> > It seems to me like a hardware problem, because the freescale
> > MPC5200lite reference board does not run into this.
> > The main difference of the custom board to the reference board
> > is, that it is using 16MB Intel Strada Flash instead of AMD flash,
> > which has an erase block size of 128kB.
> > Has anybody else experienced such behaviour?
> >
> > Arno Geissel
> > _______________________________________________
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: problem with watchdog/reboot MPC5200
@ 2006-04-20 12:06 Joakim Tjernlund
2006-04-20 13:08 ` Arno Geissel
0 siblings, 1 reply; 5+ messages in thread
From: Joakim Tjernlund @ 2006-04-20 12:06 UTC (permalink / raw)
To: jgeissel, linuxppc-embedded
=20
> -----Original Message-----
> From:=20
> linuxppc-embedded-bounces+joakim.tjernlund=3Dlumentis.se@ozlabs.
> org=20
> [mailto:linuxppc-embedded-bounces+joakim.tjernlund=3Dlumentis.se
> @ozlabs.org] On Behalf Of Arno Geissel
> Sent: 20 April 2006 13:35
> To: linuxppc-embedded@ozlabs.org
> Subject: Re: problem with watchdog/reboot MPC5200
>=20
> Jaap-Jan,
>=20
> I'm not booting from flash. The kernel is loaded using bootp and
> the rootfs is mounted over NFS. Flash is not needed for the boot
> process at all. Fact is, that the mpc5200 watchdog timer
> does not work, if I have written something to flash while runtime of
> the system. If I have not, the reboot, which uses the watchdog,
> performs OK.
> On the other hand I would expect that the MTD package should
> know how to handle an Intel Strataflash.
>=20
> Arno
I think you need to connect your flash reset pin to the MPC reset pin so
that
the CPU reset will reset the flash as well.
Jocke
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with watchdog/reboot MPC5200
2006-04-20 12:06 Joakim Tjernlund
@ 2006-04-20 13:08 ` Arno Geissel
0 siblings, 0 replies; 5+ messages in thread
From: Arno Geissel @ 2006-04-20 13:08 UTC (permalink / raw)
To: linuxppc-embedded
Confirmed! Using the MPC reset pin (instead of PORESET)
solves it.
Thank you all
Arno
> You first need to e.g. write a reset cmd (0x5050) to it or connect
> the processor's hardreset line to the flash device.
> Jaap-Jan
>
> I think you need to connect your flash reset pin to the MPC reset pin so
> that
> the CPU reset will reset the flash as well.
>
> Jocke
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-20 13:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20 9:46 problem with watchdog/reboot MPC5200 Arno Geissel
2006-04-20 10:21 ` Jaap-Jan Boor
2006-04-20 11:34 ` Arno Geissel
-- strict thread matches above, loose matches on Subject: below --
2006-04-20 12:06 Joakim Tjernlund
2006-04-20 13:08 ` Arno Geissel
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).