LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-21-2010, 06:05 AM   #1
aloktiagi
LQ Newbie
 
Registered: Jul 2009
Posts: 20

Rep: Reputation: 0
Question how to create a kernel bootable image


Hi,

the things i've tried:

1. Created an asm bootloader code that calls a c function which just prints a hello message.
2. Compiled both and linked them using LD command using a .ld file available.

Steps followed from http://wiki.osdev.org/Bare_bones

I get a kernel.bin file which is of ELF format. I've set up a tftp server using tftpd32 tool and created the necessary pxelinux.cfg files.

Now how do i create a bootable kernel image out of the elf file. The steps given in the above website to create an image doesn't help!!!

Any help is appreciated

Alok
 
Old 04-23-2010, 07:15 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,046
Blog Entries: 1

Rep: Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371
Hi,

What part of the 'Booting the kernel' section is confusing you? If you followed the example all the way then you should have a bootable kernel image;
Quote:
excerpt from 'Overview';

Even when using GRUB, some setup is required before entering an int main() type function. The most basic setup to get an ELF format kernel to be booted by GRUB consists of three files:

* loader.s - assembler "glue" between bootloader and kernel
* kernel.c - your actual kernel routines
* linker.ld - for linking the above files

The second part of this tutorial briefly describes how to boot the compiled kernel.
Other boot options or techniques are exampled.

So again I ask, Where are you having difficulty?
 
  


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
How to create a bootable image from debootstrapped filesystem? unev_21 Linux - Software 1 02-04-2010 02:31 AM
create bootable floppy image with only kernel and initrd ta0kira Slackware 1 04-02-2009 09:26 PM
How to create a CD bootable ISO image for 2.6.16 kernel vb_sridevi Linux - Newbie 4 06-25-2008 01:47 PM
How to create bootable partition image to burn hs.chauhan Linux - General 16 01-31-2007 09:52 PM
unable to create a bootable cd from iso image abhijit Linux - Newbie 4 09-01-2003 04:16 PM


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