Chinaunix首页 | 论坛 | 博客
  • 博客访问: 530980
  • 博文数量: 116
  • 博客积分: 2063
  • 博客等级: 大尉
  • 技术积分: 1174
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-26 16:44
个人简介

none

文章分类

全部博文(116)

文章存档

2023年(2)

2020年(3)

2019年(4)

2018年(7)

2017年(6)

2016年(17)

2015年(13)

2014年(19)

2013年(6)

2012年(13)

2011年(5)

2010年(11)

2008年(10)

分类: 嵌入式

2015-01-20 08:58:23

############################# 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
阅读(6534) | 评论(0) | 转发(0) |
0

上一篇:Extremely-minimal systems

下一篇:SHELL TEMP

给主人留下些什么吧!~~