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 10th April 2023
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 437
Default OpenBSD 7.3 hang on boot

Hello,

I just upgraded to OpenBSD 7.3, which normal goes smoothly but now machine just hangs on boot...

the last two lines in the boot message are:

efi0 at bios: UEFI 2.3.1
efi0: American Megatrends rev 0x4028b

it just sits here. I have to turn the machine off with the power button.

I tried boot using a none UEFI boot but get a no active partition message.

Any one have a suggestion??
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #2   (View Single Post)  
Old 10th April 2023
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

If my HP Stream14 laptop sits awhile, the bios resets to secure booting.
First suggestion is to reset the bios

Second suggestion is to try to boot bsd.rd, on install media, as a rescue disk
https://rexford.bio/w.p/rescue-your-openbsd-system/

Attempt to backup (not implying you're not careful - I skipped but was lucky) and then (U) update to reinstall.

error removed

Code:
# sha256 -h /var/db/kernel.SHA256 /bsd

Last edited by shep; 11th April 2023 at 12:25 AM. Reason: corrected post install /var/db/ code tag
Reply With Quote
  #3   (View Single Post)  
Old 10th April 2023
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 437
Default

I went and double checked and my secure boot isn't enabled.

I was able to boot by doing

Code:
boot>boot -c
then

Code:
disable efi
Quote:
I had
Code:
/var/db/kernel.SHA256 /bsd
I have this also...I try the manual update and see what that does for next boot.

Thanks.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #4   (View Single Post)  
Old 10th April 2023
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I think we may have found a bug.

I have 2 systems. The first was running up-to-date -current and the update via bsd.rd went smoothly. The second was the rarely used laptop. I ended up using install73.img for a new install on the laptop and saw the shutdown message about kernel relinking failing.

The laptop with the new install had the lower case kernel.SHA256 filename.

I reported to bugs@openbsd.org and tech@openbsd.org.

Edit: I was mistaken. The correct file name is /var/db/kernel.SHA256

Last edited by shep; 11th April 2023 at 01:30 PM.
Reply With Quote
  #5   (View Single Post)  
Old 11th April 2023
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

Quote:
Originally Posted by roddierod View Post
it just sits here
Can you ssh into the machine? Does the caps lock key light toggle?

What is your graphics hardware? The machine might just have display problems. v7.3 incorporated Linux's 6.1.15 DRM stack, which is bigger than the rest of the OpenBSD base system combined, so I would look at that first.
Reply With Quote
  #6   (View Single Post)  
Old 11th April 2023
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Another potential cause is failing to install the bootblocks. At the end of the installation, there is a message that the system will not boot due to bootblocks failure. I'm guessing the issue has to do with remnants of the gpt/mbr boot sectors because the issue is resolved if I use gdisk to delete the gpt/protective mbr and dd if=/dev/zero(random) the first 1000 sectors.

I think you would have seen this unless it was an unattended install. If the machine will boot a live cd, it suggests disk problems, both installer and target, could be a potential cause.
Reply With Quote
  #7   (View Single Post)  
Old 12th April 2023
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 437
Default

Quote:
Originally Posted by Head_on_a_Stick View Post
Can you ssh into the machine? Does the caps lock key light toggle?

What is your graphics hardware? The machine might just have display problems. v7.3 incorporated Linux's 6.1.15 DRM stack, which is bigger than the rest of the OpenBSD base system combined, so I would look at that first.
The system has a built in Intel graphics....not sure which. It's a older HP Elite 8300, I rescued from work a few years ago. Once I disable efi in the bootloader, I have noticed some video issues - freezing and tearing, that I didn't have in earlier releases. So I'll check this out thanks.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #8   (View Single Post)  
Old 12th April 2023
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

Quote:
Originally Posted by roddierod View Post
The system has a built in Intel graphics
Check the X.Org log to see which DDX driver is being used — intel(4) has been essentially un-maintained since ~2008 and appears to be rotting badly so modesetting(4) should probably be preferred.

I know Debian stable now defaults to the modesetting DDX driver for Intel hardware newer than 2008 but I don't know how OpenBSD handles this.

This X.Org configuration snippet should force modesetting(4) if it's not already being used:
Code:
Section "Device"
   Identifier "Intel Graphics"
   Driver "modesetting"
EndSection
Be sure to match the Identifier with any extant local configuration, if required.
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
[npppd] hang on Starting peer jonsec OpenBSD General 4 3rd October 2022 10:33 PM
How to troubleshoot a hang in OpenBSD? quisquous OpenBSD General 11 1st January 2014 09:21 PM
Introduction plus SSH login hang question. pico OpenBSD General 7 2nd April 2010 06:08 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 03:26 PM.


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