Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'loader.asm' cannot read the kernel #1

Open
xiaoyi1212 opened this issue Nov 26, 2023 · 0 comments
Open

'loader.asm' cannot read the kernel #1

xiaoyi1212 opened this issue Nov 26, 2023 · 0 comments

Comments

@xiaoyi1212
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant