Skip to content

Bootloader for MIPS32, currently for ZJUNIX only.

License

Notifications You must be signed in to change notification settings

ZJUNIX/Bootloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Bootloader for MIPS32, currently for ZJUNIX only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages