LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-11-2005, 12:00 AM   #1
shimano55
LQ Newbie
 
Registered: Mar 2005
Posts: 16

Rep: Reputation: 0
Kernel Files Not There!


I followed the kernal compiling tutorial on this site up until it asked me to copy System.map and bzImage to the boot folder. The terminal returned an error that said the two files couldn't be found in the kernal file (linux-2.6.10.tar.bz2). And sure enough, when I went in and looked for myself, the two files weren't in the places where the tutorial said they should be. I also did a search of the whole file, but still found nothing. I'm not sure if these files have a new name in later versions or what, but any help would be appreciated.

Thanks in advance,
shimano55
 
Old 03-11-2005, 12:32 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

did u look for vmlinux in the
/usr/src/linux-2.6..../arch/i386/boot directory
 
Old 03-11-2005, 03:18 AM   #3
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Re: Kernel Files Not There!

Quote:
Originally posted by shimano55
I followed the kernal compiling tutorial on this site up until it asked me to copy System.map and bzImage to the boot folder. The terminal returned an error that said the two files couldn't be found in the kernal file (linux-2.6.10.tar.bz2). And sure enough, when I went in and looked for myself, the two files weren't in the places where the tutorial said they should be.
I doubt you followed the tutorial step-by-step. If you did, you'd know that you don't have to look for that files inside the tar.bz2 file. The System.map and bzImage are created during the compiling and are located in the directory where the compile took place. If,for example, you compiled in /dir, they'd be found in /dir/System.map and /dir/arch/i386/boot/bzImage respectively.
I suggest you take another (good) look at the tutorial.
And one more thing: it's called kernel not kernal.
Quote:
did u look for vmlinux in the
/usr/src/linux-2.6..../arch/i386/boot directory
It's not necessary to compile in /usr/src.
 
Old 03-11-2005, 04:47 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
i know that it is not necessary to compile there
but i was refering to the directorry following the convention
 
Old 03-11-2005, 04:51 AM   #5
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
I made that comment only to avoid any sort of confusion. I remember when I compiled my first kernel that everything was quite confusing...some tutorials said to compile in /usr/src, others in /home/whatever and other ones even skipped the untarring part so you had to figure out by yourself what the author ment.
 
Old 03-11-2005, 09:50 AM   #6
shimano55
LQ Newbie
 
Registered: Mar 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for spelling error. I know its spelled Kernel, I just have some slips sometimes .

I suppose that the command to compile would be make bzImage? And no, I didn't go that far before looking in the file. Thanks for this information.

I have chosen to compile it in /usr/src/ just becuase that is where the old kernel files were placed. Should make everything a bit less confusing.

My last question is regarding the tutorial I am following located at "LinuxQuestions.org > Forums > Linux - General > Newbie Guide To Compiling A Kernel!". It tells me to run:
Code:
make bzImage
make modules
make modules_install
My question is, are all of these necessary? When I run them they all seem to do that same thing.

Thanks in advance,
shimano55
 
Old 03-11-2005, 10:50 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
yes all of these are necessary

make bzImage
will make the kernel image

make module
makes the modules

make modules_install
will install the modules to /lib/modules

regards
 
Old 03-11-2005, 11:17 AM   #8
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Like masand said, all of them are necessary, maybe even an extra step.
If you don't compile as built-in (as opposed to modules), ext2, ext3 or whatever filesystem describes the partition your kernel is on and also SCSI/IDE support you have to create an initial ram disk (a.k.a. initrd). And the extra step mentioned above would be: 'mkinitrd -o /boot/initrd.img-version version', where version is, of course, the version of the kernel, such as 2.6.10. This step should come last, after 'make modules_install' and its syntax may vary.

And I'll add one minor thing to what masand said regarding 'make modules_install': the modules will be installed in /lib/modules/version (see version from above).
 
Old 03-11-2005, 12:30 PM   #9
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Something tells me you shouldn't be compiling your own kernel. No offense, but even after 6 years of linux experience, I sometimes forget what I need to compile support for into the kernel and which modules I need to build. If you're new to this you're not even going to know what half the kernel options are for.
But good luck...
 
Old 03-11-2005, 01:14 PM   #10
shimano55
LQ Newbie
 
Registered: Mar 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Trust me..if i didnt have to be doing this, I wouldn't be. But its the only way to install ndiswrapper and get my wireless network card working. This deal of switching from Windows to Linux and back again is getting rather annoying. Therefore I need to get internet working computer wide.

Thanks for all the help guys.
 
  


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
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 12:35 PM
What do I do to back up the kernel? Which files do I copy? (Debian kernel 2.4.27-2) GarethC Linux - General 6 08-02-2005 03:49 AM
where are kernel files greklas Slackware 6 09-03-2004 11:44 AM
Kernel files jspaceman Slackware 2 04-13-2004 10:20 PM
remove old kernel files Pieter Linux - Software 1 01-30-2003 05:00 AM

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

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