LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-25-2013, 11:40 AM   #1
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Rep: Reputation: 6
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?
 
Old 05-25-2013, 11:59 AM   #2
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
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.
 
Old 05-25-2013, 12:05 PM   #3
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
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.
 
Old 05-25-2013, 12:08 PM   #4
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Original Poster
Rep: Reputation: 6
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?
 
Old 05-25-2013, 12:10 PM   #5
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Original Poster
Rep: Reputation: 6
I have looked in the x86 directory, for the x86_64 seems to have never been created!
 
Old 05-25-2013, 12:25 PM   #6
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
It may be helpful to tell us the exact steps you took to compile your kernel.
 
Old 05-25-2013, 03:32 PM   #7
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Original Poster
Rep: Reputation: 6
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.
 
Old 05-25-2013, 03:35 PM   #8
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Original Poster
Rep: Reputation: 6
In the configuring section after the >, it is supposed to say /usr/src/linux/.config, it just did not post previously.
 
Old 05-25-2013, 04:50 PM   #9
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
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".
 
Old 05-25-2013, 04:51 PM   #10
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Original Poster
Rep: Reputation: 6
I did that, but no bzImage!
 
Old 05-25-2013, 04:57 PM   #11
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,503

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

Code:
find . -name bzImage
 
Old 05-25-2013, 04:58 PM   #12
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
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.
 
Old 05-27-2013, 08:17 AM   #13
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by BroX View Post
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.
 
Old 05-27-2013, 08:37 AM   #14
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
Originally Posted by mats_b_tegner View Post
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.
 
Old 05-27-2013, 10:21 AM   #15
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by BroX View Post
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 ...
 
  


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
Custom linux kernel for fedora make bzImage error Aqua_Regia Linux - Newbie 1 12-15-2011 06:05 AM
Cannot make bzImage after compiling 2.6.20.1 kernel athenian200 Linux - Kernel 3 03-03-2007 03:40 AM
Problems compiling kernel 2.6.8.1 (make bzImage) omegaworks Linux - General 3 08-18-2004 06:54 PM
Cannot cp the bzImage. Help plz first time compiling kernel sendas4 Linux - Newbie 6 07-20-2004 12:48 AM
Compiling the kernel...bzImage.. celtic32 Linux - General 11 08-28-2002 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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