LinuxQuestions.org
Review your favorite Linux distribution.
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 03-13-2012, 03:23 PM   #1
jurp
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Rep: Reputation: Disabled
Linux From Scratch project


Hello all!

I am new in this forum, so please be gentle...

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.

So far I was boot up my live (I am running all stuff inside my VMware) and my hd is HDA partitioned into ext3 and swap only.
I successfully extract&copy linux kernel stuff from the CD and compile things (got endless list of: CC, CC, CC, LD, etc.....)
I build up my grub and make menu.lst file on it, it seems to work. So far everything is fine. I have working list of options in menu.lst while boot up from HD.
But what ever I trying to, it never finds my LINUX kernel file, what I have compiled inside my hard drive.
Always:: Error 13: Invalid or unsupported executable format?

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......

Please help....
 
Old 03-13-2012, 04:59 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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.
 
Old 03-14-2012, 02:24 AM   #3
jurp
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
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....

Thanks anyway.


Anyone, out there to help me out?
 
Old 03-14-2012, 03:33 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Sorry, my comments were due to an estimate of your capabilities based on your first post:

Quote:
But first my goal is to learn some basics from Linux also
 
Old 03-14-2012, 08:20 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Moderator response

Moved: This thread is more suitable in < Linux From Scratch> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-14-2012, 09:17 AM   #6
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
Hi jurp can u explain more on what you want, do you have a host distro present
 
Old 03-14-2012, 10:19 AM   #7
jurp
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
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....
 
Old 03-14-2012, 12:44 PM   #8
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
Hi

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?
 
Old 03-14-2012, 01:25 PM   #9
jurp
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
...
 
Old 03-14-2012, 01:42 PM   #10
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
Hi

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
 
Old 03-14-2012, 02:24 PM   #11
jurp
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
So what do you suggest me to do?

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..?

Huh, nobody tells me it was easy...
 
Old 03-14-2012, 02:27 PM   #12
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
Hi

It's not easy

Have you looked through the book

It explains all you need to know and HOW to build lfs
 
Old 03-14-2012, 02:42 PM   #13
jurp
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
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?
 
Old 03-14-2012, 02:50 PM   #14
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
This page is for the kernel here
 
Old 03-14-2012, 07:38 PM   #15
jurp
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
SUPER!!

This is just what I have done for (your link)... (the first post).

But this seems to be completely different method than my downloaded 7.0 manual.

Huh.....

Post here, if I simply get this boot the way it was built up with that.....
 
  


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
[SOLVED] How to store all files related to a c++ project and build in linux. Like project dir sharanlinux Programming 1 04-29-2010 06:52 AM
What are the uses of Linux From Scratch! vinothnext Linux - Newbie 1 03-19-2010 03:35 PM
linux from scratch? phantom_cyph Linux From Scratch 4 02-24-2007 09:04 AM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM
Linux From Scratch astablemaverick Linux From Scratch 1 08-03-2002 02:59 AM

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

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