FTDI Community

General Category => Discussion - Drivers => Topic started by: kalle on September 10, 2020, 12:20:41 PM

Title: VCP driver on macOS 11
Post by: kalle on September 10, 2020, 12:20:41 PM
The current VCP driver can't be installed on macOS 11 beta 6 as Apple seems to consider it a "legacy system extension" (https://support.apple.com/en-us/HT210999). Is there any plans to provide a driver that works on macOS 11?
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on September 11, 2020, 12:57:48 PM
Hello,

We are currently working on a .dext version of the driver to be compatible with the newer versions of macOS.
 
However in macOS 10 Apple distributed a VCP driver built into the OS which works for all standard FTDI devices, this was called AppleUSBFTDI.kext pre-Catalina and AppleUSBFTDI.dext in Catalina. I haven’t had a chance to look at macOS 11 yet, but I believe the inbuilt apple driver should still be included.


Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: on8mc on September 11, 2020, 07:25:13 PM
I use two (2) devices with a FTDI chip. An RT Systems USB-62C cable and a Microham USB Interface III.

The RT Systems USB-62C cable works fine with the built-in .dext in macOS 11 Big Sur Beta 6. The Microham USB Interface III doesn't.
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on September 14, 2020, 03:43:59 PM
Hello,

I am unfamiliar with the Microham USB Interface III, could you share its details from the hardware monitor similar to the attached screenshot?

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: on8mc on September 14, 2020, 05:57:45 PM
Here it is (in macOS Catalina):

