JrMasterModelBuilder / Mindstorms-Fantom-Drivers-Mac-Install

A script to install the LEGO Mindstorms Fantom drivers on semi-modern macOS versions (through macOS 10.14 Mojave).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"chmod: Invalid file mode" and driver install not operational

carlos1w opened this issue · comments

I tried your script (thank you) on MacOS Monterey. When executing I get a lot of errors of type

chmod: Invalid file mode: 100444
chmod: Invalid file mode: 40755
chmod: Invalid file mode: 100666

(repeated many times and other number codes too)

The drivers appear to install

Installing components:
/Library/Application Support/National Instruments
/Library/Frameworks/Fantom.framework
/Library/Frameworks/VISA.framework
/Library/Preferences/NIvisa
Cleaning up
Done

But then the NXT2 is still not recognized by LEGO's EV3 software.

The MacOS still recognized the brick as a "Composite Device" same as before:

Composite Device:
Product ID: 0x0002
Vendor ID: 0x0694 (Lego Group)
Version: 0.00
Serial Number: 001653112B5A
Speed: Up to 12 Mb/s
Location ID: 0x14400000 / 53
Current Available (mA): 500
Current Required (mA): 0
Extra Operating Current (mA): 0

I was under the impression that the EV3 software was 32-bit only, and so it wouldn't run on macOS 10.15+ (Catalina+, including Monterey).

At the very least, I'm not aware of a MAC legodriver.pkg that contains 64-bit binaries.

If you run the following, I think you would see that it's a 32-bit Intel binary (i386), and thus unable to load since macOS 10.15:

file /Library/Frameworks/Fantom.framework/Versions/Current/*

Unless you know something I don't, I don't think installing this driver is a useful thing to do anymore, making the issue of the script setting permission moot.

Thank you for the reply. Indeed it is 32 bit. Darn! I thought perhaps it would have worked. It is so unfortunate to basically have such a nice little robot become useless because of this.

Yeah I think only the EV3 is supported by the replacement app Education EV3 Classroom.

If you have an Intel Mac (or maybe Apple Silicon ones too) you could try running the Windows version of the software in a Windows VM (or the macOS version in an older macOS VM, but Windows would probably run smoother).

It looks like BricxCC may also be available for Linux, either directly or with Wine and another tool.

nxt-python may also be worth taking a look at.