Skip to content

'loader.asm' cannot read the kernel #1

@xiaoyi1212

Description

@xiaoyi1212

In OS source code for day4, I use MinGW64 to compile my kernel under Windows11.

  • VM: qemu-i386
  • ASM: Nasm 2.16.02rc5
        nasm -f elf32 -o $(TMP_PATH)dst.elf.o $(SRC_PATH)boot/asmfunc.asm
	gcc -m32 -o $(TMP_PATH)kernel.elf.o -c $(SRC_PATH)kernel/kernel.c
	ld -m i386pe -s -Ttext 0x1500 -o $(TMP_PATH)a.out  $(TMP_PATH)dst.elf.o $(TMP_PATH)kernel.elf.o
	objcopy -O binary $(TMP_PATH)a.out $(TMP_PATH)KRAW.BIN

But loader.asm can't successfully read my kernel and load.
An endless loop occurs in the .NOT_READY of loader.asm.

What should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions