Building a very old environment with LFS
To compile a module for a very old Linux system without a compiler environment and
with no Ethernet connection, because it is the network card driver module I need to compile, I'd
like to use LFS to reach that aim.
I've already tried to build it starting with the LFS LiveCD 6.3, but I could not get the glibc compiled.
The reason is that it seems that you can't use such a new environment to build that old Linux version.
What I need:
modinfo drivers/pci/hotplug/pci_hotplug.ko
...
vermagic: 2.6.18 SMP mod_unload K7 REGPARM gcc-3.2
...
I just have choosen a random module. Every module shows that magic number.
The gcc version of the 6.3 LiveCD is gcc-4.1 and I found a hint after hours of searching for a patch
to solve the compile error I get, that you can't compile a gcc-3.2 version with a compiler newer than
gcc-3.4. I think that makes sense. So now my task is to find a better matching host system and all the
packages fitting the milestones gcc-3.2 and kernel 2.6.18.
Can anybody helpme to get on the right track of building such an old Linux?
|