NanoBSD config script for RPI2

Karl Denninger karl at denninger.net
Mon Feb 6 14:28:43 UTC 2017


On 2/5/2017 16:57, Warner Losh wrote:
> On Sun, Feb 5, 2017 at 2:22 PM, Karl Denninger <karl at denninger.net> wrote:
>>
>> The above works -- almost.
>>
>> The system boots on first start, gets an IP address, sets time and such
>> and then hangs here:
> ...
>> Do I need "console=comconsole" in /boot/loader.conf?  I would think
>> setting the option in the nanobsd config file would generate that, but
>> it does not appear to -- and it also doesn't appear to be necessary,
>> because I do get all the boot messages on the serial console side.
> If nanobsd did its thing right, you should have a getty running on
> both the serial port and the video "console" regardless of which one
> is /dev/console. onifconsole isn't that useful in this situation.
>
> Warner

Interesting observation -- I've been chasing problems with the sound
subsystem (one of the PRs involved is here:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213687) and part of
the chase involved updating the bootcode.bin and related files.  /The
most-recent version of those files from Github results in FreeBSD
failing to reliably start/; it will sometimes hang after the ethernet
interface identifies and it /also /hangs somewhere in the last few
/etc/rc files (and I'm not sure exactly where) -- because those files
never all complete init never starts the gettys.  I've tried to locate
the offending rc file (the shell that init kicks off to run the jobs
appears to be spinning in an "R" state, but it's not accumulating time!)
but thus far have failed to do so.

On a "normally running" system as long as sshd comes up everything looks
ok.  But if you need to log in via a console, whether serial or
otherwise, it looks like it hung because the chain of things that have
to run before that gets started *did* hang.

Reverting to the u-boot port versions of said files fixes that.  Not
sure how badly doing so will hose my sound, however....

-- 
Karl Denninger
karl at denninger.net <mailto:karl at denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2993 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20170206/72549b18/attachment.bin>


More information about the freebsd-arm mailing list