Size: a a a

2020 November 27

A

Aleksandr in pro.osdev
no chances to be boot file
источник

LK

Ledoux KOUAM in pro.osdev
ohhh okay , ...i see
источник

A

Aleksandr in pro.osdev
*bootloader
источник

A

Aleksandr in pro.osdev
you can try to use objcopy or do something with linker flags to fix it
источник

A

Aleksandr in pro.osdev
do you sure this is what you writing to disk? can you show me script you are using?
источник

LK

Ledoux KOUAM in pro.osdev
Aleksandr
do you sure this is what you writing to disk? can you show me script you are using?
yes of course , ...
источник

A

Aleksandr in pro.osdev
please, show script that you using fot this
источник

A

Aleksandr in pro.osdev
*for
источник

LK

Ledoux KOUAM in pro.osdev
i have compile with : nasm  -felf32 -F dwarf -o entry.o entry.asm
источник

LK

Ledoux KOUAM in pro.osdev
Aleksandr
please, show script that you using fot this
источник

A

Aleksandr in pro.osdev
okay, and how you writing this to disk
источник

A

Aleksandr in pro.osdev
?
источник

LK

Ledoux KOUAM in pro.osdev
Aleksandr
okay, and how you writing this to disk
nasm  -felf32 -F dwarf -o entry.o entry.asm
gcc -c  -ggdb3 -m16 -ffreestanding -fno-PIE -nostartfiles -nostdlib -o main.o -std=c99 main_boot.c
ld -melf_i386 -o boot.elf -Tlinker.ld  entry.o main.o
objcopy -O binary boot.elf boot.img
источник

A

Aleksandr in pro.osdev
ho, here we are.
источник

A

Aleksandr in pro.osdev
you writing boot.img, not entry.o
источник

LK

Ledoux KOUAM in pro.osdev
dd if=/dev/zero of=disk.img bs=512 count=2880
dd if=boot.img of=disk.img bs=512 conv=notrunc
источник

A

Aleksandr in pro.osdev
give me your boot.img
источник

LK

Ledoux KOUAM in pro.osdev
источник

BD

Berkus Decker in pro.osdev
Ledoux KOUAM
no .o file
.o file is intermediate object file, not a final output
источник

LK

Ledoux KOUAM in pro.osdev
Berkus Decker
.o file is intermediate object file, not a final output
my final output could be boot.elf after linkage
источник