how to run examples containing c code on an actual hardware? (not an emulator like qemu)
Thank you for the amazing tutorial and sharing your knowledge.
It works fine with me on qemu.
Out of curiosity I wanted to try the examples on an actual laptop and I copied the os-image.bin using the dd command to a usb flash. But it works only until the examples of using assembly languages. Starting from compiling c code, the laptop restarts after trying to boot from usb.
I think the problem is with --target installation for binutils and gcc, which make me come up with a question why do you specifically use i386? And Should it work on a 64 bit process or is it impossible?
How to match my hardware with the correct --target?
I don't know if it's worth to say but the examples run successfully on both qemu-system-i386 & qemu-system-x86_64.
Source: cfenollosa/os-tutorial