LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2009, 10:50 AM   #16
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40

NightHorse,

You can use a Gentoo x86 stage3 but you will have to rebuild it all. No cross compiling is required but you need a host that is backwards compatible with your CPU.

Do a gentoo install in a directory, so you can chroot into it in the normal way. Once there, your 486sx install is in use but supported by the hosts kernel and services and more importantly, its much more powerful CPU. In all other respects, your system is like your target 486sx.

Continue by building all the packages you need and testing them on the host. When you are ready, you can copy the packages to the target. You will never build anything there. All the maintainance will be carried out on the host in the chroot.

As others have said, enable floating point emulation in your kernel. Consider a ulibc system instead of glibc too as its smaller.
 
Old 06-24-2009, 12:52 PM   #17
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Quote:
You can use a Gentoo x86 stage3 but you will have to rebuild it all. No cross compiling is required but you need a host that is backwards compatible with your CPU.
I think pentium D processor would be backward compatible. right?? Also what do you mean by building it all?? I only tried Gentoo live CD and I didn't have to build anything. And btw I tried copying the slackware installation I have in pc/104 into one of my folders and chrooted to it worked fine. Thanks for that, I would never knew something like that. !! And it's a great feature actually.

Quote:
As others have said, enable floating point emulation in your kernel. Consider a ulibc system instead of glibc too as its smaller.
Do you mean when I install it at first place?? How can I compile the kernel without having a running one??

Sorry if my question sounded bit dump but I am totally new to Gentoo.
 
Old 06-25-2009, 03:25 PM   #18
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
NightHorse,

Your Pentium D will be fine and you will need a running kernel to build another one but a liveCD will provide that.

You have two options ... do a 486sx compatible Gentoo install on a real partition on your Pendtium D host system
With some care you will be able to boot into it and test most of it.
... do a 486sx compatible Gentoo install into a directory (or a file) on your host. You will not be able to boot this - you will have to chroot into it

Either way allows you to build a kernel and anything else you need. You also get the binaries you target system needs. You can leave behind the sources and the toolchain whe you install on your target since you will never build anything there.

The install you need pretty much follows the Gentoo Handbook but keep in mind you are installing for your target not your build host.

You will need the x86 stage3 tarball, (not the i686 tarball).

This won't mean much yet. Be sure you set FEATURES="buildpkg" in your /etc/make.conf so the install process saves all the packacges you build. That way they are all ready for your target.

Follow the handbook about setting up /etc/make.conf
After you have your stage3 and portage snapshot, update it with
Code:
emerge --sync
followed by
Code:
emerge -e system
If in doubt ask - here, on the Gentoo forums or in #gentoo in irc.freenode.net. This is a fairly standard approach for building Gentoo on one (more capable) system where its intened to run on another less capable system.

Last edited by NeddySeagoon; 06-25-2009 at 03:27 PM.
 
Old 07-09-2009, 04:38 PM   #19
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Hello again and sorry for long absence. I had a lot of loads at work and I had to do more searches on gentoo before asking any questions. :$

I finally got it installed on there and now trying to strip it down and boost up boot times cause it's so slow. I found it interesting cause the ability to optimize everything for my system. Thanks a lot for put me on the way.
 
Old 11-11-2010, 08:08 AM   #20
anubix
LQ Newbie
 
Registered: Nov 2010
Location: Russia, Moscow
Distribution: openSuSE
Posts: 1

Rep: Reputation: 0
Gentoo on i486SX

NightHorse,

did you install gentoo or slackware? Here comes some questions if gentoo...
1) Did you compile kernel on *sx device or using crossdev?
2) Could you give links on manuals was used? Thanx )))
 
Old 11-12-2010, 12:42 PM   #21
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Well, I got both gentoo and slackware installed. I could install Slackware up to version 8 or 10 not very sure, and gentoo.
For slackware, I installed it directly on the board using a DVD.
For gentoo, I mounted the flashdisk on my laptop and extracted the root over there, then chrooted to it and compiled the kernel but remember to add support for FPU emulation. It won't work without it.

About manuals. There is no much manuals. But if you looked for x-linux, you could find a configuration file for the Kernel. You can use it if you are compiling for the same board. Sorry I can't post the link for you, as I can't look it up now as am using a slow connection right now 64kb.

I hope that gonna help you. It's been long time since I was working on that device but If there is anything I could help with I will do my best.
 
Old 11-12-2010, 12:45 PM   #22
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Please check the link for x-linux. http://www.dmp.com.tw/tech/os-xlinux/

One thing to note I could not keep going with Slackware or Gentoo cause they were very slooooowwww on that device.
 
Old 11-12-2010, 01:14 PM   #23
Davethesnake
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Rep: Reputation: -14
what you want boy is the easy option and to be quite blunt you will not find a ready made configured gcc compiler on any linux system,its either installed as a package or on an external disc/soft.because of course --backward compatability issues--so you either buy it or install it.
 
0 members found this post helpful.
Old 11-12-2010, 01:37 PM   #24
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,245

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
Quote:
Originally Posted by Davethesnake View Post
what you want boy is the easy option and to be quite blunt you will not find a ready made configured gcc compiler on any linux system,its either installed as a package or on an external disc/soft.because of course --backward compatability issues--so you either buy it or install it.
Really, now???

Every version of Linux I've ever run has SHIPPED WITH a GCC compiler. Instructions for building it from source abound on the Internet, and you CAN'T 'buy' something that's already free. Is there a point to any of the replies you're making in threads?
 
Old 11-12-2010, 02:16 PM   #25
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

Quote:
Originally Posted by Davethesnake View Post
what you want boy is the easy option and to be quite blunt you will not find a ready made configured gcc compiler on any linux system,its either installed as a package or on an external disc/soft.because of course --backward compatability issues--so you either buy it or install it.
Would be so kind and provide links that support this statement?
Where did you find this out about gcc?
 
Old 11-13-2010, 04:10 AM   #26
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
Davethesnake,

That is simply not true. Gentoo builds everything from source. Its stage tarballs provide a fully working toolchain, including gcc. Without that you could not install Gentoo.

You can of course rebuild the toolchain to your own tastes but there is no need until an update becomes available.
Whatever you CHOST, you still get emitted binary code for your -march
 
Old 11-15-2010, 03:29 AM   #27
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by Davethesnake View Post
what you want boy is the easy option and to be quite blunt you will not find a ready made configured gcc compiler on any linux system,its either installed as a package or on an external disc/soft.because of course --backward compatability issues--so you either buy it or install it.
Could you please stop posting disruptive FUD?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
So I need a C compiler to install a c compiler. Makes sense. vic305 Linux - Software 8 12-17-2008 11:30 PM
My c compiler doesn't work after the cross-compiler installed heracles.cn Linux - Newbie 1 06-05-2007 04:55 AM
Linux on i486SX at 3MB RAM? ichrispa Linux - Laptop and Netbook 7 07-12-2005 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration