Skip to content

A tiny PPC Elf file (entirely handwritten from scratch) that will initiate the disc drive light on the Wii.

License

Notifications You must be signed in to change notification settings

VegaASM/V-Elf-Disc-Drive-Lighter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

V-Elf-Disc-Drive-Lighter

A tiny PPC Elf file (entirely handwritten from scratch) that will initiate the disc drive light on the Wii. The Elf file size is only 0x5C bytes!

Requirements: HBC version 1.1.0 or later (elf will NOT run from Bootmii)

Version: 0.4

Author: Vega

V-Elf = Handwritten PPC Wii ELF file by VegaASM (Vega of MKWii.com)

HOW TO COMPILE:

  1. Use PyiiASMH (RAW ASM option) to compile elf.s.

  2. Once compiled, make a binary file (named boot.elf) on a Hex Editor using the compiled byte code.

  3. Drag boot.elf into /hbc folder. Place /hbc folder in the /apps folder of your SD/USB. Launch HBC. Select the V-Elf-Disc-Drive-Lighter app, launch it. To stop the app, you will need to reboot your Wii manually.

NOTE: Alternate method to compile (using devkitPPC binutils on linux)

  • cd /whereyouinstalleddevkitinto/devkitpro/devkitPPC/bin
  • ./powerpc-eabi-as -mregnames -mbroadway /home/yourusername/V-Elf-Disc-Drive-Lighter-master/elf.s -o /home/yourusername/V-Elf-Disc-Drive-Lighter-master/elf.o
  • ./powerpc-eabi-objcopy -O binary /home/yourusername/V-Elf-Disc-Drive-Lighter-master/elf.o /home/yourusername/V-Elf-Disc-Drive-Lighter-master/boot.elf

History:

v0.4 - Apr 4, 2021 - Removed backwards branch instruction that was used to make a loop. It's not needed, just let an exception occur, disc drive will still light up. Placed the start point at at e_identpad and used that space to set up r3 then branch down to the typical start point to execute the last 2 instructions (set GPIO address, store value to GPIO). Elf size now down to 0x5C bytes

v0.3 - Apr 1, 2021 - Minor fix (had a virtual address listed for p_paddr, fixed it)

v0.2 - Feb 28, 2020 - Elf Size cut down to 0x64 bytes

v0.1 - Aug 31, 2019 - Initial Release

About

A tiny PPC Elf file (entirely handwritten from scratch) that will initiate the disc drive light on the Wii.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published