Skip to content

Troubleshooting ​

Procedure ​

  1. Save the failing command and first error. For a boot failure, record the last confirmed bring-up stage.
  2. Run ./unixnu status --json to confirm the device, source origins, OS profile and output directory. Inspect the corresponding log or report.
  3. Find the symptom in the build, IPSW or boot table below. Check the named input before applying its action.
  4. Repeat the failed step with the corrected input. Repack the boot image after changing firmware or payload. Record whether the original error is resolved and which checkpoint now completes.
  5. If the cause remains undetermined, save an evidence bundle with the command, revisions and logs for investigation.

Early boot checks ​

  • A top green bar marks DarwinBoot's handoff before the kernel branch. Follow the green-bar diagnosis.
  • To apply changed boot arguments, rebuild the payload and boot image, then boot that image. Follow apply boot arguments.
  • Save firmware and image paths in unixnu.local.toml for ./unixnu firmware, ./unixnu kernel, and ./unixnu bootimg.

Build ​

SymptomCheckAction
no device repository-D or UNIXNU_DEVICEPass the device repository
has no board.tomlDevice repository layoutCreate board.toml
is an EXAMPLE device repository[board] exampleComplete the template inputs and remove board.example = true
no configurationout/<device>/<os_profile>/<config>/.configRun unixnu defconfig NAME
no Mu-Silicium checkout--uefi pathPass a checkout with Resources/Scripts/mkbootimg.py
is not a Mu-Silicium checkoutPathPoint --uefi at the root of the checkout
no edk2 tree--edk2 or fetched edk2Run unixnu fetch or pass a Mu_Basecore tree
Missing archive in the kernel step[kernel] archives and logs/archive-NN-*.logFix the builder entry or supply the archive
no builder makes itThe named *_ARCHIVE pathAdd a builder to [kernel] archives or place the archive in the build tree
kernelcache not found--kernelcache or IPSWFetch the IPSW or pass the file
does not match the kernelcache[kernel.prelink] kernelcache_sha256Use the pinned image
Firmware volume size mismatch[uefi_fd] sizeRebuild the firmware or correct the config
Payload larger than size_mib[payload] size_mibRaise the size or remove files
not one of the trust caches this board accepts[payload] trust_cache_sha256Use an accepted bundle or pass the owner-signed bundle with --owner-trust-cache
unsupported kernel argumentArgument charactersUse letters, digits, _, ., -
command line is ... bytesArgument countShorten the line to 1000 bytes

IPSW ​

SymptomCheckAction
this IPSW is ...Product, version, buildUse the image the board describes
no Erase build identityDevice class, chip ID, board IDCorrect the identity values
does not support range requestsRemote URLUse a server with range support or a local file
differs from the pinned sha256[ipsw.sha256]Use the pinned member or update the pin
expected exactly one arm64 sliceKernelcacheUse an ARM64 kernelcache

Boot ​

SymptomCheckAction
fastboot does not see the deviceDriver, cable, bootloader modeInstall the USB driver and reboot to bootloader
Image starts and resetsBoot image header, base and sizeCheck the Mu-Silicium config and BootShim flags
Firmware stallsLast firmware log and initialized resourcesCapture the output, reset to bootloader and follow bring-up
No displayGOP driverUse console = "text" or a serial console
No menuConfiguration pathPlace unixnu.toml at \EFI\UniXNU\unixnu.toml
No boot entryPayload volumeCheck boot.json for a nonzero ramdisk_bytes, the FD for UniXNURamDiskDxe/DiskIoDxe/FAT, the FDT initrd range, and EFI/UniXNU/unixnu.toml. Follow payload discovery.
Driver failedFirst failure reason in the menuFix the driver path or its dependencies
no loader protocol installedDarwinBoot in the firmware volumeAdd DarwinBoot to the FDF or the payload
loader revision 1 cannot accept kextsLoader revisionUse a revision 2 loader or remove the kexts
boot refused: ...; firmware retainedDarwinBoot logCheck the kernel, ADT, trust cache and placeholders
Kernel panics at entryPage tables, kernel window, boot argumentsUse the QEMU fixture and the boot progress log
Panic names a providerDevice tree node or driver archiveAdd the node or enable the driver
No root deviceUserdata image, UUID, capacityFlash the image, check the UUID and window offsets
Data store window refusedSeed size, log-reserve, root imageRecalculate root, Data and log allocations; select a seed size that fits
Display assertion in userlandDisplay provider and boot argumentsCheck the display driver and the focus arguments

Logs ​

SourceLocation
Buildout/<device>/<os_profile>/<config>/logs/
Boot managerSerial console, UNIXNU: lines
LoaderSerial console, DARWINBOOT: lines
KernelSerial console
QEMU--log file and the .clean.log companion

Inspect a report ​

sh
jq . out/<device>/<os_profile>/<config>/boot/boot.json
jq . out/<device>/<os_profile>/<config>/payload/payload.json
jq . out/<device>/<os_profile>/<config>/userdata/userdata-root.json

The reports record the input hashes. Compare them with the files you supplied.

Module origin ​

sh
./unixnu status

The output lists every module and its origin. A local module is marked and reported as not pinned.

Next steps ​

Released under the BSD-2-Clause-Patent License.