WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Revisiting the 486sx issue  (Read 10812 times)

Offline llondel

  • Newbie
  • *
  • Posts: 22
Revisiting the 486sx issue
« on: February 15, 2011, 10:40:37 AM »
I've been trying to put together a system that will run on a 486sx. I've had a good read through the previous stuff on this topic at http://forum.tinycorelinux.net/index.php?topic=5462.0 and have a system that runs happily on an FPU-equipped system(*), but if I try to boot it with the 'no387' kernel argument it hangs immediately after loading the initrd and saying 'Ready'.

I've definitely recompiled the kernel and all the modules using the patched kernel at http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/release/src/kernel/linux-2.6.33.3-patched.tbz2 and started with the config in http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/release/src/kernel/config-2.6.33.3-tinycore where I just told it to include the maths emulation.

I extracted the 3.5 ISO and did an rm -rf /lib/modules on it to blow away the previous stuff, and then installed the new modules in place. I put the new bzImage file into /boot.

So what am I missing? (note that I did also try this with 3.4 and had exactly the same problem)

(*) I'm still waiting for the 486sx system to arrive. It's based on a Vortex86SX.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: Revisiting the 486sx issue
« Reply #1 on: February 15, 2011, 11:34:11 AM »
That should be enough, so try to find out where things are breaking. Boot with the "debug" bootcode to see the kernel messages.
The only barriers that can stop you are the ones you create yourself.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Revisiting the 486sx issue
« Reply #2 on: February 15, 2011, 12:39:01 PM »
Some tips I found:
1) Try adding "nofxsr" boot parameter also
2) Make sure your kernel does not have SMP or CONFIG_X86_GENERIC enabled


Offline llondel

  • Newbie
  • *
  • Posts: 22
Re: Revisiting the 486sx issue
« Reply #3 on: February 15, 2011, 05:52:31 PM »
I managed to get it to boot with no387 this evening.  ;D

I turned all the knobs and used all the tips.

Is there a quick way of compiling only those modules found in the release base image, and to compress them as in the base image? I guess it might all be done with a post-compile script to strip out the extras into extensions rather than just compile the base set in the first place.

Anyway, thanks for the tips so far.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Revisiting the 486sx issue
« Reply #4 on: February 15, 2011, 07:08:50 PM »
Quote
I turned all the knobs and used all the tips

Can you please elaborate? I'd like to know exactly what made it work. I am interested in the
MicroClient JrSX
, but I'd like to know the precise steps to get it to work.

Here is how I compile the modules. It can give you a start:

tar xjf linux-2.6.33.3-patched.tbz2
cd linux-2.6.33.3
make mrproper
# Copy custom config here
cp config-2.6.33.3-tinycore .config
make oldconfig < /dev/null
for m in $(cd /lib/modules/$(uname -r)/kernel; find . -name '*ko.gz'|sed 's:^./::;s:.gz$::;/^misc/d'; cd - >/dev/null); do
MSRC=$m
# Set your destination path here
MDST=/usr/local/lib/modules/$(uname -r)/kernel/$m.gz
make $MSRC || exit 1
mkdir -p $(dirname $MDST)
gzip -2 < $MSRC > $MDST || exit 1
advdef -qz4 $MDST
done

There are 288 modules, so it will take a while. I don't know if it's any faster than building everything and copying over only what you need. I omitted misc above because the ramzswap.ko is actually in drivers/staging/ramzswap, but I suspect it is built from newer source. Not sure what to do there. Maybe someone can help.
« Last Edit: February 15, 2011, 07:14:12 PM by danielibarnes »

Offline llondel

  • Newbie
  • *
  • Posts: 22
Re: Revisiting the 486sx issue
« Reply #5 on: February 16, 2011, 01:22:39 AM »
Quote
Can you please elaborate? I'd like to know exactly what made it work. I am interested in the
MicroClient JrSX, but I'd like to know the precise steps to get it to work.

That's my final target as well. I lost track of the .config and I think I overwrote the winning answer late last night  :-[ so I'll have another go and be more careful and write it up. I left it doing a clean compile with what I think was the right answer and went to bed.

One thing I did notice is that my test system, an Aspire One, didn't like having the agp stuff present and that was frustrating me a bit because even when telling it to use text mode, it would still hang. Deleting those drivers made it behave.

Offline llondel

  • Newbie
  • *
  • Posts: 22
Re: Revisiting the 486sx issue
« Reply #6 on: February 16, 2011, 02:18:02 AM »
diff config-2.6.33.3-tinycore 486sx-config
Code: [Select]
Deleted as it didn't work - see later post

Note that this hasn't yet been tested on the target machine, but it boots on the Aspire One with text, nofxsr and no387 specified. My MicroClient JrSX will hopefully arrive tomorrow.
« Last Edit: February 17, 2011, 06:04:16 PM by llondel »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: Revisiting the 486sx issue
« Reply #7 on: February 16, 2011, 06:23:07 AM »
Unified diffs in the future please (diff -u), they're more readable :)


Butting in on the MicroClient, it's my impression that one can get better hw for less by grabbing a thin client off ebay. They're similar size, too.
« Last Edit: February 16, 2011, 06:25:34 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Revisiting the 486sx issue
« Reply #8 on: February 16, 2011, 11:53:59 AM »
Quote
it's my impression that one can get better hw for less by grabbing a thin client off ebay.
Yes, that's true. Shipping for the MicroClient JrSX to the US is more than 60% of its cost. That makes ebay a significantly less expensive option.

This Thin Clients site is full of useful information, including references to Tiny Core.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Revisiting the 486sx issue
« Reply #9 on: February 16, 2011, 12:03:38 PM »
Also, the eBox-2300 is about the same price, and is a full 486 version of the Vortex86.
It runs TC V2 and V3.

Offline llondel

  • Newbie
  • *
  • Posts: 22
Re: Revisiting the 486sx issue
« Reply #10 on: February 16, 2011, 01:47:17 PM »
Quote
Unified diffs in the future please (diff -u), they're more readable  :)

I can post one of them as well if you want  ;D

As for cost, this is ultimately for something being sold as part of a bigger system, so the hardware needs to be FCC/CE approved and available in quantity. At that point the shipping cost becomes less of an issue.

The eBox looks interesting as an alternative, although now I appear to have a bootable SX kernel, I'll probably stick with the original unit. It does help to have a plan B in case purchasing have problems though.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Revisiting the 486sx issue
« Reply #11 on: February 16, 2011, 11:48:15 PM »
Also, the eBox-2300 is about the same price, and is a full 486 version of the Vortex86.
It runs TC V2 and V3.

I did some research. The eBox is the same as the NorhTec MicroClient. They both get their systems from DMP Electronics. WDL Systems (North Carolina) is a distributor of the eBox. It looks perfect for Tiny Core.
« Last Edit: February 17, 2011, 11:03:10 AM by danielibarnes »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Revisiting the 486sx issue
« Reply #12 on: February 17, 2011, 01:46:55 AM »
I got my eBox-2300 from WDL.
Everything in the unit works fine under TC and MC.
The eBox-3300 looks good, but it uses a non standard CF controller, so you cannot access the Compact Flash.

Offline llondel

  • Newbie
  • *
  • Posts: 22
Re: Revisiting the 486sx issue
« Reply #13 on: February 17, 2011, 08:29:34 AM »
I now have a target system. Unfortunately it doesn't boot the code that was built from the above config. It loads the kernel and initrd OK, unpacks the kernel and then hangs.

I need a smiley with a thinking cap.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Revisiting the 486sx issue
« Reply #14 on: February 17, 2011, 08:40:10 AM »
                       / \
Here you go.  ;D