LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 902|回复: 2

Intel PCI Modem 驱动编译错误?

[复制链接]
发表于 2006-8-21 16:25:35 | 显示全部楼层 |阅读模式
新买intel芯片 536ep内置猫一只。
从intel网站下载的驱动,编译错误,一下是错误输出:

   Module precompile check
   Current running kernel is: 2.6.15.7
   /lib/modules...   autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
   autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
   version.h matches running kernel
uname -r|grep "2.6" && \
        cd coredrv && make 536core_26 && \
        cp Intel536.ko .. && cd .. && \
        strip --strip-debug Intel536.ko && \
        exit; \
        ls Intel536.ko >/dev/null 2>&1 ||  uname -r | grep "2.6" && echo "Failed to build driver" && exit; \
        if [  ]; then \
        cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "STN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
        else \
        cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \
       "STN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
        fi ; \
        cp Intel536.o .. ; \
        if [ -a /boot/vmlinuz.version.h ]; then \
        cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\
        fi
2.6.15.7
make[1]: Entering directory `/root/modem/intel/Intel-536/coredrv'
make -C /lib/modules/2.6.15.7/build SUBDIRS=/root/modem/intel/Intel-536/coredrv modules
make[2]: Entering directory `/usr/src/linux-2.6.15.7'
  CC [M]  /root/modem/intel/Intel-536/coredrv/coredrv.o
/root/modem/intel/Intel-536/coredrv/coredrv.c:73: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_NOVERS'
/root/modem/intel/Intel-536/coredrv/coredrv.c:73: warning: parameter names (without types) in function declaration
/root/modem/intel/Intel-536/coredrv/coredrv.c:73: warning: data definition has no type or storage class
/root/modem/intel/Intel-536/coredrv/coredrv.c: In function 'softcore_init_struct':
/root/modem/intel/Intel-536/coredrv/coredrv.c:339: warning: assignment from incompatible pointer type
/root/modem/intel/Intel-536/coredrv/coredrv.c: In function 'close':
/root/modem/intel/Intel-536/coredrv/coredrv.c:439: warning: implicit declaration of function 'pm_unregister'
/root/modem/intel/Intel-536/coredrv/coredrv.c: In function 'hamproc_write':
/root/modem/intel/Intel-536/coredrv/coredrv.c:684: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result
/root/modem/intel/Intel-536/coredrv/coredrv.c: At top level:
/root/modem/intel/Intel-536/coredrv/coredrv.c:880: warning: initialization makes integer from pointer without a cast
/root/modem/intel/Intel-536/coredrv/coredrv.c:289: warning: 'power_callback' defined but not used
  CC [M]  /root/modem/intel/Intel-536/coredrv/clmmain.o
  CC [M]  /root/modem/intel/Intel-536/coredrv/rts.o
  CC [M]  /root/modem/intel/Intel-536/coredrv/task.o
  CC [M]  /root/modem/intel/Intel-536/coredrv/uart.o
  CC [M]  /root/modem/intel/Intel-536/coredrv/wwh_dflt.o
  CC [M]  /root/modem/intel/Intel-536/coredrv/locks.o
