After getting Linux 0.98 to compile, I thought I’d take a stab at Linux 1.0. Â I vaugely recall when it was released, and I just remember a much larger push to 1.1. Â So I guess it really comes as no surprise that in the Linux kernel archives, there is simply the 1.0 tar, and 9 patch files.
I went ahead, and patched up the release, and then tried to build with GCC 2.3.3. Â This however proved not to be up to the task, as 2.3.3 has issues with some of the assembly macros, so delving into the readme shows that you need to use GCC 2.4.5 or higher. Â Since I wanted to keep at least the tools on par, I went ahead and build 2.4.5, and once more again used the gcc driver from 2.6.3. Â I further ended up relying on headers, and checking tool versions from Debian 0.91, which also revealed that they were still using GAS 1.38 back then.
One interesting note while building piggback, which takes the compressed system object, and wraps it in an object file, is that it directly uses the magic “0x00640107”, which is for a later “Linux/i386 impure executable (OMAGIC)” filetype. Â But because my binutils is so ancient, I needed to change it to “0x00000107” so that the linker would recognize it as a “386 executable not stripped” file. Â As always when having no idea what I was doing, it was easier to have it make an empty object file, set the type for 12345678 and look for where it occurs in the data stream, and just match it with a known object file. Â As you can see, it worked.
I don’t know if it is of any interest, but the kernel source, along with a binary is available to download linux-126.96.36.199z, and the same goes for GCC gcc-188.8.131.52z.
And of course, you’ll wantÂ the latest download, which includes the pre-built tools, qemu, and build environment to get you started.
Can it compile Minix 1.X?
I haven’t tried to build Minix, but it would require a different toolchain. I suspect the 1.5 386 stuff may be easier to pull off.
386bsd 2.0 http://386bsd.org/
who needs that, when we can cross-compile 386BSD 0.1 PL23 from Windows?
I have a great interest in old hardware, but I want to run the most _recent_ Linux/GNU that I can. I’ve gotten the latest 4.12 kernel running with current Gentoo userland running on an Intel 80486. If you are interested in more details, please email. me.
I’m usually interested in the opposite angle, but sure I can take a look.