DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
Old 4th August 2022
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 85
Default

I asked them. The answer was:
Quote:
Disable the radeondrm driver.
Which i would do, however i googled with no avail for how i can...
The only thing i have found was bsd.re-config, but doing
Code:
echo "disable radeondrm" >> /etc/bsd.re-config
or
Code:
echo "disable radeondrm0" >> /etc/bsd.re-config
did nothing.

What is the driver's name in the first place - radeondrm0 or radeondrm - and where can i disable it?
Reply With Quote
Old 4th August 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

See boot_config(8)
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 4th August 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Here's a bit of background which may help.
  • The driver is named "radeondrm" and the driver's first (and only) instance is #0, so your kernel messages refer to device "radeondrm0".
  • Usually, when there may be multiple instances of a driver, the kernel configuration uses object-oriented class definitions to allow the kernel to instantiate each instance, without specific defined numbering. The rules are defined in the files.conf(5) man page, and you can see the rule for radeondrm(8) in the man page SYNOPSIS section, where it is listed as `radeondrm* at pci?`.
  • Lastly, the disable command you are placing into the /etc/bsd.re-config file is described in the config(8) man page.
Once you have the configuration change in the /etc/bsd.re-config file, you need to relink a new kernel with the revised configuration. Run /usr/libexec/reorder_kernel to do that, then reboot.
Reply With Quote
Old 4th August 2022
TCH TCH is offline
Shell Scout
 
Join Date: Mar 2017
Posts: 85
Default

Quote:
Originally Posted by J65nko View Post
I saw it, but since i am not familiar with OpenBSD's driver handling, i had no idea where to look and what to look for.
Quote:
Originally Posted by jggimi View Post
Run /usr/libexec/reorder_kernel to do that, then reboot.
Thank you, that was the missing piece; now it is 80x25 again.
Reply With Quote
Old 4th August 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

It's confusing, primarily due to BSD kernel history. OpenBSD uses a monolithic kernel*, so all its drivers must be predefined in the kernel you are booting, they cannot be loaded later. Since the early days of BSD, admins could use config(8) to intentionally disable a driver or modify existing driver flags, and make other limited kernel changes. But config(8) interferes with OpenBSD's Kernel Address Randomized Link (KARL) process, a feature added to OpenBSD for enhanced security.

The bsd.re-config(8) mechanism is the way config(8) provisions can be integrated into the environment with KARL. Prior to bsd.re-config(8), making local kernel changes required us to run with KARL disabled.

* Kernel module support existed at one time, but it was removed from OpenBSD a long time ago. My memory is hazy but without researching I'd say at least 15 years ago.
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
Libpcap installed but no detected Peter_APIIT OpenBSD Packages and Ports 13 17th August 2015 12:34 PM
GHC + Gnome = no go - It act like it is not installed looop OpenBSD Packages and Ports 2 2nd May 2012 04:32 PM
Pre-installed Groups: What are they for? Greg_Morgan OpenBSD General 5 11th October 2009 01:05 AM
Installed 4.3 & No GUI warriors OpenBSD General 24 14th August 2008 11:28 AM
Has anyone installed mod_perl erehwon OpenBSD Packages and Ports 5 23rd June 2008 08:11 PM


All times are GMT. The time now is 01:01 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