On Wed, 25 Mar 2009 21:52:14 -0400 Daniel Ouellet <dan...@presscom.net> wrote:
> 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 > dera...@sparc64.openbsd.org:/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. That method does not work! I tried it! I disabled ehci and plugged a USB device into the USB port and it popped up and I was able to work with the device. So how can that be if ehci was "disabled"? # config -e -f /bsd OpenBSD 4.5 (GENERIC.MP) #108: Sat Feb 28 14:58:58 MST 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP Enter 'help' for information ukc> quit Kernel not modified # config -u -e -f /bsd OpenBSD 4.5 (GENERIC.MP) #108: Sat Feb 28 14:58:58 MST 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP History is empty Enter 'help' for information ukc> find ehci 153 ehci* at pci* dev -1 function -1 flags 0x0 154 ehci* at cardbus* dev -1 function -1 flags 0x0 ukc> disable ehci 153 ehci* disabled 154 ehci* disabled ukc> quit Saving modified kernel. umass0 at uhub0 port 3 configuration 1 interface 0 "USBest Technology Intenso Rainbow Line" rev 2.00/1.00 addr 2 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: <Intenso, Rainbow, 0.00> SCSI2 0/direct removable sd1: 3856MB, 512 bytes/sec, 7897088 sec total # mount /dev/sd1i /mnt/ # umount /mnt/ # sd1 detached scsibus1 detached umass0 detached But thanks for trying Daniel :) Kind regards, Sebastian