LinuxQuestions.org
Visit Jeremy's Blog.
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 06-22-2005, 05:35 PM   #1
McBrain
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Rep: Reputation: 15
Kernel recompile using rpms (FC4)


Hi there,

as FC4 (I think true for any FC) does not come with NTFS support. As I have a NTFS partition on my PC, I need to recompile the kernel. I know how to do it the 'dirty way', but I would like to do it the distro compliant way.......

Here what I thought I need to do (as I am writing this, you can assume it is not working :-)):
Download the kernel.src.rpm and install it
Changing the SPEC flie slightly (disabeling the smp and xen kernel)
rpmbuild -bp --target i686 <spec-file>
go to the source path 'make gconfig' and configure the kernel the way I need
make bzImage
make modules
rpmbuild -bi --short-circuit --target .....
and than the command to build the actual rpm (not sure about this as I never reached this!

Doing the rpmbuild -bi gives me error messages:

Building target platforms: i686
Building for target i686
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.44076
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd kernel-2.6.11
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd linux-2.6.11
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/kernel-2.6.11
0 blocks
find: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/usr/lib: No such file or directory
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: kernel-2.6.11-1.1369_FC4.root
Fehler: File not found by glob: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/boot/*-2.6.11-1.1369_FC4.root
Fehler: File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/boot/System.map-2.6.11-1.1369_FC4.root
Fehler: File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/boot/config-2.6.11-1.1369_FC4.root
Fehler: File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/lib/modules/2.6.11-1.1369_FC4.root
Fehler: File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/lib/modules/2.6.11-1.1369_FC4.root/kernel
Fehler: File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/lib/modules/2.6.11-1.1369_FC4.root/build
Fehler: File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/lib/modules/2.6.11-1.1369_FC4.root/source
Processing files: kernel-devel-2.6.11-1.1369_FC4.root
Fehler: File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/usr/src/kernels/2.6.11-1.1369_FC4.root-i686
Processing files: kernel-debuginfo-2.6.11-1.1369_FC4.root


RPM build errors:
File not found by glob: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/boot/*-2.6.11-1.1369_FC4.root
File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/boot/System.map-2.6.11-1.1369_FC4.root
File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/boot/config-2.6.11-1.1369_FC4.root
File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/lib/modules/2.6.11-1.1369_FC4.root
File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/lib/modules/2.6.11-1.1369_FC4.root/kernel
File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/lib/modules/2.6.11-1.1369_FC4.root/build
File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/lib/modules/2.6.11-1.1369_FC4.root/source
File not found: /var/tmp/kernel-2.6.11-1.1369_FC4.root-root/usr/src/kernels/2.6.11-1.1369_FC4.root-i686

Any ideas? (For sure I just could do the make install, but that would be the dirty way, isn't it :-))

Regards
McBrain
 
Old 06-23-2005, 05:44 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
i would suggest an easy way out

linux-ntfs.sourceforge.net

regards
 
Old 06-24-2005, 04:13 AM   #3
McBrain
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Original Poster
Rep: Reputation: 15
I think that is the current kernel driver. So if I want to mount a NTFS file system, I need to change the kernel!

But anyhow, I know how to solve THAT problem, I was more interested in understanding what is the way to recompile the kernel using the rpmbuild command, but still customize the kernel!

Thanks & regards
McBrain
 
Old 06-24-2005, 04:58 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
no that ntfs module can be included in ur present kernel

also after u inastall the kernel source,then to compile that is same as compiing a normal kernel
u should use the rpm build command after u are sure that the kernel u compiled is fine 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
Installing RPMs in FC4 subhamay Fedora 4 10-15-2005 11:20 PM
RPMs - FC4 v. RHEL4 logosys Linux - Newbie 1 10-02-2005 06:25 PM
Kernel panic after recompile in FC4 litlmary Fedora 3 07-28-2005 06:17 PM
recompile kernel laurentwahl Linux - Software 5 06-02-2005 02:27 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM

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

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