############################# command in HISI BOARD #############################
#
# insmod hiuser.ko
hiuser: version magic '3.0.8 SMP mod_unload ARMv7 ' should be '3.0.8 SMP ARMv7 '
insmod: can't insert 'hiuser.ko': invalid module format
#
#
############################# command in COMPILING LINUX PC #####################
#
[root@localhost linux-3.0.y_hi3531_1.0.A.0]# modinfo ko/hiuser.ko
filename: ko/hiuser.ko
author: Hisilicon
license: GPL
depends:
vermagic: 3.0.8 SMP mod_unload ARMv7
[root@localhost linux-3.0.y_hi3531_1.0.A.0]#
[root@localhost linux-3.0.y_hi3531_1.0.A.0]# cat include/linux/vermagic.h
#include
#include
/* Simply sanity version stamp for modules. */
#ifdef CONFIG_SMP
#define MODULE_VERMAGIC_SMP "SMP "
#else
#define MODULE_VERMAGIC_SMP ""
#endif
#ifdef CONFIG_PREEMPT
#define MODULE_VERMAGIC_PREEMPT "preempt "
#else
#define MODULE_VERMAGIC_PREEMPT ""
#endif
#ifdef CONFIG_MODULE_UNLOAD
#define MODULE_VERMAGIC_MODULE_UNLOAD "mod_unload "
#else
#define MODULE_VERMAGIC_MODULE_UNLOAD ""
#endif
#ifdef CONFIG_MODVERSIONS
#define MODULE_VERMAGIC_MODVERSIONS "modversions "
#else
#define MODULE_VERMAGIC_MODVERSIONS ""
#endif
#ifndef MODULE_ARCH_VERMAGIC
#define MODULE_ARCH_VERMAGIC ""
#endif
#define VERMAGIC_STRING \
UTS_RELEASE " " \
MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT \
MODULE_VERMAGIC_MODULE_UNLOAD MODULE_VERMAGIC_MODVERSIONS \
MODULE_ARCH_VERMAGIC
[root@localhost linux-3.0.y_hi3531_1.0.A.0]#
[root@localhost linux-3.0.y_hi3531_1.0.A.0]# cat .config | grep "CONFIG_MODULE_UNLOAD"
# CONFIG_MODULE_UNLOAD is not set
[root@localhost linux-3.0.y_hi3531_1.0.A.0]#
linux kernel without CONFIG_UNIX enable will got follow error
# CONFIG_UNIX is not set
open sys: No such file or directory
open err: No such file or directory
阅读(6829) | 评论(0) | 转发(0) |