bootloader icon indicating copy to clipboard operation
bootloader copied to clipboard

'kernel mapping failed'

Open Veliania opened this issue 3 years ago • 1 comments

I'm not sure what to do about this or if this is the right place but whenever I try to run the very barest of what I understand should work in terms of code for a kernel

#![no_std]
#![no_main]

use core::panic::PanicInfo;

#[no_mangle]
pub extern "C" fn _start() -> ! {
    loop {}
}

#[panic_handler]
fn panic(_panic_info: &PanicInfo) -> ! {
    loop {}
}

But no matter what it wont work and it throws an error saying panicked at 'kernel mapping failed: Mapping(PageAlreadyMapped(PhysFrame[4KiB](0x401000)))', src\main.rs:285:6 I'm building using x86_64-unkown-none as the target and using the BootImage command to build it

Veliania avatar Apr 29 '22 17:04 Veliania

The bootimage command uses version 0.9 of the bootloader which doesn't support x86_64-unkown-none. You should use a custom target spec instead.

Freax13 avatar Jun 26 '22 18:06 Freax13

I think this is answered.

phil-opp avatar Jan 02 '23 12:01 phil-opp