Looking for basic OS

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
HeliumPL
Posts: 5
Joined: Sun Jun 16, 2013 4:29 am

Looking for basic OS

Post by HeliumPL »

Hi!
I'm looking for a very basic OS being able to put a single pixel on screen. It should also support screen resolutions and multitasking. I don't want to play with assembler, programming IDT, IRQ, etc. :)

Greetings
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: Looking for basic OS

Post by thepowersgang »

So, you're looking for an OS to act as a base for yours? Well, you can just use linux with SDL if you need. Or, look at the OS projects list on the wiki. HOWEVER, make sure you read the licences before you go building on somebody else's work.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
HeliumPL
Posts: 5
Joined: Sun Jun 16, 2013 4:29 am

Re: Looking for basic OS

Post by HeliumPL »

Can I use linux 0.1(or 1.0, I don't remember) with SDL? Is there an SDL for it?
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Looking for basic OS

Post by sortie »

SDL wasn't invented that then.
HeliumPL
Posts: 5
Joined: Sun Jun 16, 2013 4:29 am

Re: Looking for basic OS

Post by HeliumPL »

But is this linux version able to put a pixel on screen? To work in graphical mode? Or I should write VGA driver by myself?

And of course: can it be compiled on linux :mrgreen:
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Looking for basic OS

Post by sortie »

What task are you trying to accomplish? Are you trying to do something in particular, perhaps as part of a project? Are your goal just to make an operating system because you want to? Are your goal to play with operating systems to learn more about them? Perhaps to modify an existing operating system?

And no. Ancient Linux versions can't run SDL because it didn't exist back then and ancient Linux versions probably wouldn't be able to run it. thepowersgang suggested that you use a modern Linux environment with SDL (for instance) to write a full-screen application able to "write pixels to the screen".
HeliumPL
Posts: 5
Joined: Sun Jun 16, 2013 4:29 am

Re: Looking for basic OS

Post by HeliumPL »

I want to make a hobby os, only for me, not for publishing. Does linux 0.1 has vga drivers(or vesa)?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Looking for basic OS

Post by Combuster »

s/has/have/, and any video support in the first release of linux is text only.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Looking for basic OS

Post by bluemoon »

HeliumPL wrote:I want to make a hobby os
I see a contradiction.
Do you actually want to develop an OS, or fork other's project, make yet another linux distribution, or indeed want to write a graphical shell / window manager?

Multi-tasking is a core feature of an OS, if you:
1. don't know how it work: you should really spend time on it as it affect very much OS design choices.
2. too lazy to implement it: you may spend a few days for a round robin scheduler, and rewrite it later.

Either way, you should not skip the multi-tasking part if you're going to develop an OS.
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Looking for basic OS

Post by sortie »

Hobby OS? Is your goal learning or making something you can use yourself? Perhaps http://linuxfromscratch.org/ will satisfy you need for control and teach you about "how an operating system works".
HeliumPL
Posts: 5
Joined: Sun Jun 16, 2013 4:29 am

Re: Looking for basic OS

Post by HeliumPL »

LFS? There is too much work. I just want an OS which I would be able to print pixels :) Not only to learn sth but mostly to have fun. I don't want to play in building an os from scratch. I understand some of its mechanics because i was writing some in the past.

So I want an OS which will be able to print a pixel. Then I'll write some functions to draw a rectangle, square, fill screen etc. Linux is a too big toy here. A mini kernel with vga and multitasking supportwould be enought.
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: Looking for basic OS

Post by dozniak »

HeliumPL wrote:So I want an OS which will be able to print a pixel. Then I'll write some functions to draw a rectangle, square, fill screen etc. Linux is a too big toy here. A mini kernel with vga and multitasking supportwould be enought.
You definitely don't need an OS for that. SDL is able to draw a pixel. OpenGL is able to draw triangles and lots of pixels.

If you want an OS for just a graphical mode, look at DOS.
Learn to read.
AbstractYouShudNow
Member
Member
Posts: 92
Joined: Tue Aug 14, 2012 8:51 am

Re: Looking for basic OS

Post by AbstractYouShudNow »

So you take the bare bones tutorials, which should get you an operating freestanding environment. Then, you add to the bootsector a BIOS call to set a common resolution and write functions for graphics.

What you will need (from the wiki) : PS: I'll try to make you such a little OS as an example. I'll post when it'll be done.
AbstractYouShudNow
Member
Member
Posts: 92
Joined: Tue Aug 14, 2012 8:51 am

Re: Looking for basic OS

Post by AbstractYouShudNow »

Here's the sample OS. It has a poor resolution and basic routines, but it's the most basic I can do without the BIOS.
Here's a sample screenshot
A little screenshot
A little screenshot
Attachments
sampleos.zip
The sample OS you asked for
(9.89 KiB) Downloaded 61 times
Post Reply