Re: NetBSD 10 headless boot

2024-04-20 Thread John D. Baker
I see you've now experienced the following PR:

  kern/49398: i386-current GENERIC (i915drmkms) boot hangs if monitor powered 
off

So, it's not only a monitor not connected, but also a monitor connected
but powered off (depending on connection method).  This is slightly
annoying to me as I would like to have the option to use the console on
the machine when needed, but not have to keep the monitor on all the
time or reboot it to get more than the plain VGA console.


-- 
|/"\ John D. Baker, KN5UKS   NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSDFreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Re: NetBSD 10 headless boot

2024-04-20 Thread joelp
>
> What has changed with GENERIC NetBSD 10 that I now need a monitor
> connected?
>
> [ 3.409208] i915drmkms0: interrupting at msi6 vec 0 (i915drmkms0)
> [ 3.417023] [drm] Initialized i915 1.6.0 20200114 for i915drmkms0 on
> minor 0
> [ 3.447019] intelfb0 at i915drmkms0
> [ 3.447019] [drm] DRM_I915_DEBUG enabled
> [ 3.447019] [drm] DRM_I915_DEBUG_GEM enabled
> [ 3.447019] intelfb0: framebuffer at 0xe0009000, size 1920x1080, depth
> 32, stride 7680
> [ 4.097019] wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100
> emulation), using wskbd0

I solved this thanks to NetBSD's excellent documentation. I happened to
notice an example in man 5 boot.cfg:
   # Disable Direct Rendering Manager (DRM) drivers
   userconf=disable i915drmkms*

Sure enough, adding that userconf to my boot.cfg solves being able to boot
NetBSD 10 without VGA connected, like it behaved in 9.3.

I'm certain I did not add that to my 9.3 boot.cfg for this machine, so
there is still the question of what could have changed from 9.3 to 10.0.

Thanks - Joel



NetBSD 10 headless boot

2024-04-20 Thread joelp
Hello -- I have a NetBSD 10 GENERIC RELEASE AMD64 installed on a Lenovo
i7-4770 desktop that I use for a build machine. I just did a fresh install
after having run 9.3 and everything was great with 10 until I tried to
boot without a monitor.

In my case, I used the VGA port (no keyboard) after noticing it didn't
boot, and sure enough it worked.

I was able to boot (in fact, just a couple hours ago) NetBSD 9.3 without a
monitor just fine.

What has changed with GENERIC NetBSD 10 that I now need a monitor connected?

The machine is located away from my monitors, etc, so I need a headless boot.

Thanks - Joel



dmesg
[ 1.00] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.00] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012,
2013,
[ 1.00] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022,
2023,
[ 1.00] 2024
[ 1.00] The NetBSD Foundation, Inc.  All rights reserved.
[ 1.00] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.00] The Regents of the University of California.  All
rights reserved.

[ 1.00] NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024
[ 1.00]
mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
[ 1.00] total memory = 16296 MB
[ 1.00] avail memory = 15742 MB
[ 1.00] timecounter: Timecounters tick every 10.000 msec
[ 1.00] Kernelized RAIDframe activated
[ 1.00] timecounter: Timecounter "i8254" frequency 1193182 Hz
quality 100
[ 1.04] mainbus0 (root)
[ 1.04] ACPI: RSDP 0x000F0490 24 (v02 LENOVO)
[ 1.04] ACPI: XSDT 0xDAE3F088 8C (v01 LENOVO TC-03   
1170 AMI  00010013)
[ 1.04] ACPI: FACP 0xDAE4C098 00010C (v05 LENOVO TC-03   
1170 AMI  00010013)
[ 1.04] ACPI: DSDT 0xDAE3F1A0 00CEF7 (v02 LENOVO TC-03   
1170 INTL 20120711)
[ 1.04] ACPI: FACS 0xDB887080 40
[ 1.04] ACPI: APIC 0xDAE4C1A8 92 (v03 LENOVO TC-03   
1170 AMI  00010013)
[ 1.04] ACPI: FPDT 0xDAE4C240 44 (v01 LENOVO TC-03   
1170 AMI  00010013)
[ 1.04] ACPI: LPIT 0xDAE4C288 5C (v01 LENOVO TC-03   
1170 AMI. 0005)
[ 1.04] ACPI: MSDM 0xDAE4C2E8 55 (v03 LENOVO TC-03   
1170 AMI  00010013)
[ 1.04] ACPI: SSDT 0xDAE4C340 000539 (v01 LENOVO TC-03   
1170 INTL 20120711)
[ 1.04] ACPI: SSDT 0xDAE4C880 000AD8 (v01 LENOVO TC-03   
1170 INTL 20120711)
[ 1.04] ACPI: MCFG 0xDAE4D358 3C (v01 LENOVO TC-03   
1170 MSFT 0097)
[ 1.04] ACPI: HPET 0xDAE4D398 38 (v01 LENOVO TC-03   
1170 AMI. 0005)
[ 1.04] ACPI: SSDT 0xDAE4D3D0 00036D (v01 LENOVO TC-03   
1170 INTL 20120711)
[ 1.04] ACPI: SSDT 0xDAE4D740 0032F3 (v01 LENOVO TC-03   
1170 INTL 20091112)
[ 1.04] ACPI: BGRT 0xDAE50A38 38 (v00 LENOVO TC-03   
1170 AMI  00010013)
[ 1.04] ACPI: DMAR 0xDAE50A70 B8 (v01 LENOVO TC-03   
1170 INTL 0001)
[ 1.04] ACPI: 5 ACPI AML tables successfully acquired and loaded
[ 1.04] ioapic0 at mainbus0 apid 2: pa 0xfec0, version 0x20,
24 pins
[ 1.04] cpu0 at mainbus0 apid 0
[ 1.04] cpu0: Use lfence to serialize rdtsc
[ 1.04] cpu0: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, id 0x306c3
[ 1.04] cpu0: node 0, package 0, core 0, smt 0
[ 1.04] cpu1 at mainbus0 apid 2
[ 1.04] cpu1: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, id 0x306c3
[ 1.04] cpu1: node 0, package 0, core 1, smt 0
[ 1.04] cpu2 at mainbus0 apid 4
[ 1.04] cpu2: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, id 0x306c3
[ 1.04] cpu2: node 0, package 0, core 2, smt 0
[ 1.04] cpu3 at mainbus0 apid 6
[ 1.04] cpu3: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, id 0x306c3
[ 1.04] cpu3: node 0, package 0, core 3, smt 0
[ 1.04] cpu4 at mainbus0 apid 1
[ 1.04] cpu4: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, id 0x306c3
[ 1.04] cpu4: node 0, package 0, core 0, smt 1
[ 1.04] cpu5 at mainbus0 apid 3
[ 1.04] cpu5: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, id 0x306c3
[ 1.04] cpu5: node 0, package 0, core 1, smt 1
[ 1.04] cpu6 at mainbus0 apid 5
[ 1.04] cpu6: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, id 0x306c3
[ 1.04] cpu6: node 0, package 0, core 2, smt 1
[ 1.04] cpu7 at mainbus0 apid 7
[ 1.04] cpu7: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, id 0x306c3
[ 1.04] cpu7: node 0, package 0, core 3, smt 1
[ 1.04] acpi0 at mainbus0: Intel ACPICA 20221020
[ 1.04] acpi0: X/RSDT: OemId , AslId

[ 1.04] acpi0: MCFG: segment 0, bus 0-63, address 0xf800
[ 1.04] ACPI: Dynamic OEM Table Load:
[ 1.04] ACPI: SSDT 0xABAD69144C08 0003D3