Benjamin-Dobell / Heimdall

Heimdall is a cross-platform open-source tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy devices.
MIT License
2.5k stars 580 forks source link

v1.4 incompatible with MacOs BigSur #490

Open clamattu opened 2 years ago

clamattu commented 2 years ago

I've just tried to install it but it is considered too old to be installed by the system (v.11.5.2)

amo13 commented 2 years ago

Did you try using the binary directly?

clamattu commented 2 years ago

Yes from Downloads

amo13 commented 2 years ago

Then what do you mean by installing? Try putting the binary heimdall file (no .app or .pkg or similar) into a folder and calling it from a terminal (e.g. ./heimdall print-pit). Also, the version available from the downloads link you mentioned is somewhat outdated and known to cause trouble on newer macos versions and newer devices (unfortunately, this project has been abandoned for a while). Try the binary that I compiled with a bug fix from a pull request, available here.

clamattu commented 2 years ago

Ok, i have downladed, rebooted and tried it. This is the result:

heimdall print-pit

Heimdall v1.4.2

Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
ERROR: Failed to detect compatible download-mode device.
amo13 commented 2 years ago

The last line states that no device in download mode was detected. Have you rebootet your device to download mode?

clamattu commented 2 years ago

Yes, it is with fap lock:off Screen "Downloading... do not turn off target"

I have already changed few port of my MacMini

amo13 commented 2 years ago

I merged a few overdue pull requests from this repo today. Can you please try with a freshly compiled version from here?

clamattu commented 2 years ago

/Applications/bin/heimdall print-pit

Heimdall v1.4.2

Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
ERROR: Failed to detect compatible download-mode device.

With a new cable that works on Win and Mac in non download-mode

Other suggestions?

amo13 commented 2 years ago

What device is this?

amo13 commented 2 years ago

@clamattu did you resolve the issue in the meantime?

Grimler91 commented 2 years ago

This fork: https://gitlab.e.foundation/e/tools/heimdall/-/tree/new_master supposedly works with more recent mac versions, AFAIK that is the one that the LineageOS project built their mac binaries from

amo13 commented 2 years ago

I'd rather have expected the other way around since /e/ is entirely relying on lineageos. How do you know? Did I miss a hint somewhere on lineage's site?

Anyway, the only additional commit to heimdall from the/e/ team seems to be only a fix for compilation issues on recent macos. It is pretty much the same as suggested in #468.

Grimler91 commented 2 years ago

How do you know? Did I miss a hint somewhere on lineage's site?

Hm, no, I might be completely wrong, I think I based it solely on the discussion in one of the other threads.

Anyway, the only additional commit to heimdall from the/e/ team seems to be only a fix for compilation issues on recent macos. It is pretty much the same as suggested in #468.

The /e/ changes look a bit cleaner than the ones in #468 (if(APPLE) seems better than if(NOT MINGW) for example), but you are right, pretty equivalent.

For reference, I have merged some of the PRs and made some minor changes over at sourcehut, but nothing to fix macos compilation (I don't own a mac)

amo13 commented 2 years ago

It is way cleaner, you are right. And it also solves the compilation issues I had in my fork. Thank you for the hint, @Grimler91 !

danielboston38 commented 1 year ago

sorry for opening a closed issue but how do I get the binary? the option of opening a packages contents isn't in the menu anymore and I don't know how to do it.