我正试图让OSX Sierra上的驱动程序运行.但没有结果.
我的研究让我到了以下网站:
https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver
https://tzapu.com/ch340-ch341-serial-adapters-macos-sierra/
https://blog.sengotta.net/signed-mac-os-driver-for-winchiphead-ch340-serial-bridge/
http://www.wch.cn/download/CH341SER_MAC_ZIP.html(最新版本公布)
在我尝试安装它们之前,我在恢复模式下尝试了这个(用⌘R重启).
csrutil enable --without kext
之后我尝试安装驱动程序.
这没有成功,所以我也在恢复模式下禁用了csrutil.
csrutil disable
我安装每个驱动程序的步骤
而csrutil被禁用.
>删除旧驱动程序
>安装新的
删除驱动程序:
$sudo su
$find / | grep usbserial/Library/Extensions/usbserial.kext
...
/Library/Extensions/usbserial.kext/Contents
/Library/Extensions/usbserial.kext/Contents/_CodeSignature
/Library/Extensions/usbserial.kext/Contents/_CodeSignature/CodeResources
/Library/Extensions/usbserial.kext/Contents/Info.plist
/Library/Extensions/usbserial.kext/Contents/MacOS
/Library/Extensions/usbserial.kext/Contents/MacOS/usbserial
/Library/Extensions/usbserial.kext/Contents/Resources
/Library/Extensions/usbserial.kext/Contents/Resources/en.lproj
/Library/Extensions/usbserial.kext/Contents/Resources/en.lproj/InfoPlist.strings
...
$rm -rf /Library/Extensions/usbserial.kext
$find / | grep wch
...
/private/var/db/receipts/com.wch.ch34xinstall.mykextdir.pkg.bom
/private/var/db/receipts/com.wch.ch34xinstall.mykextdir.pkg.plist
...
$rm -rf /private/var/db/receipts/com.wch.*
$csrutil status
System Integrity Protection status: disabled.
安装新的:
>只需安装.pkg
>重启
>在/ dev中搜索驱动程序
>没有列出驱动程序
我错过了什么吗?
Edit2:现在我加载了kext但串口驱动程序没有显示在/ dev中.
tim:~$sudo kextload -b com.wch.usbserial
Password:
tim:~$
它没有在kextstats中显示.
tim:~$kextstat | grep com.wch.usbserial
tim:~$
但它可以找到.
tim:~$kextfind -b com.wch.usbserial
/System/Library/Extensions/usbserial.kext
/Library/Extensions/usbserial.kext
也许只是kext无法正常工作?
tim:~$sudo kextutil -b com.wch.usbserial
Password:
Warnings:
Dependency lacks appropriate value for OSBundleRequired and may not be availalble during early boot:
com.apple.iokit.IOSerialFamily - Safe Boot
最佳答案 它正在发挥作用
我移动了SiLabsUSBDriver(备份到我的桌面),插入设备,我就可以使用它了.
当没有插入带有串行USB端口的设备时,串口驱动程序没有显示在/ dev /中!