flat assembler
Message board for the users of flat assembler.

Index > OS Construction > xOS v0.07 -- testing needed!

Author
Thread Post new topic Reply to topic
omarrx024



Joined: 13 May 2016
Posts: 11
Location: Cairo, Egypt
omarrx024 28 Jan 2017, 19:03
Hey guys!
After more than 5 months since my last release, I finally make another alpha release of xOS. A lot can happen in 5 months, and a lot has happened. New things:

  • Rewrote AHCI driver - boots from SATA on QEMU, VirtualBox and real HW.
  • Reworked GUI - wallpaper, transparency, and shell.
  • Graphical toolkit and applications to demonstrate, including calculator.
  • Loading programs from disk.
  • Performance improvements everywhere.
  • (Incomplete) ACPI AML interpreter.
  • Other small things I can't think of now.

I've also moved to the MIT license instead of the GPL. Here's the GitHub release. Your feedback is greatly appreciated!

_________________
Byte me; OS site, source code.
"Hang out with people who know more than you." -dchapiesky
Post 28 Jan 2017, 19:03
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
EvolutionEXE



Joined: 22 Nov 2014
Posts: 9
EvolutionEXE 28 Jan 2017, 20:15
Very very good OS. This is for micro ships or for free use any where? Question
Post 28 Jan 2017, 20:15
View user's profile Send private message Reply with quote
omarrx024



Joined: 13 May 2016
Posts: 11
Location: Cairo, Egypt
omarrx024 28 Jan 2017, 21:27
EvolutionEXE wrote:
Very very good OS. This is for micro ships or for free use any where? Question

Thanks! xOS runs on the PC only. If you mean free for use anywhere, xOS is licensed under the MIT license, which means you can do most anything you want with it, as long as I receive original credit.

_________________
Byte me; OS site, source code.
"Hang out with people who know more than you." -dchapiesky
Post 28 Jan 2017, 21:27
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 501
Location: Belarus
zhak 28 Jan 2017, 21:30
Very cute!
Runs OK on VMWare WS 12.

What's on the surface is a small bug in mouse cursor positioning: maximum allowed horizontal position is calculated as display_width - cursor_width instead of display_width
Post 28 Jan 2017, 21:30
View user's profile Send private message Reply with quote
omarrx024



Joined: 13 May 2016
Posts: 11
Location: Cairo, Egypt
omarrx024 28 Jan 2017, 23:26
zhak wrote:
Very cute!
Runs OK on VMWare WS 12.

What's on the surface is a small bug in mouse cursor positioning: maximum allowed horizontal position is calculated as display_width - cursor_width instead of display_width

Thanks for the feedback! Smile

_________________
Byte me; OS site, source code.
"Hang out with people who know more than you." -dchapiesky
Post 28 Jan 2017, 23:26
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
system error



Joined: 01 Sep 2013
Posts: 670
system error 29 Jan 2017, 14:06
For a one man project, this is very impressive!
I'm not into OS development, but it is soothing to see new OSes popping up here and there. One of these days, one will become a giant killer.
Post 29 Jan 2017, 14:06
View user's profile Send private message Reply with quote
neville



Joined: 13 Jul 2008
Posts: 507
Location: New Zealand
neville 03 Feb 2017, 01:28
I'm not much of a fan of emulators (I prefer the real thing!) so I wrote the xOS0.07a image to a flashdrive and tried booting it on 4 different machines.

It didn't successfully boot on any of them, and they all failed for a different reported reason. I'm pretty sure the image has been written ok.

Thinking back 12 years to my early days of FAMOS I'm not too surprised. Allowing for different BIOS's was a real (pun!) headache. Maybe more universal UEFI booting would be "easier" these days? But I somehow doubt it.

Quick summary:

1. Sony Vaio VGN-NW15G with 3Gb RAM
"KERNEL PANIC: Out of Physical Memory" with a register dump on a VESA screen.

2. Asus EeePC Intel Atom with 1Gb RAM
xOS splash screen on a grey background, no mouse pointer, copyright message on bottom line, frozen.

3. Homebuilt desktop with 2Gb RAM (and ACPI!)
xOS splash screen which then changed to a red screen with the message:

