Skip to content
emexlabPublic

About

eBoot is the cryptographic end to end bootloader for emex64

Resources

Stars

18 stars

Watchers

1 watching

Forks

Latest commit

 

History

123 Commits

Folders and files

Repository files navigation

ToDo

SecureROM (Stage 1) (truely read-only through Mask ROM)

  • Asymetric code signing + validation without OpenSSL.
  • FAT driver for disks. (for early development)
  • img4 loader and verifier
  • load a cryptographically signed file called /llb.img4 into SRAM
  • execute LLB

LLB (Stage 2)

  • Bring DRAM alive
  • load a cryptographically signed file called /eboot.img4 into DRAM
  • execute eBoot

eBoot (Stage 3)

  • Bring a logo to life by loading a cryptographically signed file called /logo.img4
  • Load cryptographically signed /sptm.img4 (needs SPTM extension implemented in LA64)
  • Load cryptographically signed /trustcache.img4
  • Bring the kernel to life by loading a cryptographically signed file called /kernelcache.img4
  • execute kernelcache entry

Kernel (Stage 4)

  • Pointer Authentication Codes (PAC) setup
  • Interrupt Controller Management (ICM)
  • Physical Memory Management (PMM)
  • physical map (pmap) bootstrapping
  • Virtual Memory Management (VMM)

DFU Restore

DFU is not as hard through apple utillities, you simply need to download everything over USB it usually needs to boot and each stage verifies again. The thing is similar to apples model eBSS is LLB and eBEC is a advanced eBoot. eBSS stands for "eBoot Single Stage" and eBEC for "eBoot Epoch Change".

  • SecureROM waits on USB DFU host over UDC
  • SecureROM goes into download mode and downloads eBSS.img4 into SRAM
  • SecureROM validates if eBSS is signed and if so detaches DFU and jumps to eBSS
  • eBSS trains DRAM and brings it alive
  • eBSS goes back into download mode and waits on eBEC.img4 and downloads it into DRAM
  • eBSS validates if eBEC is signed and if so detaches from download mode and jumps to eBEC
  • eBEC is waiting on commands for restore

About

eBoot is the cryptographic end to end bootloader for emex64

Resources

Stars

18 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages