Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Aug 2016 19:09:37 -0600
From:      Warner Losh <wlosh@bsdimp.com>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        =?windows-1252?Q?Ren=E9_Ladan?= <rene@FreeBSD.org>, freebsd-arm <freebsd-arm@freebsd.org>, ticso@cicely.de
Subject:   Re: Raspberry Pi B stuck during boot?
Message-ID:  <45A2B060-C9D4-4254-8A47-FC2B8B6511FA@bsdimp.com>
In-Reply-To: <1BDD6F6A-A420-4F65-AD93-B45069906621@kientzle.com>
References:  <CADL2u4jiGMoC0C-rPU7vqyurpUtozy2u0d2XcMq%2BPuBGULZ3Rw@mail.gmail.com> <CADL2u4jqfpH1dsyFfpgR8LR8f6sMZRZVAQOaZNH_OqAXiKMbqA@mail.gmail.com> <CADL2u4h5iP=eVQSYUpMGRj-Awtu4yKT_w7jdv1ZYmb-sXwSUNQ@mail.gmail.com> <CADL2u4iX5yrbwAGmFVc1p8gAT-xQrxPETDazBXgzGJK9PpipdQ@mail.gmail.com> <CADL2u4gsQX9sYcqTLK0xqW1tnP1R_%2B0X4L%2Bg0%2B-Lcy1juCMRFA@mail.gmail.com> <CADL2u4gzxANGUEfCw5Dn5otX7H53J-eA2UjQbTWo%2BqR_OAy_zQ@mail.gmail.com> <CADL2u4j0mx5W=rkdTpnZb1KFsc4y3N0_fq80OZK=eNrw8eFg=w@mail.gmail.com> <CADL2u4hANGUQSLe-JWfB4FQoRMPx5jm0u6oU1K1pg%2BK=Xy-SEw@mail.gmail.com> <20160806142322.GB31491@cicely7.cicely.de> <ceb1d17b-cf01-9d7e-a11b-2d5fb0e26538@freebsd.org> <20160807115751.GA34368@cicely7.cicely.de> <1242bfd2-420c-cc33-736c-8ec63e510046@freebsd.org> <1BDD6F6A-A420-4F65-AD93-B45069906621@kientzle.com>

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

> On Aug 7, 2016, at 2:27 PM, Tim Kientzle <tim@kientzle.com> wrote:
>=20
>>=20
>> On Aug 7, 2016, at 3:04 PM, Ren=E9 Ladan <rene@FreeBSD.org> wrote:
>>=20
>> On 07-08-16 13:57, Bernd Walter wrote:
>>> On Sun, Aug 07, 2016 at 12:09:08PM +0200, Ren=E9 Ladan wrote:
>>>> On 06-08-16 16:23, Bernd Walter wrote:
>>>>> On Sat, Aug 06, 2016 at 03:06:20PM +0200, Ren=E9 Ladan wrote:
>>>>>> Hi,
>>>>>>=20
>>>>>> With recent versions of 11 (alpha3 and beta3) my raspberry b gets =
stuck
>>>>>> near the end of the boot. I checked the SD card and updated it to =
11-beta3
>>>>>> using these commands (if I remember correctly, but nothing =
unusual):
>>>>>>=20
>>>>>> % make buildworld TARGET=3Darm TARGET_ARCH=3Darmv6
>>>>>> % make buildkernel KERNCONF=3DRPI-B TARGET=3Darm =
TARGET_ARCH=3Darmv6
>>>>>> # make installworld TARGET=3Darm TARGET_ARCH=3Darmv6 DESTDIR=3D/mnt=

>>>>>> # make installkernel TARGET=3Darm TARGET_ARCH=3Darmv6 =
DESTDIR=3D/mnt
>>>>>> KERNCONF=3DRPI-B
>>>>>> # make delete-old TARGET=3Darm TARGET_ARCH=3Darmv6 DESTDIR=3D/mnt
>>>>>> # make delete-old-libs TARGET=3Darm TARGET_ARCH=3Darmv6 =
DESTDIR=3D/mnt
>>>>>> # mergemaster -A armv6 -D /mnt -p
>>>>>> # mergemaster -A armv6 -D /mnt -U -i
>>>>>>=20
>>>>>> See https://rene-ladan.nl/IMG_20160804_193031.jpg for a phone =
picture of
>>>>>> the TV screen where it gets stuck.
>>>>>>=20
>>>>>> Any ideas if what could be wrong?
>>>>> It might be hanging in single user mode prompt on serial console.
>>>>>=20
>>>> So if I would disable serial console in /etc/ttys it should be =
fine?
>>> No - that is just for the login prompt after the OS has been booted =
into
>>> multiuser mode.
>>> Unfortunately I have no idea where the loader on an RPi gets that
>>> information from, since so far I've always used serial consoles.
>>> The kernel itself can do double output, but the rc-scripts, =
including
>>> the single user mode prompt, are limited to one.
>>> It would be easiest if you have the option to wire up the serial =
console.
>> Yeah, I'll see if I can construct something using the GPIO pins.
>>=20
>> I also tried adding autoboot_delay=3D-1 to /boot/loader.conf and =
pulling
>> my DCF77 receiver from the GPIO pins (ground, +3.3V, signal wire) but
>> that didn't help either.
>>=20
>> So with USB power, HDMI cable to TV, and a USB keyboard it hangs
>=20
> Anyone doing =93interesting=94 work with RPi should have at least one =
of these on hand:
>=20
>   http://adafru.it/954

Yes. Until you=92ve brought up the system and it just works, these can =
be a life saver.
Unless you wanted to write a ttymux that will allow one to connect the =
console to
the ttymux and it will output to both (many?) underlying consoles as =
well as accepting
input from both to make them more-or-less mirrors.[*]

Warner

[*] more or less due to a whole host of issues I=92ve hit when I was =
investigating doing
it=85 If someone is serious about taking a run at it, I=92m happy to =
give a brain dump=85




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45A2B060-C9D4-4254-8A47-FC2B8B6511FA>