编译求助 调制解调器驱动包安装编译

编译安装或者制作Deb包
回复
luqiyihui
帖子: 64
注册时间: 2012-12-26 20:32
送出感谢: 5 次
接收感谢: 0

编译求助 调制解调器驱动包安装编译

#1

帖子 luqiyihui » 2013-03-06 20:52

今天彻底把ThinkPad X200本子的硬盘格掉了,只装Ubuntu12.04,通过网站找到了该本子型号调制解调器(熟称猫,而且是软猫)的旧版本的驱动好像支持2.6的内核的,文件名是 hsfmodem-7.68.00.14x86_64full.tar.gz,安装步骤如下:

1、正常解压、
2、cd hsfmodem-7.68.00.14x86_64full
3、sudo make install(如果没有sudo,会报没有root权限)
前面安装过程长,但没有什么报错,最后显示如下结果

To complete the installation and configuration of your modem,
please run "hsfconfig" (or "/usr/sbin/hsfconfig")

4、然后我就 sudo hsconfig (如果没有sudo,也会报没有root权限)
显示结果:

Conexant HSF softmodem driver, version 7.68.00.14x86_64full

If you need license keys, assistance or more information, please go to:
http://www.linuxant.com/

When reporting a problem for the first time, please send
us the file generated by "hsfconfig --dumpdiag".

No pre-built modules for: Ubuntu-12.04.2 linux-3.2.0-38-generic x86_64-SMP

Trying to automatically build the driver modules...
(this requires a C compiler and proper kernel sources to be installed)

Where is the linux source build directory that matches your running kernel?
[/lib/modules/3.2.0-38-generic/build]

停在这里,然后我敲回车
显示如下:

WARNING: missing file /lib/modules/3.2.0-38-generic/build/include/linux/autoconf.h
The cause of this is usually a missing or unconfigured
kernel source tree (and sometimes an incorrect directory or symbolic link).

However, proper /boot/config-3.2.0-38-generic was found.
Would you like to try using it (in a temporary kernel tree)? [yes]

停在这里,然后我还是敲回车
显示如下:

Unable to prepare temporary kernel tree

First, ensure that the proper kernel source and compiler packages
from your distribution vendor and/or the community are installed.

The Linux kernel can then be reconfigured by running "make menuconfig"
under the kernel source directory (usually /usr/src/linux).

Verify that the proper options for your system are selected.

Then compile and install your new kernel (for more information about
this procedure, see the README file under the kernel source directory),
reboot the system using the new kernel, and re-run "hsfconfig".

然后回到命令行提示

以上是安装过程,我想问我应该怎么办,或我应该怎么编译才能让我的 hsconfig 通过??是不是老版本驱动无法在新内核系统编译或兼容??
头像
AutoXBC
帖子: 1750
注册时间: 2007-10-23 12:54
送出感谢: 2 次
接收感谢: 24 次

Re: 编译求助 调制解调器驱动包安装编译

#2

帖子 AutoXBC » 2013-03-07 2:05

试试安装这两个包,然后再按上面走一次。

代码: 全选

sudo apt-get install build-essential linux-headers
luqiyihui
帖子: 64
注册时间: 2012-12-26 20:32
送出感谢: 5 次
接收感谢: 0

Re: 编译求助 调制解调器驱动包安装编译

#3

帖子 luqiyihui » 2013-03-07 17:10

AutoXBC 写了:试试安装这两个包,然后再按上面走一次。

代码: 全选

sudo apt-get install build-essential linux-headers

请问下 linux-headers应该装那个版本的呢?我在终端输入了sudo apt-get install build-essential linux-headers,显示如下:

