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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-11-2005, 12:00 AM
|
#1
|
LQ Newbie
Registered: Mar 2005
Posts: 16
Rep:
|
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
|
|
|
03-11-2005, 12:32 AM
|
#2
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
hi there
did u look for vmlinux in the
/usr/src/linux-2.6..../arch/i386/boot directory
|
|
|
03-11-2005, 03:18 AM
|
#3
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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.
|
|
|
03-11-2005, 04:47 AM
|
#4
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
i know that it is not necessary to compile there
but i was refering to the directorry following the convention
|
|
|
03-11-2005, 04:51 AM
|
#5
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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.
|
|
|
03-11-2005, 09:50 AM
|
#6
|
LQ Newbie
Registered: Mar 2005
Posts: 16
Original Poster
Rep:
|
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
|
|
|
03-11-2005, 10:50 AM
|
#7
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
03-11-2005, 11:17 AM
|
#8
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
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).
|
|
|
03-11-2005, 12:30 PM
|
#9
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
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...
|
|
|
03-11-2005, 01:14 PM
|
#10
|
LQ Newbie
Registered: Mar 2005
Posts: 16
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|