This is a discussion on sensors, high CPU, iic, ichiic, custom kernel within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hi, I would like to compile a custom kernel to disable iic and ichiic because it slows down the ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I would like to compile a custom kernel to disable iic and ichiic because it slows down the system (IBM x300/5). I know how to disable them via UKC but how do I disable them in the GENERIC file? Simply comment out anything with iic/ichiic or is there some kind of "disable iic" like in UKC? Thanks, Helmut |
| |||
| Helmut Schneider <jumper99@gmx.de> wrote: > Hi, > > I would like to compile a custom kernel to disable iic and ichiic > because it slows down the system (IBM x300/5). > I know how to disable them via UKC but how do I disable them in the > GENERIC file? Simply comment out anything with iic/ichiic or is there > some kind of "disable iic" like in UKC? Have you read config(8)? And understood that you do not need to compile a new kernel just to disable a device? Joachim |
| |||
| Joachim Schipper <jdNoOtSPAMschipper@math.uu.nl> wrote: > Helmut Schneider <jumper99@gmx.de> wrote: >> I would like to compile a custom kernel to disable iic and ichiic >> because it slows down the system (IBM x300/5). >> I know how to disable them via UKC but how do I disable them in the >> GENERIC file? Simply comment out anything with iic/ichiic or is there >> some kind of "disable iic" like in UKC? > Have you read config(8)? Yes, I did. > And understood that you do not need to compile a new kernel just to > disable a device? Sure, but what happens if I apply the lastest patch branch which requires a kernel rebuild? |
| |||
| On 2007-06-28, Helmut Schneider <jumper99@gmx.de> wrote: > Joachim Schipper <jdNoOtSPAMschipper@math.uu.nl> wrote: > >> And understood that you do not need to compile a new kernel just to >> disable a device? > > Sure, but what happens if I apply the lastest patch branch which requires a > kernel rebuild? > You re-disable it when you reboot to the new kernel. I think you already know that the UKC changes don't stick unless you redo them via "config -f -e ..." so I won't repeat that :-) I do this all the time on a dual-boot machine that has the hardware clock set to local time instead of GMT. -- ratfood@food.skaterat.net All foods should be removed to reply |
| |||
| John McGrail <ratfood@food.skaterat.net> wrote: > On 2007-06-28, Helmut Schneider <jumper99@gmx.de> wrote: >> Joachim Schipper <jdNoOtSPAMschipper@math.uu.nl> wrote: >>> And understood that you do not need to compile a new kernel just to >>> disable a device? >> Sure, but what happens if I apply the lastest patch branch which >> requires a kernel rebuild? > You re-disable it when you reboot to the new kernel. Why should I build a kernel with iic/ichiic support when I disable it afterwards? |
| |||
| Helmut Schneider <jumper99@gmx.de> wrote: > John McGrail <ratfood@food.skaterat.net> wrote: > >> On 2007-06-28, Helmut Schneider <jumper99@gmx.de> wrote: >>> Joachim Schipper <jdNoOtSPAMschipper@math.uu.nl> wrote: >>>> And understood that you do not need to compile a new kernel just to >>>> disable a device? >>> Sure, but what happens if I apply the lastest patch branch which >>> requires a kernel rebuild? >> You re-disable it when you reboot to the new kernel. > > Why should I build a kernel with iic/ichiic support when I disable it > afterwards? Because GENERIC is supported? Because there is no good reason not to, unless you are working in 16MB of RAM or something similar? Because, if you cannot figure out how to do this, you probably shouldn't? Because GNU is Not UNIX (and OpenBSD is)? If you really want to do this, # grep -v iic /usr/src/arch/`machine`/conf/GENERIC > \ /usr/src/arch/`machine`/conf/GENERIC.NOIIC is likely to work. You get to keep the pieces, though. And it's not like adding config to your build script is that difficult... Joachim |
| |||
| Joachim Schipper <jdNoOtSPAMschipper@math.uu.nl> wrote: > Helmut Schneider <jumper99@gmx.de> wrote: >> John McGrail <ratfood@food.skaterat.net> wrote: >>> On 2007-06-28, Helmut Schneider <jumper99@gmx.de> wrote: >>>> Joachim Schipper <jdNoOtSPAMschipper@math.uu.nl> wrote: >>>>> And understood that you do not need to compile a new kernel just to >>>>> disable a device? >>>> Sure, but what happens if I apply the lastest patch branch which >>>> requires a kernel rebuild? >>> You re-disable it when you reboot to the new kernel. >> Why should I build a kernel with iic/ichiic support when I disable it >> afterwards? > Because GENERIC is supported? Because there is no good reason not to, > unless you are working in 16MB of RAM or something similar? Because, if > you cannot figure out how to do this, you probably shouldn't? Because > GNU is Not UNIX (and OpenBSD is)? Bad-tempered? > If you really want to do this, > # grep -v iic /usr/src/arch/`machine`/conf/GENERIC > \ > /usr/src/arch/`machine`/conf/GENERIC.NOIIC OK, so the answer is: comment them out if you need to, there is no such keyword "disable" within GENERIC. Thanks, Helmut |
| ||||
| On Jun 28, 10:12 am, "Helmut Schneider" <jumpe...@gmx.de> wrote: > Hi, > > I would like to compile a custom kernel to disable iic and ichiic because it > slows down the system (IBM x300/5). > I know how to disable them via UKC but how do I disable them in the GENERIC > file? Simply comment out anything with iic/ichiic or is there some kind of > "disable iic" like in UKC? > > Thanks, Helmut you can add disabled after the device entry in the config file. |