BlitterStudio / amiberry

Optimized Amiga emulator for Linux/macOS
https://amiberry.com
GNU General Public License v3.0
664 stars 90 forks source link

Drawbridge support for macOS #1063

Closed n0rt0nthec4t closed 1 year ago

n0rt0nthec4t commented 1 year ago

It appears Drawbridge support support is not implemented in macOS builds.. Is this something that can be added in?

midwan commented 1 year ago

@n0rt0nthec4t It's not excluded from the build, so it should work the same way as it does under Linux. But I'm not sure if there are differences in the permissions and device handling under macOS, as I don't have one to test with here... :-/

n0rt0nthec4t commented 1 year ago

Ah ok. There options to enable drawbridge support is greyed out in the ui

midwan commented 1 year ago

@n0rt0nthec4t You'll have to change the floppy type to one of the FB: options first, to enable it (FB stands for Floppy Bridge). Check the wiki also: https://github.com/BlitterStudio/amiberry/wiki/GUI:-Floppy

n0rt0nthec4t commented 1 year ago
Screenshot 2023-03-20 at 8 49 48 pm
midwan commented 1 year ago

@n0rt0nthec4t That's an indication that one of these things is happening:

On Linux, usually the device name is something like /dev/ttyUSB0 (or a higher USB device id, depending on how many you have available). Can you see if that's available when your device is connected? If it's there, then perhaps you need to give your username permissions to access it. On Linux, usually that's done by becoming a member of the uucp group, for example.

I'm not sure if the above is different under macOS, but the same principal should apply there as well. :)

n0rt0nthec4t commented 1 year ago

Yes, seems teh USB serial UARTs are assigned different names. Ie. I have

crw-rw-rw- 1 root wheel 0x9000004 21 Mar 07:25 /dev/tty.usbserial-A502IP0V crw--w---- 1 mark tty 0x10000000 21 Mar 07:18 /dev/ttys000 crw--w---- 1 mark tty 0x10000001 21 Mar 07:18 /dev/ttys001 crw--w---- 1 mark tty 0x10000002 21 Mar 07:41 /dev/ttys002 crw--w---- 1 mark tty 0x10000003 21 Mar 07:18 /dev/ttys003 crw--w---- 1 mark tty 0x10000004 21 Mar 07:18 /dev/ttys004 crw-rw-rw- 1 root wheel 0x9000005 21 Mar 07:25 /dev/cu.usbserial-A502IP0V

The code looks for devices in /sys/dev which doesnt exist on macOS systems

midwan commented 1 year ago

@n0rt0nthec4t I'm talking to Rob about this, as it will need an update to his driver to work as expected.

n0rt0nthec4t commented 1 year ago

@midwan thanks.. If you and/or Rob need assistance in testing, reach out

midwan commented 1 year ago

@n0rt0nthec4t Please test after the latest commits which should fix this

n0rt0nthec4t commented 1 year ago

No worries.. will test when teh next binary builds are up. Also, noticed with 5.6 there is no binary build for Apple M1, just X86 only?