flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > 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
xOS v0.07 -- testing needed!
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
Location: Planet - Kuplinov ► Play
Very very good OS. This is for micro ships or for free use any where? Question

_________________
(Rus) Делай игру-проект так чтобы она влюбляла в себя самого разработчика (тоесть себя).

(Eng)Make the game project so that it falls in love with himself developer (ie himself).
Post 28 Jan 2017, 20:15
View user's profile Send private message Visit poster's website Reply with quote
omarrx024



Joined: 13 May 2016
Posts: 11
Location: Cairo, Egypt

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: 453
Location: Belarus
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

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: 438
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: 501
Location: New Zealand
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
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: 501
Location: New Zealand
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: 323
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

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: 501
Location: New Zealand

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

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: 2096
Location: Usono (aka, USA)

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

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: 501
Location: New Zealand
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:
[00000000KERNEL PANICOut of physical memory.
[00000000]  --- beginning register dump at time of fault ---
[00000000]   eax00001000  ebxC0000000  ecx00000009  edx00000001
[00000000]   esi00006767  edi20000004  esp0000185C  ebp00000000
[00000000]   cs0008  ss0010  ds0010  es0010  eflags00000006
[00000000]   cr080000013  cr200000000  cr30009C000  cr400000700
[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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.