DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default OpenBSD 6.2 boot failure after install

Hi all,
I have a really interesting problem.
If I install openbsd 6.1 everything works fine.
If I install 6.2 installation goes fine, but at reboot I get a kernel panic.
The machine I have:
Intel i3-7300 4.0GHz DualCore HT 4MB
Disk size: 64GB
RAM: 16GB

Some of the messages from error:
pckbc_cmd: send error
Stopped at db_enter+0x5: popq %rbp
panic .... at panic +0x128
intel_logical_ring_stop
intel_logical_ring_clenup
i915_gem_cleanup_ringbuffer
i915_driver_load
inteldrm_attach
config_attach
--db_more--

Thanks in advance!
Reply With Quote
  #2   (View Single Post)  
Old 9th March 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,241
Default

Unfortunately, there isn't enough information posted for me to offer much help.
  • pckbc(4) is a keyboard controller.
  • db_enter() is a function within ddb(4), the kernel debugger.
Reply With Quote
  #3   (View Single Post)  
Old 9th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default

Answer from a openbsd noob.
How do I get all the output from terminal before kernel has booted?
Reply With Quote
  #4   (View Single Post)  
Old 9th March 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,241
Default

The kernel fails before starting the rc(8) script? If so, capturing information can be difficult. If the failing system has a serial port, the bootloader can be configured to use a serial console, and the failure can be captured with a second system and a null-modem cable. If there is no serial port, or the additional hardware is not available, the only recommendation I have is to photograph the display screen.

If the failure occurs after rc(8) has started, then perhaps booting in single-user mode may permit a shell to be started on the console. boot> -s is the command to the bootloader to start in single-user mode.
Reply With Quote
  #5   (View Single Post)  
Old 9th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default

It fails after rc has started and I get the boot prompt.
boot> -s
does not help, it crashes at the same position, with the same errors.
The errors shown on screen is about what I wrote, what is missing is hex numbers (memory addresses?).
Is there a way to scroll back on the screen? I found shift + PageUp, shift +PageDown online, but that does not work.
Reply With Quote
  #6   (View Single Post)  
Old 9th March 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,241
Default

No, unfortunately, scrolling is no longer possible. You might try installing a -current snapshot. At this time, -current is a "Beta" test for release 6.3.
Reply With Quote
  #7   (View Single Post)  
Old 9th March 2018
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,129
Default

1+ for trying -current

https://ark.intel.com/products/97458...Cache-4_00-GHz. From the link, the onboard video is HD630. Support for this intel video was added in -current.

I'm running current (uefi/gtp boot) on an Asrock J3355M with working Intel HD 500 video. There are some quirks. The board will not awaken from deep C-states and I had to disable C-states in the Bios. My dmesg also shows that there is some intel video firmware, perhaps involved in video power management, that is not loaded. My power saving needs mostly entail turning off the computer when I'm done - the disabled C-states are not a big deal for me.

Edit: more on the firmware
https://www.phoronix.com/scan.php?pa...firmware-blobs

Last edited by shep; 11th March 2018 at 05:16 PM. Reason: Added phorix link
Reply With Quote
  #8   (View Single Post)  
Old 9th March 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,241
Default

Thanks, Shep! I hadn't gone looking for the onboard video chipset.
Reply With Quote
  #9   (View Single Post)  
Old 12th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default

I tried current and get the same error.
I have C-states disabled.
I have taken a photo of screen, see attached.

Many thanks!
Attached Images
File Type: jpg openbsd6.3_crash.jpg (404.1 KB, 16 views)
Reply With Quote
Old 12th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default

I managed to capture a video of the boot process.
I can see the following errors:
Code:
error: [drm:pid0:i915_firmware_load_error_print] *ERROR* failed to load firmware i915/kbl_dmc_ver1.bin (-22)
error:[drm:pid0:intel_ddi_pll_init] *ERROR* LCPLL1 is disabled
panic: kernel diagnostic assertion "!cold" failed: file "/usr/src/sys/dev/pci/drm/i915/i915_gem.c", line 1499

Last edited by marcusp; 12th March 2018 at 12:28 PM.
Reply With Quote
Old 12th March 2018
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,129
Default

Quote:
kbl_dmc_ver1.bin
This firmware is for video and my Asrock J3355M also fails to load video firmware, though a different version.

See my post/dmesg http://daemonforums.org/showthread.php?t=174&page=6


One suggestion is to disable inteldrm using ukc. The details are in the following link under boot time configuration.

http://www.openbsd.org/faq/faq5.html#Custom.

There has been some activity on the mailing lists in regard to intel video firmware. My sense was that it was appropriately "placed on the back-burner" during the Spectre/Meltdown issue.
Reply With Quote
Old 14th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default

Thans alot for the help!
Disable inteldrm worked fine so now I have my system up and running!
Reply With Quote
Old 15th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default

I used config to make this persistent at reboots and it all worked fine.
After this I patched the system with syspatch, to make this work I had to
Code:
sha256 /bsd > /var/db/kernel.SHA256
After the patch I had kernel panics again at boot, and it does not make any difference that I use config to disable inteldrm.
Trying to read up online I start to wonder if this has something to do with KARL.
How do I get my change in the kernel persistent again?
Running 6.2
Reply With Quote
Old 15th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default

After a bit of testing I have discovered the following:
First change the kernel with config and not updating /var/db/kernel.SHA256 with the right sha sum will make my changed kernel boot every time.
But then I get the following error message at boot:
reorder_kernel: kernel relinking fail (relink.log says sha256 is not correct)
This must mean that KARL is not working the way it should as it can not relink the kernel.
If I update the sha sum with my new kernel, it will reboot the first time but after that I will have kernel panic.

Is there a way to have both?
A changed kernel and KARL working at the same time?

Thanks a lot!
Reply With Quote
Old 15th March 2018
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,129
Default

It would be ideal if inteldrm worked on your system. I believe that your hardware is mainstream enough, that the developers would be motivated to get it working. On top of that, this has been an area that has seen recent activity. Have your reported your errors?

http://www.openbsd.org/faq/faq1.html#Bugs
Reply With Quote
Old 15th March 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,241
Default

KARL is not intended for use with custom kernels. The warning is produced to inform you that KARL is disabled, whether inadvertently, or, as in this case -- intentionally.
Reply With Quote
Old 16th March 2018
marcusp marcusp is offline
Port Guard
 
Join Date: May 2017
Posts: 17
Default

Thanks for clearing things out to me!
Bug report sent!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
QT5 install failure philo_neo71 NetBSD Package System (pkgsrc) 1 26th March 2016 10:52 PM
dovecot2 install failure bsdperson FreeBSD Ports and Packages 4 19th December 2013 08:01 AM
Kernel freezes on boot after install (OpenBSD 5.0 release) grantwgmartin OpenBSD Installation and Upgrading 4 8th January 2012 09:43 AM
Ipsec freebsd openbsd failure kasse OpenBSD General 3 31st December 2008 01:42 AM
Dual-boot laptop won't boot OpenBSD after upgrade to 4.3 kbeaucha OpenBSD Installation and Upgrading 17 30th May 2008 02:40 PM


All times are GMT. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick