Installation Process and Problem Analysis of kernel-2.6.32-431.el6.src.rpm kernel source code

Source: Internet
Author: User

1. Install the kernel source code package:. SRC. rpm and. RPM packages have different installation methods. You can use rpm-qpl to query RPM content.

# Rpm-IVH kernel-2.6.32-431.el6.src.rpm

Warning: User mockbuild does not exist-using root

Warning: group mockbuild does not exist-using root

Ignore directly.

Ii. kernel source code is not generated in/usr/src for the following reasons:

The. SRC. RPM installation package will generate rpmbuild in the/root directory, which contains two directories: Sources and specs.

Source. Decompress the package to the/usr/src directory.

3. Install ncurses-devel gcc

4. Start running the make menuconfig configuration.

Remove wireless and infrared

V. Start Compilation: Make

Crypto/Signature/ksign-publickey.c: 2: 17: Error: Key. h: no such file or directory

Crypto/Signature/ksign-publickey.c: In function 'ksign _ init ':

Crypto/Signature/ksign-publickey.c: 10: Error: 'ksign _ def_public_key 'undeclared (first use in this function)

Crypto/Signature/ksign-publickey.c: 10: Error: (each undeclared identifier is reported only once

Crypto/Signature/ksign-publickey.c: 10: Error: for each function it appears in .)

Crypto/Signature/ksign-publickey.c: 11: Error: 'ksign _ def_public_key_size 'undeclared (first use in this function)

Make [2]: **** [crypto/Signature/ksign-publickey.o] Error 1

Make [1]: *** [crypto/Signature] Error 2

Make: *** [crypto] Error 2


Solution:

Run make menuconfig.

1) Select "enable loadable module support", then "module signature verification (experimental)". disable it.

2) then go back to the main menu, select "cryptographic API" then "in-kernel signature Checker (experimental)" and disable that one too.

Then go back again, save your Config and make your kernel. At least, it will pass this phase successfully.


6. Re-compile: Make

Net/wireless/wext-priv.c: In function 'ioctl _ private_call ':

Net/wireless/wext-priv.c: 207: Error: Implicit declaration of function 'call _ commit_handler'


Solution:

Drivers/NET/wireless/kconfig

Menuconfig WLAN

Bool "Wireless LAN"

Depends on! S390

+ Depends on Net


Installation Process and Problem Analysis of kernel-2.6.32-431.el6.src.rpm kernel source code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.