Bizarre clone attempt failures on Raspberry Pi2...
bob prohaska
fbsd at www.zefox.net
Fri Jul 15 17:43:59 UTC 2016
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 at 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 at 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
More information about the freebsd-arm
mailing list