evilwombat / gopro-usb-tools

Tools for booting an otherwise hard-bricked GoPro Hero2 / Hero3+Black / Hero4 camera using its built-in USB command mode, to its RTOS or to a standalone Linux environment.
GNU General Public License v2.0
128 stars 37 forks source link

unable to execute ./gpboot_mac: Bad CPU type in executable #33

Closed mersay closed 4 months ago

mersay commented 4 months ago

Running on a Apple M2 MBA, shell is zsh

Device is GoPro Hero 4

Any idea how I can tweak the script?

evilwombat commented 4 months ago

I believe the M2 is an ARM architecture, while the Mac version of the tool is built for x86. You'd basically need to compile gpboot for your architecture. I'm not really sure how to do this on a Mac these days, but the only dependency is libusb-1.0. If you can get the libusb library/header and GCC for your system, you should be able to build the tool using 'make'. You might need to tweak the Makefile to add the location of libusb on your system.

On Sat, Apr 27, 2024, 6:36 PM Mercedes L @.***> wrote:

Running on a Apple M2 MBA, shell is zsh

Device is GoPro Hero 4

Any idea how I can tweak the script?

— Reply to this email directly, view it on GitHub https://github.com/evilwombat/gopro-usb-tools/issues/33, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARUYEYGUP6WOSCEN2LYFM3Y7RHC3AVCNFSM6AAAAABG4RONH2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DOMRYHAZTCNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mersay commented 4 months ago

@evilwombat Thanks for the quick reply, I knew M2 would be a problem. I ran it on my windows PC and it worked. The only "problem" I had was after running the bat file, my camera (hero4 silver) had some message saying that the SETUP queue failed. I removed the card and inserted again, this time I was able to turn the camera on! Thank you so much for your help :) Any link I can buy you a coffee?