Unix Technical Forum

sensors, high CPU, iic, ichiic, custom kernel

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 08:07 AM
Helmut Schneider
 
Posts: n/a
Default sensors, high CPU, iic, ichiic, custom kernel

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 08:07 AM
Joachim Schipper
 
Posts: n/a
Default Re: sensors, high CPU, iic, ichiic, custom kernel

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 08:07 AM
Helmut Schneider
 
Posts: n/a
Default Re: sensors, high CPU, iic, ichiic, custom kernel

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?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 08:07 AM
John McGrail
 
Posts: n/a
Default Re: sensors, high CPU, iic, ichiic, custom kernel

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 08:07 AM
Helmut Schneider
 
Posts: n/a
Default Re: sensors, high CPU, iic, ichiic, custom kernel

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?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 08:07 AM
Joachim Schipper
 
Posts: n/a
Default Re: sensors, high CPU, iic, ichiic, custom kernel

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-16-2008, 08:07 AM
Helmut Schneider
 
Posts: n/a
Default Re: sensors, high CPU, iic, ichiic, custom kernel

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-16-2008, 08:07 AM
tedu
 
Posts: n/a
Default Re: sensors, high CPU, iic, ichiic, custom kernel

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:11 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com