LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-03-2004, 07:35 AM   #1
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Rep: Reputation: 31
Question kernel prob


i compiled kernel2.6.3 on fedora core 1...my machine booted into the new kernel..however the graphicl mode did not come up..it said unable to start Xserver...kindly tell what do i have to do
 
Old 10-03-2004, 08:25 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

are u sure that u had the graphical support for ur graphics card compiled in to ur kernel

u should build ur kernel from the config file of a working kernel so that u do not miss out on important things like u have done this time
i too have domne this way
u can find rpms pf the kernel from

http://people.redhat.com/arjanv/2.6

if the kernel from this rpm works fine then use these kernel's config file for ur kernel and make changes accordingly

regards
 
Old 10-03-2004, 08:41 PM   #3
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
i had opened the config file of kernel 2.4.xxx.xxx.nptl of fedora core 1 ..but it was quite different from that of kernel 2.6.xxx ...can u tell where can i get a copy of working kernel 2.6.xx on the net.......
 
Old 10-03-2004, 08:59 PM   #4
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
If you use a .config from an older kernel you should always make sure to run 'make oldconig'.

As for your problem, all you need to do is re-install the video drivers (ati or nvidia or whatever). If you normally don't install video drivers, then chances are you missed it in your config file for your kernel. Run 'make xconfig' and make sure to enable the proper video driver.
 
Old 10-04-2004, 03:22 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by ankscorek
i had opened the config file of kernel 2.4.xxx.xxx.nptl of fedora core 1 ..but it was quite different from that of kernel 2.6.xxx ...can u tell where can i get a copy of working kernel 2.6.xx on the net.......
hi there

u can get the rpm of the 2.6 kernel fron the link i gave u
install that kernel an then see if that kernel works
then u wil get a .config file for that kernel in ur /boot
use that as ur bulding block

regards
 
Old 10-04-2004, 06:06 AM   #6
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
thank u guys for your help

1. i am using an intel graphic card
2. also i was told by some people that after u recompile your kernel Xserver doesnot true..is it a myth or truth? if true then how do i go about starting the Xserver?
3. moreover is a copy of config file available on net for 2.6.3
4. running make oldconfig will it copy my older kernel config files onto my new kernel???
 
Old 10-04-2004, 08:26 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

X server will surely start if u have proper graphics card support
and there is no config file for 2.6.3
it will have a configuration to suoport
that is the reason i am telling u to see if the kernel rpm from above links work then u can use that config file
what is the point if u get a config file,build a kernel on that and then too ur system does not work??

regards
 
Old 10-05-2004, 02:41 AM   #8
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
the thing is i have already compiled the kernel and my graphic card was being supported by kernel--2.4.xxx.nptl.....moeover do i run make oldconfig command before making the image of the kernel???????
 
Old 10-05-2004, 06:11 AM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

make oldconfig is required where u want to build upon the the older config file u have
it will take the options that u had in ur older config file and ask u about the new options only
in case of going from 2.4---2.6 if u use 2.4 config file for 2.6 then u will be aksed about many questions since there are a lots of changes in 2.6 from 2.4

so u need to run one from make config,make xconfig or make oldconfig according to ur choide

regards
 
Old 10-06-2004, 06:18 AM   #10
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
STEP 1:

Download the latest version of the kernel and any patches.
This documentation is done with linux-2.6.3, but look for
later versions.
http://www.kernel.org/pub/linux/kernel/v2.6/

Also take a look at
http://www.codemonkey.org.uk/post-halloween-2.5.txt

This has some useful hints on some of the changes needed.



STEP 2:

Download the latest version of module-init-tools
"module-init-tools-3.0.tar.gz" and
"modutils-2.4.21-23.src.rpm"

http://www.kernel.org/pub/linux/kern...ols-3.0.tar.gz
http://www.kernel.org/pub/linux/kern....21-23.src.rpm



STEP 3:

Install module-init-tools. This will replace depmod
[/sbin/depmod] and other tools.

tar -zxvf module-init-tools-3.0.tar.gz
cd module-init-tools-3.0
./configure --prefix=/sbin
make
make install
./generate-modprobe.conf /etc/modprobe.conf



STEP 4:

Install modutils-2.4.21-23.src.rpm. You may get warnings
about user rusty and group rusty not existing. Also, yes,
you'll have to force the install. If you don't do these steps
for both Redhat 9 and Redhat 8, you'll have problems with the
make modules_install.

rpm -i modutils-2.4.21-23.src.rpm
rpmbuild -bb /usr/src/redhat/SPECS/modutils.spec
rpm -Fi /usr/src/redhat/RPMS/i386/modutils-2.4.21-23.i386.rpm



STEP 5:

Install and configure the kernel. Do NOT use the /usr/src/linux
area! Reference the README. I put my files in /home/src/kernel/

gunzip linux-2.6.3.tar.gz tar -xvf linux-2.6.3.tar cd
linux-2.6.3

If you have patches install these now:

bzip2 -dc ../patch-2.6.xx.bz2 | patch -p1



STEP 6:

Copy the appropriate /usr/src/linux-2.4/configs
[kernel-2.4.20-i686.config, kernel-2.4.20-i686-smp.config]
to .config in whatever directory you are installing. In my
case it's /home/src/kernel/linux-2.6.3

