Raspberry Pi B stuck during boot?

Warner Losh wlosh at bsdimp.com
Mon Aug 8 01:09:40 UTC 2016


> On Aug 7, 2016, at 2:27 PM, Tim Kientzle <tim at kientzle.com> wrote:
> 
>> 
>> On Aug 7, 2016, at 3:04 PM, René Ladan <rene at FreeBSD.org> wrote:
>> 
>> On 07-08-16 13:57, Bernd Walter wrote:
>>> On Sun, Aug 07, 2016 at 12:09:08PM +0200, René Ladan wrote:
>>>> On 06-08-16 16:23, Bernd Walter wrote:
>>>>> On Sat, Aug 06, 2016 at 03:06:20PM +0200, René Ladan wrote:
>>>>>> Hi,
>>>>>> 
>>>>>> 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):
>>>>>> 
>>>>>> % make buildworld TARGET=arm TARGET_ARCH=armv6
>>>>>> % make buildkernel KERNCONF=RPI-B TARGET=arm TARGET_ARCH=armv6
>>>>>> # make installworld TARGET=arm TARGET_ARCH=armv6 DESTDIR=/mnt
>>>>>> # make installkernel TARGET=arm TARGET_ARCH=armv6 DESTDIR=/mnt
>>>>>> KERNCONF=RPI-B
>>>>>> # make delete-old TARGET=arm TARGET_ARCH=armv6 DESTDIR=/mnt
>>>>>> # make delete-old-libs TARGET=arm TARGET_ARCH=armv6 DESTDIR=/mnt
>>>>>> # mergemaster -A armv6 -D /mnt -p
>>>>>> # mergemaster -A armv6 -D /mnt -U -i
>>>>>> 
>>>>>> See https://rene-ladan.nl/IMG_20160804_193031.jpg for a phone picture of
>>>>>> the TV screen where it gets stuck.
>>>>>> 
>>>>>> Any ideas if what could be wrong?
>>>>> It might be hanging in single user mode prompt on serial console.
>>>>> 
>>>> 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.
>> 
>> I also tried adding autoboot_delay=-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.
>> 
>> So with USB power, HDMI cable to TV, and a USB keyboard it hangs
> 
> Anyone doing “interesting” work with RPi should have at least one of these on hand:
> 
>   http://adafru.it/954

Yes. Until you’ve 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’ve hit when I was investigating doing
it… If someone is serious about taking a run at it, I’m happy to give a brain dump…



More information about the freebsd-arm mailing list