From: Bo.Liu@windriver.com (Tonyliu)
To: linux-arm-kernel@lists.infradead.org
Subject: Linux on ARM926EJ: Software reset problems
Date: Tue, 24 Nov 2009 10:45:37 +0800 [thread overview]
Message-ID: <4B0B48D1.8080809@windriver.com> (raw)
In-Reply-To: <56948FFAC219492B8923C0852A8AC413@teltronic.es>
Ricardo Mart?nez wrote:
> Hi!
>
> I'm trying to soft reset an ARM926EJ.
>
> I'm using
> cpu_arm926_reset(ulong address) function which:
> - flushes I/D caches
> - jumps to "address", whose value in my case is NOR flash
> base addres where U-Boot stays (after remapping).
>
> But it sometimes work, but most times hangs. Can this be caused by
> MMU not being switched off?
Probably yes but not exactly. After reset by hardware signal generated
by Watchdog or something else, all SoC modules are in default
certain state besides ARM core, but in your case, it's not sure.
>
> Any other hints?
>
> If you think it might be caused by MMU, how can MMU be disabled?
use "MCR p15, 0, Rd, c1, c0, 0" to write CP15 register 1 for MMU
enable/disable.
>
> Is there any other prefered method to soft reboot ARM926 from Linux?
> I've taken a look at some PXA, OMAP & AT91 code about soft rebooting.
> It seems they use Watchdog timer to reset, but my CPU does not have a
> watchdog.
You can try cpu_reset(addr), refer to cpu_arm926_reset() in
arch/arm/mm/proc-arm926.S.
Tony
>
> Thanks in advance,
> Ricardo Martinez
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
--
Tony Liu | Liu Bo
-------------------------------------------------------------
WIND RIVER | China Development Center
Tel: 86-10-8477-8542 ext: 8542 | Fax: 86-10-64790367
(M): 86-136-7117-3612
Address: 15/F, Wangjing TowerB, Chaoyang District, Beijing, P.R.China
prev parent reply other threads:[~2009-11-24 2:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 8:30 Linux on ARM926EJ: Software reset problems Ricardo Martínez
2009-11-24 2:45 ` Tonyliu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0B48D1.8080809@windriver.com \
--to=bo.liu@windriver.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).