Zedboard Kernel header file analysis of various problems

Source: Internet
Author: User

Replace kernel version

The original kernel version of Digilent was linux-3.3-digilent changed to 3.3.0-xillinux-1.0-rich+

Reference: Http://xillybus.com/xillinux-rich-kernel

Error tip: Disagrees about VERSION of SYMBOL module_layout, workaround

Description of the problem see: http://www.ibm.com/developerworks/cn/linux/l-cn-kernelmodules/

Reference: http://www.cnblogs.com/yzwd/archive/2013/03/27/2985086.html

Machine: Ubuntu 12

Problem Description: Error when compiling module: -1 Invalid module format

by command:

DMESG

Discover the reason is actually: disagrees about version of the symbol Module_layout

Workaround:

1. First check the currently installed kernel version

Uname-r

2. Check the kernel source path specified in the makefile, and modify the correct path. Ensure that the version number is consistent.

Linux_kernel_path:=/usr/src/kernels/2.6.32-358.2.1.el6.x86_64

2.1. If there is no source code for the currently installed kernel in the/usr/src/directory, download a recompile.

2.1.1 under Ubuntu Execute command:

1 sudo apt-get install Linux-source

Execute commands under CentOS and ret hat:

1 Yum Install Kernel-devel

2.1.2 The above command is completed, the installation source code can be found in the/USR/SRC directory. For Ubuntu, because the source code is downloaded, it has to be compiled.

Execute commands in the source directory (it takes about 30 minutes to compile):

Make

3. Recompile the installation.

Cause: Makefile Set Kernel source path error, not the same as the current kernel version, resulting in version verification does not pass, unable to install.

Zedboard Kernel header file analysis of various problems

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.