An error has occured and xOS has failed to start. Error information:
Failed to find the ACPI system bus.

4. Toshiba Satellite L300 with 1Gb RAM
As for 3. above, but Error information:
Unable to determine the boot device.

Now that's a strange one Smile


In all cases the boot process began with about 5.5 lines of "." printed on the real-mode text screen along with some copyright text etc.


Happy to help with further test results if you wish.

_________________
FAMOS - the first memory operating system
Post 03 Feb 2017, 01:28
View user's profile Send private message Visit poster's website Reply with quote
omarrx024



Joined: 13 May 2016
Posts: 11
Location: Cairo, Egypt
omarrx024 03 Feb 2017, 22:49
neville: xOS doesn't have good support for real hardware yet. Maybe I should make this a little more obvious in the README files... Specifically, first xOS has no support for any USB devices, and thus it cannot boot from your flash disk. Second, it's very likely you are using USB keyboard and mouse, while, as I just mentioned, xOS doesn't support any USB devices. I'm saving this for a later time.
xOS runs best in VirtualBox, and it's acceptable in QEMU, and they are the only places I would recommend testing xOS in this stage.
The ACPI system bus issue has been fixed after the 0.07 alpha was released.

_________________
Byte me; OS site, source code.
"Hang out with people who know more than you." -dchapiesky
Post 03 Feb 2017, 22:49
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
neville



Joined: 13 Jul 2008
Posts: 507
Location: New Zealand
neville 04 Feb 2017, 07:00
Your OS should be able to boot from a flashdrive without native USB support until you switch to PM. The USB support is provided by the BIOS until you leave real mode (with "legacy USB support" enabled in Setup if necessary).

And it does, as is clearly demonstrated by the fact that all 4 of my machines were running your code.

So the crashes can't be related to lack of USB support unless the crashes occurred in PM? I'll have a look at your sources and see what I can find.

_________________
FAMOS - the first memory operating system
Post 04 Feb 2017, 07:00
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1770
Roman 04 Feb 2017, 14:08
Did you have screenshots xOS v0.07 ?

And good luck witch xOS !
Post 04 Feb 2017, 14:08
View user's profile Send private message Reply with quote
omarrx024



Joined: 13 May 2016
Posts: 11
Location: Cairo, Egypt
omarrx024 04 Feb 2017, 20:13
neville wrote:
Your OS should be able to boot from a flashdrive without native USB support until you switch to PM. The USB support is provided by the BIOS until you leave real mode (with "legacy USB support" enabled in Setup if necessary).

You seem to be missing that my OS doesn't depend on the BIOS; xOS is entirely 32-bit system and only depends on the BIOS for early initialization, like detecting memory/setting VBE mode/etc...

Roman wrote:
Did you have screenshots xOS v0.07 ?

And good luck witch xOS !

There are some stuff here. Thanks!

_________________
Byte me; OS site, source code.
"Hang out with people who know more than you." -dchapiesky
Post 04 Feb 2017, 20:13
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
neville



Joined: 13 Jul 2008
Posts: 507
Location: New Zealand
neville 04 Feb 2017, 21:14
omarrx024 wrote:
You seem to be missing that my OS doesn't depend on the BIOS;
omarrx024 wrote:
xOS ...depends on the BIOS for early initialization
Well, no, your little contradiction was my very point. I'm not missing it at all Wink

So I guess you are absolutely sure there are no problems with any of your real mode code? Enabling A20 etc.

Looking at your sources I see you've started to write a USB Host Controller/Driver. I will await with interest until you implement it!

_________________
FAMOS - the first memory operating system
Post 04 Feb 2017, 21:14
View user's profile Send private message Visit poster's website Reply with quote
omarrx024



Joined: 13 May 2016
Posts: 11
Location: Cairo, Egypt
omarrx024 04 Feb 2017, 22:22
neville wrote:
So I guess you are absolutely sure there are no problems with any of your real mode code? Enabling A20 etc.

Looking at your sources I see you've started to write a USB Host Controller/Driver. I will await with interest until you implement it!

