本人野路子初学者最近学习全智的Linux-Tina,遇到了问题。LiveSuit不弹出烧写对话框,怀疑awusb没有安装上。
具体是:我有两台电脑,一个台式,一个笔记本
我的笔记本电脑,在编译,打包都正常的情况下。
上电短路FLASH引脚,LiveSuit并不能弹出 提示擦出并烧录的对话框。
代码包是在另一台电脑上验证过的,都正常,并且点亮了LCD,显示了自己想要的图形。
ubuntu版本16.04 不是虚拟机
LiveSuit安装包是 全智资料中有一个 tools/aw_tools/LiveSuit...x64 里面有一个 LiveSuit.run 和 一个PDF
运行 ./LiveSuit.run 的信息如下:
--------------------------------------------------------------------------------------------------------
root@ub:~/LiveSuit_For_Linux64# ./LiveSuit.run
You are running on Ubuntu
LiveSuit/
LiveSuit/LiveSuit.sh
LiveSuit/bin/
LiveSuit/bin/regdemo.lua
LiveSuit/bin/LiveProc.Plg
LiveSuit/bin/LiveSuit.lan
LiveSuit/bin/luadec.dll
LiveSuit/bin/imgdec_fun.lua
LiveSuit/bin/LiveSuit
LiveSuit/bin/libQtGui.so.4
LiveSuit/bin/regdecode.lua
LiveSuit/bin/ini_fun.lua
LiveSuit/bin/libQtCore.so.4
LiveSuit/bin/common_fun.lua
LiveSuit/bin/plgvector.dll
LiveSuit/bin/regbasefun.lua
LiveSuit/bin/LangPlg.dll
LiveSuit/bin/luaBase.dll
LiveSuit/bin/luaeFex.dll
awdev-0.5-1dkms.noarch.rpm
awdev-dkms_0.5_all.deb
(Reading database ... 182036 files and directories currently installed.)
Preparing to unpack /tmp/awdev-dkms_0.5_all.deb ...
-------- Uninstall Beginning --------
Module: awdev
Version: 0.5
Kernel: 2.6.32-52-generic (x86_64)
-------------------------------------
Status: This module version was INACTIVE for this kernel.
depmod....(bad exit status: 1)
DKMS: uninstall completed.
------------------------------
Deleting module version: 0.5
completely from the DKMS tree.
------------------------------
Done.
Unpacking awdev-dkms (0.5) over (0.5) ...
Setting up awdev-dkms (0.5) ...
Loading tarball for awdev-0.5
Loading /var/lib/dkms/awdev/0.5/2.6.32-52-generic/x86_64...
DKMS: ldtarball completed.
Creating symlink /var/lib/dkms/awdev/0.5/source ->
/usr/src/awdev-0.5
DKMS: add completed.
First Installation: checking all kernels...
Building only for 4.15.0-112-generic
Building for architecture x86_64
Building initial module for 4.15.0-112-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/awdev-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-112-generic (x86_64)
Consult /var/lib/dkms/awdev/0.5/build/make.log for more information.
--------------------------------------------------------------------------------------------------------
问题1:This module version was INACTIVE for this kernel.
貌似这个没问题,我另一台14.04的电脑上也显示不认可的...但是可以正常工作
问题2: ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/awdev-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-112-generic (x86_64)
这个就表示一脸懵逼。。。。实在不知道该怎么办。
在这之后,LiveSuit.run会在 home/user-name/Bin 生成一个文件夹
这应该是安装后的东西,按照 全智给的PDF 安装USB驱动,###依然不能成功###
具体如下:
----------------------------------------------------------------------------------------------------
root@ub:~/Bin# dpkg -i awdev-dkms_0.5_all.deb
(Reading database ... 182036 files and directories currently installed.)
Preparing to unpack awdev-dkms_0.5_all.deb ...
-------- Uninstall Beginning --------
Module: awdev
Version: 0.5
Kernel: 2.6.32-52-generic (x86_64)
-------------------------------------
Status: This module version was INACTIVE for this kernel.
depmod....(bad exit status: 1)
DKMS: uninstall completed.
------------------------------
Deleting module version: 0.5
completely from the DKMS tree.
------------------------------
Done.
Unpacking awdev-dkms (0.5) over (0.5) ...
Setting up awdev-dkms (0.5) ...
Loading tarball for awdev-0.5
Loading /var/lib/dkms/awdev/0.5/2.6.32-52-generic/x86_64...
DKMS: ldtarball completed.
Creating symlink /var/lib/dkms/awdev/0.5/source ->
/usr/src/awdev-0.5
DKMS: add completed.
First Installation: checking all kernels...
Building only for 4.15.0-112-generic
Building for architecture x86_64
Building initial module for 4.15.0-112-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/awdev-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-112-generic (x86_64)
Consult /var/lib/dkms/awdev/0.5/build/make.log for more information.
----------------------------------------------------------------------------------------------------
其实,问题跟上面一样的。应该在运行 ./LiveSuit.run的最后阶段就尝试了安装驱动,但是失败了。
最后的错误提示信息一模一样。
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/awdev-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-112-generic (x86_64)
########################################################
但是即使是这样失败的安装,短路FLASH,上电时,仍然可以看到识别了全知的设备。
打印信息如下: lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0a2a Intel Corp.
Bus 001 Device 003: ID 04f2:b5d7 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 006: ID 1f3a:efe8 Onda (unverified) V972 tablet in flashing mode
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 1f3a:efe8 Onda (unverified) V972 tablet in flashing mode
不要看括号里的信息,我那台能工作的电脑也是这样的。。。忽略了
但是区别就是 那台能工作的电脑 上 如果 lsmod 可以在列表中 找到 awusb
而,这台不能工作的电脑 始终 在mod列表中 找不到 这个mod....
我猜测这应该就是LiveSuit不能正常工作的原因..........
搞了1整天了,现在已经过了0点了..实在搞不懂了...
请大佬们,指点一二,小弟感激不尽...先拜谢大佬了!
离线
睡觉去,希望明天能解决了。:rolleyes:
离线
算了,自己找到问了。只有14.04能装上驱动。
离线