cp /usr/src/linux-2.4/configs/kernel-2.4.20-i686.config \
/home/src/kernel/linux-2.6.3/.config

If you don't have the source configs, you can download them
from here:

https://sourceforge.net/project/show...kage_id=109944

I've also included a file config2.6-chirico which was a 2.6
version for some of my systems. This isn't a bad reference if
you run into trouble.



STEP 7:

Assuming you copied the appropriate kernel-2.4 config to
.config, run the following which will run through necessary
questions for the 2.6 kernel. Or, you might want to use the
config2.6-chirico...this has already been run through make
oldconfig on my system, and I've answered the necessary questions
for a general system.

make oldconfig



STEP 8:

This is very important. Make sure you're .config has the
following in it CONFIG_EXT3_FS=y You'll run into the following
error if you leave this =m instead of =y:

pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed

This is because Redhat 9.0 and 8.0 use the ext3 filesystem
for /boot ...



STEP 9:

Edit the Makefile and add changes to the Extraversion as desired.
Patches will update these values as well.

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 3
EXTRAVERSION = -skim-ch6



STEP 10:

make bzImage



STEP 11:

make modules



STEP 12:

make modules_install



STEP 13:

make install

If you come across errors here, what version of "depmod" is
being picked up in your path?

Also, if you get a module not found, say the following:
No module aic7xxx found for kernel 2.6.x
Then, in /lib/modules/2.6.x/kernel/drivers/scsi/aic7xxx/
cp aic7xxx.ko aic7xxx.o

insmod should look for aic7xxx.ko ;but , it looks for aic7xxx.o

If you still have trouble, make the following change in the
.config
CONFIG_BLK_DEV_SD=y
and go back to STEP 10.

You also may want to ref
kernel-2.6.3-i686-smp-chirico-aic7xxx.config
in
http://prdownloads.sourceforge.net/s...ar.gz?download



STEP 14:

mkdir /sys



STEP 15:

/etc/rc.sysinit needs to be modified. Look for the following
line:

action $"Mounting proc filesystem: " mount -n -t proc /proc /proc

and after this line enter the following:

action $"Mounting sysfs filesystem: " mount -t sysfs none /sys

Here's my /etc/rc.sysinit for reference:

http://prdownloads.sourceforge.net/s...t.txt?download



Be very careful at this step. Backup the /etc/rc.sysinit file.

Thomer [http://thomer.com/linux/migrate-to-2.6.html ] also added
changes to /etc/fstab. I only had to do STEP 16 below.



STEP 16:

Add the following to /etc/fstab for usb support.

/proc/bus/usb /proc/bus/usb usbdevfs defaults 0 0



STEP 17 (CHECKING EVERYTHING):

Check the following:

a. The new image file should be installed on boot and there
should be sym link to it. My latest kernel is 2.6.3-skim-ch6,
and I got the "-skim-ch6" from the values I put in the Makefile,
so I see the following:

_________________________________________________________________
i m using this paper and also the config filegiven in this paper.im using Fedora Core1 and i have come up till step 14 and can't move ahead of ot coz can't locate step 15
 
Old 10-06-2004, 11:03 AM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

u have posted a very detailed method of compiling a kernel
i have too found some usefull links from above
so did this help u out?

regards
 
Old 10-06-2004, 08:14 PM   #12
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
i have reached step 14 of the above post ..i have got stuck up at step 15 as i am unable to find the line in
/etc/rc.sysinit ..i presume the above post is for RH8/9 but i am using Fedora Core 1.....i am using the same config file as i being used in the post.....i wish to proceed ahead of step 14..can u guide me.....
 
Old 10-06-2004, 10:05 PM   #13
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there
honestly i have compiled my kernel a lot of times but i have never gone through step 14
i am running fedora core 2 which had 2.6.3 kernel installed so i think the name of the modules which had changed from 2.4 to 2.6 had been incoroporated in that

i will again look into the step 14 and see if i require that

regards
 
Old 10-07-2004, 07:30 PM   #14
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
well i had figured it out the steps 14 to 17 are not required..as the usb bus is already mounted at fedora core 1..
the only problem i am facing is how do i get my kernel working in graphical mode......
i made the entries in vi etc/grub/sysconfig for the new kernel....
but it is only giving me kernel panic
thn i made entries in /boot/grub/grub.conf...the kernel booted but no graphical mode....
now waht to do?
i am using the same config file as in the paper
 
Old 10-07-2004, 10:32 PM   #15
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

ok so can u again give me ur config
which graphics card,motherboard etc etc
i will try to see whcih module is required for u

regards
 
  


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
Boot from cd, kernel prob Wozl SUSE / openSUSE 3 02-17-2005 02:33 AM
kernel sources compilation prob. rooman Linux - Software 5 10-01-2004 03:34 PM
cdrecord prob with kernel 2.6?! overlord73 Linux - Software 0 06-29-2004 08:09 AM
RH kernel compile prob enine Red Hat 2 11-19-2003 07:58 PM
modules prob after kernel update CycloneInDC Linux - Hardware 6 11-14-2003 05:35 PM

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

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