Skip to content

ThatOS64 is for the youtube series on 64-Bit Kernel Development pre-loaded by the EFI

License

Notifications You must be signed in to change notification settings

jesterjunk/ThatOS64

Repository files navigation

Step by Step Tutorials on how to code a 64-Bit loader and kernel for OS Development

GitHub stars
GitHub forks
GitHub watchers
GitHub followers

NOTES

  • WARNING - This code is for teaching purposes only. It is not written for professional use. Some code is written in order to speed up teaching, and thus is not properly coded. You should rewrite the code for your own professional use.
  • Starting with CODE5, the resolution from the EFI file sets the screen height and width to 1920x1080.
  • Although this can work on real hardware, I do NOT recommend doing so unless you know what you are doing. Use virtualbox or qemu until you know you have solid working code.
  • For CODE1, you will need the BOOTX64.EFI file from my other GitHub Repo. https://github.com/ThatOSDev/UEFI-Tuts
  • The drive.hdd file is included, I didn't realize this when I made the first video.
  • The bios64.bin file is for qemu to work. Otherwise QEMU will fail to load.
  • Although the BUILD INSTRUCTIONS shows Windows, MAC or Linux, this tutorial series is using a windows host. However all code and makefile command switches should all work if you follow the build instructions.

TOOLS NEEDED

BUILD INSTRCUTIONS

https://github.com/ThatOSDev/ThatOS64/tree/master/BUILD.md

SOCIAL MEDIA LINK

YOUTUBE : https://www.youtube.com/channel/UCouyC9D6WFBwc24sqdkS-jw
DISCORD : ThatOSDev#5516

READ THIS !!!

  • THINGS YOU SHOULD KNOW BEFORE STARTING OS DEVELOPMENT
    • The C Language
    • Assembly Language
    • How to read Hex Code ( Example : 0x8664 )
    • How your Host Operating System works ( Such as windows or linux )
    • How your compiler works ( Such as GCC )
    • How to do research ( Don't be lazy )
  • BEGINNER MISTAKES : https://wiki.osdev.org/Beginner_Mistakes

STRUCT FROM THE EFI BOOTLOADER

NOTE: This is current starting with CODE5

typedef struct BLOCKINFO
{
    uint64_t               BaseAddress;
    uint64_t               BufferSize;
    uint32_t               ScreenWidth;
    uint32_t               ScreenHeight;
    uint32_t               PixelsPerScanLine;
    uint64_t               LoaderFileSize;
    EFI_MEMORY_DESCRIPTOR* MMap;
    uint64_t               MMapSize;
    uint64_t               MMapDescriptorSize;
    uint64_t*              rsdp;
} __attribute__((__packed__)) BLOCKINFO;

TUTORIALS

  • RIGHT CLICK THE LINKS AND OPEN IN NEW TAB
    • INITIAL SETUP                                                               --- YT1 --- CODE1
    • ABI INTERFACE                                                              --- YT2a | YT2b | YT2c --- CODE2
    • GRAPHIC TEXT                                                              --- YT3 --- CODE3
    • ORGANIZATION AND TEXT POSITION                         --- YT4 --- CODE4
    • GDT & MMAP                                                               --- YT5a | YT5b | YT5c | YT5d | YT5e --- CODE5
    • PAGING (Coming Soon)                                                --- [YT6] --- CODE6

More Tuts Coming soon... ( NOTE : The order of this list is subject to change )

* IDT
* BMP / TGA Image Loading 
* PCI  
* AHCI  
* Mouse  

Current Progress

Current Progress

Current Progress

Current Progress

Current Progress

About

ThatOS64 is for the youtube series on 64-Bit Kernel Development pre-loaded by the EFI

Resources

License

Stars

Watchers

Forks

Packages

No packages published