LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-26-2009, 08:18 PM   #1
What's For Dinner?
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
Anyone using VMware to build LFS?


Following the Linux From Scratch 6.4 book, I'm using kernel 2.6.27.4. That's the headers glibc was built against.

It seems the virtual SCSI device on VMware Fusion is BusLogic. I enabled that in the kernel configurations, but the kernel still seems to need initrd to boot. I don't know how to build one with just the LFS tools.

If I use kernel 2.6.28.x, "make install" conveniently creates initrd-2.6.28.x.img and places it in /boot for me, so I get a booting LFS on VMware (or perhaps a physical PC with the same hardware configuration).

If I use kernel 2.6.28.x, I am deviating from the Book. Do I need to rebuild the entire toolchain from scratch and then rebuild LFS from there? Or can I treat this as a routine kernel upgrade and leave the toolchain and LFS build as is?

I also need to get started with the BLFS builds. Is there anything sensitive about the running kernel version and the version of the kernel headers toolchain was used to build?

I think the LFS book and FAQ tell you to build a kernel that doesn't need initrd. It seems that isn't possible with kernel 2.6.27.4 and the virtualized hardware in VMware Fusion. Has anyone done it with this kernel version?
 
Old 02-26-2009, 11:41 PM   #2
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
You shouldn't need an initrd to boot LFS using VMware. Others have managed it using kernel versions much earlier than 2.6.27.x; see here and here for posts on the LFS mailing lists that include the kernel configurations they used. You've made sure that CONFIG_SCSI_BUSLOGIC is set to compile support directly into the kernel and not as a module?

What are you seeing when you try to boot the system? Could it be a GRUB issue similar to this?
 
Old 02-26-2009, 11:59 PM   #3
What's For Dinner?
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I don't question that earlier kernels booted on VMware (but probably not Fusion) without initrd. And I'm getting it to boot on 2.6.28.x no problem. I'd like to use the exact versions as specified in the Book first, so I'm asking if kernel 2.6.27.4 works out of the box.

I do have CONFIG_SCSI_BUSLOGIC set to compile support directly into the kernel and not as a module, which is also why I'm asking.

I get:
Quote:
VFS: Cannot open root device "sda1" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
I don't think it's a GRUB issue, since the only differences between the GRUB configuration that boots and one that doesn't is "kernel /boot/kernel-2.6.2x.x root=/dev/sda1". And the lack of "initrd /boot/initrd-2.6.2x.x".

I think it's relatively all right to use a kernel version later than what's in the Book but not earlier.
 
Old 02-27-2009, 01:45 AM   #4
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
All righty, my bad. I spent some time digging around, and as near as I can tell, changes in 2.6.27 combined with some recurring issues in VMware's BusLogic emulation are what's causing the problem... and to make matters worse, the BusLogic driver is unmaintained.

If, as you said, you can get it to boot using 2.6.28.x and its initrd, then that's great. I don't *think* that "deviation" should be a big deal, and you shouldn't need to rebuild anything. Or alternately, you could keep using 2.6.27.x and see if you can change the virtual SCSI controller in your VMware Fusion installation to something that has better support, like Fusion-MPT.
 
  


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
best linux for build LFS @d4M Linux From Scratch 21 09-26-2008 12:53 PM
Build LFS successfully PhillipHuang Linux From Scratch 2 03-13-2008 11:42 AM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 03:48 PM
nvsound on an lfs build behmjoe Linux From Scratch 6 12-10-2005 07:28 AM
How to build LiveCD from LFS isilinux Linux From Scratch 1 08-24-2005 04:45 AM


All times are GMT -5. The time now is 11:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration