LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-13-2007, 12:10 AM   #1
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
Kernel 2.6.22 compilation problem


Hi all,
I never did a kernel compilation before until yesterday and I want to install the kernel 2.6.22 in the RHEL3 having 2.4.21-4.EL.
But every documents I came along as my guide to compile the kernel there was an indication of configs folder but I was unable to find any after untaring the new kernel.

step1:
I downloaded the kernel-2.6.22,copied and untar it in
/usr/src/linux-2.6.22.
step:2
I then Edited the Makefile and added the EXTRAVERSION and saved the file.
step3:
To copy the /usr/src/linux-2.6.22/configs/kernel-...config to /usr/src/linux-2.6.22/.config

But, I didn't find any configs folder in there. Not even in then kernel folder.

please guide me on this.

Last edited by tanveer; 07-13-2007 at 12:11 AM.
 
Old 07-13-2007, 12:17 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
There isn't a "configs" directory. You just do a "make menuconfig" (or "make gconfig", etc) in the directory you extracted the source to.

I don't think it's wise to copy your 2.4 config and use that as a base for a 2.6 one, if that's what you're thinking of doing. I'm not sure it would even work :/.
 
Old 07-13-2007, 06:22 PM   #3
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
It will work, I've done it when switching from a 2.4 to 2.6 in Slackware.
 
Old 07-15-2007, 11:54 AM   #4
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
It gives me this error now;
Code:
[root@server linux-2.6.22]# make menuconfig
[root@server linux-2.6.22]# make bzImage	
[root@server linux-2.6.22]# cd arch/i386/boot/
[root@server linux-2.6.22]# cd /boot
[root@server linux-2.6.22]# cp /usr/src/linux-2.6.22/arch/i386/boot/bzImage vmlinuz_2.6.22_DCS
[root@server linux-2.6.22]# cp /usr/src/linux-2.6.22/System.map System.map-2.6.22_DCS
[root@server linux-2.6.22]# make modules
[root@server linux-2.6.22]# make modules install
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  MODPOST vmlinux
WARNING: arch/i386/kernel/built-in.o(.data+0x2158): Section mismatch: reference to .init.text: (between 'thermal_throttle_cpu_notifier' and 'mtrr_mutex')
WARNING: kernel/built-in.o(.text+0x12f4d): Section mismatch: reference to .init.text: (between 'kthreadd' and 'init_waitqueue_head')
  Building modules, stage 2.
  MODPOST 683 modules
WARNING: drivers/atm/lanai.o(.text+0x171): Section mismatch: reference to .init.text: (between 'sram_test_pass' and 'sram_test_and_clear')
WARNING: drivers/net/sis900.o(.text+0x4d1): Section mismatch: reference to .init.text:sis900_mii_probe (between 'sis900_probe' and 'sis900_default_phy')
WARNING: drivers/net/sunhme.o(.text+0x28b3): Section mismatch: reference to .init.text: (between 'happy_meal_pci_probe' and 'happy_meal_pci_remove')
WARNING: drivers/net/tokenring/3c359.o(.text+0x206): Section mismatch: reference to .init.text:xl_init (between 'xl_probe' and 'xl_hw_reset')sh /usr/src/linux-2.6.22/arch/i386/boot/install.sh 2.6.22 arch/i386/boot/bzImage System.map "/boot"
WARNING: Couldn't open directory /lib/modules/2.6.22: No such file or directory
FATAL: Could not open /lib/modules/2.6.22/modules.dep.temp for writing: No such file or directory
/lib/modules/2.6.22 is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
 
Old 07-22-2007, 12:51 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
To install the modules, it's "make modules_install" (note the underscore).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.6.9 compilation problem Dhaval_Gajjar Linux - Distributions 3 01-25-2007 05:44 AM
kernel compilation problem amw2320 Linux - Kernel 2 09-07-2006 02:39 PM
kernel compilation problem vishalbutte Programming 6 02-07-2006 10:55 PM
problem during kernel compilation!! vishamr2000 Linux - General 6 11-21-2005 05:08 AM
Problem after 2.6.3 kernel compilation frzburn Linux - General 3 03-11-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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