bootloader
bootloader copied to clipboard
Kernel loading
I see in the UEFI folder it does in fact use the uefi-rs crate which is nice. I cannot for the love of everything load a kernel in elf64 format... Normally, I'd ask this in the discussions tab which is currently off, so I will try to ask here. I've spent all day playing with numerous elf crates and even trying to parse it myself with no luck. No matter what happens, it just hangs after trying to jump to the kernel. So, how/where does this implementation handle jumping into a kernel?
If you're having trouble using this crate, please read the usage section or take a look at some of our test kernels.
Most of the code responsible for loading the elf file can be found here. The code that jumps to the kernel is here: https://github.com/rust-osdev/bootloader/blob/6fa89e7be42fbe324a657362daa3f45ed13aaa3c/common/src/lib.rs#L631-L648
thanks
On Sun, Apr 6, 2025 at 7:40 AM Tom Dohrmann @.***> wrote:
If you're having trouble using this crate, please read the usage https://github.com/rust-osdev/bootloader?tab=readme-ov-file#usage section or take a look at some of our test kernels https://github.com/rust-osdev/bootloader/tree/6fa89e7be42fbe324a657362daa3f45ed13aaa3c/tests/test_kernels/default_settings .
Most of the code responsible for loading the elf file can be found here https://github.com/rust-osdev/bootloader/blob/6fa89e7be42fbe324a657362daa3f45ed13aaa3c/common/src/load_kernel.rs . The code to jumps to the kernel is here: https://github.com/rust-osdev/bootloader/blob/6fa89e7be42fbe324a657362daa3f45ed13aaa3c/common/src/lib.rs#L631-L648
— Reply to this email directly, view it on GitHub https://github.com/rust-osdev/bootloader/issues/505#issuecomment-2781287641, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQNSIONKNFXHDC6AGKQADY32YDK6RAVCNFSM6AAAAAB2RMZQVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBRGI4DONRUGE . You are receiving this because you authored the thread.Message ID: @.***> [image: Freax13]Freax13 left a comment (rust-osdev/bootloader#505) https://github.com/rust-osdev/bootloader/issues/505#issuecomment-2781287641
If you're having trouble using this crate, please read the usage https://github.com/rust-osdev/bootloader?tab=readme-ov-file#usage section or take a look at some of our test kernels https://github.com/rust-osdev/bootloader/tree/6fa89e7be42fbe324a657362daa3f45ed13aaa3c/tests/test_kernels/default_settings .
Most of the code responsible for loading the elf file can be found here https://github.com/rust-osdev/bootloader/blob/6fa89e7be42fbe324a657362daa3f45ed13aaa3c/common/src/load_kernel.rs . The code to jumps to the kernel is here: https://github.com/rust-osdev/bootloader/blob/6fa89e7be42fbe324a657362daa3f45ed13aaa3c/common/src/lib.rs#L631-L648
— Reply to this email directly, view it on GitHub https://github.com/rust-osdev/bootloader/issues/505#issuecomment-2781287641, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQNSIONKNFXHDC6AGKQADY32YDK6RAVCNFSM6AAAAAB2RMZQVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBRGI4DONRUGE . You are receiving this because you authored the thread.Message ID: @.***>