Code Monkey home page Code Monkey logo

bulbiboot's Introduction

BULBIboot

BULBIboot is an aarch64 bootloader for Linux. It is designed to be simple and easy to use.

Also, BULBIboot is better than pikaboot.

BULBIboot

Usable features

  • Boot Linux kernel at EL1, EL2 & EL3
  • Download a kernel for emrgency booting via serial
  • Dump some memory regions and print them to console
  • Test the memory efficiency (memtest)

Hidden but useful features

  • Secure "preboot system"
  • Bootloader signature verification
  • Bootloader encryption
  • -O3 optimization level
  • CRC32 verification of the kernel during boot and ermgency boot download

How to build & boot

Install the dependencies

First, you need to install the dependencies. You can do it with the following command:

make dependencies

Note that this routine is compatible with apt, pacman and dnf package managers.

Build the images

To build the images (encrypted and clear), just run the following command:

make images

Running make also do the same trick.

Booting with QEMU

To boot the bootloader with QEMU, just run the following command:

make boot

If you want to boot the bootloader with QEMU with a GDB-stub listener, just run make boot_gdb

If you are using VSCode, you can use the .vscode/launch.json file to debug the bootloader with GDB.

Then, when QEMU is running, you will notice a path to something like /dev/pts/<n> (where <n> is a number). This is the path to the serial port. You can use it to connect to the bootloader.

If you want to use the serial port with screen, you can use the following command:

screen /dev/pts/<n>

How to use

See the HOWTO.md for more details.

Work in progress

Here is a list of some features that I worked on, but I didn't finish:

  • Kernel signature verification

    • I worked on it, but I didn't finish it, because it need a position-independent code (PIC) compilation to work.
  • Multiple boards support

    • I worked on it, but I didn't finish it, because I worked on an Orange Pi and Vexpress board, which are aarch32 boards.

License

BULBIboot is licensed under the Beerware license. See the LICENSE file for more details.

bulbiboot's People

Contributors

nathan-rabet avatar

Watchers

 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.