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