I thought I would have a go at running my OS on a computer I bought for
it (and had it running on) a while ago. So I got it out... it's not working.
Trying to figure out what is wrong.. I tried different RAM, different Graphics, different monitors.. at one point it started to boot, but only once, and I have no idea what I did to make that happen.
It looks as though it works, it just shows nothing on the screen.. the lights are on, the ethernet card flashes.
Can you hook up a UART? Throwing some debug prints out of the serial port is usually a pretty good place to start.
You may want to try resetting all BIOS settings, which you can usually do with a jumper. It sounds a bit like there's some corruption in the system configuration.
Oh well QEMU works, and last time I checked VMWare works too, so that will have to do for now until I can motivate myself to attempt to fix things.
Re: Re: Computer Broken
By: tenser to apam on Wed Sep 10 2025 06:48 am
Can you hook up a UART? Throwing some debug prints out of the serial is usually a pretty good place to start.
Unfortunatly not, there's no serial port, and I don't have anything to plug in that would give it a serial port.
I didn't try looking for a jumper, but I did remove the CMOS battery and replace it.
I did find a second computer and it did the same thing (which you would think would narrow it down..) however I removed some of the memory and
it started working. At least I got grub to load - my OS didn't but that could be a software problem.
Anyway, I've packed it up for now and will continue with QEMU. Interestingly (though off topic) Virtual box no longer works - it wont even boot grub, I guess it no longer supports setting vesa modes?
Oh well QEMU works, and last time I checked VMWare works too, so that
will have to do for now until I can motivate myself to attempt to fix things.
I have gotten my telnet program to work properly with Synchronet (it required a bit more telnet protocol stuff) so I can connect to Constructive Chaos and have it detect ansi and telnet and work
correctly. I've also gotten TinyCC to work, so I can enter programs and compile them and the output runs.
It would be nice to have it work on a real PC again, but it's a 32bit OS with no usb stack - so finding a computer with a PS/2 mouse and Keyboard port is tricky - sometimes that USB compatibility works, sometimes it doesn't, but I guess what I really need is a USB stack - so maybe that will be my next project.
Unfortunatly not, there's no serial port, and I don't have anything to
plug in that would give it a serial port.
Oh, that's unfortunate; meaning there's no UART header on the mainboard? Sometimes, one is lined out but runs at TTL levels, but if there's truly no interface, then obviously it won't help. :-(
Once GRUB has started handing off to your OS, I'd think that further problems would be software.
Hey, that's all pretty cool! Dunno about the VirtualBox stuff, but good luck and have fun playing around with it!
apam wrote to tenser <=-
It would be nice to have it work on a real PC again, but it's a 32bit
OS with no usb stack - so finding a computer with a PS/2 mouse and Keyboard port is tricky - sometimes that USB compatibility works, sometimes it doesn't, but I guess what I really need is a USB stack -
so maybe that will be my next project.
My local junk shop has an old, serial Logitech mouse - the wedgy one with the 3 buttons. I'll see if it's still there. :)
[snip]
I'm going away for a week tomorrow, going to investigate USB stack and porting to x86_64 - both seem like pretty monumental tasks to me lol, so which ever one looks the easiest I will have a crack at first.
Hey, that's all pretty cool! Dunno about the VirtualBox stuff, but g luck and have fun playing around with it!
Thanks, I'm pretty happy with it.. I discovered some errors in it
earlier this year and it's been running so much better since I fixed
them, and I've been suprised at how well the networking has been going
(I had a webserver on it for weeks, and with all the portscanners and such, it didn't crash at all)
Anyway, I will have fun, oh I used your pointer vectors in it too that
you contributed to magicka bbs - I hope that's ok..
Cool. USB is hard; for x86_64, it depends: to enter 64-bit long mode, you have to set up virtual memory paging and enable the MMU; if you're already doing that for 32-bit, it's not so bad: but if you're using x86-segmentation (which I think you are?) it's a lot more challenging because a) most of x86 segmentation is ignored in long mode, and b) you have to switch to paged virtual memory (with at least 4 level paging).
apam wrote to poindexter FORTRAN <=-
Hah! Cool. Except I don't have a serial mouse driver either lol
Don't know if I could
tolerate a mechanical mouse again - I spent most of the '90s cleaning
mouse gerb out of the workings...
Re: Re: Computer Broken
By: tenser to apam on Fri Sep 12 2025 11:03 am
Cool. USB is hard; for x86_64, it depends: to enter 64-bit long mode have to set up virtual memory paging and enable the MMU; if you're al doing that for 32-bit, it's not so bad: but if you're using x86-segmentation (which I think you are?) it's a lot more challenging because a) most of x86 segmentation is ignored in long mode, and b) y have to switch to paged virtual memory (with at least 4 level paging)
no i do have paging with the mmu. I'll look at it.
I did go down another
rabbit holr though, adding fat support via grafting the fatfs driver in, its _almost_ working, but having some minor issue that is proving to be difficult :)
my goal for adding fat support was to be able to use usb keys which
would be awesome if i had a usb stack, and able to use limine boot
loader which i hear is good (and part of a youtube video about porting
to x86_64) plus having to have an OS that can write minix v3 filesystems to prepare my disk images is a bit tricky (debian does still, but most linux distros ship kernels with it disabled)
Oh nice. What's the problem that you hit? Possibly you've already
fixed it by now, but I'm curious.
It strikes me that you could probably still use limine regardless
of whether the OS used a different file system format: you'd just
prepare an image with a copy of the kernel in a small FAT
partition, but the system would mostly ignore it once running.
I presume to prepare an image, you attach a file to a pseudo disk
device via a loopback driver and initialize and mount a Minix FS
on it, then just copy files to that. You could, however, create
a filesystem directly in a disk file and copy files into that; it
would be a fair bit of work, as you'd have to write code to write
the minix3 file structures into that file, versus letting the kernel
do that for you, but it would be very portable. Of course, using
FAT would be much simpler.
Sysop: | CyberNix |
---|---|
Location: | London, UK |
Users: | 22 |
Nodes: | 10 (0 / 10) |
Uptime: | 78:28:10 |
Calls: | 902 |
Files: | 4,676 |
Messages: | 699,489 |