Ubuntu中使用dnw工具:没有找到/dev/secbulk0
2024-10-14 17:32:42
Ubuntu中使用dnw动机:
一、 之前没有用ubuntu中的dnw,想试试。
二、 因为换了win10系统,怕搞不定win10中dnw的驱动,想着在ubuntu中不用禁用数字签名啥的比较省心。(事实证明还是禁用数字签名最简单了~)
dnw安装步骤:
1、下载源码,放至windows和linux的共享文件夹,解压后进到/dnw-linux执行make和make install(代码是老师修改好的,直接用没有问题)
root@ubuntu:/mnt/hgfs/share/dnw-linux# make clean //由于之前make过先执行make clean
make -C src/dnw clean
make[]: Entering directory '/mnt/hgfs/share/dnw-linux/src/dnw'
rm -rf dnw *.o
make[]: Leaving directory '/mnt/hgfs/share/dnw-linux/src/dnw'
make -C /lib/modules/`uname -r`/build M=`pwd`/src/driver clean
make[]: 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[]: Leaving directory '/usr/src/linux-headers-4.4.0-93-generic'
root@ubuntu:/mnt/hgfs/share/dnw-linux# make
make -C /lib/modules/`uname -r`/build M=`pwd`/src/driver modules
make[]: 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:::
/mnt/hgfs/share/dnw-linux/src/driver/secbulk.c: In function ‘secbulk_write’:
include/linux/kernel.h::: warning: comparison of distinct pointer types lacks a cast
(void) (&_min1 == &_min2); \
^
/mnt/hgfs/share/dnw-linux/src/driver/secbulk.c::: note: in expansion of macro ‘min’
to_write = min(len, BULKOUT_BUFFER_SIZE);
^
Building modules, stage .
MODPOST modules
CC /mnt/hgfs/share/dnw-linux/src/driver/secbulk.mod.o
LD [M] /mnt/hgfs/share/dnw-linux/src/driver/secbulk.ko
make[]: Leaving directory '/usr/src/linux-headers-4.4.0-93-generic'
make -C src/dnw
make[]: Entering directory '/mnt/hgfs/share/dnw-linux/src/dnw'
gcc -g -o dnw dnw.c
make[]: Leaving directory '/mnt/hgfs/share/dnw-linux/src/dnw'
root@ubuntu:/mnt/hgfs/share/dnw-linux# make install
make -C /lib/modules/`uname -r`/build M=`pwd`/src/driver modules
make[]: Entering directory '/usr/src/linux-headers-4.4.0-93-generic'
Building modules, stage .
MODPOST modules
make[]: Leaving directory '/usr/src/linux-headers-4.4.0-93-generic'
make -C src/dnw
make[]: Entering directory '/mnt/hgfs/share/dnw-linux/src/dnw'
make[]: 'dnw' is up to date.
make[]: Leaving directory '/mnt/hgfs/share/dnw-linux/src/dnw'
make -C src/dnw install
make[]: Entering directory '/mnt/hgfs/share/dnw-linux/src/dnw'
cp dnw /usr/bin
make[]: Leaving directory '/mnt/hgfs/share/dnw-linux/src/dnw'
make -C /lib/modules/`uname -r`/build M=`pwd`/src/driver modules_install
make[]: Entering directory '/usr/src/linux-headers-4.4.0-93-generic'
INSTALL /mnt/hgfs/share/dnw-linux/src/driver/secbulk.ko
At main.c::
- SSL error::system library:fopen:No such file or directory: bss_file.c:
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.4.--generic
make[]: Leaving directory '/usr/src/linux-headers-4.4.0-93-generic'
cp dnw.rules /etc/udev/rules.d/
depmod
root@ubuntu:/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工具使用:
其他文档写的很多,不重复了。
最新文章
- PDO 数据访问抽象层
- 树形菜单的json字符串的拼接
- =============Python安装与使用================
- HDU 4927
- http协议Authorization认证方式在Android开发中的使用
- HDU 4737 A Bit Fun 2013成都 网络赛 1010
- redis 验证消息队列也是写磁盘的
- Angular表单控件需要类型和实际值类型不一致时实现双向绑定
- awk的+=用法
- rocketmq有序消息
- 【数据库】+ powerdesigner
- 对两个数求和的str_echo函数
- unicode 编解码记录
- js计算日期增加
- 2019.01.26 codeforces 632E. Thief in a Shop(生成函数)
- 【PMP】资源平衡与资源平滑
- 解决 libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.4-1.el6.x86_64案例
- 打开cmd闪退
- ffmpeg 基本数据结构和对象: AVPacket、AVPicture、AVFrame
- js验证营业执照号码是否合规
热门文章
- (4程序框架)从零开始的嵌入式图像图像处理(PI+QT+OpenCV)实战演练
- 用Vue开发一个实时性时间转换功能,看这篇文章就够了
- Sql的基础知识技巧(三)
- [51nod1232]完美数
- 从XMLHttpRequest请求响应里getResponseHeader(header)报错:Refused to get unsafe header ";**"; 问题解决
- [国嵌攻略][059][2440-DMA程序设计]
- Spark学习笔记2(spark所需环境配置
- lnmp一键安装的卸载
- Cookies的实际存储位置
- 如何把域名解析到网站空间IP上?