Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2016 10:27:54 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Paul Mather <paul@gromit.dlib.vt.edu>
Cc:        Ian Lepore <ian@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>, fbsd@www.zefox.net
Subject:   Re: Bizarre clone attempt failures on Raspberry Pi2...
Message-ID:  <20160715172754.GG33486@www.zefox.net>
In-Reply-To: <D9A9D485-4564-4F58-8B6D-564D4C86229E@gromit.dlib.vt.edu>
References:  <398ae56c-8893-f188-c210-cf7f19ccf433@denninger.net> <1468518953.72182.219.camel@freebsd.org> <7a91fc79-1c85-fac8-aa3f-db90592f3f44@denninger.net> <bec46aff-a4d5-9c4d-49d0-78534b13f719@denninger.net> <E01579F5-9562-4E51-9CFB-EA510460A4C8@gromit.dlib.vt.edu> <60b6e156-981e-9fbd-b68c-0daae1961286@denninger.net> <04391154-A38E-46CD-B570-B2BECFD19022@gromit.dlib.vt.edu> <d1aba096-e645-04df-dfda-5a9284250960@denninger.net> <1468597885.72182.286.camel@freebsd.org> <D9A9D485-4564-4F58-8B6D-564D4C86229E@gromit.dlib.vt.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 15, 2016 at 12:33:14PM -0400, Paul Mather wrote:
> 
> Incidentally, does setting console="vidconsole" in /boot/loader.conf fix the problem of a lack of /etc/rc messages for those who are using an HDMI monitor as their primary/only console?  

Not with that particular syntax. It just produces a message about "bad definition". HDMI
output ends with the kernel probe, resuming with a login prompt.

The serial console reports in part:
------begin serial console output-------
Uptime: 4d1h42m2s
Rebooting...


U-Boot 2015.04 (May 30 2015 - 22:13:58)

DRAM:  944 MiB
WARNING: Caches not enabled
RPI 2 Model B
MMC:   bcm2835_sdhci: 0
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

In:    serial
Out:   lcd
Err:   lcd
Net:   Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:  0 
Booting from: mmc 0 ubldr
reading ubldr
265922 bytes read in 207 ms (1.2 MiB/s)
## Starting application at 0x02000094 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @3ab4a4c8

FreeBSD/armv6 U-Boot loader, Revision 1.2
(bob@fbsd.zefox.com, Thu Jun 11 08:12:11 PDT 2015)

DRAM: 944MB
Number of U-Boot devices: 1
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
  Checking unit=0 slice=<auto> partition=<auto>... good.
no such console!
Available consoles:
    uboot
Warning: bad definition on file /boot/loader.conf
console="vidconsole"
/boot/kernel/kernel text=0x5cff4c data=0x55d64+0x15931c syms=[0x4+0x859c0+0x4+0x99be0]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...               
Using DTB provided by U-Boot at address 0x100.
Kernel entry at 0x2200180...
Kernel args: (null)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #1 r302526: Mon Jul 11 05:59:37 PDT 2016
    bob@www.zefox.com:/usr/obj/usr/src/sys/RPI2 arm

[omitted kernel probes]

Mounting local file systems:.
lock order reversal:
 1st 0xc48f1db4 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2523
 2nd 0xd7624db0 bufwait (bufwait) @ /usr/src/sys/ufs/ffs/ffs_vnops.c:263
 3rd 0xc490eb74 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2523
stack backtrace:
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/gcc48 /usr/local/lib/graphviz /usr/local/lib/nss /usr/local/lib/opencollada /usr/local/lib/perl5/5.20/mach/CORE /usr/local/llvm37/lib
random: unblocking device.

[more omitted messages]

Starting background file system checks in 60 seconds.

Fri Jul 15 10:10:05 PDT 2016

FreeBSD/arm (www.zefox.com) (ttyu0)

login: 

------end serial console output--------

I included the lock order reversal messages as a curiosity; don't recall seeing them before.

It's worth noting in passing that the /usr/src/sys/arm/conf/RPI2 config file used in this
setup contains the lines:

# Comment following lines for boot console on serial port
device          vt
device          kbdmux
device          ukbd

The machine _has_ a serial console, and only a serial console, despite the lines not being commented.
Are the comment instructions backwards?

Thanks for reading!

bob prohaska




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