扫描二维码关注官方公众号
返回列表 发布新帖

[讨论/分享] 如何编译安装驱动

5528 5
发表于 2015-10-4 14:30:49 | 显示全部楼层 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 Atamt 于 2015-10-4 14:40 编辑
Building a Debian Installation Package
--------------------------------------

To build a Debian installation package:

1. Install the prerequisites for building the Fusion-io source driver
   package (a complete list of dependencies are listed by the
   "Build-Depends" tag in the debian/control file inside the tar):

       $ sudo apt-get install gcc fakeroot build-essential debhelper linux-headers-$(uname --r) rsync

   You can also install packages separately by running this command:

       $ sudo apt-get install gcc rsync

2. Download the driver source file for your target operating system at
   http://support.fusionio.com

3. Unpack the driver source file:

       $ tar zxvf iomemory-vsl-source_2.0.1*.tar.gz

4. Change directory to the folder created in the previous step:

       $ cd iomemory-vsl-source-2.0.1*

5. Begin the driver rebuild:

       $ dpkg-buildpackage -rfakeroot -b

   You can also build the driver as a root user, though this is not recommended:

       $ sudo dpkg-buildpackage

   Alternatively "debuild" can be used:

       $ debuild

6. The new .deb package is located in the parent directory.

   Note: A failure of any of these builds may be due to required packages
         missing from the system. The output from the failed command
         informs you of which packages are missing. Try installing any
         missing packages and then repeating the build process.


7. Install the generated driver in conjunction with any additional files
   (fio-util, fio-firmware, etc.) that have been downloaded from
   http://support.fusionio.com.


Building and Installing for Non-deb and Non-rpm Based Systems
-------------------------------------------------------------

The ioMemory VSL driver can be built and installed on systems without using
RPM and .deb packaging.  A .tar file is available from
http://support.fusionio.com for manually unpackaging, building and
installing.

1. Ensure that kernel development files are installed.

2. Download the driver source .tar.gz file from http://support.fusionio.com.

3. Unpack the driver source file:

       $ tar zxvf iomemory-vsl-source-2.0.1*.tar.gz

   Change directory into the unpacked source:

       $ cd iomemory-vsl-source-2.0.1.*

4. Build the driver:

   If the target kernel is the currently running kernel:

       $ make modules

   If the target kernel is not running then indicate the target kernel
   using KERNELVER:

       $ make KERNELVER=2.6.36-5.2 modules

5. Install the driver:

       $ make modules_install

   Or

       $ make KERNELVER=2.6.36-5.2 modules_install

本人有个PCI-E SSD设备安装在黑群辉中,官方提供Debian Wheezy 源文件

Software Source  与直接安装 deb文件。 由于内核版本不同无法直接安装deb文件,想问一下大神如何在群晖中编译安装源文件,现在在虚拟机中能测试安装,但是到黑群辉中  不知道安装什么编译工具才可以编译安装Software Source
此卡支持操作系统版本

支持系统.jpg



                               
登录/注册后可看大图


评论5

Atamt楼主Lv.2 发表于 2015-10-4 22:06:56 | 显示全部楼层
为群晖DSM增加自己需要的HBA卡驱动
http://www.gebi1.com/thread-63718-1-1.html


根据以上的内容敲了一天的命令 ,进行到了下步不知道如何进行了  

sudo make ARCH=x86_64 CROSS_COMPILE=/usr/local/x86_64-linux-gnu/bin/x86_64-linux-gnu- menuconfig    图形界面选择了PCI-e所有设备  


root@debian:~/linux-3.x# make ARCH=x86_64 CROSS_COMPILE=/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu modules
make: /usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnugcc:命令未找到
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
/bin/sh: 1: /usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnugcc: not found
make[1]: *** [kernel/bounds.s] 错误 127
make: *** [prepare0] 错误 2
回复 点赞

使用道具 举报

webstar77Lv.10 发表于 2015-10-4 22:28:04 | 显示全部楼层
不懂帮顶!如果成功写个教程可以帮到许多人。
回复 点赞

使用道具 举报

galetLv.4 发表于 2015-10-5 01:03:03 | 显示全部楼层
这个不懂,但是希望懂的人看得到,大家也很需要。
回复 点赞

使用道具 举报

kingzwj168Lv.10 发表于 2015-10-5 08:19:05 | 显示全部楼层
如果开放编译的话,应该不难,你首先确定下自己的编译环境有没有问题
现在我重新换了一台虚拟机,内核编译完毕将驱动已经加入内核准备make modules 但是 make modules 还是会报沙发的那个报错, 环境变量该如何配置呢  详情 回复
发表于 2015-10-5 13:40
回复 点赞

使用道具 举报

Atamt楼主Lv.2 发表于 2015-10-5 13:40:44 | 显示全部楼层
kingzwj168 发表于 2015-10-5 08:19
如果开放编译的话,应该不难,你首先确定下自己的编译环境有没有问题

现在我重新换了一台虚拟机,内核编译完毕将驱动已经加入内核准备make modules   

但是 make modules    还是会报沙发的那个报错, 环境变量该如何配置呢
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表