/root/modem/intel/Intel-536/coredrv/locks.c:85: error: conflicting types for 'linux_MT_AcquireLock_clm_bg'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:120: error: previous declaration of 'linux_MT_AcquireLock_clm_bg' was here
/root/modem/intel/Intel-536/coredrv/locks.c:86: error: conflicting types for 'linux_MT_ReleaseLock_clm_bg'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:121: error: previous declaration of 'linux_MT_ReleaseLock_clm_bg' was here
/root/modem/intel/Intel-536/coredrv/locks.c:87: error: conflicting types for 'linux_MT_AcquireLock_timer_task'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:122: error: previous declaration of 'linux_MT_AcquireLock_timer_task' was here
/root/modem/intel/Intel-536/coredrv/locks.c:88: error: conflicting types for 'linux_MT_ReleaseLock_timer_task'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:123: error: previous declaration of 'linux_MT_ReleaseLock_timer_task' was here
/root/modem/intel/Intel-536/coredrv/locks.c:89: error: conflicting types for 'linux_MT_AcquireLock_PortQIn'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:98: error: previous declaration of 'linux_MT_AcquireLock_PortQIn' was here
/root/modem/intel/Intel-536/coredrv/locks.c:90: error: conflicting types for 'linux_MT_ReleaseLock_PortQIn'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:99: error: previous declaration of 'linux_MT_ReleaseLock_PortQIn' was here
/root/modem/intel/Intel-536/coredrv/locks.c:91: error: conflicting types for 'linux_MT_AcquireLock_PortQOut'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:100: error: previous declaration of 'linux_MT_AcquireLock_PortQOut' was here
/root/modem/intel/Intel-536/coredrv/locks.c:92: error: conflicting types for 'linux_MT_ReleaseLock_PortQOut'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:101: error: previous declaration of 'linux_MT_ReleaseLock_PortQOut' was here
/root/modem/intel/Intel-536/coredrv/locks.c:95: error: conflicting types for 'linux_MT_AcquireLock_LAPMrx_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:92: error: previous declaration of 'linux_MT_AcquireLock_LAPMrx_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:96: error: conflicting types for 'linux_MT_ReleaseLock_LAPMrx_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:93: error: previous declaration of 'linux_MT_ReleaseLock_LAPMrx_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:97: error: conflicting types for 'linux_MT_AcquireLock_LAPMtx_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:94: error: previous declaration of 'linux_MT_AcquireLock_LAPMtx_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:98: error: conflicting types for 'linux_MT_ReleaseLock_LAPMtx_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:95: error: previous declaration of 'linux_MT_ReleaseLock_LAPMtx_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:99: error: conflicting types for 'linux_MT_AcquireLock_LAPMemptied_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:96: error: previous declaration of 'linux_MT_AcquireLock_LAPMemptied_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:100: error: conflicting types for 'linux_MT_ReleaseLock_LAPMemptied_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:97: error: previous declaration of 'linux_MT_ReleaseLock_LAPMemptied_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:101: error: conflicting types for 'linux_MT_AcquireLock_dce_rx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:110: error: previous declaration of 'linux_MT_AcquireLock_dce_rx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:102: error: conflicting types for 'linux_MT_ReleaseLock_dce_rx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:111: error: previous declaration of 'linux_MT_ReleaseLock_dce_rx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:103: error: conflicting types for 'linux_MT_ReleaseLock_dce_tx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:113: error: previous declaration of 'linux_MT_ReleaseLock_dce_tx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:104: error: conflicting types for 'linux_MT_AcquireLock_dce_tx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:112: error: previous declaration of 'linux_MT_AcquireLock_dce_tx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:107: error: conflicting types for 'linux_MT_AcquireLock_mt_dsp'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:124: error: previous declaration of 'linux_MT_AcquireLock_mt_dsp' was here
/root/modem/intel/Intel-536/coredrv/locks.c:108: error: conflicting types for 'linux_MT_ReleaseLock_mt_dsp'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:125: error: previous declaration of 'linux_MT_ReleaseLock_mt_dsp' was here
/root/modem/intel/Intel-536/coredrv/locks.c:109: error: conflicting types for 'linux_AcquireLock_rts1'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:128: error: previous declaration of 'linux_AcquireLock_rts1' was here
/root/modem/intel/Intel-536/coredrv/locks.c:110: error: conflicting types for 'linux_ReleaseLock_rts1'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:129: error: previous declaration of 'linux_ReleaseLock_rts1' was here
/root/modem/intel/Intel-536/coredrv/locks.c:111: error: conflicting types for 'linux_AcquireLock_data_to_user'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:126: error: previous declaration of 'linux_AcquireLock_data_to_user' was here
/root/modem/intel/Intel-536/coredrv/locks.c:112: error: conflicting types for 'linux_ReleaseLock_data_to_user'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:127: error: previous declaration of 'linux_ReleaseLock_data_to_user' was here
/root/modem/intel/Intel-536/coredrv/locks.c:115: error: conflicting types for 'linux_MT_AcquireLock_dte_rx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:102: error: previous declaration of 'linux_MT_AcquireLock_dte_rx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:116: error: conflicting types for 'linux_MT_ReleaseLock_dte_rx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:103: error: previous declaration of 'linux_MT_ReleaseLock_dte_rx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:117: error: conflicting types for 'linux_MT_AcquireLock_dte_tx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:104: error: previous declaration of 'linux_MT_AcquireLock_dte_tx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:118: error: conflicting types for 'linux_MT_ReleaseLock_dte_tx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:105: error: previous declaration of 'linux_MT_ReleaseLock_dte_tx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:119: error: conflicting types for 'linux_MT_AcquireLock_acu_rx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:106: error: previous declaration of 'linux_MT_AcquireLock_acu_rx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:120: error: conflicting types for 'linux_MT_ReleaseLock_acu_rx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:107: error: previous declaration of 'linux_MT_ReleaseLock_acu_rx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:121: error: conflicting types for 'linux_MT_AcquireLock_acu_tx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:108: error: previous declaration of 'linux_MT_AcquireLock_acu_tx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:122: error: conflicting types for 'linux_MT_ReleaseLock_acu_tx_buffer'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:109: error: previous declaration of 'linux_MT_ReleaseLock_acu_tx_buffer' was here
/root/modem/intel/Intel-536/coredrv/locks.c:123: error: conflicting types for 'linux_MT_AcquireLock_received_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:114: error: previous declaration of 'linux_MT_AcquireLock_received_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:124: error: conflicting types for 'linux_MT_ReleaseLock_received_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:115: error: previous declaration of 'linux_MT_ReleaseLock_received_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:125: error: conflicting types for 'linux_MT_AcquireLock_emptied_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:116: error: previous declaration of 'linux_MT_AcquireLock_emptied_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:126: error: conflicting types for 'linux_MT_ReleaseLock_emptied_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:117: error: previous declaration of 'linux_MT_ReleaseLock_emptied_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:129: error: conflicting types for 'linux_MT_AcquireLock_transmit_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:118: error: previous declaration of 'linux_MT_AcquireLock_transmit_que' was here
/root/modem/intel/Intel-536/coredrv/locks.c:136: error: conflicting types for 'linux_MT_ReleaseLock_transmit_que'
/root/modem/intel/Intel-536/coredrv/lock_lin.h:119: error: previous declaration of 'linux_MT_ReleaseLock_transmit_que' was here
make[3]: *** [/root/modem/intel/Intel-536/coredrv/locks.o] Error 1
make[2]: *** [_module_/root/modem/intel/Intel-536/coredrv] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.15.7'
make[1]: *** [536core_26] Error 2
make[1]: Leaving directory `/root/modem/intel/Intel-536/coredrv'
2.6.15.7
Failed to build driver

内核是自己编译的2.6.15.7。
请大家帮我看看,问题可能在哪里?
 楼主| 发表于 2006-8-22 10:17:00 | 显示全部楼层
原来是我的编译器版本高了,弄了个3.4的,OK了。

不过驱动是编译加载好了,

但是又碰上该死的No dial tone问题……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-22 16:56:37 | 显示全部楼层
怎么会呢? 国外ubuntu的论坛上无数人都说能用的modem,怎么到我就不行呢?!


哥哥姐姐救命啊!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表