Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2017 16:32:15 -0700
From:      Ian Lepore <ian@freebsd.org>
To:        Yoshiro MIHIRA <sanpei.ml@gmail.com>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org, "freebsd-arm@FreeBSD.org" <freebsd-arm@FreeBSD.org>
Subject:   Re: svn commit: r312679 - head/sys/arm/freescale/imx
Message-ID:  <1487201535.73144.15.camel@freebsd.org>
In-Reply-To: <CALwmBx2=Tcwh_b6UHcLgd04Bt%2BODuokP6JVdqcuYHnLZApLfVw@mail.gmail.com>
References:  <201701240209.v0O29UDD047838@repo.freebsd.org> <CALwmBx2=Tcwh_b6UHcLgd04Bt%2BODuokP6JVdqcuYHnLZApLfVw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-7+SAO7B1lPddo/yKeoRL
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit

> > Author: ian
> > Date: Tue Jan 24 02:09:30 2017
> > New Revision: 312679
> > URL: https://svnweb.freebsd.org/changeset/base/312679
[...]
On Wed, 2017-02-15 at 10:31 +0000, Yoshiro MIHIRA wrote:
> Hi.
> Ian
> 
> Thank you for your strong effort to support imx6 board.
> 
> I have SolidRun HummingBoard-i2(imx6dl-hummingboard).
> 
> I have reboot issue(never reset after reboot) and if I use Linux, I
> reproduce this issue So I reported this issue to SolidRun Forum.
> http://forum.solid-run.com/linux-on-cubox-i-and-hummingboard-f8/need-
> to-push-reset-button-to-reboot-linux-system-t3122.html
> But I could not get any information.
> 
> I tested latest kernel(r313280) unfortunately it was not solved.
> 
> Do you know other information about reset issue, please let me know.
> 
> Currently I need to push reset button when I restart system...
> 
> Yours
> Yoshiro MIHIRA
> 

[adding arm@ list]

Are you set up to build and test a custom kernel?  If so, try applying
the patch I'm attaching to this mail and let me know if it helps.  This
turns on a bit in the control register that is described in the manual
as "use a new more robust method to generate a software reset" (if it's
better, I wonder why they didn't make it the hardware default?).

-- Ian

--=-7+SAO7B1lPddo/yKeoRL
Content-Disposition: inline; filename="temp.diff"
Content-Type: text/x-patch; name="temp.diff"; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Index: imx_machdep.c
===================================================================
--- imx_machdep.c	(revision 313569)
+++ imx_machdep.c	(working copy)
@@ -78,6 +78,7 @@ imx_wdog_cpu_reset(vm_offset_t wdcr_physaddr)
 	if ((pcr = devmap_ptov(wdcr_physaddr, sizeof(*pcr))) == NULL) {
 		printf("cpu_reset() can't find its control register... locking up now.");
 	} else {
+		*pcr |= 1 << 6;
 		*pcr &= ~WDOG_CR_SRS;
 		*pcr &= ~WDOG_CR_SRS;
 		*pcr &= ~WDOG_CR_SRS;

--=-7+SAO7B1lPddo/yKeoRL--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1487201535.73144.15.camel>