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

15th September 2007, 07:58 PM
|
|
Registered User
|
|
Join Date: Aug 2006
Location: Greece
Posts: 142

|
|
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!
|

16th September 2007, 12:02 AM
|
 |
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.
|

16th September 2007, 05:57 PM
|
|
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!
|

16th September 2007, 10:14 PM
|
 |
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.
|

16th September 2007, 10:39 PM
|
|
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
|

16th September 2007, 11:16 PM
|
 |
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.
|

16th September 2007, 11:32 PM
|
|
Registered User
|
|
Join Date: Aug 2006
Location: Greece
Posts: 142

|
|
|
Thanks,
I will see what i can do.if i can find sth else..
|

17th September 2007, 02:40 PM
|
|
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 :
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.
|

17th September 2007, 10:23 PM
|
 |
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.
|

18th September 2007, 02:19 PM
|
|
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!
|

18th September 2007, 10:43 PM
|
 |
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.
|

22nd September 2007, 10:36 AM
|
|
Registered User
|
|
Join Date: Aug 2006
Location: Greece
Posts: 142

|
|
|
Hello
Any ideas ??
|

4th October 2007, 07:22 AM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 17:40 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|