LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2007, 04:36 PM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
how to make starting kernel image for fresh installation of my customised linux


I compiled new kernel 2.6.22.4 on my system and booted successfully from it

I want to know regarding the process of fresh installations when you boot from a CD or DVD or from your hard disk or Lan for installing a fresh copy of linux on your machine every vendor specifies kernel image and initrd in boot directory on installation DVD or First CD inside /boot/loader directory

Fedora: vmlinuz and initrd.img
Suse: linux and initrd
Mandriva: vmlinuz and all.rdz
Ubuntu: vmlinuz and initrd.gz
Gentoo: gentoo and gentoo.igz
Knoppix: vmlinuz and initrd.img
Slackware: bzImage and initrd.img
Debian: vmlinuz and initrd.gz


What I am not able to understand is how to make the bzimage and initrd of newly compiled kernel which are in arch/i386/boot/bzImage
to be capable of booting for fresh installation that starts with a new installation procedure rather than being able to boot with new kernel with a few rpms that I already have from the ISO of my old distribution

which are released when a new flavour of some linux distribution comes with a new kernel
 
Old 09-23-2007, 10:28 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by tkmsr View Post
...
What I am not able to understand is how to make the bzimage and initrd of newly compiled kernel which are in arch/i386/boot/bzImage
to be capable of booting for fresh installation that starts with a new installation procedure rather than being able to boot with new kernel with a few rpms that I already have from the ISO of my old distribution

which are released when a new flavour of some linux distribution comes with a new kernel
Could you clarify or rephrase the above section? I'm not sure about other readers, but I don't understand quite what you are asking.
Thanks
 
Old 09-23-2007, 01:01 PM   #3
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
i agree with grape_fruit_girl i cant exactly understand what you are saying either.
you can't boot just a kernel without having certain base libraries and junk in place on the partition you are trying to boot.
 
Old 09-24-2007, 11:16 PM   #4
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by tkmsr View Post

What I am not able to understand is how to make the bzimage and initrd of newly compiled kernel which are in arch/i386/boot/bzImage
to be capable of booting for fresh installation that starts with a new installation procedure rather than being able to boot with new kernel with a few rpms that I already have from the ISO of my old distribution

which are released when a new flavour of some linux distribution comes with a new kernel
Ok what I am trying to say here is suppose I have a system with windows installed and no linux I got a DVD or linux that was for installing linux
I booted from DVD and it started installation
I read some where that there are files on DVD or CD named isolinux.bin
boot.catalog
and kernel image in /boot/i586/loader/linux along with initrd
which start the installation process


now suppose I download from www.kernel.org and compile a new kernel on a system which already has linux installed and get new initrd and kenrnel images from that
i want to give these two images to a friend of mine which does not have linux installed on his system then in the original DVD if I replace the
pre existing kernel and initrd image by the new compiled kernel

which are compiled according to configuration of my system but i am willing to distribute the new kernel images for installation how are they different from the ones that are on the DVD




in case my question is still not clear then here it is in other words

I want to make a linux distribution of myself which I can distribute to my friends in which the kernel are the latest ones or the kernel which I wish to distribute rather than downloading DVD's of Fedora or Redhat or Suse or debian etc
this latest kernel would be the one that I downloaded from kernel.org now in this distribution how should I place the kernel image and initrd which can start installation etc or might be I am wrong I need to link these images with rest of the rpms that can continue installation

Last edited by tkmsr; 09-24-2007 at 11:19 PM.
 
Old 09-25-2007, 03:15 AM   #5
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
I think I have got answer to my question

i should have not asked for the kernel images rather I should have asked for spins on Installation DVD's
I have searched google and found some info but since I am not a professional programmer just an end user who is enjoying open source so my understanding could be wrong comment me when I have said some thing wrong I would like to correct

what I have understood is to be able to create a linux distribution of your own you need spins of your system like you need to create a Fedora based distribution you need to have spin of fedora working

then similarly for debian or suse
i searched and came across a link that is a tool meant for this purpose only

https://hosted.fedoraproject.org/pro...s/RunningPungi


For suse
http://liquidat.wordpress.com/2007/0...-spin-creator/


Project Revisor
http://revisor.fedoraunity.org/news

some blogs

http://dev.beryl-project.org/~cyberorg/

but was not able to fully understand one thing I want to know is
rather than using a tool for doing all this I want to understand this process of creating spins and making an installation DVD or CD
so some one should come across to help me

i am posting the same post on another thread where people might have not read this one because of misleading topic so please respond I want to gain knowledge regarding these open source based systems
 
Old 10-17-2007, 04:28 AM   #6
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
I think after some search I have got a partial answer to my question
as per the instructions given here
http://www.gentoo.org/doc/en/handboo...?part=1&chap=7

and here
http://linuxfromscratch.org/pipermai...ry/026055.html
I concluded that when linux is being installed on a system for the first time then a generic cd is used to installed which does a
devfs and probes the hardware for the first time
for installation then mounts the initrd
+ if [ "$CHECK_TYPE" = "try_mount" ]; then
+ mount -n -t iso9660 ${cdrom_device} $TMP_MOUNT



and


+ mount -n -o ro -t iso9660 $LFS_CDROM_DEVICE $TMP_MOUNT
+ cd $TMP_MOUNT
+ pivot_root . mnt


and pivot root mounts the root file system and linuxrc script then continues with installation

I need to compile a generic kernel but how to do 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
Eterm font errors after adding modules to make customised live CD uncle-c Slackware 1 11-20-2006 02:53 AM
difference netween linux-image and kernel image? mariogarcia Linux - Software 2 06-19-2006 08:01 AM
make-kpkg --revision=xxxx kernel-image issue divukman Debian 2 03-06-2006 05:52 PM
Make a new iso image to install my modified kernel biggeorge Linux - Software 2 12-20-2005 04:40 AM
How to make your own customised Debian CD? davidas Debian 1 04-29-2004 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:23 AM.

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