Page 2 of 3
Re: Booting my OS
Posted: Sun Dec 20, 2020 1:16 pm
by nexos
You never stated that you made a cross compiler. People here can't help you unless politely express what you are saying. When I followed the tutorial a long time ago, I didn't make a cross compiler. So I was just checking.
Re: Booting my OS
Posted: Sun Dec 20, 2020 1:21 pm
by hausemaster
Fine, I'll be polite, but it's not fixing my problem, how do I run my OS?
Re: Booting my OS
Posted: Sun Dec 20, 2020 2:10 pm
by PeterX
hausemaster wrote:I hope someone answers me soon cause I'm getting sick of waiting here with no answers
You are an impatient, incompetent, bad guy.
With your attitude you won't get help. At least not from me.
Good luck
Peter
Re: Booting my OS
Posted: Sun Dec 20, 2020 2:30 pm
by hausemaster
I'll be fucking patient and polite if that's what it takes, but please, someone answer my question? How do I start up my OS? This is one of the most fun programming things I've ever done, but please, one question is all I have and it's taking a long time to get an answer.
1. I used GCC to compile
2. I used GAS to compile assembly files
3. How do I boot my ISO in a virtual machine (preferably qemu because vmware is ****)
Thank you,
Hause(master)
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:10 pm
by jamesread
When I did the tutorial
worked for me.
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:16 pm
by hausemaster
jamesread wrote:When I did the tutorial
worked for me.
Sorry, but this didn't work for me? I use WSL so it comes out with a few errors, if there's a way to do this on windows that would help alot.
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:18 pm
by iansjack
nexos wrote:It means that WSL doesn't have gtk installed. It can't have it installed, as WSL doesn't have a desktop environment.
You can install X Window, GTK, and a desktop environment in WSL. It just takes a little extra work.
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:19 pm
by nullplan
hausemaster wrote:Even if I run the i386 Qemu executable, it still doesn't make a difference.
If you were wondering why I don't just use Qemu in the WSL, well I can but this shows up and it crashes
Unable to init server: Could not connect: Connection refused
gtk initialization failed
(Whatever that means)
If I wasn't motivated to do this, I'd give up
And typing the error message into Google never occurred to you? If this is a bare bones WSL installation, I would guess this means you have no X11 server installed, so QEMU cannot display its windows. Install Xming on Windows, then run
And it should work.
nexos wrote:It means that WSL doesn't have gtk installed. It can't have it installed, as WSL doesn't have a desktop environment.
There is so much wrong in this statement. For one, GTK is installed since it is a dependency of QEMU. If it was not installed, he'd get a dynamic linking error. WSL can very much have GTK installed, and lacking a desktop environment has precisely nothing to do with GTK, which is a widget toolkit. It's like saying you can't have a FAT32 partition in the system unless there's a full DOS 6.22 install on there.
hausemaster wrote:I'll be fucking patient and polite if that's what it takes, but please, someone answer my question? How do I start up my OS?
Work the problem. Don't throw stuff at a wall to see what sticks, see what is actually going wrong and fix things. No amount of recompilation will fix QEMU not starting because it cannot display its window.
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:22 pm
by iansjack
hausemaster wrote:I'll be fucking patient and polite if that's what it takes, but please, someone answer my question? How do I start up my OS? This is one of the most fun programming things I've ever done, but please, one question is all I have and it's taking a long time to get an answer.
The advice you can expect on this forum is exactly what you paid for. If you're lucky you'll get more help than that, but it's not something that you can demand, and you certainly can't demand instant answers.
(That's a general comment. In this specific case I would judge that you can expect no more help from the good folk here.)
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:27 pm
by hausemaster
Right, I got the Xming installed, and qemu and other graphical apps work! But it still comes up with the same errors, so now it's probably an ISO issue, there has to be something I'm missing here
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:27 pm
by iansjack
nullplan wrote:If this is a bare bones WSL installation, I would guess this means you have no X11 server installed, so QEMU cannot display its windows. Install Xming on Windows....
Or you could just ask qemu to display to a VNC server and then access it from a Windows VNC client.
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:33 pm
by iansjack
I may be wrong, but I don't think that you can refer to "C:\" from WSL.
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:35 pm
by hausemaster
iansjack wrote:I may be wrong, but I don't think that you can refer to "C:\" from WSL.
If you're refering to when I did ./qemu-system-i386.exe -cdrom C:\Users\hausemaster\Documents\OS\myos.iso
I did that in powershell
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:43 pm
by iansjack
But it's (the Linux) qemu that is trying to resolve the path. Why not try putting the iso file in your working directory, or changing the working directory to the one containing the file, so that you don't need to specify a path?
Advice is free - you're not compelled to try it.
Re: Booting my OS
Posted: Sun Dec 20, 2020 3:44 pm
by hausemaster
It keeps saying "NO BOOTABLE DEVICE." then sits there