Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Smallest Source Mage

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Jon Svendsen <jon-sven AT frisurf.no>
  • To: Eric Womack <eric AT lasvegasdata.com>
  • Cc: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Smallest Source Mage
  • Date: 28 Jul 2002 13:29:48 +0200

On Sun, 2002-07-28 at 02:50, Eric Womack wrote:
> I have successfully gotten through the first part of a Source Mage install
> on a
> 486DX2-66 with 8M of RAM and a 700M hard drive. This is a laptop machine
> that
> I intend to turn into a text interface to my main machine via SSH. In the
> interest of full disclosure, I had to remove the hard drive and use another
> machine to install as I had no way of ataching a CDROM to this machine.

Does this box boot? If so, that's ipressive in itself, since i thought
the binaries on the iso were compiled with pentium instructions ;)

First of all, just to get it out of the way, what you are trying to do
CANNOT be done. NO WAY. While it is possible to run a linux system on
the hardware, you describe, a from-source deployment of bleeding edge
stuff like the 2.4 kernel and glibc 2.2 just WILL NOT happen.

That aside, I cooked up some patches that allows you to select i486
optimizations in sorcery. These will let you compile stuff that will
actually excute on the box. That's going to be the least of your
problems though. The biggest of your problems is going to be that you
simply do not have enough space (ram+disk combined), to pull this off at
all. So shave wherever you can. strip everything. rm -rf all
manpages/docs/<insert useless cruft here>. gcc3 is the guy who KILLED
your SISTER. Stay away from him like he was the devil himself, cause he
is. Also generally, if it's C++, you can't have it. feel free to build
gcc without C++ support just to make sure. (saves you space and build
time too)

Use NFS or removable media for anything humanly possible. If it's not
required for the box to run, you can't store it on the drive.

If you do all of this, you should be able to compile everything except
glibc. glibc will be mean.

Good luck, I hope we'll hear how it went when you're finished, (should
be sometime around christmas) or when you've given up ;)

Jon
--- subroutines.orig 2002-07-28 12:51:15.000000000 +0200
+++ subroutines 2002-07-28 13:06:18.000000000 +0200
@@ -881,11 +881,18 @@

optimize() {

- unset I586 I686 K6 ATHLON POWERPC FAST SMALL SPEEDY TINY RISKY STRIP
+ unset I486 I586 I686 K6 ATHLON POWERPC FAST SMALL SPEEDY TINY RISKY STRIP

for PARAM in $*; do
case $PARAM in
- i586|pentium) CFLAGS="-mcpu=i586 -march=i586"
+ i486) CFLAGS="-mcpu=i486 -march=i486"
+ BUILD="i486-pc-linux-gnu"
+ I486="on"
+ FAST="-O2"
+ SMALL="-Os"
+ ;;
+
+ i586|pentium) CFLAGS="-mcpu=i586 -march=i586"
BUILD="i586-pc-linux-gnu"
I586="on"
FAST="-O2"
--- sorcery 2002-07-28 13:10:05.000000000 +0200
+++ sorcery.orig 2002-07-28 12:57:17.000000000 +0200
@@ -589,7 +589,6 @@

optimize_architecture() {

- I486_HELP="Wow! you are NUTS!"
I586_HELP="I586, Pentium, Pentium MMX, Cyrix"
I686_HELP="Pentium Pro, Celeron, P2, P3, P4"
K6_HELP="K6, K6-2, K6-3"
@@ -606,7 +605,6 @@
OPT_HELP="Please select optimizations"
OPT_TITLE="Optimization Menu"

- I486=${I486:=off}
I586=${I586:=off}
I686=${I686:=off}
K6=${K6:=off}
@@ -623,7 +621,6 @@
--menu \
"$ARCH_HELP" \
0 0 0 \
- "i486" "" "$I486_HELP" \
"i586" "" "$I586_HELP" \
"i686" "" "$I686_HELP" \
"k6" "" "$K6_HELP" \
@@ -656,6 +653,7 @@
"\"optimize $OPTIMIZE\" saved to $LOCAL_CONFIG" 8 40

fi
+
}





Archive powered by MHonArc 2.6.24.

Top of Page