Booting my OS

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.
nexos
Member
Member
Posts: 1081
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Re: Booting my OS

Post 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.
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
hausemaster
Member
Member
Posts: 30
Joined: Sat Dec 12, 2020 8:30 am

Re: Booting my OS

Post by hausemaster »

Fine, I'll be polite, but it's not fixing my problem, how do I run my OS?
PeterX
Member
Member
Posts: 590
Joined: Fri Nov 22, 2019 5:46 am

Re: Booting my OS

Post 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
hausemaster
Member
Member
Posts: 30
Joined: Sat Dec 12, 2020 8:30 am

Re: Booting my OS

Post 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)
jamesread
Member
Member
Posts: 49
Joined: Wed Dec 09, 2020 11:32 am

Re: Booting my OS

Post by jamesread »

When I did the tutorial

Code: Select all

qemu-system-i386 -cdrom myos.iso
worked for me.
hausemaster
Member
Member
Posts: 30
Joined: Sat Dec 12, 2020 8:30 am

Re: Booting my OS

Post by hausemaster »

jamesread wrote:When I did the tutorial

Code: Select all

qemu-system-i386 -cdrom myos.iso
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.
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Booting my OS

Post 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.
nullplan
Member
Member
Posts: 1790
Joined: Wed Aug 30, 2017 8:24 am

Re: Booting my OS

Post 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

Code: Select all

export DISPLAY=:0.0
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.
Carpe diem!
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Booting my OS

Post 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.)
hausemaster
Member
Member
Posts: 30
Joined: Sat Dec 12, 2020 8:30 am

Re: Booting my OS

Post 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
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Booting my OS

Post 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.
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Booting my OS

Post by iansjack »

I may be wrong, but I don't think that you can refer to "C:\" from WSL.
hausemaster
Member
Member
Posts: 30
Joined: Sat Dec 12, 2020 8:30 am

Re: Booting my OS

Post 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
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Booting my OS

Post 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.
hausemaster
Member
Member
Posts: 30
Joined: Sat Dec 12, 2020 8:30 am

Re: Booting my OS

Post by hausemaster »

It keeps saying "NO BOOTABLE DEVICE." then sits there
Post Reply