Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th September 2007, 07:58 PM
ggeo Offline
Registered User
 
Join Date: Aug 2006
Location: Greece
Posts: 142
Exclamation How can i save my new kernel configuration

Hello

I use fedora 7,KDE
I just modified my kernel (with make menuconfig).

I saved it and at console i wrote :

Quote:
make all modules_install install
and it gave me :


Quote:
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86_64/Kconfig
#
# configuration written to .config
#
CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[1]: *** No rule to make target `missing-syscalls'. Stop.
make: *** [prepare0] Error 2
What i am supposed to do?What command should i use?

Thanks!
Reply With Quote
  #2  
Old 16th September 2007, 12:02 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Here is what you should do.
Make the changes as needed.
Save to a file first.
Then select save
And finally exit.

If you only added things as modules then you can run this command.
make modules
make modules_install
depmod -a

If you removed or added anything to be part of the kernel then you have use this first.
make

make will build the kernel and the modules. make modules_install to install the modules in /lib/`uname -r` and make install to add to grub and created the initrd file. This is my normal step for building kernel in 2.6

make xconfig
make
make module_install
make install

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 16th September 2007, 05:57 PM
ggeo Offline
Registered User
 
Join Date: Aug 2006
Location: Greece
Posts: 142
Hello

I did again my changes to kernel and when i run make it gives me :
Quote:
CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[1]: *** No rule to make target `missing-syscalls'. Stop.
make: *** [prepare0] Error 2
What can i do now?
Thanks!
Reply With Quote
  #4  
Old 16th September 2007, 10:14 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Are you recompiling the existing kernel from the kernel-devel-***.rpm. Fedora pathces the crap out of this kernels. If so I would download a clean kernel from www.kernel.org and build that one.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #5  
Old 16th September 2007, 10:39 PM
ggeo Offline
Registered User
 
Join Date: Aug 2006
Location: Greece
Posts: 142
Hello

I have no idea what to do with the kernel from kernel.org and i think it has a lot of work ?

(I must mention that i did the make menuconfig in /usr/src/kernels/2.6.22.5-76.fc7-x86_64
i suppose its right?)

Thanks
Reply With Quote
  #6  
Old 16th September 2007, 11:16 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
I got the answer I mention from doing a google search on the error you had. Read a couple of the search answers and both mention getting a clean source. You can use the *.config file in /boot and load it first to get a close setup as the current Redhat kernel. Then make the needed changes and build.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #7  
Old 16th September 2007, 11:32 PM
ggeo Offline
Registered User
 
Join Date: Aug 2006
Location: Greece
Posts: 142
Thanks,

I will see what i can do.if i can find sth else..
Reply With Quote
  #8  
Old 17th September 2007, 02:40 PM
ggeo Offline
Registered User
 
Join Date: Aug 2006
Location: Greece
Posts: 142
Hello

I followed the instructions here :http:// fedoraproject.org/wiki/Docs/CustomKernel

and i stuck in the command

Quote:
rpmbuild -bp --target='x86_64' kernel-2.6.spec
It gives me the prompt :
Quote:
-sh-3.2$
If i write it like:
Quote:
rpmbuild -bp --target=x86_64 kernel-2.6.spec
(without the ' ' )
it gives :
Quote:
Building target platforms: x86_64
Building for target x86_64
error: Failed build dependencies:
sparse >= 0.3 is needed by kernel-2.6.22.5-76.fc7.x86_64
It supposes to build the
~/rpmbuild/BUILD/kernel-<version>/linux-<version>.<arch> directory

Thanks

Last edited by ggeo; 17th September 2007 at 04:47 PM.
Reply With Quote
  #9  
Old 17th September 2007, 10:23 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
I never could understand why you would use the src.rpm to build rpm files that already are available.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #10  
Old 18th September 2007, 02:19 PM
ggeo Offline
Registered User
 
Join Date: Aug 2006
Location: Greece
Posts: 142
Hello

I am not familiar with all the kernel thing so i try to do some reading to see what can i do.
And some times i don't know what am i doing..

All i want is load and unload some things from the kernel!
I thought it was simple.

make menuconfig
save
make
make modules_install
make install

and that's it!!

But ..it is not

Quote:
I got the answer I mention from doing a google search on the error you had. Read a couple of the search answers and both mention getting a clean source. You can use the *.config file in /boot and load it first to get a close setup as the current Redhat kernel. Then make the needed changes and build.
I did that but i have the same problem,so i tried to build from src.rpm


Thanks!
Reply With Quote
  #11  
Old 18th September 2007, 10:43 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Out of ideas if a new plain vanilla kernel will not compile.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #12  
Old 22nd September 2007, 10:36 AM
ggeo Offline
Registered User
 
Join Date: Aug 2006
Location: Greece
Posts: 142
Hello

Any ideas ??
Reply With Quote
  #13  
Old 4th October 2007, 07:22 AM
nishantnahsin Offline
Registered User
 
Join Date: Oct 2007
Posts: 1
About compiling fresh kernels

First, thanks for telling me that the kernel-devel and kernel-source packages are useless.

Second building a kernel obtained from kernel.org is relatively straightforward.

THIS is a place that'll give all the required guidance.

Also, the existing kernel is in the form of a bzImage so if you make a bzImage from the kernel source you can pretty much copy paste the bootloader configuration.

best of luck
Reply With Quote
Reply

Tags
configuration, kernel, save

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save Configuration on Logoff egurski Using Fedora 2 30th March 2006 05:34 PM
How can i save the old kernel setting? webeye Using Fedora 1 2nd September 2005 11:59 AM
Is it save to update kernel from up2date? marlor Using Fedora 1 7th February 2005 12:59 PM
kernel configuration melgrim Using Fedora 12 26th May 2004 08:02 PM


Current GMT-time: 17:40 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat