Skip to content

Own Bootloader #944

Answered by phil-opp
ghost asked this question in Questions
Mar 8, 2021 · 3 comments · 7 replies
Discussion options

You must be logged in to vote

It's difficult to answer your question in general since it depends on your bootloader implementation and your build environment (e.g. Windows or Linux). You normally have two options:

  1. Link your kernel directly with the bootloader by compiling at as a staticlib.

    This requires that you use the same file types for the bootloader and kernel. If you're using Linux, you can just link the resulting .a staticlib with your other ELF object files. If you're using Windows, you probably need to compile your kernel as a Windows-compatible staticlib by modifying your target JSON file. I've never tried this, so I can't help you with it unfortunately.

  2. Build the kernel as a separate executable and loa…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@ghost
Comment options

@phil-opp
Comment options

@ghost
Comment options

@phil-opp
Comment options

@phil-opp
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #940 on March 10, 2021 08:42.