LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-08-2014, 03:20 AM   #1
LFS-Fighter
LQ Newbie
 
Registered: Nov 2014
Posts: 5

Rep: Reputation: Disabled
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?
 
Old 11-10-2014, 01:25 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

I have put LFS 7.5 on a old machine, I built LFS on a newer machine 1st then transported using usb stick, The machine it went on only had 4 gig HD so it was never gonna build on that.
It all booted on the 1st machine I then had to add all the drivers in the kernel that the older machine would use. I had to strip as much as I could from system, Hope this gives you an idea.
It was still a slow machine wireless was on usb1 no eth0 either, and memory was always at max so was swap, I done it for a challenge.
 
Old 11-10-2014, 05:04 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
What are the software requires for the driver?
 
Old 11-10-2014, 05:52 PM   #4
LFS-Fighter
LQ Newbie
 
Registered: Nov 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
The software is from Realtek for a RTL8111E Ethernet chip on the motherboard.

http://r8168dl.appspot.com/files/r8168-8.039.00.tar.bz2

The Challenge is that there is no ready made book for this LFS version.
 
  


Reply



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
Building LFS with pacman bstaletic Linux From Scratch 5 09-23-2014 11:30 AM
[SOLVED] What is the LFS system environment used for Mikey555 Linux - Newbie 5 07-31-2014 09:25 PM
[SOLVED] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
[SOLVED] building lfs janakiramulu Linux From Scratch 8 02-24-2011 01:22 AM
Step 4.4 of LFS 6.0: Setting up the Environment dimaash Linux From Scratch 2 07-17-2005 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:40 PM.

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
Open Source Consulting | Domain Registration