Ubuntu中使用dnw工具:没有找到/dev/secbulk0

Ubuntu中使用dnw动机:

一、 之前没有用ubuntu中的dnw,想试试。

二、 因为换了win10系统,怕搞不定win10中dnw的驱动,想着在ubuntu中不用禁用数字签名啥的比较省心。(事实证明还是禁用数字签名最简单了~)

dnw安装步骤:

1、下载源码,放至windows和linux的共享文件夹,解压后进到/dnw-linux执行makemake install(代码是老师修改好的,直接用没有问题)

[email protected]:/mnt/hgfs/share/dnw-linux# make clean    //由于之前make过先执行make clean
make -C src/dnw clean
make[1]: Entering directory ‘/mnt/hgfs/share/dnw-linux/src/dnw‘
rm -rf dnw *.o
make[1]: Leaving directory ‘/mnt/hgfs/share/dnw-linux/src/dnw‘
make -C /lib/modules/`uname -r`/build M=`pwd`/src/driver clean
make[1]: Entering directory ‘/usr/src/linux-headers-4.4.0-93-generic‘
  CLEAN   /mnt/hgfs/share/dnw-linux/src/driver/.tmp_versions
  CLEAN   /mnt/hgfs/share/dnw-linux/src/driver/Module.symvers
make[1]: Leaving directory ‘/usr/src/linux-headers-4.4.0-93-generic‘
[email protected]:/mnt/hgfs/share/dnw-linux# make
make -C /lib/modules/`uname -r`/build M=`pwd`/src/driver modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.4.0-93-generic‘
  CC [M]  /mnt/hgfs/share/dnw-linux/src/driver/secbulk.o
In file included from /mnt/hgfs/share/dnw-linux/src/driver/secbulk.c:1:0:
/mnt/hgfs/share/dnw-linux/src/driver/secbulk.c: In function ‘secbulk_write’:
include/linux/kernel.h:726:17: warning: comparison of distinct pointer types lacks a cast
  (void) (&_min1 == &_min2);                   ^
/mnt/hgfs/share/dnw-linux/src/driver/secbulk.c:60:14: note: in expansion of macro ‘min’
   to_write = min(len, BULKOUT_BUFFER_SIZE);
              ^
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /mnt/hgfs/share/dnw-linux/src/driver/secbulk.mod.o
  LD [M]  /mnt/hgfs/share/dnw-linux/src/driver/secbulk.ko
make[1]: Leaving directory ‘/usr/src/linux-headers-4.4.0-93-generic‘
make -C src/dnw
make[1]: Entering directory ‘/mnt/hgfs/share/dnw-linux/src/dnw‘
gcc -g -o dnw dnw.c
make[1]: Leaving directory ‘/mnt/hgfs/share/dnw-linux/src/dnw‘
[email protected]:/mnt/hgfs/share/dnw-linux# make install
make -C /lib/modules/`uname -r`/build M=`pwd`/src/driver modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.4.0-93-generic‘
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory ‘/usr/src/linux-headers-4.4.0-93-generic‘
make -C src/dnw
make[1]: Entering directory ‘/mnt/hgfs/share/dnw-linux/src/dnw‘
make[1]: ‘dnw‘ is up to date.
make[1]: Leaving directory ‘/mnt/hgfs/share/dnw-linux/src/dnw‘
make -C src/dnw install
make[1]: Entering directory ‘/mnt/hgfs/share/dnw-linux/src/dnw‘
cp dnw /usr/bin
make[1]: Leaving directory ‘/mnt/hgfs/share/dnw-linux/src/dnw‘
make -C /lib/modules/`uname -r`/build M=`pwd`/src/driver modules_install
make[1]: Entering directory ‘/usr/src/linux-headers-4.4.0-93-generic‘
  INSTALL /mnt/hgfs/share/dnw-linux/src/driver/secbulk.ko
At main.c:222:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  4.4.0-93-generic
make[1]: Leaving directory ‘/usr/src/linux-headers-4.4.0-93-generic‘
cp dnw.rules /etc/udev/rules.d/
depmod
[email protected]:/mnt/hgfs/share/dnw-linux#

2、验证/dev目录下没有secbulk0,反复试了多次还是没有

3、没办法,老老实实在win10中装好了dnw的驱动,并且禁用了数字签名(可参考:http://jingyan.baidu.com/article/624e74594dbc8d34e8ba5aa6.html

),是的这样其实已经可以在win10使用dnw工具了,不死心的我始终坚信自己ubuntu中dnw驱动是装好的,于是又试了一遍,此时在虚拟机中断开于主机的连接,然后在/dev目录下竟然神奇的出现了secbulk0。这样就连接成功啦~~

4、dnw工具使用:

其他文档写的很多,不重复了。

时间: 2024-07-31 11:30:30

Ubuntu中使用dnw工具:没有找到/dev/secbulk0的相关文章

ubuntu中安装qgit工具-(转自Linux中国)

