LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-18-2004, 01:17 AM   #1
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Rep: Reputation: 30
kernel setup problem, "make mrproper"


I had tried to download and install the latest kernel linux-2.6.8.1, but seems having some problems in the middle of the setup for me.

Code:
[root@localhost linux-2.6.8.1]#  make O=/home/eugene/build/kernel
  Using /usr/src/linux-2.6.8.1 as source for kernel
  CHK     include/linux/version.h
  SYMLINK include/asm -> include/asm-i386
  HOSTCC  -fPIC scripts/kconfig/zconf.tab.o
gcc: /usr/src/linux-2.6.8.1/scripts/kconfig/zconf.tab.c: No such file or directory
gcc: no input files
make[3]: *** [scripts/kconfig/zconf.tab.o] Error 1
make[2]: *** [silentoldconfig] Error 2
make[1]: *** [include/linux/autoconf.h] Error 2
make: *** [_all] Error 2
Can i know what is going on? Anyone knows please help...

Any resource or reference for the kernel setup or installation? I am using fedora core 2 with kernel 2.6.5-1.358 and planning to update to linux-2.6.8.1

Thank you.....
 
Old 10-18-2004, 08:11 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

The usual procedure for compiling is:
Code:
make mrproper
make xconfig (or you can copy the .config file from the old kernel source directory and do 'make oldconfig' instead)
make bzImage
make modules
make modules_install
Then you have to copy the new kernel and System.map to /boot and change your bootloader configuration to load the new kerel.

Dave
 
Old 10-18-2004, 10:04 AM   #3
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
Thank You for the help, i had reach the last step.

Can i know where to change the bootloader configuration to load the new kerel?

Anyone knows please help............
 
Old 10-18-2004, 10:17 AM   #4
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
# make install

That should do the copying and updating the grub.conf automagically.
 
Old 10-18-2004, 10:58 AM   #5
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Actually, I'd advise doing 'make rpmbin-pkg' instead of 'make install'. The rpm one will create a kernel-xxxxx.rpm rpm in /usr/src/redhat/RPMS/i386/ which you can install with 'rpm -ivh kernel-xxxxx.rpm'.

Doing it this way will save a lot of hassle when upgrading other rpms which depend directly on the kernel. Installing the rpm will also edit grub.conf etc.

Dave
 
Old 10-18-2004, 11:02 AM   #6
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
I had tried but comes out this error. I had found, there is no make file around the folder
Where should i use the command "make install" in this situation?

Code:
[root@localhost grub]# make install
make: *** No rule to make target `install'.  Stop.
what should edit in the grub.conf file?

Current grub.conf
--------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdb3
# initrd /initrd-version.img
#boot=/dev/hdb
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img

All file had in my /boot folder
----------------------------------------
-rw-r--r-- 1 root root 46375 May 8 21:21 config-2.6.5-1.358
drwxr-xr-x 2 root root 1024 Oct 18 23:59 grub
-rw-r--r-- 1 root root 193139 Sep 22 05:06 initrd-2.6.5-1.358.img
drwx------ 2 root root 12288 Sep 22 13:03 lost+found
-rw-r--r-- 1 root root 610658 Oct 18 23:00 System.map
-rw-r--r-- 1 root root 239593 May 8 21:21 System.map-2.6.5-1.358
-rw-r--r-- 1 root root 1199031 May 8 21:21 vmlinuz-2.6.5-1.358

What is the main steps i need to do now with the bootloader? I think had install the latest kernel but i guess still need to change the the kernel version fot boot up the OS

Code:
[root@localhost boot]# uname -r
2.6.5-1.358
Anyone knows please help, thank you.............
 
Old 10-18-2004, 01:02 PM   #7
dwarf007
Member
 
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
I think i got it the kernal update already. When startup the OS, now i get 2 choice for my kernel., the older and the new version kernel.

Code:
[root@localhost eugene]# uname -r
2.6.8.1-MyKernel
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdb3
# initrd /initrd-version.img
#boot=/dev/hdb
default=0
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.8.1-MyKernel)
root (hd0,0)
kernel /vmlinuz-2.6.8.1-MyKernel ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.8.1-MyKernel.img

title Fedora Core (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img

-------------------------------------------------------------------------------
Thank You so much for the help guys : )
 
  


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
problem while "make" kernel Yoyo302 Linux From Scratch 8 10-31-2011 05:26 AM
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
How to make a "setup.exe" mcm1738 Linux - Software 17 04-14-2005 12:26 PM
Compiling the kernel: error with "make mrproper" dominik81 Linux - Newbie 1 06-10-2004 02:06 PM

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

All times are GMT -5. The time now is 06:34 PM.

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