Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on flashing binaries from Macs #127

Closed
odudex opened this issue Apr 26, 2022 · 4 comments
Closed

Error on flashing binaries from Macs #127

odudex opened this issue Apr 26, 2022 · 4 comments

Comments

@odudex
Copy link
Member

odudex commented Apr 26, 2022

MacBook:krux-v22.03.0 xxx$ ./ktool-mac -B goE -b 1500000 maixpy_m5stickv/kboot.kfpkg
[10684] Error loading Python lib '/var/folders/pv/58vvqdhn26q3fvsnbqq6pjb00000gn/T/_MEIGLO3yx/libpython3.9.dylib': dlopen: dlopen(/var/folders/pv/58vvqdhn26q3fvsnbqq6pjb00000gn/T/_MEIGLO3yx/libpython3.9.dylib, 10): Symbol not found: ____chkstk_darwin
Referenced from: /var/folders/pv/58vvqdhn26q3fvsnbqq6pjb00000gn/T/_MEIGLO3yx/libintl.8.dylib (which was built for Mac OS X 11.0)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/pv/58vvqdhn26q3fvsnbqq6pjb00000gn/T/_MEIGLO3yx/libintl.8.dylib

As a workaround I suggested to use kflashGUI instead

@ghost
Copy link

ghost commented Apr 26, 2022

This looks like the same problem encountered here: jakehilborn/debbit#27

The build of ktool that's included in the release comes from here:
https://github.com/selfcustody/ktool/releases/tag/v0.1.0

Which is itself created by a Github Actions workflow, where I specify the mac version as macos-latest:
https://github.com/selfcustody/ktool/blob/master/.github/workflows/create-exe.yml#L34

According to this table, macos-latest currently corresponds to macos-11:
https://github.com/actions/virtual-environments#available-environments

Do you know what version of Mac OS the machine this failed on was?

As for the workaround, that should work as long as they are able to flash the .kfpkg file (if they flash only firmware.bin, airgapped firmware upgrades won't be possible due to missing kboot). They could also pull down https://github.com/selfcustody/ktool and run ktool.py using their local python 3 installation if that's an option.

@ghost
Copy link

ghost commented May 6, 2022

@odudex Did you ever get more information about this (e.g., if their Mac OS version was <11 or >11)?

To resolve this, I was thinking I could update the Github workflow in ktool to use the oldest available Mac OS version, and also include ktool.py in the packaged release as a fallback that the user can run under their own python installation.

@ghost ghost added this to the Version 22.05.0 milestone May 6, 2022
@odudex
Copy link
Member Author

odudex commented May 6, 2022

One case version was 10.13.6

ghost pushed a commit to selfcustody/ktool that referenced this issue Aug 1, 2022
@ghost
Copy link

ghost commented Aug 1, 2022

@odudex Going to close for now since I just put out a new release with builds for Mac OS 10 that should hopefully address this user's issue. The new ktool builds will make their way into the 2022.08.0 release.

@ghost ghost closed this as completed Aug 1, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant