Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED]Compiling x86 kernel on x86_64?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Eidi
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Thu Sep 02, 2004 2:08 am
Location: Arizona
Contact:
Contact Eidi
Website

[SOLVED]Compiling x86 kernel on x86_64?

  • Quote

Post by Eidi » Wed Dec 28, 2005 3:46 am

Uh... I got a weird problem. I'm not sure if anyone has gotten into it before but... I want to make a home server out of this really old box, but it's so old, it can't boot from a CD. So, I took the harddrive out and put it in my main box, a 64 bit one, running Gentoo natively at 64 bit. What I did was, just boot into my regular install, and partition and mount the harddrive from there. Most of the install went fine, but now I'm at compiling the kernel, and when I try it, the processor type only has options for 64 bit kernels...

I assume the rest of the install is fine though, I have my make.conf set for a i386 processor (Hmm... Are there any specific settings for a really, really old Celeron? Doubt it, but I figured I'd ask.)

I can't burn an x86 Gentoo CD at the moment, and the only live CD I have is an old Knoppix 3.2 CD, but I could probably chroot from that and compile a 32 bit kernel just fine... However, I was wondering if I could do it without booting into another environment? Thanks.
Last edited by Eidi on Wed Dec 28, 2005 5:50 am, edited 1 time in total.
Top
Jake
Veteran
Veteran
Posts: 1132
Joined: Thu Jul 31, 2003 8:39 pm

  • Quote

Post by Jake » Wed Dec 28, 2005 4:28 am

emerge linux32, chroot into your installation for the old machine by doing "linux32 chroot /mnt/old_drive", and it should show up as i686. Fortunately, all Celerons are i686. The low end ones are pentium 2s with less cache and a slower FSB, both of which seriously cripple performance. Since I don't see a celeron option in the GCC man page, use "-march=i686" or "-march=pentium2", possibly with "-Os" because of the low cache, otherwise stick to the safe "-O2". Note that you'll have to change your CHOST to get i686 optimizations if you currently have i386-pc-linux-gnu. See http://forums.gentoo.org/viewtopic-t-41 ... ight-.html
Top
Eidi
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Thu Sep 02, 2004 2:08 am
Location: Arizona
Contact:
Contact Eidi
Website

  • Quote

Post by Eidi » Wed Dec 28, 2005 5:44 am

Woot, "linux32 chroot /mnt/blah" worked great for me! Thanks!

And thanks for that info, I'll change that ASAP.

My own WordPress server, here I come! :)
Top
Post Reply

3 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic