LinuxQuestions.org
Visit Jeremy's Blog.
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 07-01-2008, 08:58 AM   #1
ROMM
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
Need help writing custom kernel to an iso I can boot from


Hello all,
I'm trying to create a custom kernel which I can later create a Live-CD of. While i've managed to create my custom kernel based on the 2.4.31 kernel from kernel.org, i'm really at a loss with how i can create a bootable CD image of the newly compiled kernel. Now i know there are already a few responses for the same on the slackware forum and quite a few other how-tos/guides on the net, most of them either pass over my head (*way* over it!) or don't seem to match what i'm trying to do with references to scripts i can't find . I'm doing all my custom-compiling on an RHEL3 2.4.21-47 GOS. Here's what i've done so far -

1)Downloaded kernel from ftp.kernel.org and unpacked it in the root home (as the readme suggests in the unpacked source)

2)make mrproper followed by make xconfig

3)Customized my kernel and then ran make bzImage (make zImage reported too big a size so had to use bzImage)

Now here's where i'm stuck. I don't need any additional modules so i don't need to run make modules and make modules_install. Now that i have my kernel compiled i would like to create a bootable Live-CD image of the bzImage which i can use to install my custom kernel on virtual machines or burn the iso onto a CD to install on usual desktops.

It would be much appreciated if somebody could provide me some clues


Thank you!!
 
Old 07-01-2008, 10:25 PM   #2
Swagata Paul
Member
 
Registered: Jun 2008
Location: Kolkata, India
Posts: 57

Rep: Reputation: 15
OK,
U can read the following. This may help u.

http://www.ugrad.physics.mcgill.ca/w..._a_bootable_CD

Do u know how to create bootable USB Live-image ?

Try: http://linuxadminzone.blogspot.com/2...usb-flash.html
 
Old 07-02-2008, 03:27 AM   #3
Swagata Paul
Member
 
Registered: Jun 2008
Location: Kolkata, India
Posts: 57

Rep: Reputation: 15
OK,
U can read the following. This may help u.

http://www.ugrad.physics.mcgill.ca/w..._a_bootable_CD

Do u know how to create bootable USB Live-image ?

Try: http://linuxadminzone.blogspot.com/2...usb-flash.html
 
Old 07-02-2008, 04:28 AM   #4
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
I just want to say this:

You obviously have more than *just* the kernel on the CD you wish to make, yes? I think mkisofs can help you. Please "man" it.
 
Old 07-03-2008, 01:13 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
This is a very good example of creating a custom iso :
http://www.asylumnation.com/blogs/am...post-2775.html

Works every time.

The boot loader used for cdrom is "isolinux" with a config file
easily to be edited (like /boot/grub/menu.lst can be edited)

Good luck !

Last edited by knudfl; 07-03-2008 at 01:20 PM.
 
Old 07-08-2008, 12:52 AM   #6
ROMM
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thank You!

@Swagata - Thank you! The links are very informative!

@resetreset - Yes, you have that right Found an informative tutorial on mkisofs - http://www.ibm.com/developerworks/li...g-lnxw16BurnCD

Hope it helps others who might get as lost as me
 
  


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
custom kernel does not boot coyopil Debian 10 01-12-2006 01:01 PM
Custom Install ISO: Kernel Panic froedi Slackware 7 08-22-2004 01:47 PM
custom kernel for ISO CD ??? Bluesuperman Slackware 2 10-17-2003 10:16 PM
custom bootable iso with my own kernel? sneakerski Slackware 1 09-30-2003 04:33 AM
Custom Kernel Won't Boot!?!?1 martinman Linux - General 1 07-12-2003 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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