正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
软件包 linux-headers 是一个由下面的软件包提供的虚拟软件包:
linux-headers-3.2.0-38-lowlatency 3.2.0-38.40
linux-headers-3.2.0-37-lowlatency 3.2.0-37.37
linux-headers-3.2.0-36-lowlatency 3.2.0-36.36
linux-headers-3.2.0-35-lowlatency 3.2.0-35.34
linux-headers-3.2.0-33-lowlatency 3.2.0-33.33
linux-headers-3.2.0-38-virtual 3.2.0-38.61
linux-headers-3.2.0-38-generic 3.2.0-38.61
linux-headers-3.2.0-38 3.2.0-38.61
linux-headers-3.2.0-37-virtual 3.2.0-37.58
linux-headers-3.2.0-37-generic 3.2.0-37.58
linux-headers-3.2.0-37 3.2.0-37.58
linux-headers-3.2.0-36-virtual 3.2.0-36.57
linux-headers-3.2.0-36-generic 3.2.0-36.57
linux-headers-3.2.0-36 3.2.0-36.57
linux-headers-3.2.0-35-virtual 3.2.0-35.55
linux-headers-3.2.0-35-generic 3.2.0-35.55
linux-headers-3.2.0-35 3.2.0-35.55
linux-headers-3.2.0-34-virtual 3.2.0-34.53
linux-headers-3.2.0-34-generic 3.2.0-34.53
linux-headers-3.2.0-34 3.2.0-34.53
linux-headers-3.2.0-33-virtual 3.2.0-33.52
linux-headers-3.2.0-33-generic 3.2.0-33.52
linux-headers-3.2.0-33 3.2.0-33.52
linux-headers-3.2.0-32-virtual 3.2.0-32.51
linux-headers-3.2.0-32-generic 3.2.0-32.51
linux-headers-3.2.0-32 3.2.0-32.51
linux-headers-3.2.0-31-virtual 3.2.0-31.50
linux-headers-3.2.0-31-generic 3.2.0-31.50
linux-headers-3.2.0-31 3.2.0-31.50
linux-headers-3.2.0-30-virtual 3.2.0-30.48
linux-headers-3.2.0-30-generic 3.2.0-30.48
linux-headers-3.2.0-30 3.2.0-30.48
linux-headers-3.2.0-29-virtual 3.2.0-29.46
linux-headers-3.2.0-29-generic 3.2.0-29.46
linux-headers-3.2.0-29 3.2.0-29.46
linux-headers-3.2.0-27-virtual 3.2.0-27.43
linux-headers-3.2.0-27-generic 3.2.0-27.43
linux-headers-3.2.0-27 3.2.0-27.43
linux-headers-3.2.0-26-virtual 3.2.0-26.41
linux-headers-3.2.0-26-generic 3.2.0-26.41
linux-headers-3.2.0-26 3.2.0-26.41
linux-headers-3.2.0-25-virtual 3.2.0-25.40
linux-headers-3.2.0-25-generic 3.2.0-25.40
linux-headers-3.2.0-25 3.2.0-25.40
linux-headers-3.2.0-24-virtual 3.2.0-24.39
linux-headers-3.2.0-24-generic 3.2.0-24.39
linux-headers-3.2.0-24 3.2.0-24.39
linux-headers-3.2.0-23-lowlatency 3.2.0-23.31
linux-headers-3.2.0-23-virtual 3.2.0-23.36
linux-headers-3.2.0-23-generic 3.2.0-23.36
linux-headers-3.2.0-23 3.2.0-23.36
请您明确地选择一个来进行安装。

E: 软件包 linux-headers 没有可供安装的候选者


然后返回到命令提示行

是不是应该装个2.6版本的?能在高版本内核装低版本内核程序吗?或着是不是可以吧相关的部分提取出来像补丁一样补充到高版本到内核中去?如果这样应该怎么做呢? :em20 :em20
头像
AutoXBC
帖子: 1750
注册时间: 2007-10-23 12:54
送出感谢: 2 次
接收感谢: 24 次

Re: 编译求助 调制解调器驱动包安装编译

#4

帖子 AutoXBC » 2013-03-07 19:44

不能在高版本内核里加载低版本内核模块,版本号必须完全一致。但是低版本内核模块的源码在高版本系统上重新编译后一般可以用,上面涉及的都是编译需要的包。

应该安装与你内核相匹配的 headers,一般情况应该是 linux-headers-generic,可以再试试。
回复

回到 “编译或打包”