xsscx / srd

Welcome to Hoyt's SRD Repo for the Apple Security Research Device. Contribute Code or Open an Issue or Discussion.
Other
63 stars 12 forks source link

SUMMARY: BUILD | 21C52 | 21D5025f | 20C80 | 21C39 | X86_64 | T8101 | Toybox | Build | Resolved #7

Closed xsscx closed 2 years ago

xsscx commented 2 years ago

21C52 | 21D5025f | 20C80 | 21C39 | X86_64 | T8101 | Toybox | Build

Last Update: Sunday 9 JAN 2022 at 2248 US Eastern Time

It has been found that for macOS 15.2 when using X86_64 or T8010 that with a Target == iOS SDK 15.2, and possibly others, that Toybox does not Build.

Error

.clang: error: no such file or directory: 'generated/obj/vi.o'
make[2]: *** [toybox] Error 1
make[1]: *** [toybox-bin] Error 2

Last Known Good Working Build for Toybox for macOS or iOS

https://github.com/landley/toybox/commit/ea4748a7cbfa5e2f3ef188f917d4e5aeac70dd0f

macOS 11.6.3 with 20C80 when using X86_64 or M1 uo to Toybox Commit 

https://github.com/landley/toybox/commit/ea4748a7cbfa5e2f3ef188f917d4e5aeac70dd0f

macOS 12.x with 21C39 when using X86_64 or M1 up to Toybox Commit 

Other Report

See URL https://github.com/landley/toybox/issues/314

Workaround

Install a pre-build DMG from Repo at URL https://github.com/xsscx/srd/tree/main/dmg

Research in Progress

xsscx commented 2 years ago

Added a Rollback Repo for Toybox to Build for Apple Security Research Device cryptex for any supported ECID for any supported IPSW. Included toybox-src and the built binary plus the Makefile changes and a Point Release Cryptex DMG.

People are having issues Building on macOS 12.x, this directory attempts to workaround the issue.

See URL https://github.com/xsscx/srd/tree/main/SecurityResearchTools_21C39/example-cryptex/src/toybox

xsscx commented 2 years ago

Apple SRD Build Note from https://github.com/landley/toybox/issues/314

These were the changes made to toybox to get a Build for iOS:

macos_miniconfig

Removed CONFIG vi=y

Makefile

Remove echo CONFIG_VI=y >> toybox-src/kconfig/macos_miniconfig

That will Build toybox for cryptex from Commit https://github.com/landley/toybox/commit/6cc6d5b0651f1eba689a9c6e6d53d4502334208b

Target SDK

[example-cryptex] - macOS SDK at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk
[example-cryptex] - iOS SDK at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk
xsscx commented 2 years ago

Added Toybox Build Issue to Issue tracker in SRD Repo https://github.com/apple/security-research-device/issues/34

xsscx commented 2 years ago

Fixed with Commit https://github.com/landley/toybox/commit/e7e4229c059f4a45eaf0ff0cb0f228275e3e7772