LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-12-2017, 07:22 AM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
moving system partway through


Started the LFS process in an emulated system, via qemu. Finished making the temporary toolchain with no apparent errors. Next is the chroot phase.

It has occurred to me that I could tar up the tools directory and then untar it to my real (not emulated) system. I would then finish the LFS process (all in a chroot, as per the book) on the actual real partition that the system is intended for.

Would this work? Potential problem would be instruction set differences between original emulated CPU and the real CPU, as reflected somehow in the toolchain, could cause library or compiler snarls.

I'd set the emulator to use KVM, originally to get faster emulation. My understanding is that with KVM, opcodes executed by the emulator are actually somehow passed outside the emulation to be executed directly on the real CPU. This may mean that the emulated system was aware of the exact type of CPU and thus compiled for its capabilities? If so, going outside of emulation for the rest of the process should work? I am not sure.

Thank you.
 
Old 01-12-2017, 10:52 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
Never tried it but why not copy tools and sources over and try, You will still have the original stuff where it is. I dont see a problem tho.
 
Old 01-12-2017, 08:43 PM   #3
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Similar case, with different environment.
I am using tools created on vmware to build on real system.
It was OK.
 
Old 01-15-2017, 11:58 AM   #4
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
So I tried it. It actually worked. Yay! My LFS boots and runs.

Thanks everyone for the replies.

Last edited by jr_bob_dobbs; 01-15-2017 at 12:00 PM.
 
  


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
Moving /tmp to RAM? Moving system from USB keydrive to SD card? littlebigman Linux - Software 2 04-03-2015 10:04 AM
[SOLVED] Issue with one LDIF file it worked partway then ( Server is unwilling to perform (53) techmom50 Gentoo 1 11-09-2013 02:47 AM
Install -- -Stalls partway through jackboy Linux - Newbie 1 07-26-2011 01:55 PM
Moving system from one motherboard to another? riwaJR Linux - Newbie 11 04-10-2009 02:14 PM
Moving around my file system... slackMeUp Slackware 9 01-31-2004 06:15 PM

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

All times are GMT -5. The time now is 12:21 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