Giter Club home page Giter Club logo

tiny-linux-bootloader's Introduction

tiny-linux-bootloader

A x86 single sector Linux bootloader that can handle initrd. This bootloader expects to find the kernel immediately after it at sector 1, followed immediately by the initrd. Any partitions must start after this.

Features/Purpose

  • No partition table needed
  • Easy to convert to an obfuscated loader (think anti-forensics for crypted disks)
  • Easy to modify for a custom experience
  • Useful in embedded devices

Building

To build, you need to:

  1. Edit build.sh and set paths to your kernel + initrd
  2. Edit config.inc to set your kernel cmd line (keep it <15chars for the moment, disabling debug makes more room)
  3. Run build.sh
  4. Now you can dd this onto your disk, if you have a partition table already, then do not overwrite bytes 446-510 on the first sector (so use dd twice).

Your system should now boot with the new kernel.

Troubleshooting

You can use qemu to boot the image by running:

qemu-system-x86 disk

and you can also connect the VM to gdb for actual debugging. There's an included gdb script to get you started.

tiny-linux-bootloader's People

Contributors

owenson avatar marler8997 avatar liamwhite avatar

Watchers

James Cloos 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.