我使用KEEProg_24xxx_03c控制一个EEPROM程序员通过USB。这几年来效果很好。
然而,现在它抱怨说:
$ mono ./KEEProg_03c.exe
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'很可能,自从上次使用mono以来,我已经升级了它。
听起来好像mono不支持这个旧的二进制文件。我没有源代码,所以我不能链接到更新的版本。
wine启动程序,但USB访问不工作(“关于”抱怨:设备没有找到)。
我有什么选择?是否有一个GNU/Linux工具可以控制我的24 GNU?我可以降低mono的级别或安装旧的库版本吗?
KEEProg通过USB连接。USB设备被检测为:
[1333363.114683] usb 3-2: new full-speed USB device number 33 using xhci_hcd
[1333363.248418] usb 3-2: New USB device found, idVendor=0403, idProduct=6001
[1333363.248423] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1333363.248426] usb 3-2: Product: FT232R USB UART
[1333363.248428] usb 3-2: Manufacturer: FTDI
[1333363.248430] usb 3-2: SerialNumber: A700f2Je
[1333363.250897] ftdi_sio 3-2:1.0: FTDI USB Serial Device converter detected
[1333363.250948] usb 3-2: Detected FT232RL
[1333363.251171] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0这个设备看起来非常像这个(我找不到任何视觉差异):https://sigma-shop.com/product/31/usb-24xxx-i2c-e-eprom-programmer-microchip-atmel.html
代码可以在这里找到:https://info.kmtronic.com/software/KEEPROG/KEEProg_24/KEEProg_24_03c.zip
发布于 2018-03-04 21:44:11
我需要运行时v2.0.50727:
$ ikdasm KEEProg_03c.exe | head -n 2
// Metadata version: v2.0.50727$ mono --runtime=2.0 ./KEEProg_03c.exe 这很管用。
https://unix.stackexchange.com/questions/428133
复制相似问题