LinuxQuestions.org
Register a domain and help support LQ
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 10-09-2006, 11:49 AM   #1
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Rep: Reputation: 16
lfs for x86_64 with slamd64 host


Hi, all.

I'm running slamd64 (i.e. slackware x86_64) and I'd like to build LFS for this system (an EM64T). I just have a few questions:

1. Do I need to use CLFS or would LFS be fine? (Seeing as I'm not actually cross-compiling, because the target architecture is the same as the host?)

2. Does / will it compile just for generic x86_64 or will it eb able to make use of my EM64T's specific features like sse3 and things like that (not quite sure what the difference is between the EM64T and the athlon 64 chips)?

I would like to have it in 64bit because my chip has that capacity but it's also perfectly content to run 32bit OS's (It ran Mandrake 10, slackware 10.2 and even windoze fine before I realised that I actually had a 64bit chip and swiched to slamd64). Is it worth the extra effort that seems to be involved?

Edit: One more quick question: Will I have to do anything extra to use my chip's hyperthreading or should I just turn it off?

Thanks
silkenphoenixx

Last edited by silkenphoenixx; 10-09-2006 at 11:53 AM.
 
Old 10-09-2006, 12:17 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,714
Blog Entries: 1

Rep: Reputation: 221Reputation: 221Reputation: 221
I'm sure the folks in this forum that are smarter than I will correct this, but...

If you want to provide multilib support (i.e., 32-bit and 64-bit), you will need to use the CLFS multilib book. You'd need to know what needs to be added to the LFS commands to ensure 64-bit support is enabled to use the LFS book. I'd recommend just following the CLFS book.

"Turning on" specific uP features like sse3 is done when you configure the kernel. Configuring the kernel is not really any different in (C)LFS than in other distros. As far as any packages taking advantage of certain uP features, those would be toggled with configure script options. There are typically other options that could be set/unset than the CLFS book sets/unsets.

The CLFS books are kinda like a recipe. You can leave out one of the ingredients (CLFS configure option) and the cookie (system) will likely taste like sh*t (not work). However, you can alway add some raisins and nuts (enable other package features) that aren't necessarily called out in the recipe (CLFS book). Then the cookie (system) will be scrumpdilicious (customized).

Last edited by weibullguy; 10-09-2006 at 12:26 PM.
 
Old 10-10-2006, 12:49 PM   #3
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Original Poster
Rep: Reputation: 16
Ok, that's helpful. I'm fairly new in the Linux world (Started using Linux Sept 2005, finally got rid of windows march of this year) and configuring the kernel is something that I've never attempted (unless installing nvidia drivers counts! :-) ) I suppose I'd learn how on kernelnewbies.org?

Thanks much
silkephoenixx

btw, I tried using just LFS, but it failed when compiling gcc on the first pass, so I guess I'll stick to clfs. Another question that I have is, if I get it right, I'd like to cross-compile on my desktop for a really old acer laptop that I came across (366mhz celeron 64mb ram). How would I go about transferring the install to the laptop's drive? The idea that I had would be to compile it onto a usb hard disk, boot off a live cd, format and copy the stuff onto the hard disk, then chroot to do final configuration (like installation of lilo and stuff). Would this work?
 
Old 10-10-2006, 01:52 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,714
Blog Entries: 1

Rep: Reputation: 221Reputation: 221Reputation: 221
I've never cross-compiled on one machine for another so I wouldn't want to say yes or no. I see a potential problem with changing the host system halfway through the process. You'd have to be careful about that. Probably if you completed the "If You're Going to Boot" chapter (chapter 7 in the multilib book) you wouldn't even need to chroot on the laptop. Maybe you could boot the laptop from a LiveCD and install LFS over a network connection.

I guess I would use the LFS LiveCD and do everything on the laptop if I could boot it from CD. Otherwise, take a look at the FAQ, mailing list archives, and LFS hints. I'm sure it's been done before, just not by me.
 
Old 10-11-2006, 11:08 AM   #5
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Original Poster
Rep: Reputation: 16
I would have done that but there are 2 problems:

1. Memory. I was a little worried of running out of it especially during the "make bootstrap" of gcc, but I suppose if I give it a bit of swap it won't be too much of a problem.

2. Time. It'll take AGES! But, patience is a virtue I suppose, and I have a livecd.

The problem with your network suggestion is that the laptop has no nic, and I don't have the cash to spring for either a new laptop or a pcmcia one so I have (had?) to find some other method.

regards
silkenphoenixx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
make configure-host for binutils-2.16.1 fails under 7.0-cross-lfs-20051019-x86_64 Basel Linux From Scratch 2 10-24-2005 11:07 PM
Questions about and errors found in Version 7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 1 09-06-2005 11:10 PM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
Host System's LFS installs with shotokan Linux From Scratch 8 04-16-2005 03:34 PM
LFS install trouble -- using Knoppix 3.6 as host hell_carnage Linux From Scratch 3 11-18-2004 07:09 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration