Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 May 2017 09:42:37 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        Michael Sperber <sperber@deinprogramm.de>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>, jmcneill@FreeBSD.org
Subject:   Re: Can't get 11.0-RELEASE to boot on Banana PI M3 [From back in 2016-Dec]
Message-ID:  <32E842C2-496F-4BB2-A8B9-9E84480649B3@dsl-only.net>
In-Reply-To: <F11B7389-1EA2-4D59-AAF3-164432672343@dsl-only.net>
References:  <y9l7f7t2smo.fsf@jellaby.local> <20161124222152.dfd02dcafdc25182b6b46e50@bidouilliste.com> <66508AA3-436A-4D9E-AAB5-B85D0B4FC40C@dsl-only.net> <y9leg1w11yy.fsf@jellaby.local> <A218DF6A-4EFA-4EB7-99EC-8DA2E077DE3F@dsl-only.net> <y9lzikfbl8x.fsf@jellaby.local> <9C8B313C-A058-44DF-8673-D23B481CE312@dsl-only.net> <y9loa0ua6ge.fsf@jellaby.local> <1E9515A0-06D5-4CF9-9D29-D6FF591686F4@dsl-only.net> <y9loa0t87um.fsf@jellaby.local> <53608BFE-4653-4407-AFBE-7AB5E45AF2C1@dsl-only.net> <y9lk2b6ddx2.fsf@jellaby.local> <F11B7389-1EA2-4D59-AAF3-164432672343@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
[Sent in part because of bugzilla 219436's submittal,
 in essence here I repeat my comment 1 to that report.]

On 2016-Dec-11, at 1:47 AM, Mark Millard <markmi@dsl-only.net> wrote:

> . . .
> I've not gotten nearly as far as you have for that issue.
> I've been trying to gather information on why in the new
> context the BPi-M3 shuts down or reboots on its own, no
> matter if Ethernet is connected or not. No console messages
> about why it shuts down. No log file information. No drop
> into ddb, despite how I specified the kernel configuration.
>=20
> In the prior environment it had been up for something like
> 22 days, with a mix of idle time and used time. Now it
> rarely stays up for more than 12 hours, even sitting idle.
>=20
> =3D=3D=3D
> Mark Millard
> markmi at dsl-only.net
>=20
> On 2016-Dec-11, at 1:15 AM, Michael Sperber <sperber at =
deinprogramm.de> wrote:
>=20
>=20
> So I've got debug output now:
>=20
> Dec 10 22:14:23  kernel: awg0: <Allwinner Gigabit Ethernet> mem =
0x1c30000-0x1c300ff on simplebus0
> Dec 10 22:14:23  kernel: awg0: soft reset timed out
> Dec 10 22:14:23  kernel: awg0:   BASIC_CTL_0          00000000
> Dec 10 22:14:23  kernel: awg0:   BASIC_CTL_1          08000001
> Dec 10 22:14:23  kernel: awg0:   INT_STA              40000000
> Dec 10 22:14:23  kernel: awg0:   INT_EN               00000000
> Dec 10 22:14:23  kernel: awg0:   TX_CTL_0             00000000
> Dec 10 22:14:23  kernel: awg0:   TX_CTL_1             00000000
> Dec 10 22:14:23  kernel: awg0:   TX_FLOW_CTL          00000000
> Dec 10 22:14:23  kernel: awg0:   TX_DMA_LIST          00000000
> Dec 10 22:14:23  kernel: awg0:   RX_CTL_0             00000000
> Dec 10 22:14:23  kernel: awg0:   RX_CTL_1             00000000
> Dec 10 22:14:23  kernel: awg0:   RX_DMA_LIST          00000000
> Dec 10 22:14:23  kernel: awg0:   RX_FRM_FLT           00000000
> Dec 10 22:14:23  kernel: awg0:   RX_HASH_0            00000000
> Dec 10 22:14:23  kernel: awg0:   RX_HASH_1            00000000
> Dec 10 22:14:23  kernel: awg0:   MII_CMD              00000000
> Dec 10 22:14:23  kernel: awg0:   ADDR_HIGH0           0000ffff
> Dec 10 22:14:23  kernel: awg0:   ADDR_LOW0            ffffffff
> Dec 10 22:14:23  kernel: awg0:   TX_DMA_STA           0000ffff
> Dec 10 22:14:23  kernel: awg0:   TX_DMA_CUR_DESC      ffffffff
> Dec 10 22:14:23  kernel: awg0:   TX_DMA_CUR_BUF       0000ffff
> Dec 10 22:14:23  kernel: awg0:   RX_DMA_STA           00000000
> Dec 10 22:14:23  kernel: awg0:   RX_DMA_CUR_DESC      00000000
> Dec 10 22:14:23  kernel: awg0:   RX_DMA_CUR_BUF       00000000
> Dec 10 22:14:23  kernel: awg0:   RGMII_STA            00000000
> Dec 10 22:14:23  kernel: device_attach: awg0 attach returned 60
>=20
> (I'd also increased the retry count from 1000 to 5000, which did not
> help.)
>=20
> Enough for a PR?

I eventually solved my problem on the BPI-M3. That was now
months ago: I've not had such a problem in months.

Out of all the things that I tried what made the difference
was replacing the power supply that I was using to power the
BPI-M3. After that the BPI-M3 worked and had no more Ethernet
problems, both in the unusual environment that I was in back
then and in my usual environment when I returned. It still
works just fine.

This change was made and tested for a time without making
any other simultaneous changes. I eventually started updating
the BPI-M3 FreeBSD and ports again.

Note: I did not expect the power supply change to make the
difference based on the symptoms and other uses of the
power supply that I'd made. But I tried replacing it=20
with a different model power supply anyway. (The
problem might be the individual power supply rather
than a model but I tried a different model.)

I've not done anything to examine the properties of the
output of the bad/odd power supply when powering the
BPI-M3 (or any other use). So I do not know what its
technical issue(s) are that a BPI-M3 might be sensitive
to.

=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32E842C2-496F-4BB2-A8B9-9E84480649B3>