Skip to content

IceCY/Bootloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bootloader for ZJUNIX

Introduction

ZJUNIX Bootloader

This is a bootloader for ZJUNIX, with respect to mips32 specification, and is able to run on QEMU.

Build and Run

Build tools:

  1. make
  2. Cross compiler for mips (either one is ok)
    • mips-mti-elf/mips-img-elf: Provided by MIPS, available on both Windows and Linux.
    • mips-linux-gnu: If you use this compiler, the compilation flags in Makefile should be changed, as they are written for mips-mti-elf/mips-img-elf.

To run:

  1. Install QEMU
  2. Build (make all)
  3. Run (make run)

To debug:

  1. Run QEMU in debug mode (make run-gdb)
  2. Connect cross compiler's gdb to QEMU (mips-mti-elf-gdb -x scripts/debug.gdb)
  3. Within gdb, set break points and execute continue to start debugging bootloader

Reference

  1. VGA
    • VGA Specification:
      • VGA Hardware: A short introduction of VGA
      • FreeVGA: Detailed description of VGA, including hardware specification and programming instructions
    • Code snippets:
      • x86 version: written in C and x86 assembly
      • C version without BIOS: written in C without BIOS invocation, but it doesn't setup palettes, which is an indespensible part of bare metal vga driver
  2. Compiler
    • mips-mti-elf/mips-img-elf: MIPS

License

License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.6%
  • Makefile 3.3%
  • GDB 0.1%