Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions asahi_firmware/wifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,18 @@ def load(self, source_path):
dirnames.remove("perf")
if "assert" in dirnames:
dirnames.remove("assert")
# remove broken firmware dir in 14.6.1 IPSW
if "C-4388__s-C2" in dirnames:
dirnames.remove("C-4388__s-C2")
subpath = os.path.relpath(dirpath, source_path)
for name in sorted(filenames):
if not any(name.endswith("." + i) for i in self.EXTMAP):
continue
# macOS 14.6/14.8 contains {java,sumatra}_gen* files, possible
# for generic data. It's not clear how they are used so skip
# them for now
if "_gen" in name:
continue
path = os.path.join(dirpath, name)
relpath = os.path.join(subpath, name)
if not name.endswith(".txt"):
Expand Down
2 changes: 1 addition & 1 deletion m1n1
Submodule m1n1 updated 157 files
22 changes: 22 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class Device:
0x6020: "13.1", # T6020, M2 Pro
0x6021: "13.1", # T6021, M2 Max
0x6022: "13.4", # T6022, M2 Ultra
0x8122: "14.8.3", # T8122, M3
0x6030: "14.8.3", # T6030, M3 Pro
0x6031: "14.8.3", # T6031, M3 Max (16-core)
0x6034: "14.8.3", # T6034, M3 Max (14-core)
}

DEVICES = {
Expand All @@ -71,6 +75,17 @@ class Device:
"j475cap": Device("13.4", False), # Mac Studio (M2 Max, 2023)
"j475dap": Device("13.4", False), # Mac Studio (M2 Ultra, 2023)
"j180dap": Device("13.4", False), # Mac Pro (M2 Ultra, 2023)
"j433ap": Device("14.8.3", True), # iMac (24-inch, M3, 2023)
"j434ap": Device("14.8.3", True), # iMac (24-inch, M3, 2023)
"j504ap": Device("14.8.3", True), # MacBook Pro (14-inch, M3, 2023)
"j613ap": Device("14.8.3", True), # MacBook Air (13-inch, M3, 2024)
"j615ap": Device("14.8.3", True), # MacBook Air (15-inch, M3, 2024)
"j514sap": Device("14.8.3", True), # MacBook Pro (14-inch, M3 Pro, 2023)
"j514cap": Device("14.8.3", True), # MacBook Pro (14-inch, M3 Max, 2023)
"j514map": Device("14.8.3", True), # MacBook Pro (14-inch, M3 Max, 2023)
"j516sap": Device("14.8.3", True), # MacBook Pro (16-inch, M3 Pro, 2023)
"j516cap": Device("14.8.3", True), # MacBook Pro (16-inch, M3 Max, 2023)
"j516map": Device("14.8.3", True), # MacBook Pro (16-inch, M3 Max, 2023)
}

# Asahi Linux does not support running in a virtual machine, this option
Expand Down Expand Up @@ -101,6 +116,13 @@ class Device:
False,
None,
"https://updates.cdn-apple.com/2023SummerFCS/fullrestores/032-69606/D3E05CDF-E105-434C-A4A1-4E3DC7668DD0/UniversalMac_13.5_22G74_Restore.ipsw"),
IPSW("14.8.3",
"14.6",
"iBoot-10151.140.19",
"23.10.220.0.0,0",
True,
["j433ap", "j434ap", "j504ap", "j613ap", "j615ap", "j514sap", "j514cap", "j514map", "j516sap", "j516cap", "j516map"],
"https://updates.cdn-apple.com/2025FallFCS/patches/089-71124/49AD260A-D47F-4B5E-A793-30446187196E/com_apple_MobileAsset_MacSoftwareUpdate/f6d1ac9149f6a06401ff87fae5b262c420bfc5f7.zip"),
]

class InstallerMain:
Expand Down
10 changes: 5 additions & 5 deletions src/stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,17 @@ def load_identity(self):

if self.is_ota:
self.variant = "macOS Customer Software Update"
behavior = "Update"
self.behavior = "Update"
else:
self.variant = "macOS Customer"
behavior = "Erase"
self.behavior = "Erase"

self.manifest = manifest
for identity in manifest["BuildIdentities"]:
if (identity["ApBoardID"] != f'0x{self.sysinfo.board_id:02X}' or
identity["ApChipID"] != f'0x{self.sysinfo.chip_id:04X}' or
identity["Info"]["DeviceClass"] != self.sysinfo.device_class or
identity["Info"]["RestoreBehavior"] != behavior or
identity["Info"]["RestoreBehavior"] != self.behavior or
identity["Info"]["Variant"] != self.variant):
continue
break
Expand Down Expand Up @@ -413,8 +413,8 @@ def collect_firmware(self, pkg):
copied = set()
kernel_path = None
for identity in [self.identity]:
if (identity["Info"]["RestoreBehavior"] != "Erase" or
identity["Info"]["Variant"] != "macOS Customer"):
if (identity["Info"]["RestoreBehavior"] != self.behavior or
identity["Info"]["Variant"] != self.variant):
continue
device = identity["Info"]["DeviceClass"]
if not device.endswith("ap"):
Expand Down
Loading