Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2012 08:03:17 -0700
From:      Ian Lepore <freebsd@damnhippie.dyndns.org>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi questions
Message-ID:  <1356534197.1144.38.camel@revolution.hippie.lan>
In-Reply-To: <B46B53E3-F555-4AE9-A5B4-FE2C33756C62@kientzle.com>
References:  <1356466883.1144.8.camel@revolution.hippie.lan> <08125E73-C46A-4DDF-BFD8-59D5B86136B8@bluezbox.com> <1356476778.1144.20.camel@revolution.hippie.lan> <0F630E03-7A0C-4D56-A580-C7A9ABD2CB0C@bluezbox.com> <1356479705.1144.23.camel@revolution.hippie.lan> <B46B53E3-F555-4AE9-A5B4-FE2C33756C62@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2012-12-25 at 21:57 -0800, Tim Kientzle wrote:
> On Dec 25, 2012, at 3:55 PM, Ian Lepore wrote:
> >>> 
> >>> This is so close to working.
> 
> I know what you mean….
> 
> I've almost got my scripts building bootable RPi images now using
> the new boot sequence that Oleksandr's been working on.
> 
> There's clearly been a huge amount of progress:  memory config
> now works, the HDMI video console works.
> 
> But I am still having a few inexplicable issues:
> 
> 1) Building U-Boot.
> 
> I'm trying to build U-Boot from the sources at
>      github.com/gonzoua/u-boot-pi.git
> They build but the result won't boot.   Can anyone
> point me to the U-Boot sources that do work?  For
> now, I'm using the binary blob that Oleksandr built.
> 

I'm using his stuff too now.  I had a look at u-boot and ubldr in
-current and it seemed that they must not be the latest stuff.  I'm
guessing the latest is on a private branch somewhere.  What I'm supposed
to be doing this week is writing a new bootloader for a new board at
work, not playing with my new RPi (but hey, I'm "working on bootloader
stuff," right?).

> 2) Random failure to mount root.
> 
> This is weird.  If I insert the SD card into my Mac and open
> the MSDOS partition, then eject, the card will boot (sort of,
> see below).  Otherwise, the kernel can't mount root.  I'm
> entirely baffled.
> 

I had something like this happen several times yesterday.  Most of the
time it boots fine, sometimes it fails to mount root from the sdcard,
but then it works on a reboot.  I also saw the mmcsd0 driver ident line
say the bus was running at 50mhz several times, and I'm pretty sure I
wasn't using any SDHC cards, but that also wasn't the problem I was
pursuing so I didn't pay close attention.

Of course, that doesn't seem to intersect with what you describe very
much at all, unless touching the card on the Mac wasn't really a cure,
it was just some misleading coincidence going on.

> 3) Doesn't quite make it to multi-user.
> 
> When root does mount, it goes through the init
> scripts (generates SSH keys, etc), then prints the
> date and time and stops.  I know the kernel is running
> since I get insert/removal messages if I plug/unplug a
> keyboard, but getty never seems to launch on either
> HDMI or serial console.

Whenever I've seen these symptoms in the past few years it has come down
to init getting hung due to trying to open serial tty devices mentioned
in the ttys file for which there is no hardware.  For example, just
setting up a serial console with a getty on it on an x86 system, then
disabling that uart in the bios, will cause this.  I keep meaning to dig
into init and find the root cause and make it more robust against this
sort of failure.

-- Ian




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