Sebastian Rother wrote:
Is it possible to disable for example ehci at runtime?
As far as I understand I can use config -e -f /bsd to modify the BSD kernel
but the changes just get applied after a reboot.
Is there any method to may disable a specific driver only at runtime?
Lets say like ehci?
Hi Sebastian,
A very good advise to start with if I may. It would be very beneficial
to you if you would spend a little bit of time to look into the FAQ.
http://openbsd.org/faq/faq5.html#config
They are very well done and just take an hour and start reading it.
Amassing all you will learn from it and they are sooooo well done that,
not reading it is really stupid and lazy.
As for your question, here is an example and it would be like this:
# config -u -e -f /bsd
OpenBSD 4.5 (GENERIC) #1898: Sat Feb 28 17:42:44 MST 2009
[email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
History is empty
Enter 'help' for information
ukc> find ehci
145 ehci* at pci* dev -1 function -1 flags 0x0
146 ehci* at cardbus* dev -1 function -1 flags 0x0
ukc> disable 145
145 ehci* disabled
ukc> exit
Instead of exit, you type quit and it will save the changes, oppose to
exit that do not.
All this is explain in the FaQ and it appear as if you didn't look at it
looks like? So, please do yourself a favor and start reading it. I am
telling you, you will love it and just start to get a real appreciation
as to how different OpenBSD is from any other OS out there!
Hope this help you some and encourage you to read the FaQ. Nick spend an
incredible time making it as good as it is now, and the end results are
very amassing, it's a shame not to honor it by reading it.
Best,
Daniel