QGit是一款由Marco Costalba用Qt和C++写的开源的图形界面 Git 客户端.它是一款可以在图形界面环境下更好地提供浏览版本历史.查看提交记录和文件补丁的客户端.它利用git命令行来执行并显示输出.它有一些常规的功能像浏览版本历史.比较.文件历史.文件标注.归档树.我们可以格式化并用选中的提交应用补丁,在两个或多个实例之间拖拽并提交等等.它允许我们用它内置的生成器来创建自定义的按钮去执行特定的命令. 这里有简单的几步在Ubuntu 14.04 LTS "Trusty"中

ubuntu中安装meld工具-(转自sukhoi27smk)

Ubuntu下文件/目录对比的软件Meld可能有很多用户还不是很熟悉,下文就给大家介绍如何安装Meld和移植到Gedit下.具体内容如下所述. Meld允许用户查看文件.目录间的变化.很容易移植到Gedit下,方便用户使用. 安装Meld Meld默认在Ubuntu官方源中,在Ubuntu软件中心搜索一下就可以安装,或者使用命令: sudoapt-getinstallmeld 安装完毕后,可从"应用程序-编程"里启动. 移植到Gedit下 1.安装Zenity,打开终端,输入命令: s

ubuntu 中截图工具及快捷键设置

http://blog.csdn.net/pipisorry/article/details/39615047 windows 平台上,截图有好几种选择,可以使用windows系统自带的截图工具,360浏览器的截图功能,或者QQ截图,还有键盘上的prt sc 截图键. 在linux系统上怎么截图: 键盘上的截图键还可以用,不过那是截取一整个屏幕的,想要截图某一个区域的时候怎么办呢? 在ubuntu 10.04 的时候,还可以很方便地在applications 那里找到screenshot 截图工

Ubuntu中的Gif动画录制工具

为了在随笔中插入gif动态图Windows系统上可以使用ScreenToGif这个非常好用的小软件,在Ubuntu系统中选择也很多(可以参考最下面的链接),下面介绍两款ubuntu系统中的录屏软件: byzanz 安装byzanz: sudo apt-get update sudo apt-get install byzanz 使用byzanz-record命令来录制gif动画,主要参数选项: 用法: byzanz-record [选项...] 录制您的当前桌面会话 帮助选项: -?, --he

【Linux】在Ubuntu中图形化LAMP的开发环境

按照<[Linux]在Ubuntu中布置LAMP环境>(点击打开链接)搞好LAMP的环境之后,就可以利用gredit文本编辑器去写php,然后利用终端去查询mysql里面的内容,但是,这种环境还挺粗糙的,没有开发的IDE,查询数据库还要输入一大堆命令,不适合php的开发. 此时你可以安装Aptana作为php开发的IDE,这款工具在<[HTML]一款不错的前端开发IDE--Aptana Studio>(点击打开链接)已经介绍过了.使用Mysql WorkBeach作为Ubuntu中

如何在ubuntu中启用SSH服务

如何在ubuntu14.04 中启用SSH服务 开篇科普:  SSH 为 Secure Shell 的缩写,由 IETF 的网络工作小组(Network Working Group)所制定:SSH 为建立在应用层和传输层基础上的安全协议.SSH 是目前较可靠,专为远程登录会话和其他网络服务提供安全性的协议.利用 SSH 协议可以有效防止远程管理过程中的信息泄露问题.SSH最初是UNIX系统上的一个程序,后来又迅速扩展到其他操作平台.SSH在正确使用时可弥补网络中的漏洞.SSH客户端适用于多种平台

Spark在Ubuntu中搭建开发环境

一.在Windows7中安装Ubuntu双系统 工具/原料   windows7 64位 ubuntu 16.04 32位 UltraISO最新版(用来将镜像文件烤到U盘中) 空U盘(若有文件,请先备份) 1.为安装ubuntu16.04分配一块磁盘空间(100G) Win7自带分配磁盘的工具([计算机]->[管理]->[磁盘管理]->选中压缩盘->[右键]->[压缩卷]),只需要压缩步骤即可,不需要继续分盘符格式化等操作. 2.将镜像文件iso写到U盘 下载并安装Ultra

ubuntu 中安装和删除软件总结

Ubuntu 中软件的安装.卸载以及查看的方法总结 一.Ubuntu中软件安装方法 1.APT方式 (1)普通安装:apt-get install softname1 softname2 …; (2)修复安装:apt-get -f install softname1 softname2... ;(-f Atemp to correct broken dependencies) (3)重新安装:apt-get --reinstall install softname1 softname2...;

Ubuntu中恢复rm命令误删文件(转)

计算机系统:Ubuntu 16.04 1 背景 在做项目的时候,本来想使用rm命令删除以14开头的文件,结果写成如下形式: [cpp] view plain copy rm 14 * 注意,本来14和*之间不应该有空格的,但是误写了一个空格,结果导致所有文件都被删除了!为了找回被误删的文件,根据网上的一些资料进行探索. 2 ext3grep [cpp] view plain copy sudo apt-get install ext3grep 参考资料[4]中对这个工具的使用有比较详细的说明过程