Obviously, nothing is wrong with my early real mode code. If it failed to set a VBE mode, you wouldn't have a graphical screen at all. If it failed to detect memory, the error will be handled in real mode as well. If it failed to enable A20, you wouldn't see anything in the screen (because the framebuffer is higher than 1 MB.) My disk reading code doesn't depend on the real mode code at all.

My USB drivers are undergoing really slow development, because I'm still learning about USB as I develop, and for now, I'm only doing UHCI as my test PC supports UHCI. I will do OHCI, EHCI and xHCI later, though, as most of them share the same concepts, just different methods of achieving the same goals.

Even when I finish UHCI, it will still take a lot of time for it to be functional; I still need a driver for the USB hub, and every USB device I wish to support (for now, I plan to support the mass storage device and HID devices.)

_________________
Byte me; OS site, source code.
"Hang out with people who know more than you." -dchapiesky
Post 04 Feb 2017, 22:22
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 05 Feb 2017, 00:16
omarrx024 wrote:

My USB drivers are undergoing really slow development, because I'm still learning about USB as I develop, and for now, I'm only doing UHCI as my test PC supports UHCI. I will do OHCI, EHCI and xHCI later, though, as most of them share the same concepts, just different methods of achieving the same goals.

Even when I finish UHCI, it will still take a lot of time for it to be functional; I still need a driver for the USB hub, and every USB device I wish to support (for now, I plan to support the mass storage device and HID devices.)


Just for the record, one FreeDOS contributor, Bret Johnson, wrote his own (third-party, sources available, installable, non-kernel) USB drivers, which are still "UHCI only". He says it's too complex to fully do the rest (yet), and unfortunately some machines (like this one I'm using now) don't support UHCI at all.

My point would be that you should probably take a look at his sources or contact him or both (if you haven't already). Hey, misery loves company. Razz
Post 05 Feb 2017, 00:16
View user's profile Send private message Visit poster's website Reply with quote
omarrx024



Joined: 13 May 2016
Posts: 11
Location: Cairo, Egypt
omarrx024 05 Feb 2017, 04:30
rugxulo wrote:
Just for the record, one FreeDOS contributor, Bret Johnson, wrote his own (third-party, sources available, installable, non-kernel) USB drivers, which are still "UHCI only". He says it's too complex to fully do the rest (yet), and unfortunately some machines (like this one I'm using now) don't support UHCI at all.

My point would be that you should probably take a look at his sources or contact him or both (if you haven't already). Hey, misery loves company. Razz

Nah, it's not that bad; it's just slow because I'm still learning. Maybe I'll contact him after I finish UHCI and OHCI in a few months. Laughing

_________________
Byte me; OS site, source code.
"Hang out with people who know more than you." -dchapiesky
Post 05 Feb 2017, 04:30
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
neville



Joined: 13 Jul 2008
Posts: 507
Location: New Zealand
neville 06 Feb 2017, 04:19
Just out of curiosity I wrote the image to my Sony Vaio's hard disk (which is available for such purposes Smile ) The result was the same as obtained when booting from the pendrive - "KERNEL PANIC: Out of Physical Memory" with a register dump. Also no splash screen beforehand.

I re-checked booting the Sony Vaio from the flashdrive and confirmed there was no splash screen with that either. My other 3 machines did produce splash screens before crashing but none of those machines have a hard disk available for trashing Smile So I think the problem is not caused by lack of USB support on the Sony Vaio at least. The register dump shows PMode has probably been entered. Unfortunately EIP seems to be omitted:

Code:
[00000000] KERNEL PANIC: Out of physical memory.
[00000000]  --- beginning register dump at time of fault ---
[00000000]   eax: 00001000  ebx: C0000000  ecx: 00000009  edx: 00000001
[00000000]   esi: 00006767  edi: 20000004  esp: 0000185C  ebp: 00000000
[00000000]   cs: 0008  ss: 0010  ds: 0010  es: 0010  eflags: 00000006
[00000000]   cr0: 80000013  cr2: 00000000  cr3: 0009C000  cr4: 00000700
[00000000]  --- end of register dump ---     
eip?

_________________
FAMOS - the first memory operating system
Post 06 Feb 2017, 04:19
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.