0x100000

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.
hazardoxide
Member
Member
Posts: 26
Joined: Thu Dec 13, 2007 12:31 pm

Post by hazardoxide »

hmm. i solved all the problems, but when i did, i got 2 more.

Code: Select all

c:/djgpp/tmp/ccfQT6v6.s: Assembler messages:
c:/djgpp/tmp/ccfQT6v6.s:28: Error: suffix or operands invalid for 'out'
what now.

p.s. i apologize for all the questions.
If bill gates had a dollar for everytime windows crashed...oh wait... he does.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

combuster, im using djgpp, so yes. gcc.
Read again: djgpp is not a gcc cross-compiler.
"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 ]
User avatar
Steve the Pirate
Member
Member
Posts: 152
Joined: Fri Dec 15, 2006 7:01 am
Location: Brisbane, Australia
Contact:

Post by Steve the Pirate »

lukem_95 wrote:then you need to include GRUB in your image...

i have a very round-about way of making iso's, as im using a windows platform.

what i do:
+ Compile the source into kernel.bin
+ Use this + grub in VFD (virtual floppy driver) for testing
+ Save this as .img
+ Using MagicISO take the boot code from the .img, and add the boot folder for grub, along with kernel.bin to a new bootable .iso
+ Save and burn to disk using Nero
:shock:

Code: Select all

	cp /usr/lib/grub/i386-pc/stage2_eltorito image/boot/grub
	mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o sos.iso image
Then double click to burn...
My Site | My Blog
Symmetry - My operating system.
hazardoxide
Member
Member
Posts: 26
Joined: Thu Dec 13, 2007 12:31 pm

Post by hazardoxide »

hmm... i got everytihng to compile, but when linking, if i comile start.asm as -f aout, ld says its unrocognized. if i compile start.asm as -f elf, ld says cannot perform PE operation.
If bill gates had a dollar for everytime windows crashed...oh wait... he does.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

The Wiki wrote: Why an OS developer should build a cross-compiler
(...)
* ...Cygwin complains about "PE operation on non-PE file"
For the last time: GCC Cross-Compiler.

May I also note that this is a well known issue and that the reason you asked only indicates that you didn't bother to spend some time solving the problem yourself. Keep in mind that if you are unable to use google and everything properly then your attempts at writing an OS are destined to fail as well.
"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 ]
Post Reply