(https://www.imgdumper.nl/uploads9/5f5fa0dcdc05e/5f5fa0dcd91ee-Schermafbeelding_2020-09-14_om_18.54.34.jpg)


in macOS 11 Big Sur:

(https://www.imgdumper.nl/uploads9/5f5fa36177059/5f5fa3616da6a-Schermafbeelding_2020-09-14_om_19.04.59.png)

Title: Re: VCP driver on macOS 11
Post by: FTDI Community on September 18, 2020, 10:45:48 AM
Hello,

I see that your device is using the Product ID (PID): 0xEEEF with our default FTDI Vendor ID (VID): 0x0403.
This VID/PID combination is included in our VCP driver (FTDIUSBSerialDriver.kext), however it is not included in the inbuilt Apple VCP driver (AppleUSBTDI.dext).

Unfortunately at this time we do not have a .dext version driver available for macOS 11 Big Sur, but we hope to have this available shortly.

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: James on September 21, 2020, 02:44:40 PM
Hi there, we are also looking forward to the .dext driver version.

We have a few products using the default FTDI vendor ID with our own PID (granted by FTDI some years back). Will our VID/PID combination also work in the upcoming .dext driver?

Thanks
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on September 22, 2020, 03:56:28 PM
Hello,

We have a few products using the default FTDI vendor ID with our own PID (granted by FTDI some years back). Will our VID/PID combination also work in the upcoming .dext driver?

If your VID/PID combination is currently included in our macOS VCP driver's Info.plist file then yes it will be included in the .dext version of the driver.

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: Kimball on November 12, 2020, 05:12:48 PM
Big Sur is officially being released today, and there is still no VCP driver available. We have thousands of customers out there with FTDI devices that use a custom VID/PID who are inevitably going to be updating to Big Sur, rendering our equipment completely unusable.

I know FTDI has been working on an update for Big Sur for a while, but can we get a timeline for when it will actually be available? I'll be happy to test a beta version if you have it ready now...
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on November 16, 2020, 11:18:30 AM
Hello,

I have chased the development team up for a relapse schedule for the new .dext driver.
When a beta is available I will post this for community user testing.

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: jcsmedley on November 21, 2020, 07:35:43 PM
Any updates?

Thanks,
Jeff
Title: Re: VCP driver on macOS 11
Post by: Superboy on November 23, 2020, 02:51:52 AM
It is now 5 months since the first developer beta of Big Sur, why is there still no updated driver? Can there be at least an update on how far along it is, 10%? 90%?
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on November 23, 2020, 02:17:18 PM
Hello

It is now 5 months since the first developer beta of Big Sur, why is there still no updated driver? Can there be at least an update on how far along it is, 10%? 90%?

Are you using a device with a non default VID/PID combination?

As far as I am aware our developers are still waiting on Apple clarifying some questions on .dext development. Unfortunately I do not have an updated schedule for release at this point. But this is a top priority for us and I will update when I have any new information.

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: Superboy on November 23, 2020, 02:49:31 PM
Thanks for the reply.

I'm using a FT2232HL, and the Apple driver returns "SetTTY (fd 5): ioctl failed: Invalid argument" when trying to use channel 0 with screen, and a similar error through Python:


Code: [Select]
File "/Users/user/.espressif/python_env/idf4.2_py3.9_env/lib/python3.9/site-packages/serial/serialposix.py", line 272, in open
    self._reconfigure_port(force_update=True)
File "/Users/user/.espressif/python_env/idf4.2_py3.9_env/lib/python3.9/site-packages/serial/serialposix.py", line 435, in _reconfigure_port
    termios.tcsetattr(
termios.error: (22, 'Invalid argument')

Strangely, trying to use channel 1 sometimes doesn't report an error though I can't test whether serial actually works as its pins aren't exposed appropriately on this board - they're usually for JTAG.

Another reason I need the FTDI drivers too is so that I can edit the Info.plist and prevent the serial driver from being loaded on the JTAG channel. A workaround before was to unload the Apple (and FTDI) driver, start the debugger and load the driver - which prevents the driver enumerating the JTAG channel. Loading and unloading the Apple dext seems to be unreliable at best right now, and even then it doesn't help with the ioctl error.
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on November 23, 2020, 03:59:36 PM
Hello,

Thanks for the details.
Just to confirm you are seeing this error only on big sur with the inbuilt apple driver?

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: kalle on November 24, 2020, 02:47:54 PM
FYI also to this thread: I've tried to ask in Apple forums whether it would be possible to somehow utilize Apple's dext driver for FTDI devices with custom PID, but haven't got any answers...  :(

https://developer.apple.com/forums/thread/659891 (https://developer.apple.com/forums/thread/659891)
Title: Re: VCP driver on macOS 11
Post by: lelebass2001 on November 24, 2020, 03:01:16 PM
Hi,
we are in a similar situation here, we currently use libftd2xx.dylib with our VID/PID. Do you plan to release a libftd2xx.dext?

Best Regards,
Daniele

Hello

It is now 5 months since the first developer beta of Big Sur, why is there still no updated driver? Can there be at least an update on how far along it is, 10%? 90%?

Are you using a device with a non default VID/PID combination?

As far as I am aware our developers are still waiting on Apple clarifying some questions on .dext development. Unfortunately I do not have an updated schedule for release at this point. But this is a top priority for us and I will update when I have any new information.

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on November 24, 2020, 03:15:09 PM
Hello,

The D2XX driver is a dynamic library file on macOS and is not related to the kernel/driver extension migration currently happening with the VCP driver.

What issues are you seeing with the D2XX driver?

Hi,
we are in a similar situation here, we currently use libftd2xx.dylib with our VID/PID. Do you plan to release a libftd2xx.dext?

Best Regards,
Daniele

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: lelebass2001 on November 24, 2020, 03:30:49 PM
You are right, my mistake.

I do not want to hijack this thread, but the question is if the libftd2xx.dylib can run under Apple ARM architecture. As far as I know the current 1.4.4 dylib has only x86_64 support.

Best Regards,
Daniele
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on November 24, 2020, 04:33:06 PM
Hello,

My understanding is that the Rosetta 2 binary translator will allow for x86_64 libraries and applications to run on the new Apple M1 processors with minimal performance loss. But I will raise this with the developers and see if they can clarify.

We of course intend to rebuild the libftd2xx.dylib for the ARM platform, but we are currently concentrating on the VCP .dext transition.

Best Regards,
FTDI Community
Title: Re: VCP driver on macOS 11
Post by: Superboy on November 28, 2020, 07:01:22 PM
Hello,

Thanks for the details.
Just to confirm you are seeing this error only on big sur with the inbuilt apple driver?

Best Regards,
FTDI Community


Yes, I can't load the FTDI driver at all.

I reinstalled Big Sur and initially it worked, but it has broken again. I think it may have something to do with VMWare Fusion, as it seemed to break when that was running. However I have since deleted all traces of Fusion (including kexts) and the problem persists.

The attachment shows the message that it has loaded the driver but then trying to access the serial ports with
Code: [Select]
screen again shows
Code: [Select]
SetTTY (fd 5): ioctl failed: Invalid argument.

Quite often attaching the FT2232 results in an enumeration error shown in the second attachment. Does Apple write their driver independently of yourselves? If so, i'll submit a big report to them.

Thanks.
Title: Re: VCP driver on macOS 11
Post by: Superboy on November 28, 2020, 07:03:11 PM
FYI also to this thread: I've tried to ask in Apple forums whether it would be possible to somehow utilize Apple's dext driver for FTDI devices with custom PID, but haven't got any answers...  :(

https://developer.apple.com/forums/thread/659891 (https://developer.apple.com/forums/thread/659891)

I'm pretty sure I read somewhere you can subclass the Apple driver with a VIP/PID of your own and the Apple driver will load. I can't help you with exactly how though I'm afraid!
Title: Re: VCP driver on macOS 11
Post by: FTDI Community on November 30, 2020, 01:59:47 PM
Hello,

Yes that is correct, Apple develop their VCP driver independently from our VCP driver.

Best Regards,
FTDI Community