Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Tutorial for making my second priority os?

Feb 12, 2015 7:43PM PST

Hi, helpful guys! I want to make my second priority os (executed on the same level as the bootloader). I am looking for some tutorial or helpful tips and basics on it.
I want to make a 32bit and 64 bit os (NOT 16bit!!). But all I can find is 16 bit os. It will actually be a bootloader, but will execute code on a much higher level than machine code.
Very, very thanks.
--Anonymus

Discussion is locked

- Collapse -
Re: OS
Feb 12, 2015 8:55PM PST

I'm afraid there are no easy tutorials for writing an OS (whatever 'a second priority OS' is). And it's kind of confusing that your OS is actually a bootloader (or is it the other way around)

But since Linux is open source and certainly more than 16 bit, that would be a great place to start researching. There's an Android Open Source Project also, that you can use a basis for your own OS.

Kees

- Collapse -
--
Feb 14, 2015 2:10PM PST

Linux is third priority (executed by the bootloader)

- Collapse -
Let me explain to you the priorities I made
Feb 14, 2015 2:19PM PST

1st priority: BIOS
2nd priority: Bootloader
3rd priority: A children of bootloader (usually OS)
4th priority: OS Native executed applications (PE in windows)
5th priority: .NET etc
...
It starts with what executes first, then goes down to what the executed thing executes.
What I want to do is place my OS (actually a bootloader as I said, but having almost all the features of an os including GUI (will just be an OS selection menu)) as second priority aka Bootloader priority.

- Collapse -
are you in a third world country?
Feb 12, 2015 9:22PM PST

16 bit is Windows 95 and earlier stuff. Nobody is using 16 bit anymore, certainly not for operating system.

http://en.wikipedia.org/wiki/Windows_95
Windows 95 integrated Microsoft's formerly separate MS-DOS and Windows products. It featured significant improvements over its predecessor, Windows 3.1, most notably in the graphical user interface (GUI) and in its relatively simplified "plug-n-play" features. There were also major changes made at lower levels of the operating system, such as moving from a mainly 16-bit architecture to a pre-emptively multitasked 32-bit architecture. Some three years after its introduction, Windows 95 was succeeded by Windows 98. Support for Windows 95 ended on December 31, 2001.

The last true 16 bit only processor was probably the 80386 although the 486sx might have been 16 bit, but I don't remember.

Like Kees said, check out Linux, plenty of distributions available for free.

- Collapse -
--
Feb 14, 2015 2:11PM PST

"I want to make a 32bit and 64 bit os (NOT 16bit!!)."
When did I say I wanted to make a 16 bit os?

- Collapse -
Higher level than machine code?
Feb 12, 2015 11:37PM PST

I'd get back to class on how computers work as machine code at Ring 0 is as high as it gets in today's designs.
http://en.wikipedia.org/wiki/Protection_ring

Don't take offense but your question could result in being flamed on the web. Time to learn more. A lot is on the web but without some formal classes and more you may be lost.
Bob

- Collapse -
--
Feb 14, 2015 2:14PM PST

There was a reason I called it an "OS".
All I need is a simple, beginner tutorial to let me get the hang of it.
-Thanks Happy

- Collapse -
Still an odd question
Feb 14, 2015 11:52PM PST

Such tutorials are on the web now.

However, I've noticed a few folk that think that learning all about an OS can be written down in one chapter of a book. Some think it can be learned in a day. Sometimes these folk get upset at how much one must learn to write their first OS.

But given really nice things like a 35 dollar Raspberry Pi why not go get that and tinker as you learn?
Bob

- Collapse -
--
Feb 21, 2015 2:34PM PST
Such tutorials are on the web now.
Link me to even one tutorial that is not a simple hello world os or pure assembly and do not use GRUB or a bootloader to execute

<i>However, I've noticed a few folk that think that learning all about an
OS can be written down in one chapter of a book. Some think it can be
learned in a day. Sometimes these folk get upset at how much one must
learn to write their first OS.</i>
I am not one of these folks

But given really nice things like a 35 dollar Raspberry Pi why not go get that and tinker as you learn?
I want to make it available to peoples to can download my os and execute it.
- Collapse -
No questions there.
Feb 21, 2015 11:33PM PST

I would be guessing if there are questions in your post or if you wanted me to find a complete ready to run non-GRUB hello world. That's what a budding programmer would write from scratch with either classes in the right areas or searching on the web.

You've repeated what I've seen before. Folk want others to do all the searching and work for them. Once you get past that, you can make real progress.

Be sure to join programming forums like DaniWeb and CodeProject.
Bob