Post Reply 
Bit and / or Marcus: help setting up Ubuntu Linux for flashing with MySamBa
12-20-2019, 08:17 PM
Post: #12
RE: Bit and / or Marcus: help setting up Ubuntu Linux for flashing with MySamBa
Quote:If /dev/ttyUSB0 is not created automatically when you plug the device, then the driver for the device is incorrect, or the serial device is not supported by Linux.

Thank you for that. I had no idea it would be created automatically, but it is, which you'll see later. lsusb reports it's connected, and dmesg logs its connection and disconnection. I installed no drivers so I suppose that's good news.

Beginning with the USB to serial device disconnected:

Code:
john@john-iMac:~$ rm ~/.wine/dosdevices/com1
john@john-iMac:~$ ln -s ~/.wine/dosdevices/com1 /dev/ttyUSB0
ln: failed to create symbolic link '/dev/ttyUSB0': File exists
john@john-iMac:~$ rm /dev/ttyUSB0
rm: cannot remove '/dev/ttyUSB0': Permission denied
john@john-iMac:~$ sudo rm /dev/ttyUSB0
[sudo] password for john: 
john@john-iMac:~$ ln -s ~/.wine/dosdevices/com1 /dev/ttyUSB0
ln: failed to create symbolic link '/dev/ttyUSB0': Permission denied
john@john-iMac:~$ sudo ln -s ~/.wine/dosdevices/com1 /dev/ttysUSB0
john@john-iMac:~$ ls -l /dev/ttyUSB0
ls: cannot access '/dev/ttyUSB0': No such file or directory
john@john-iMac:~$ ls -l ~/.wine/dosdevices/com1
ls: cannot access '/home/john/.wine/dosdevices/com1': No such file or directory

From this, I concluded attempting to create /dev/ttyUSB0 manually was a bad idea which wasn't working anyway. Deleting ~/.wine/dosdevices/com1 might also have been a bad idea, but I suppose I can always install wine again.

Then: I plugged it in and did the following:

Code:
john@john-iMac:~$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Dec 20 14:43 /dev/ttyUSB0

Wow magic! I had to repeat it to be sure (twice in fact, LOL):

Code:
john@john-iMac:~$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Dec 20 14:43 /dev/ttyUSB0
john@john-iMac:~$ ls -l ~/.wine/dosdevices/com1
ls: cannot access '/home/john/.wine/dosdevices/com1': No such file or directory
john@john-iMac:~$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Dec 20 14:43 /dev/ttyUSB0
john@john-iMac:~$ ln -s ~/.wine/dosdevices/com1 /dev/ttyUSB0
ln: failed to create symbolic link '/dev/ttyUSB0': File exists
john@john-iMac:~$

In summary: ttyUSB0 magically appears when connecting the device. Yay! I thought I had to work at it.

Sadly MySamBa still doesn't want to communicate. I select COM1 from the dropdown menu, connect both ends, configure the calc for SamBa Boot, hit Send, and I immediately get "unable to connect <ok>".

To make the calculator work again, I merely connect to the virtual machine, send the file, and it's back to life.

Still stuck. Everything I did with Terminal is shown above. Note that I still needed to use sudo for reasons I don't understand.

Any idea where to go from here? Obviously symlinks are confusing the *** out of me.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Bit and / or Marcus: help setting up Ubuntu Linux for flashing with MySamBa - John Galt - 12-20-2019 08:17 PM



User(s) browsing this thread: 1 Guest(s)