NyanSatan / checkm8_bootkit

Boot arbitrary iBoot on S5L8747X, S5L8947X and S7002, T8002, T8004 ("watch" branch)
43 stars 15 forks source link

How to build in Mac OS Catalina? #1

Open planktonwhc opened 2 years ago

planktonwhc commented 2 years ago

i tryng to make file using catalina, and show eror llvm bin notfound

NyanSatan commented 2 years ago

You gotta have an ARM compiler toolchain in order to build the payload. I usually use LLVM built from source, but you can find prebuilt GCC one online. Example for building with another toolchain is in README

planktonwhc commented 1 year ago

plankton@MBP-PLANKTON checkm8_bootkit % TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin ARM_CC=cc ARM_OBJCOPY=arm-none-eabi-objcopy make
clang: warning: argument unused during compilation: '-mthumb' [-Wunused-command-line-argument] error: unknown target CPU 'armv7-a' note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake, icelake-client, rocketlake, icelake-server, tigerlake, sapphirerapids, alderlake, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, znver3, x86-64, x86-64-v2, x86-64-v3, x86-64-v4 make: *** [build/src/libbootkit/payload/payload.o] Error 1

still cant build, how to fix ??

NyanSatan commented 1 year ago

You need a toolchain capable of building ARM binaries in ELF format, not the x86 one bundled with Xcode