Coder Social home page Coder Social logo

hackbgrt's Introduction

HackBGRT

HackBGRT is intended as a boot logo changer for UEFI-based Windows systems.

Summary

When booting on a UEFI-based computer, Windows may show a vendor-defined logo which is stored on the UEFI firmware in a section called Boot Graphics Resource Table (BGRT). It's usually very difficult to change the image permanently, but a custom UEFI application may be used to overwrite it during the boot. HackBGRT does exactly that.

Usage

Important: If you mess up the installation, your system may become unbootable! Create a rescue disk before use. This software comes with no warranty. Use at your own risk.

  • Make sure that your computer is booting with UEFI.
  • Make sure that Secure Boot is disabled, unless you know how to sign EFI applications.

Windows installation

  • Get the latest release from the Releases page.
  • Start setup.exe and follow the instructions.
    • You may need to manually disable Secure Boot and then retry.
    • The installer will launch Paint for editing the image.
    • If Windows later restores the original boot loader, just reinstall.
    • If you wish to change the image or other configuration, just reinstall.
    • For advanced settings, edit config.txt before installing. No extra support provided!

Quiet (batch) installation

  • Edit the config.txt and splash.bmp (or any other images) to your needs.
  • Run setup.exe batch COMMANDS as administrator, with some of the following commands:
    • install – copy the files but don't enable.
    • enable-entry – create a new EFI boot entry.
    • disable-entry – disable the EFI boot entry.
    • enable-bcdedit – use bcdedit to create a new EFI boot entry.
    • disable-bootmgr – use bcdedit to disable the EFI boot entry.
    • enable-overwrite – overwrite the MS boot loader.
    • disable-overwrite – restore the MS boot loader.
    • allow-secure-boot – ignore Secure Boot in subsequent commands.
    • allow-bad-loader – ignore bad boot loader configuration in subsequent commands.
    • disable – run all relevant disable-* commands.
    • uninstall – disable and remove completely.
  • For example, run setup.exe batch install allow-secure-boot enable-overwrite to copy files and overwrite the MS boot loader regardless of Secure Boot status.

Multi-boot configurations

If you only need HackBGRT for Windows:

  • Run setup.exe, install files without enabling.
  • Configure your boot loader to start \EFI\HackBGRT\loader.efi.

If you need it for other systems as well:

  • Configure HackBGRT to start your boot loader (such as systemd-boot): boot=\EFI\systemd\systemd-bootx64.efi.
  • Run setup.exe, install as a new EFI boot entry.

To install purely on Linux, you can install with setup.exe dry-run and then manually copy files from dry-run/EFI to your [EFI System Partition]/EFI. For further instructions, consult the documentation of your own Linux system.

Configuration

The configuration options are described in config.txt, which the installer copies into [EFI System Partition]\EFI\HackBGRT\config.txt.

Images

The image path can be changed in the configuration file. The default path is [EFI System Partition]\EFI\HackBGRT\splash.bmp.

If you copy the file to ESP manually, note that the image must be a 24-bit BMP file with a 54-byte header. That's a TrueColor BMP3 in Imagemagick, or 24-bit BMP/DIB in Microsoft Paint.

Advanced users may edit the config.txt to define multiple images, in which case one is picked at random. The installer copies and converts files whose path starts with \EFI\HackBGRT\.

Recovery

If something breaks and you can't boot to Windows, you need to use the Windows installation disk (or recovery disk) to fix boot issues.

Building

  • Compiler: GCC targeting w64-mingw32
  • Compiler flags: see Makefile
  • Libraries: gnu-efi

hackbgrt's People

Contributors

metabolix avatar languageagnostic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.