-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running on real hardware #18
Comments
Hi @circutrider21 ! I haven't tried on real hardware yet, but I experienced similar issues with trying to run it on VirtualBox. Logging output to a virtual serial port showed that the mouse and keyboard would not configure correctly. I verified my configuration was using PS/2 keyboard and mouse, since you have the option in VirtualBox to use USB devices. It wasn't consistent either, here are results from two consecutive runs: [pmm.c] memory stats: available: 127 MiB and then [pmm.c] memory stats: available: 127 MiB I haven't dug into it any further at this time since qemu works for me but I work on most of my open source projects using VirtualBox and then real hardware. I have an old laptop with a serial port on it and an old Wyse terminal around somewhere, so that might help with debugging. Does your rig have a serial port? |
Thanks for testing @circutrider21 ! I got the same result recently on an old laptop. I did some superficial debugging then and I think the real crashing happens when a process is switched back to by the scheduler. They work when first run, get interrupted, then if some other process is to start, it does, but when the first program is resumed, it crashes. Thank you for mentioning VirtualBox @the-grue, having a vm that crashes like real hardware is going to help a lot, serial ports are a rare thing these days and I'm not sure I've ever seen one myself ^^ I've just tested it and I don't get the page fault prints though, mine stop at A likely culprit is the use of uninitialized memory somewhere as if it were zeroed out, which it is in qemu and bochs, but not on real hardware. Another option is that the hardware is in a different state than expected during process switching, things like a missing bit in The PS/2 error is interesting too, somehow the keyboard fails to acknowledge a reset command. This can't really cause a crash later on so it's probably a separate issue, I'll open one. |
After investigation, I found that SnowflakeOS wasn't crashed as I thought it was, it just looked frozen because the |
Sounds Great! |
If anyone is up for testing, that'd be awesome! Keyboard and mouse now work correctly on VirtualBox in addition to qemu and bochs, and I have hopes they may work on some hardware too. Here's an iso :) |
Ok, I'll get to it tomorrow hopefully |
By the way, you should use keep.sh for file transfer, it is so easy to use. |
Great! Can't wait for the results :) I'd never heard of keep.sh btw, it looks good I'll keep it in mind. |
I tried the ISO on 2 Computers, Both of which failed. The computer boots up into grub, but when I click the OS, I get a black screen with no sign of life. This is also the case in bochs, which also gives me a black screen. I thought it was the ISO, so I ran it in qemu, which worked perfectly. Quick recap
|
Oh wow that's not good ^^' I'm able to reproduce that black screen issue on an old laptop when compiling with If I can borrow some more of your time, here is an iso compiled with Edit: did not see the link had expired... here's a new one. |
Ok, I'll try it. |
Sorry, I haven't responded for quite a while, kinda got carried away with life. Anyhow, I tried the ISO you gave me but with no luck, I still am getting a black screen on real hardware and bochs, but not qemu. |
Alright, thank you for testing this. I need to figure this out, but it's a mysterious bug. Bisected it back to this commit e88e271, but I can't figure out anything wrong with it yet. |
@29jm Hey, how's it going, long time no see! |
Hey @circutrider21 ! There has been some progress on this issue, though it is hard to tell because depending on hardware, different issues pop up. Basically
|
Good to know there's still progress going on, I just haven't seen progress within SnowflakeOS for a while, and I got carried away with my own OSDEV journeys as well 😅 |
I ran Snowflake OS on my computer (specs are down below) and Snowflake booted up and the terminal app was open.
The big problem was that it was frozen. No movement on screen, and mouse/keyboard didn't work at all.
Any Explanation would be helpful as to why that happened!
Specs
Dell Optiplex 9010 with Intel core i7 (3rd Generation I think).
6GB ram.
500 GB hard drive (Don't think that's useful but still)
The text was updated successfully, but these errors were encountered: