Unix Technical Forum

kernel compiling for the wrong arch.

This is a discussion on kernel compiling for the wrong arch. within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> All, I'm a OBSD newbie. Right now I'm compiling a new 4.1 kernel on a new install for a ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 08:09 AM
thefronny@gmail.com
 
Posts: n/a
Default kernel compiling for the wrong arch.

All,

I'm a OBSD newbie. Right now I'm compiling a new 4.1 kernel on a new
install for a firewall. I copied GENERIC to "test" in /sys/arch/i386/
conf/, stripped out everything I didn't want and deleted all the CPU
references at the top except for "I586_CPU". Yet, now that I'm
watching compiler output go by I keep seeing references to "-
march=i486". Shouldn't that be "-march=i586"?

This is only a P75 so I'd like to get rid of any limiting code in the
kernel, even though I think there is not much to be gained in the jump
from 486 to 586. Not like getting rid of 386 anyway. What didI miss?

thx,

r

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 08:09 AM
Joachim Schipper
 
Posts: n/a
Default Re: kernel compiling for the wrong arch.

thefronny@gmail.com wrote:
> All,
>
> I'm a OBSD newbie. Right now I'm compiling a new 4.1 kernel on a new
> install for a firewall. I copied GENERIC to "test" in /sys/arch/i386/
> conf/, stripped out everything I didn't want and deleted all the CPU
> references at the top except for "I586_CPU". Yet, now that I'm
> watching compiler output go by I keep seeing references to "-
> march=i486". Shouldn't that be "-march=i586"?
>
> This is only a P75 so I'd like to get rid of any limiting code in the
> kernel, even though I think there is not much to be gained in the jump
> from 486 to 586. Not like getting rid of 386 anyway. What didI miss?


Kernel tweaking is not supported, and doesn't really help anyway.
Remember: GNU is Not Unix (and neither is Linux).

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:09 AM
thefronny@gmail.com
 
Posts: n/a
Default Re: kernel compiling for the wrong arch.

On Jul 29, 9:43 am, "Joachim Schipper" <jdNoOtSPAMschip...@math.uu.nl>
wrote:
> thefro...@gmail.com wrote:
> > All,

>
> > I'm a OBSD newbie. Right now I'm compiling a new 4.1 kernel on a new
> > install for a firewall. I copied GENERIC to "test" in /sys/arch/i386/
> > conf/, stripped out everything I didn't want and deleted all the CPU
> > references at the top except for "I586_CPU". Yet, now that I'm
> > watching compiler output go by I keep seeing references to "-
> > march=i486". Shouldn't that be "-march=i586"?

>
> > This is only a P75 so I'd like to get rid of any limiting code in the
> > kernel, even though I think there is not much to be gained in the jump
> > from 486 to 586. Not like getting rid of 386 anyway. What didI miss?

>
> Kernel tweaking is not supported, and doesn't really help anyway.
> Remember: GNU is Not Unix (and neither is Linux).
>
> Joachim


Thanks for the quick write-back. I haven't used Linux in years (I'm a
FreeBSD-er), but didn't want to make assumptions about OpenBSD's
behavior.

thx,

r

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 08:09 AM
Marc Espie
 
Posts: n/a
Default Re: kernel compiling for the wrong arch.

Specifically, tweaking gcc flags will lead to trouble... we've had the issue
in the past. gcc is mostly not THAT stable, and changing the flags used to
compile the kernel WILL break things!
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 07:48 PM.


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