DEV Community

Discussion on: Writing My Own Boot Loader

Collapse
 
darkyelox profile image
darkyelox

Great post, I have learning a lot from it, only two things:

  1. the segment descriptor URL you provided is pointing to nothing or is bad.
  2. You should add Makefile for Linux users in the repo or here in your post, I have tried it in my Po_OS and it didn't work, searching a little I found that for compile the kernel with gcc you should add the -fno-pie parameter and that fixed it now working as expected.

Again great post so far, I'll keep learning from this in the next sections.

Collapse
 
frosnerd profile image
Frank Rosner

the segment descriptor URL you provided is pointing to nothing or is bad.

Fixed, thank you!

You should add Makefile for Linux users in the repo or here in your post, I have tried it in my Po_OS and it didn't work, searching a little I found that for compile the kernel with gcc you should add the -fno-pie parameter and that fixed it now working as expected.

Glad you figured it out :) Happy to accept a PR :)