Matz Stubenhocker schrieb:
> Der PC ein
> Laptop mit Linux Mint. Wine,
und
Matz Stubenhocker schrieb:
> ein Arduino Nano Clone mit CH340C Chip als USB-
> Bridge. Geht sowas, oder ist das utopisch?
Grundsätzlich KANN das funktionieren. Du weißt, dass Wine nur 32-Bit
Windowsprogramme kann und du unter einem 64-Bit Linux ein
"multi-architecture system" benötigst (was bei mir zu Instabilitäten
geführt hat)?
Zudem kann Wine (fast) nicht auf USB zugreifen, für ein verfügbarmachen
von seriellen und parallelen Schnittstellen (die auch über USB2UART wie
ein CH340G realisiert sein können) gibt
https://wiki.winehq.org/Wine_User's_Guide#AEN901
folgende Auskunft (Zitat):
Since Wine 2.8, serial and parallel ports are detected automatically
when Wine starts. Windows serial ports follow a naming convention of the
word COM followed by a number, such as COM1, COM2, etc. Similarly,
parallel ports use LPT followed by a number, such as LPT1. Linux, Mac,
and BSD each have their own device naming conventions, but in every case
the serial or parallel device is located somewhere in /dev. You can see
the mapping of Windows devices to Unix devices by looking in
~/.wine/dosdevices. For example:
1 | $ ls -l ~/.wine/dosdevices/
|
2 | total 0
|
3 | lrwxrwxrwx 1 alex alex 10 May 13 21:21 c: -> ../drive_c
|
4 | lrwxrwxrwx 1 alex alex 10 May 14 14:43 com1 -> /dev/ttyS0
|
5 | lrwxrwxrwx 1 alex alex 10 May 14 14:43 com2 -> /dev/ttyS1
|
6 | lrwxrwxrwx 1 alex alex 10 May 14 14:43 com3 -> /dev/ttyS2
|
7 | lrwxrwxrwx 1 alex alex 10 May 14 14:43 com4 -> /dev/ttyS3
|
8 | lrwxrwxrwx 1 alex alex 12 May 14 14:43 com5 -> /dev/ttyUSB0
|
9 | lrwxrwxrwx 1 alex alex 8 May 13 21:22 d:: -> /dev/sr0
|
10 | lrwxrwxrwx 1 alex alex 8 May 14 14:43 lpt1 -> /dev/lp0
|
11 | lrwxrwxrwx 1 alex alex 1 May 13 21:21 z: -> /
|
Make sure you have the needed rights to access your computer's serial
and parallel ports. On Linux, a user must typically be a member of the
sys or dialout group to access serial ports, or the lp group to access
parallel ports.
To override Wine's default device mapping, run wine regedit and create
string entries in HKEY_LOCAL_MACHINE\Software\Wine\Ports where the entry
name is the Windows device name and the entry value is the path to the
Unix device. Continuing with the above example, to make COM1 the first
USB-attached serial port, create an entry with the name COM1 and the
value /dev/ttyUSB0. You might also want to create an entry named COM5
with no value to remove the COM5 device which is now a duplicate of
COM1. After editing the registry, shut down Wine with wineserver -k and
the next time Wine runs a program, your changes will take effect.
If you use a version of Wine prior to 2.8, you'll likely have to create
symbolic links in ~/.wine/dosdevices yourself. For example, to make COM1
the first USB-attached serial port, run ln -s /dev/ttyUSB0
~/.wine/dosdevices/com1.
--------------------------------------------
Willst du dir das wirklich alles antun ?
Alexander S. schrieb:
> VM funktioniert.
Das dürfte die weitaus bessere Lösung sein, Dateien können dann über die
"GuestAdditions" zwischen Linux und dem virtuellen Windows ausgetauscht
werden.