Cross compiling LFS can be a real chicken and egg problem. The key point is where you 'chroot' to you $LFS directory to force the remainder of the build process to use your new C libraries. Since all of your machines are intel based(Pentiums), I don't think that you should have any problems building all your stuff on the fast machine and copying it over to your router. I will guess that the major hardware differences in you machines is in the networking arena, which should be totally and issue of configuring the kernel. So, once you get LFS totally up and running on your fast machine and then copy everything over, the only thing you may need to do is go back and fiddle with the kernel options and re-compile. In my case, I got LFS running by following the directions once, but find myself re-compiling the kernel periodically as new networking, scsi and other hardware features are updated. The nice thing about doing LFS is that compiling Open Source Software from scratch becomes second nature, and you can truly leverage all the benefits of cutting edge OSS. Of course all this customization and freedom comes at the cost of a lot of work, and the difficulty of trying to use software from off the shelf distos. I personally am happy with the time I spent. Fred Jay Kline <list at slushpupie.com> Sent by: tclug-list-admin at mn-linux.org 05/28/02 10:25 AM Please respond to tclug-list To: tclug-list at mn-linux.org cc: Subject: Re: [TCLUG] Looking for the right distro On Tuesday 28 May 2002 9:51 am, destr0 wrote: > >If you get stuck with something, let me know. > > > >fred > > This email is for fred or anyone else who might be able to point me in the > right direction. After reading this thread I decided to put together LFS > for my router. It's a 200mghz pentium with 128 mgs ram My problem is > compiling everything from source on this machine. It is so slow it's > almost painful. While I was watching an hour tick by compiling gcc, I kept > looking at my 900mghz p3 laptop, and my dual 900mghz p3 server and > wondering how I would go about compiling the apps on one of those machines, > while targeting them to run on my routers architecture. > > So basically, can anyone point me in the direction of how to do this? most apps you should be able to just compile and move. I would do a "configure -> make -> tar" move the whole thing to the router, and then to a "make install". This will insure things get put in the propper place for you, but still gain the speed of the laptop. Compiling some apps will have some optimizations for the Pentiums and beyond (such as the kernel and compilers) if you can tell it not to use those when compiling, it should be ok (I think the gcc flag is -M386 or -M486 for 386/486 but I would look it up in the man page) I have never done it this way, so I may be wrong about this. Also, when compiling the kernel, it takes whatever the root device of the system its compiled on, you need to use rdev if you have a different setup to modify the compiled kernel. Jay _______________________________________________ Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota http://www.mn-linux.org tclug-list at mn-linux.org https://mailman.mn-linux.org/mailman/listinfo/tclug-list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20020528/370e889f/attachment.htm