Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
This compiles fine, but trying to load "floppy.img" in Virtualbox gives a VERR_VD_RAW_INVALID_HEADER error. Any help getting this to load properly? For reference, "uname -a" gives "Linux XXXX 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux"
The barebones are 32-bit examples, have you ever read the source code?
If your hosted toolchain complains, check the parameters or use a cross compiler. You can't simply ask it to emit 64-bit objects as the source is not intended for 64-bit without modifications.
And more obviously, you are not using the commands from the tutorial.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
bluemoon wrote:The barebones are 32-bit examples, have you ever read the source code?
If your hosted toolchain complains, check the parameters or use a cross compiler. You can't simply ask it to emit 64-bit objects as the source is not intended for 64-bit without modifications.
Even trying with 32 bit flags (which does compile and run in QEMU) does not work in Virtualbox. This makes me think there is a difference between what QEMU and Virtualbox expects.
Combuster wrote:And more obviously, you are not using the commands from the tutorial.
i586-elf-gcc isn't available on my system. Cross compiling to i586 doesn't fix anything either.
It only goes to show that a certain skill in reading is required before you can start OS development. There are instructions how to get i586-elf-gcc. There are also explicit instructions not to use the default gcc on a 64-bit linux.
Continue with the entry exam, please
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]