Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to build my own first LFS and, well I know there are plenty of things I need to know more. But first my goal is to learn some basics from Linux also, so my project doesn't need to be perfect.
In what is the file or what else I need to add in my menu.lst file to get boot from my hard drive. To recognize my kernel file and get console. I have try to copy and link both: bzImage, and linux file (compiled from source) , with no success? bzImage got [linux-bzimage, setup=0x1c00, size=0x17e6a5]
and I think with "linux" file from compiled source it only prompts error 13......
Not a direct answer but I think attempting LFS with little linux experience is asking for trouble, I recommend you start with a standard distro to learn the basics - file system management, basic utilities, text editors, compiling software, permissions, user account management and so on. Once you understand how things hang together you'll be in a better state to understand what's going on during the LFS install and what you can get out of it.
It seems a bit like teaching someone to drive by making them put the car together from parts first, not really necessary but interesting and a learning experience nonetheless.
Well, I still think I am not so noob to start my experience with LFS. I have run Ubuntu almost 6 years now. All my OS are in Linux. My VMware workstation and all of my work machines runs in Linux. There are many other distribution I have test on, I quite understand accounts, user permissions and text editors, I think I can't even compile my things there they are now, if I don't understand that.
Basically I know I am ready to test this out and hope someone to help me more than just told me you are not ready? :|
My goal is to run my NASM Assembler program to run my own kernel, I have built on from this....
Well at least I want to know how to link my menu.lst into my kernel file. What is my kernel file anyway. I have read somewhere that, it is bzImage, but it wont boot for that file. I have try "linux" file also. That was the file I got when compile the source. I can fix and edit my menu.lst but don't know the syntax of the GRUB menu.lst to get the root?
My host does not have GRUB, so no menu.lst even....
Can you explain what you are doing or want to acheave from this we need more details plz.
You say you want to build LFS which book are you following?
You also mention you have copied your own grub from a cd which 1?
Menu 1st is in the old grub not the newer grub2.
Quote:
My host does not have GRUB, so no menu.lst even....
Can you also tell us what host system you do have?
I follow the 7.1 PDF book, I download from the site. Also the live CD, but it seems to be version: x86-6.2-5 (read from the boot logo)
In first of all: I copy all stuff from the LFS-source onto my hard drive. After that I extract linux2...tar file onto it, compile it: make mrproper & make...
Should this be enough to make me console and at least boot it up? Or am I misunderstood, to link it for this kernel file...
I build up GRUB, but it newer worked, so I also add there menu.lst file. So now I can edit my list and GRUB seems to work on the way that I can choose what and where to boot on, but nothing else?
this LFS is running in VMware and live CD, Ubuntu on host.
...
Ok this is not going to work, The best way to go about building would be to install Ubuntu onto hard drive (lfs cd is out of date) The ubuntu cd wont pass the host system requirements here
You can make a seperate partition for lfs to build on.
Come back when you have setup Ubuntu and made sure it meets requirements for building, even post the output of script if you need it checked.
Then we can proceed with building
Install Ubuntu and copy the kernel files onto my LFS partition? What files?. What is the kernel files actually I need to copy?
Because I read somewhere it is bzImage, but not sure now? There are no manual to do it from any distro.
Is there anywhere basic step by step order tutorial you can follow and is up on date..?
Well, yes of course. But because I want it only to be able to boot, load for the kernel only, I skip quite a lot. :# .. Erhm, sorry..
Yep and I just realise also I have following the book 7.* and my live set is 6.*. And that can't be a good.
Maybe I need to study this on my own for a while....
What is the final kernel file name? Is it bzImage, vmLinuz, vmlinux or what? Because it compile something for me sure. And it takes a lot of time.
But I want to know what files it made for me, and where they are.
Are they useless?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.