LinuxSir.cn,穿越时空的Linuxsir!

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

求助slmodem modprobe不上slamr

[复制链接]
发表于 2007-6-8 05:58:54 | 显示全部楼层 |阅读模式

  1. net-dialup/slmodem
  2. Available versions: (~)2.9.11_pre20061021-r2 {alsa kernel_linux usb}
  3. Homepage: http://linmodems.technion.ac.il/packages/smartlink/
  4. Description: Driver for Smart Link modem

  5. Calculating dependencies ..... ..... ..... ..... done!
  6. >>> Verifying ebuild Manifests...

  7. >>> Emerging (1 of 1) net-dialup/slmodem-2.9.11_pre20061021-r2 to /
  8. * slmodem-2.9.11-20061021.tar.gz RMD160  ... [ ok ]
  9. * slmodem-2.9.11-20061021.tar.gz SHA1  ... [ ok ]
  10. * slmodem-2.9.11-20061021.tar.gz SHA256  ... [ ok ]
  11. * slmodem-2.9.11-20061021.tar.gz size  ... [ ok ]
  12. * ungrab-winmodem.tar.gz RMD160  ... [ ok ]
  13. * ungrab-winmodem.tar.gz SHA1  ... [ ok ]
  14. * ungrab-winmodem.tar.gz SHA256  ... [ ok ]
  15. * ungrab-winmodem.tar.gz size  ... [ ok ]
  16. * checking ebuild checksums  ... [ ok ]
  17. * checking auxfile checksums  ... [ ok ]
  18. * checking miscfile checksums  ... [ ok ]
  19. * checking slmodem-2.9.11-20061021.tar.gz  ... [ ok ]
  20. * checking ungrab-winmodem.tar.gz  ... [ ok ]
  21. * Determining the location of the kernel source code
  22. * Found kernel source directory:
  23. * /usr/src/linux
  24. * Found kernel object directory:
  25. * /lib/modules/2.6.20.1/build
  26. * Found sources for kernel version:
  27. * 2.6.20.1
  28. >>> Unpacking source...
  29. >>> Unpacking slmodem-2.9.11-20061021.tar.gz to /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work
  30. >>> Unpacking ungrab-winmodem.tar.gz to /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work
  31. * Converting ungrab-winmodem/Makefile to use M= instead of SUBDIRS= ...
  32. [ ok ]
  33. * Applying slmodem-2.9.11-kernel-2.6.19.patch ...
  34. [ ok ]
  35. * Applying slmodem-2.9.11-makefile.patch ...
  36. [ ok ]
  37. * Converting Makefile to use M= instead of SUBDIRS= ...
  38. [ ok ]
  39. >>> Source unpacked.
  40. >>> Compiling source in /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/slmodem-2.9.11-20061021 ...
  41. make -C modem all
  42. make[1]: Entering directory `/var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/slmodem-2.9.11-20061021/modem'
  43. rebuild profile...
  44. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_main.o -c modem_main.c
  45. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_cmdline.o -c modem_cmdline.c
  46. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem.o -c modem.c
  47. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_datafile.o -c modem_datafile.c
  48. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_at.o -c modem_at.c
  49. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_timer.o -c modem_timer.c
  50. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_pack.o -c modem_pack.c
  51. modem_pack.c: In function ‘modem_async_get_bits’:
  52. modem_pack.c:100: warning: pointer targets in passing argument 2 of ‘m->get_chars’ differ in signedness
  53. modem_pack.c: In function ‘modem_async_put_bits’:
  54. modem_pack.c:148: warning: pointer targets in passing argument 2 of ‘m->put_chars’ differ in signedness
  55. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_ec.o -c modem_ec.c
  56. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_comp.o -c modem_comp.c
  57. modem_ec.c: In function ‘tx_info’:
  58. modem_ec.c:723: warning: pointer targets in passing argument 2 of ‘l->modem->get_chars’ differ in signedness
  59. modem_ec.c: In function ‘push_rest_data’:
  60. modem_ec.c:811: warning: pointer targets in passing argument 2 of ‘l->modem->put_chars’ differ in signedness
  61. modem_ec.c: In function ‘rx_info’:
  62. modem_ec.c:860: warning: pointer targets in passing argument 2 of ‘l->modem->put_chars’ differ in signedness
  63. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_param.o -c modem_param.c
  64. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_debug.o -c modem_debug.c
  65. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o homolog_data.o -c homolog_data.c
  66. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o dp_sinus.o -c dp_sinus.c
  67. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o dp_dummy.o -c dp_dummy.c
  68. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o sysdep_common.o -c sysdep_common.c
  69. x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -Wall -finline -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_test.o -c modem_test.c
  70. x86_64-pc-linux-gnu-gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o -lasound
  71. x86_64-pc-linux-gnu-gcc -o modem_test modem_test.o modem_cmdline.o modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o -lasound
  72. make[1]: Leaving directory `/var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/slmodem-2.9.11-20061021/modem'
  73. * Preparing ungrab-winmodem module
  74. make modules -C /usr/src/linux M=/var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/ungrab-winmodem
  75. make[1]: Entering directory `/usr/src/linux-2.6.20.1'
  76. CC [M] /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/ungrab-winmodem/ungrab-winmodem.o
  77. /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/ungrab-winmodem/ungrab-winmodem.c: In function ‘softmodem_release_init’:
  78. /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/ungrab-winmodem/ungrab-winmodem.c:62: warning: passing argument 1 of ‘pci_match_device’ from incompatible pointer type
  79. Building modules, stage 2.
  80. MODPOST 1 modules
  81. CC /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/ungrab-winmodem/ungrab-winmodem.mod.o
  82. LD [M] /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/work/ungrab-winmodem/ungrab-winmodem.ko
  83. make[1]: Leaving directory `/usr/src/linux-2.6.20.1'
  84. >>> Source compiled.
  85. >>> Test phase [not enabled]: net-dialup/slmodem-2.9.11_pre20061021-r2

  86. >>> Install slmodem-2.9.11_pre20061021-r2 into /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/image/ category net-dialup
  87. * Installing ungrab-winmodem module
  88. cp: cannot stat `/usr/portage/net-dialup/slmodem/files/slmodem-2.9.devfs': No such file or directory
  89. >>> Completed installing slmodem-2.9.11_pre20061021-r2 into /var/tmp/portage/net-dialup/slmodem-2.9.11_pre20061021-r2/image/

  90. strip: x86_64-pc-linux-gnu-strip --strip-unneeded
  91. usr/sbin/slmodem_test
  92. usr/sbin/slmodemd
  93. >>> Merging net-dialup/slmodem-2.9.11_pre20061021-r2 to /
  94. --- /usr/
  95. --- /usr/sbin/
  96. >>> /usr/sbin/slmodem_test
  97. >>> /usr/sbin/slmodemd
  98. --- /usr/share/
  99. --- /usr/share/doc/
  100. --- /usr/share/doc/slmodem-2.9.11_pre20061021-r2/
  101. >>> /usr/share/doc/slmodem-2.9.11_pre20061021-r2/README.bz2
  102. >>> /usr/share/doc/slmodem-2.9.11_pre20061021-r2/Readme.txt.bz2
  103. >>> /usr/share/doc/slmodem-2.9.11_pre20061021-r2/Changes.bz2
  104. --- /etc/
  105. --- /etc/conf.d/
  106. >>> /etc/conf.d/slmodem
  107. --- /etc/hotplug/
  108. --- /etc/hotplug/blacklist.d/
  109. >>> /etc/hotplug/blacklist.d/slmodem
  110. --- /etc/udev/
  111. --- /etc/udev/rules.d/
  112. >>> /etc/udev/rules.d/55-slmodem.rules
  113. --- /etc/init.d/
  114. >>> /etc/init.d/slmodem
  115. --- /etc/modules.d/
  116. >>> /etc/modules.d/slmodem
  117. --- /lib/
  118. --- /lib/modules/
  119. --- /lib/modules/2.6.20.1/
  120. --- /lib/modules/2.6.20.1/misc/
  121. >>> /lib/modules/2.6.20.1/misc/ungrab-winmodem.ko
  122. --- /var/
  123. --- /var/lib/
  124. --- /var/lib/slmodem/
  125. >>> /var/lib/slmodem/.keep_net-dialup_slmodem-0
  126. >>> Safely unmerging already-installed instance...
  127. --- !mtime obj /var/lib/slmodem/.keep_net-dialup_slmodem-0
  128. --- !mtime obj /usr/share/doc/slmodem-2.9.11_pre20061021-r2/Readme.txt.bz2
  129. --- !mtime obj /usr/share/doc/slmodem-2.9.11_pre20061021-r2/README.bz2
  130. --- !mtime obj /usr/share/doc/slmodem-2.9.11_pre20061021-r2/Changes.bz2
  131. --- !mtime obj /usr/sbin/slmodemd
  132. --- !mtime obj /usr/sbin/slmodem_test
  133. --- cfgpro obj /lib/modules/2.6.20.1/misc/ungrab-winmodem.ko
  134. --- cfgpro dir /lib/modules/2.6.20.1/misc
  135. --- cfgpro dir /lib/modules/2.6.20.1
  136. --- !mtime obj /etc/udev/rules.d/55-slmodem.rules
  137. --- !mtime obj /etc/modules.d/slmodem
  138. --- !mtime obj /etc/init.d/slmodem
  139. --- !mtime obj /etc/hotplug/blacklist.d/slmodem
  140. --- !mtime obj /etc/conf.d/slmodem
  141. --- !empty dir /var/lib/slmodem
  142. --- !empty dir /var/lib
  143. --- !empty dir /var
  144. --- !empty dir /usr/share/doc/slmodem-2.9.11_pre20061021-r2
  145. --- !empty dir /usr/share/doc
  146. --- !empty dir /usr/share
  147. --- !empty dir /usr/sbin
  148. --- !empty dir /usr
  149. --- !empty dir /lib/modules
  150. --- !empty dir /lib
  151. --- !empty dir /etc/udev/rules.d
  152. --- !empty dir /etc/udev
  153. --- !empty dir /etc/modules.d
  154. --- !empty dir /etc/init.d
  155. --- !empty dir /etc/hotplug/blacklist.d
  156. --- !empty dir /etc/hotplug
  157. --- !empty dir /etc/conf.d
  158. --- !empty dir /etc
  159. * Removing net-dialup/slmodem-2.9.11_pre20061021-r2 from moduledb.
  160. >>> Original instance of package unmerged safely.
  161. * Updating module dependencies for 2.6.20.1 ...
  162. WARNING: //lib/modules/2.6.20.1/alsa-driver/acore/snd-rtctimer.ko needs unknown symbol is_power_of_2
  163. [ ok ]
  164. * Adding module to moduledb.
  165. * Restarting udev to reread udev rules ...
  166. [ ok ]
  167. * To avoid problems, slusb/slamr have been added to /etc/hotplug/blacklist
  168. * You must edit /etc/conf.d/slmodem for your configuration
  169. * To add slmodem to your startup - type : rc-update add slmodem default
  170. *
  171. * You need to be in the uucp AND dialout group to make calls as a user.
  172. *
  173. * If you see the following in dmesg:
  174. * slamr: device 10b9:5457 is grabbed by driver serial
  175. * you need to modprobe ungrab-winmodem before slamr
  176. >>> net-dialup/slmodem-2.9.11_pre20061021-r2 merged.

  177. >>> No packages selected for removal by clean
  178. >>> Auto-cleaning packages...

  179. >>> No outdated packages were found on your system.
  180. * GNU info directory index is up-to-date.
复制代码


modprobe不上slamr.我看编译的也没有这个slamr.ko
这是咋回事?

非常感谢
发表于 2007-6-8 09:14:16 | 显示全部楼层
depmod -ae 后

modprobe ungrab-winmodem
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-9 07:16:25 | 显示全部楼层
谢谢楼上

没有用
localhost # modprobe slamr
FATAL: Module slamr not found.

localhost # modprobe ungrab-winmodem
死在那不动了。


localhost  # dmesg | tail
[<ffffffff8809e019>] :ungrab_winmodem:softmodem_release_init+0x19/0x97
[<ffffffff8024ba02>] sys_init_module+0xab/0x169
[<ffffffff8020956e>] system_call+0x7e/0x83


Code: 48 8b 32 0f 18 0e 48 8d 85 a8 01 00 00 48 39 c2 75 9d c7 85
RIP  [<ffffffff8035acf9>] pci_match_device+0x72/0xb4
RSP <ffff81011244bf18>
CR2: 0000000300000000

装个猫咋这么痛苦
回复 支持 反对

使用道具 举报

发表于 2007-6-9 08:52:31 | 显示全部楼层
你没有编译出slamr.ko出来,我的/var/db/pkg/net-dialup/slmodem-2.9.11_pre20061021-r2/CONTENTS里有slamr.ko:
  1. dir /lib/modules/2.6.21-suspend2-r5/net
  2. obj /lib/modules/2.6.21-suspend2-r5/net/slamr.ko 4c957787a7c5f6f27f898fb0fb72a89
  3. f 1180195013
复制代码

你emerge -vp slmodem看看你用什么USE,我的是内置modem,用的是alsa -usb
而且是用/etc/init.d/slmodem start来启动的,在此之前要设置好modem,在你emerge slmodem时编译好给你一些绿色的星星的提示,那个得好好看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-10 05:49:32 | 显示全部楼层
感谢楼上的解答。
我没用alsa觉得又没有声音无所谓,而且是一个pci的猫,所以alsa,usb两个都没用。
看到你说得以后,我enable了alsa和usb都加上了。
还是编译不出slamr.ko这个文件。
那些星星说为了避免冲突把slamr/slusb放到blacklist里面,其他什么也没有了。
真是很郁闷。在没有宽带的时间里,连猫都不用上。
怎么编都不行。。。。。。。
回复 支持 反对

使用道具 举报

发表于 2007-6-10 15:44:07 | 显示全部楼层
Post by coolone
感谢楼上的解答。
我没用alsa觉得又没有声音无所谓,而且是一个pci的猫,所以alsa,usb两个都没用。
看到你说得以后,我enable了alsa和usb都加上了。
还是编译不出slamr.ko这个文件。
那些星星说为了避免冲突把slamr/slusb放到blacklist里面,其他什么也没有了。
真是很郁闷。在没有宽带的时间里,连猫都不用上。
怎么编都不行。。。。。。。
这个比较难办,因为slmodem支持的是内置的和usb的猫,你的估计还要用别的办法了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-12 12:45:03 | 显示全部楼层
非常感谢楼上!
回复 支持 反对

使用道具 举报

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

本版积分规则

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