LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   compiling a custom kernel -- no bzImage file (http://www.linuxquestions.org/questions/slackware-14/compiling-a-custom-kernel-no-bzimage-file-4175463421/)

13stein.j 05-25-2013 11:40 AM

compiling a custom kernel -- no bzImage file
 
When compiling the 3.9.3 kernel, when i get up to the make bzImage or make all && make modules_install, there is no bzImage file that I can copy to the boot directory as vmlinuz. Any suggestions other than don't do it?

yenn 05-25-2013 11:59 AM

Did you read this (http://docs.slackware.com/howtos:slackware_admin:kernelbuilding?s[]=kernel#building_your_kernel)?

BzImage is there, just not where you expect it to be. Look into <kernel-src>/arch/x86/boot/ and it should be there.

BroX 05-25-2013 12:05 PM

Where did you look for the file?

It should be
Code:

linux-3.9.3/arch/x86/boot/bzImage
or
Code:

linux-3.9.3/arch/x86_64/boot/bzImage
if you have a 64-bit system.

13stein.j 05-25-2013 12:08 PM

I know, that is where I am looking! I have tried to compile several times though, and each time, different files are added, and I know this because as a test, I mapped the virtual drive to my windows host and checked using the tree command. So do I just have to keep doing it again and again until it is created?

13stein.j 05-25-2013 12:10 PM

I have looked in the x86 directory, for the x86_64 seems to have never been created!

BroX 05-25-2013 12:25 PM

It may be helpful to tell us the exact steps you took to compile your kernel.

13stein.j 05-25-2013 03:32 PM

1
bash-# cd /usr/src
bash-# rm linux
bash-# wget http://www.kernel.org/pub/linux/kern...x-3.9.3.tar.xz
2. Extracting
3. Linking
bash-# ln -s linux-3.2.2 linux
4. Configuring
bash-# cd linux
bash-# zcat /proc/config.gz >
bash-# make oldconfig
bash-# make xconfig
I choose 64-bit, and my other settings according to my needs
4a. Building the kernel
bash-# make bzImage
bash-# make modules
bash-# make modules_install
_____________________________________or
4b. Building the kernel
bash-# make all && make modules_install
-----------------------------------------
At which point I am to use the cp arch/x86_64/boot/bzImage /boot/vmlinuz-3.9.3 command, but I check first, there is no x86_64 directory, and if I check the x86 directory, there are two folders, one named compressed, the other named uncompressed, and object, source, and command files in the .cmd format, each cmd for each .o and I am not sure if it is the same for the source, I an posting this from a bus and recalling all this from memory. The point is-- no bzImage file, and I check with the command find bzImage, and nothing is found. If I use that copy command, or the same one but with x86 instead of x86_64, the terminal replies that the file or directory does not exist.

13stein.j 05-25-2013 03:35 PM

In the configuring section after the >, it is supposed to say /usr/src/linux/.config, it just did not post previously.

TommyC7 05-25-2013 04:50 PM

The .config file in /usr/src is the configuration file for the Linux kernel.

After you have it and it's set the way you want, just run "make && make modules_install".

13stein.j 05-25-2013 04:51 PM

I did that, but no bzImage!

volkerdi 05-25-2013 04:57 PM

If "make bzImage" didn't fail, you should have one in there. Try this:

Code:

find . -name bzImage

BroX 05-25-2013 04:58 PM

Are you sure the build process finishes without any errors?

I assume your link was a typo:
Code:

bash-# wget http://www.kernel.org/pub/linux/kern...x-3.9.3.tar.xz
2. Extracting
3. Linking
bash-# ln -s linux-3.2.2 linux

If so then I hope some one will come along because I do not see what is wrong.

mats_b_tegner 05-27-2013 08:17 AM

Quote:

Originally Posted by BroX (Post 4958777)
Where did you look for the file?

It should be
Code:

linux-3.9.3/arch/x86/boot/bzImage
or
Code:

linux-3.9.3/arch/x86_64/boot/bzImage
if you have a 64-bit system.

Wrong. It's in /arch/x86/boot on a 64-bit system as well.

BroX 05-27-2013 08:37 AM

Quote:

Originally Posted by mats_b_tegner (Post 4959817)
Wrong. It's in /arch/x86/boot on a 64-bit system as well.

Thanks for correcting. Indeed, /arch/x86_64/boot/bzImage is just a link.

13stein.j 05-27-2013 10:21 AM

Quote:

Originally Posted by BroX (Post 4958894)
Are you sure the build process finishes without any errors?

I assume your link was a typo:
Code:

bash-# wget http://www.kernel.org/pub/linux/kern...x-3.9.3.tar.xz
2. Extracting
3. Linking
bash-# ln -s linux-3.2.2 linux

If so then I hope some one will come along because I do not see what is wrong.

There is no typo, if you click the link, it downloads, it' just that it is to long for the post so it showes up as ...


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