LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Compiling the kernel...bzImage.. (https://www.linuxquestions.org/questions/linux-general-1/compiling-the-kernel-bzimage-28889/)

celtic32 08-27-2002 08:53 AM

Compiling the kernel...bzImage..
 
when compiling the kernel and you run ''make bzImage'
the newly complied kernel shold be created and compressed to this directory 'usr/src/linux/arch/i386/boot '
when I do it, it doesnt....
is there anywhere else it could be created or how do I find it?

thanks

R :)

MasterC 08-27-2002 10:16 AM

What architecture do you have?

celtic32 08-27-2002 10:18 AM

what do u mean?
kernel version is: 2.4.19
distribution: linux rock
i386???

is this what you need
R

MasterC 08-27-2002 10:34 AM

What processor do you have? Is your machine a PC or mac or what? That's what I meant, sorry for the confusion.

celtic32 08-27-2002 10:43 AM

dell precision laptop..
pentium 3 1200mhz
pc

MasterC 08-27-2002 10:51 AM

Wow, damn, I thought I was onto something :D

Are you sure it's not in there? If you are going to /usr/src/linux are you sure the symlink linux is set to your correct kernel version? I would go to the absolute path, and not follow symlinks just to be sure if I were you. So if this is kernel 2.4.19, it would be /usr/src/linux-2.4.19/arch/i386/boot/bzImage

Also, if you are going in there with a GUI fileman, try the command line:
cd /usr/src/linux-2.4.19/arch/i386/boot
ls -l (LS -L but lowercase)

And then see if it's there.

HTH

MasterC 08-27-2002 10:52 AM

And if for some odd reason I am correct, and your symlink is wrong, once you get your system running with your new kernel, and everything is cool, change the symlink to fit your new kernel:
ln -sf /usr/src/linux-2.4.19 /usr/src/linux

Cool

celtic32 08-27-2002 11:32 AM

the following files are i the /usr/src/linux-2.4.19/arch/i386/boot

Makefile
bootsect.S
compressed
install.sh
setup.S
tools
video.S

however no bzImage
in the src directory are the following:

kernel
linux-2.4.17
linux-2.4.17.tar.bz2
linux-2.4.19
linux-2.4.19.tar.bz
rock-1.5
rock-src

ps.. thanks for the help

MasterC 08-27-2002 11:36 AM

I have read that some distros when compiling the new kernels automagically move them to their respective directories for you. So bzImage might be /boot already.

How did you run your kernel compile, and what distro do you have?

Oh wait, I am guessing Rock is your distro, never heard of that one...

What is linux-2.4.19.tar.bz ?

And, Hi! Welcome to LQ even though I am ~11 posts late.

And can you also show me what's in your linux-2.4.19 directory? Thanks.

Cool

celtic32 08-27-2002 11:47 AM

compiled using:
make menuconfig
make dep
make clean
make modules
make modules_install
make zImage

contents of linux-2.4.19 directory directory:
COPYING
CREDITS
Documentation
MAINTAINERS
Makefile
REPORTING-BUGS
drivers
init
lib
scripts
Rules.make
fs
ipc
README
arch
include
kernel
mm
net


and finally distribution is linux rock

MasterC 08-27-2002 12:02 PM

You know, I don't see a System.map file in there, which after each kernel compile I have ever done is in the linux-2.4.xx directory.

I do make bzImage, but that shouldn't matter. Are you doing it as root, or does your user have write-ability in those directories. To be safe I'd do it as root.

And I checked out rock a bit just now, it appears to be a developing distro to develop distros. Cool idea!

But being that, it may put the kernel and System.map directly into /boot for you, I am not sure though.

Check that directory and see if it already put it there for you. Did you get your kernel from the kernel.org? And did you get the whole thing (I would assume a yes to both these questions). If so, I have no idea what's going on if none of those other ideas return zilch. Like I said though, try it with root if you aren't already.

Cool

celtic32 08-28-2002 02:29 AM

hay there...
you were right... the System.map file is in /boot

all this has been done as root privilage.
i dont know where the kernel actually came from cause it was already on the machine when I got it.


All times are GMT -5. The time now is 12:04 AM.