Giter Club home page Giter Club logo

cosmosos / cosmos Goto Github PK

View Code? Open in Web Editor NEW
2.9K 179.0 538.0 232.78 MB

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!

Home Page: https://www.goCosmos.org

License: BSD 3-Clause "New" or "Revised" License

Assembly 0.01% C# 92.83% F# 0.01% Inno Setup 6.95% Batchfile 0.03% PowerShell 0.01% Visual Basic .NET 0.01% C++ 0.05% Shell 0.03% Makefile 0.08% Dockerfile 0.01%
hacktoberfest

cosmos's Introduction


Cosmos (C# Open Source Managed Operating System) is an operating system development kit which uses .NET, alongside the custom IL2CPU compiler to convert (most) C# code into a working bare-metal OS. Despite C# in the name, any .NET-based language can be used, which includes: VB.NET, IronPython, F# and more. Cosmos itself and its kernel routines are primarily written in C#, and thus the Cosmos name.

In a project, Cosmos can be thought of as a compiler and a sort-of standard library for a project. It gives the user access to often hard to find or otherwise difficult to understand tools.


Features

The following is a non-exhaustive list of features that Cosmos offers:

  • Low level assembly access and pointer memory control
  • A basic filesystem
  • Most features found in the .NET core library
  • A CPU/FPU accelerated math library
  • A basic graphics interface
  • A basic network interface
  • A basic audio interface

Setting it up

Cosmos has an article here on how to do that.

Documentation

The Cosmos documentation can be found here.

If you still have any questions on how to use Cosmos, you can open a discussion or you can join the Discord server!

The devkit changelog can be found here.

Reporting an issue

If you think you found a bug in Cosmos, please check existing issues first before opening a new one. Do not open an issue if you need help with something in Cosmos that is not a bug, if you don't know how to code it's not a Cosmos issue for example.

cosmos's People

Contributors

anerruption avatar arawn-davies avatar armmaster17 avatar ascpixi avatar asertcreator avatar charlesbetros avatar czhower avatar eliasulimanov avatar fanoi avatar frenzibyte avatar geomtech avatar goldenretriveryt avatar guillermo-santos avatar jp2masa avatar kant2002 avatar kiirx avatar km198912 avatar mishaproductions avatar mishaty avatar mterwoord avatar myvar avatar ptobuon avatar quajak avatar terminal-cs avatar tgiphil avatar thefocusman avatar valentinbreiz avatar z-targz avatar zarlo avatar zdimension avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cosmos's Issues

NAsm MSBuild task interpret warning as error

When building Demos\Guess\Guess project following error produced.

1>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(45,5): error : C:\Users\Documents\GitHub\Cosmos-1\Demos\Guess\bin\Debug\Guess.asm:1964: warning: trailing garbage after `%endif' ignored

From what I see is that NAsm output incorrectly interpresed by Cosmos.Build.MSBuild.Nasm task

Real hw

  1. how can i install (or just boot from cd/flash disk) cosmos os on pc
  2. if ill run it, will hw buttons work, start button

Debugger does not pickup correct values

Steps to reproduce:

  1. Open Guess kernel
  2. Set breakpoint on first SendMessage.
  3. run Guess kernel.
  4. On first iteration, content of 'this' object correctly display mMagicNo as 22.
  5. Hit run and enter guess as 21
  6. Execution stopped.
    Content of 'this' is changed and don't display mMagicNo correctly.
    Some large number shown.

release 2015

Hi, what new features are in the newest release ?

No option to disable debugger with PXE profile

Both enabling and disabling the Debug->Enable Remote Debugging option when using the PXE profile still shows the "Waiting for debugger connection..." screen on boot. Using latest devkit (5/9/15).

License

Is there a license currently for this project? If there is, please create a file (LICENSE.txt) with the license pasted in it.

some programs

How can I make web browser and file explorer ? Im using C# and deving GUI system.

Thanks

Sell OS

If I'll finish my OS, can I sell it ?

Clean up Issues tab

As assigned by @mterwoord, I have gone through the issues tab and compiled a list of issues that can be closed (wontfix/Issue resolved). If someone with admin access to the issues tab could close these issues, that would be great!

:reason

#70:Issue resolved + inactive author(question answered)
#72:Issue resolved(merged #77)
#64:Workaround found (wontfix)(use old version)
#62:wontfix
#47:Author inactive (wontfix)
#45:wontfix (unknown bug source), inactive thread + author
#44:wontfix
#10:Issue resolved(merged #57)
#9:Issue resolved(merged #56)

How make a filing system?

I can't find any proper documention on almost everything, and theres one big thing I need to know, how do we read/write files? Stream Writer does not work.

Could not load file or assembly in latest User Kit

i have an assembly reference (Orvid.Graphics) which depends on System.Drawing. Unfortunately the Cosmos compiler doesn't like this and refuses to add it as a reference. Is there any way around this?
(It is being used for System.Drawing.Bitmap, System.Drawing.Color, System.Drawing.Imaging.BitmapData, System.Drawing.Imaging.ImageLockMode, System.Drawing.Imaging.PixelFormat, and System.Drawing.Rectangle)

x64 instructions

x64 instructions would be a great enhancement, I could give it a shot if I figure out where/what I have to do.

A Plug for Decimal Conversion?

I have a plug problem in Cosmos: I can't work with decimal numbers. Here's an example:

If I was to write a "two number adder" program (capable of adding decimal numbers), I would write it like this:

// ASKS FOR FIRST NUMBER AND SAVES IT AS A STRING
Console.Write("Enter first number: ");
string STRfirst = Console.ReadLine();

// ASKS FOR SECOND NUMBER AND SAVES IT AS A STRING
Console.Write("Enter second number: ");
string STRsecond = Console.ReadLine();

// CONVERTS THE STRINGS INTO DECIMAL NUMBERS
var first = Convert.ToDecimal(STRfirst);
var second = Convert.ToDecimal(STRsecond);

// ADDS UP THE DECIMAL NUMBERS
var answer = first + second;

// WRITES THEM
Console.WriteLine("Here's the answer: " + answer);
Console.ReadLine()

But when I build this program, it gives me the "Plug required" error. I understand this error, but I have no idea how to write a plug for Convert.ToDecimal. Is there a plug for Convert.ToDecimal available anywhere? If there isn't, could somebody help me write one?

Thanks in advance!

Error/Question

Error 25 Requested value 'None' was not found.
at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at System.Enum.Parse(Type enumType, String value)
at Cosmos.Build.MSBuild.IL2CPUTask.Initialize() in g:\IL2CPU\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:line 158
at Cosmos.Build.MSBuild.IL2CPUTask.Execute() in g:\IL2CPU\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:line 189 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets 31 6 Test

Is there any way I can figure out where this error is located or fix this error?

OpCode 'Localloc' not implemented

I'm getting an error after adding some string manipulation code during build time. Here's the dump:

------ Build started: Project: Flow_OS2Boot, Configuration: Debug x86 ------
C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : Error occurred while invoking IL2CPU.
C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : Exception: System.NotImplementedException: OpCode 'Localloc' not implemented!
C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error :    at Cosmos.IL2CPU.ILOpCodes.OpNone.GetNumberOfStackPops(MethodBase aMethod) in c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILOpCodes\OpNone.cs:line 147
Build has been canceled.

My guess is that this issue is related to #80 and #72.

Cosmos UserKit (latest GitHub release)
VS 2013 Professional 32-bit

Add *.vssettings file

@mterwoord Can you export your VS settings? Just the C# text editor section. This can be helpful to newbies match the coding style.

I need help with plugs!

I'm in the process of creating my own operating system with Cosmos, but I have a problem.

I need help with plugs! So far I've managed to write my operating system using code that doesn't require plugs. But this makes my OS really limited. I can't even make it display the time! Also, I can only translate strings into integers, which means there is no way to calculate decimal numbers without getting the "plug needed" build error.

I don't quite understand how to write and use plugs in Cosmos properly. Development of my OS has been delayed because I can hardly do anything. I'd defiantly like someone to tell me how to write and use plugs the right way.

Thanks in advance!

By the way, I'm using Milestone 4 with Visual C# 2008. I tried using the latest version of Cosmos, but it wasn't any different.

Threading?

Does Cosmos support threading? I attemped
Thread timing = new Thread(timer.Timer);
timing.Start();
But it does not build, if it does support threading, how do I make a thread?

Opcode 'stobj' not implemented error

I just installed the devkit and compiled Cosmos.Hardware. I'm using a dll reference in my project and I'm trying to use the PCSpeaker class to beep. However, whenever I build I get a System.NotImplementedException. Help? I have included my code and the full error below.

Kernel.cs

using System;
using System.Text;
using Sys = Cosmos.System;
using Cosmos.Hardware;

namespace CosmosKernel2
{
    public class Kernel : Sys.Kernel
    {
        string username;
        string input;
        protected override void BeforeRun()
        {
            Console.WriteLine("Welcome to CyOS");
        }

        protected override void Run()
        {
            Console.WriteLine("Username:");
            username = Console.ReadLine();
            Console.Clear();
            Console.WriteLine("Hello " + username + "");
            Console.WriteLine("Press any key to continue.");
            input = Console.ReadLine();
            Console.Clear();
            PCSpeaker speaker = new PCSpeaker();
            while (username.Length > -1)
            {
                Console.Write("Users/" + username + "/:>");
                input = Console.ReadLine();

                switch (input.Substring(0, 3))
                {
                    case "cls": Console.Clear(); break;
                    case "sta": Console.WriteLine("Reading GREEN"); break;
                    case "pri": Console.WriteLine(input.Substring(6)); break;
                    case "ope": Console.WriteLine("No filesystem was found."); break;
                    case "dir": Console.WriteLine("No filesystem was found."); break;
                    case "lis": Console.WriteLine("No filesystem was found."); break;
                    case "bee": speaker.beep(); break;
                    case "qui": speaker.nosound(); break;
                    case "run": Console.WriteLine("System Exception: No filesystem was found."); break;
                    default: if (input == "") break; else Console.WriteLine("Unable to execute command. Error: Command Does Not Exist"); break;
                }

            }
        }
    }
}

Error from Build Output

1>------ Build started: Project: CosmosKernel2, Configuration: Debug Any CPU ------
1>CSC : warning CS1762: A reference was created to embedded interop assembly 'c:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Interop.VixCOM.dll' because of an indirect reference to that assembly created by assembly 'c:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Debug.VSDebugEngine.dll'. Consider changing the 'Embed Interop Types' property on either assembly.
1>CSC : warning CS1762: A reference was created to embedded interop assembly 'c:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Interop.VixCOM.dll' because of an indirect reference to that assembly created by assembly 'c:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Vestris.VMWareLib.dll'. Consider changing the 'Embed Interop Types' property on either assembly.
1>C:\Users\Priansh\Documents\Visual Studio 2013\Projects\CosmosKernel2\CosmosKernel2\ACPI.cs(22,30,22,36): warning CS0414: The field 'CosmosKernel2.ACPI.SCI_EN' is assigned but its value is never used
1>  CosmosKernel2 -> C:\Users\Priansh\Documents\Visual Studio 2013\Projects\CosmosKernel2\CosmosKernel2\bin\Debug\CosmosKernel2.dll
2>------ Build started: Project: CosmosKernel2Boot, Configuration: Debug x86 ------
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error : Error occurred while invoking IL2CPU.
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error : Exception: System.NotImplementedException: OpCode 'Stobj' not implemented! Encountered in method Boolean TryGetValue(System.String, Int32 ByRef)
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error :    at Cosmos.IL2CPU.ILOpCodes.OpType.GetNumberOfStackPops(MethodBase aMethod) in c:\Users\Priansh\Downloads\Cosmos-master\Cosmos-master\source\Cosmos.IL2CPU\ILOpCodes\OpType.cs:line 48
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error :    at Cosmos.IL2CPU.ILOpCode.InitStackAnalysis(MethodBase aMethod) in c:\Users\Priansh\Downloads\Cosmos-master\Cosmos-master\source\Cosmos.IL2CPU\ILOpCode.cs:line 296
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error :    at Cosmos.IL2CPU.ILReader.ProcessMethod(MethodBase aMethod) in c:\Users\Priansh\Downloads\Cosmos-master\Cosmos-master\source\Cosmos.IL2CPU\ILReader.cs:line 407
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error :    at Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug, String sourceItem) in c:\Users\Priansh\Downloads\Cosmos-master\Cosmos-master\source\Cosmos.IL2CPU\ILScanner.cs:line 537
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error :    at Cosmos.IL2CPU.ILScanner.ScanQueue() in c:\Users\Priansh\Downloads\Cosmos-master\Cosmos-master\source\Cosmos.IL2CPU\ILScanner.cs:line 662
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error :    at Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) in c:\Users\Priansh\Downloads\Cosmos-master\Cosmos-master\source\Cosmos.IL2CPU\ILScanner.cs:line 249
2>C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets(31,5): error :    at Cosmos.IL2CPU.CompilerEngine.Execute() in c:\Users\Priansh\Downloads\Cosmos-master\Cosmos-master\source\Cosmos.IL2CPU\CompilerEngine.cs:line 238
2>  Loaded : DebugEnabled
2>  Loaded : StackCorruptionDetectionEnabled
2>  Loaded : DebugMode
2>  Loaded : TraceAssemblies
2>  Loaded : DebugCom
2>  Loaded : UseNAsm
2>  Loaded : OutputFilename
2>  Loaded : EnableLogging
2>  Loaded : EmitDebugSymbols
2>  Loaded : IgnoreDebugStubAttribute
2>  Loaded : References
2>  Message: Executing IL2CPU on assembly
2>  Message: Plug found: 'Microsoft.Win32.RegistryKey'
2>  Message: Plug found: 'System.Array'
2>  Message: Plug found: 'System.Byte'
2>  Message: Plug found: 'System.Char'
2>  Message: Plug found: 'System.Delegate'
2>  Message: Plug found: 'System.Double'
2>  Message: Plug found: 'System.Drawing.Color'
2>  Message: Plug found: 'System.Drawing.SR'
2>  Message: Plug found: 'System.Enum'
2>  Message: Plug found: 'System.Environment'
2>  Message: Plug found: 'System.GC'
2>  Message: Plug found: 'System.Globalization.CultureInfo'
2>  Message: Plug found: 'System.Globalization.NumberFormatInfo'
2>  Message: Plug found: 'System.Int16'
2>  Message: Plug found: 'System.Int32'
2>  Message: Plug found: 'System.Int64'
2>  Message: Plug found: 'System.IntPtr'
2>  Message: Plug found: 'System.Net.IPAddress'
2>  Message: Plug found: 'System.Net.SocketAddress'
2>  Message: Plug found: 'System.Number'
2>  Message: Plug found: 'System.Object'
2>  Message: Plug found: 'System.Resources.ResourceManager'
2>  Message: Plug found: 'System.RuntimeType'
2>  Message: Plug found: 'System.RuntimeType+RuntimeTypeCache'
2>  Message: Plug found: 'System.RuntimeTypeHandle'
2>  Message: Plug found: 'System.Security.CodeAccessSecurityEngine'
2>  Message: Plug found: 'System.Runtime.CompilerServices.RuntimeHelpers'
2>  Message: Plug found: 'System.Runtime.InteropServices.SafeHandle'
2>  Message: Plug found: 'System.SByte'
2>  Message: Plug found: 'System.Security.Cryptography.Utils'
2>  Message: Plug found: 'System.Single'
2>  Message: Plug found: 'System.SR'
2>  Message: Plug found: 'System.String'
2>  Message: Plug found: 'System.Threading.Interlocked'
2>  Message: Plug found: 'System.UInt16'
2>  Message: Plug found: 'System.UInt32'
2>  Message: Plug found: 'System.UInt64'
2>  Message: Plug found: 'System.Diagnostics.Debugger'
2>  Message: Plug found: 'System.Math'
2>  Message: Plug found: 'System.Buffer'
2>  Message: Plug found: 'System.EventHandler'
2>  Message: Plug found: 'System.Exception'
2>  Message: Plug found: 'System.MulticastDelegate'
2>  Message: Plug found: 'System.OutOfMemoryException'
2>  Message: Plug found: 'Cosmos.Core.CPU'
2>  Message: Plug found: 'Cosmos.IL2CPU.GCImplementation'
2>  Message: Plug found: 'Cosmos.Core.IOPortBase'
2>  Message: Plug found: 'Cosmos.Debug.Kernel.Debugger'
2>  Message: Plug found: 'System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'
2>  Message: Plug found: 'System.Random'
2>  Message: Plug found: 'System.Text.DecoderFallback'
2>  Message: Plug found: 'System.Text.EncoderFallback'
2>  Message: Plug found: 'System.Text.ASCIIEncoding'
2>  Message: Plug found: 'System.Console'
2>  Message: Plug found: 'System.Text.InternalDecoderBestFitFallbackBuffer'
2>  Message: Plug found: 'System.Threading.Monitor'
2>  Message: Plug found: 'System.Type'
2>  Message: Loaded assemblies: 
2>  Message: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\IL2CPU.exe
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.IL2CPU.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Build.Common.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Debug.Common.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Assembler.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.System.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Core.Plugs.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.IL2CPU.Plugs.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Common.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Debug.Kernel.Plugs.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.System.Plugs.dll
2>  Message: C:\Users\Priansh\Documents\Visual Studio 2013\Projects\CosmosKernel2\CosmosKernel2\bin\Debug\CosmosKernel2.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Mono.Cecil.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\System.Data.SQLite.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\DapperExtensions.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\SQLinq.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\XSC.exe
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\XSharp.Nasm.dll
2>  Message: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Core.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Debug.Kernel.dll
2>  Message: C:\Users\Priansh\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.HAL.dll
2>  Message: C:\Users\Priansh\Documents\Visual Studio 2013\Projects\CosmosKernel2\CosmosKernel2\bin\Debug\Cosmos.Hardware.dll
2>  Errorred
2>  IL2CPU invoked with DebugMode='Source', DebugEnabled='True', TraceAssemblies='{NULL}', IgnoreDebugStub='False'
2>  IL2CPU task took 00:00:02.6240657
2>Done building project "CosmosKernel2Boot.Cosmos" -- FAILED.
2>
Build has been canceled.

Could not run project from Solution Explorer

Steps to reproduce

  1. Open Cosmos.sln
  2. In the Solution Explorer, right click on the project which is not selected as Startup project. The should be selected Cosmos project.
  3. Select Debug->Start new instance menu item.

Expected:
Project gets build, and run

Actual Result:
Project does not build, and previous version is run.
In the Output window the message "Project skipped, as it's not necessary for running" shown

Cosmos.VS.Windows message handling needs improvement

The DebugConnector and the Cosmos.VS.WIndows project communicate via named pipe. messages received in the .Windows project are put in a queue, and a timer is used to process them (marshalling back to the UI-thread)
It looks like the current way things work keep the UI-thread too busy for rendering. (VS will freeze up)
Replacing UI-interaction with a streamwriter (still on ui thread) works and makes cpu usage go down..

just cloned and ran install.bat - run into errors

the error msg is below.
Looks like .iss list files in source\IL2CPU\bin\debug*.dll, but there's no files there.. Is it because these files are moved to somewhere else in the project?

Can someone try clone and install to reproduce, and then fix the issue? Thanks.

Creating Setup

Starting: C:\Program Files (x86)\Inno Setup 5\ISCC.exe
Params: /Q "C:\Cosmos\Cosmos\Setup\Current.iss" /dBuildConfiguration=DevKit
Error on line 161 in C:\Cosmos\Cosmos\Setup\Current.iss: No files found matching "C:\Cosmos\Cosmos.\source\IL2CPU\bin\Debug*.dll"
Compile aborted.

Debug engine for Cosmos use not unique GUID

GUID which is used for the AD7Engine class if shared with Python Tools for VS and other various samples across internet.
See:
https://github.com/dtretyakov/node-tools/blob/master/src/DebugEngine/Engine/AD7Engine.cs#L29
https://github.com/LiXizhi/NPL/blob/master/Microsoft.VisualStudio.Debugger.SampleEngineWorker/SampleEngine.rgs#L17

On my PC personally It is shared with PythonTools for VS.

That have to be changed, since we Cosmos could not be used side-by-side with Python Tools

USB deployment tool does not open

Selecting the USB bootable drive profile and building results in an error. The user is presented with the same error as shown in issue #88, and a blank window. Closing the error message results in a window "Cosmos.Deployment.USB has stopped working". Using latest devkit (5/9/15).

Using the "Stop debugging" button in VS crashes VS.

i have builded the latesed source code and installed the kit, when i create a new cosmos project, and debug it opens and all works, but if i close vmplayer using stop button in vs it give a vix error(i installed the api btw)
image
and if i close vmplayer using the red x of its window i get this error
image
and vs just chrashes and closes, but if i close wm player from red x and not vs stop button all is fine.

PXE Network Boot function broken

Ran a minimalist Cosmos project with the ----Boot project settings set to "PXE Network Boot". The project compiled fine, but then a message box popped up saying "Not enough parameters". Then the following box appeared:
debug2
Closing the window brings up a "Visual Studio has stopped working" box, which appears to close nothing.

Add HyperV support

Add support for hyper-v. (Client/local HyperV, bonus points for remote support)
This involves:

  • Adding settings pages to the project for configuring the HyperV mode
  • Adding support for creating and starting the HyperV virtual machine
  • Adding support for debugging HyperV machines
  • Possibly, fix any bugs in the kernel which are uncovered in the process..

A File System in Cosmos?

My operating system is almost complete, but I need help with giving my operating system file reading/writing capabilities. All I'm asking for is a simple system that will allow me to write a file to... say, a floppy disk, and load its contents into memory.

Does the latest version of Cosmos (build 108477) come with file reading/writing capabilities? If it doesn't, could somebody point me to a good user-created one?

Thank you in advance!

Future platforms

Whats the progress with Intel Edison, will you after that go to ARM ?

VGAscreen bug

Trying to write to a VGAscreen throws an error at compile-time:

C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : Exception: System.NotImplementedException: OpCode 'Ldobj' not implemented! Encountered in method Void WriteVGARegisters(Byte[])

Here are some excerpts from my code that may be helpful:

VGAscreen vScreen = new VGAscreen();
...
vScreen.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);
vScreen.Clear(15);
...
public void Draw() // Called every update loop cycle
{
    vScreen.Clear(15);
    vScreen.SetPixel320x200x8((uint)ms.X, (uint)ms.Y, 0);
}

I apologize if I am missing some new feature. I just upgraded from the Codeplex version to the latest release (not source) on GitHub. That's when my code stopped working.

Autoselect IP address

For the Pixie PXE tool, in the event that the requested IP address is not bind-able, Get a list of the available IP addresses in the system and select the first non-loopback address.

Some problems

I wrote a standard code (changing color of background) if i write Blue (name of color) the entire system freezes and i cant do anything. I use Console.ReadLine();

Login system

Hello, how can I make this: when user 1st start os he will he will set name nas password, it will save. If he will came back (reboot, shutdown and start) and type his name and pass word. You can see what i mean in Grunt OS videos on youtube

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.