pine64 / blisp

ISP tool & library for Bouffalo Labs RISC-V Microcontrollers and SoCs
MIT License
149 stars 20 forks source link

Command line not working on MacBook Pro 14" apple M1 Pro #13

Closed mark1352 closed 1 year ago

mark1352 commented 1 year ago

MacBook-Pro-4:Blisp_Linux_x86 markjohn$ sudo ./blisp write -c bl70x --reset Pinecilv2_EN.bin Password: ./blisp: ./blisp: cannot execute binary file above copied from terminal. Am I going something wrong?

robertlipe commented 1 year ago

Your title says "Macbook on M1". Your prompt says "Linux on 86". So there are two CPU architectures and two completely different operating systems involved.

Unless you really are running Linux on x86 on MacOS via virtualization or something, that's not going to work. You should run binaries appropriate for whatever operating system you're running.

gamelaster commented 1 year ago

Building on MacOS works, although, there are still some UART issues which needs to be addressed.

River-Mochi commented 1 year ago

Mark, the linux pre-made executable you downloaded won't work directly on Mac.
have you tried @gamelaster suggestion to build it in apple terminal window? There are instructions on how to do the build for linux on the main page of this blisp, I'm wondering if you could try to follow same instructions and it would build and give you a mac executable?

I was able to use the Linux instructions and make a working executable on ARM laptop (pinebook pro). It took me about 15 minutes. you could try same instructions and see how it goes?

mark1352 commented 1 year ago

So I need to build on my Mac and not use the Linux build

River-Mochi commented 1 year ago

according to the other new ticket that will not work right now. Someone else tried today on Mac and they can build it . but then it does not work.

gamelaster commented 1 year ago

Should be fixed on latest release.