Closed DarkSector closed 2 years ago
Doesn't build with python 3.7.12 on M1 with rosetta either
Hi @DarkSector, I think I found a solution to this since I just received my new M1 macbook. You'll need to use the Intel x86 version of VSCode for PlatformIO to work correctly with Rosetta: https://code.visualstudio.com/sha/download?build=stable&os=darwin
After that, I was able to use the command pio run -e core2foraws-device_reg -t register_thing
and it worked perfectly. Do note that we update the repository recently to add the PIO extra script with the register_thing target. Make sure to pull the latest code.
Great idea! Let me try that
Okay that worked. For posterity, here are the steps to get it working with Apple M1 silicon
Should be able to build it then.
Thank you for those additional details. We now have ARM M1 AWS EC2 instances to test against so we can document the steps properly for M1 and ensure it works for all users.
Overall, I'm glad that the workaround for now is relatively straightforward. Hopefully we see native ARM M1 support for all dependencies instead of using Rosetta.
Is there a possibility of a docker image with all the dependencies baked in? It would be great to just pass the serial port to the container and never have to worry about installation etc.
Yes, this is something we have been wracking our brains trying to solve and have made multiple trials. However this can cause new complications on Windows due to Docker on Hyper-V.
Microchip Cryptoauthlib package is not buildable using Apple M1. Is there a work around for this? This comes up when trying to register_thing.
cryptoauthlib also only supports python 3.7 nothing beyond that.
Opened a new freature request with cryptoauthlib project