Help With Patricknet Development

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
babylon2233
Member
Member
Posts: 66
Joined: Fri May 23, 2008 5:30 pm
Location: Malaysia

Re: Help With Patricknet Development

Post by babylon2233 »

From http://wiki.osdev.org/Printing_to_Screen.

Basic string write function.

Code: Select all

/* note this example will always write to the top
   line of the screen */
void write_string(int colour, const char *string)
{
	volatile char *video=(volatile char*)0xB8000;
	while(*string!=0)
	{
		*video=*string;
		string++;
		video++;
		*video=colour;
		video++;
	}
}

User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Help With Patricknet Development

Post by Troy Martin »

If you're going to use that you may want to modify it to use a global cursor pointer instead. It'll allow you to print from any screen location instead of just the top.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Help With Patricknet Development

Post by PatrickV »

Thanks. I am trying to create drivers and libraries which has been proven difficult. I tried the printf and clear_screan_f from the c kernel help from osdever.net but it went in up in smoke. Please add the code it my existing code as i said before so i know where things. I just jumped form asmembly to c language so it is a big change for me to learn.
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Help Me

Post by PatrickV »

I need some help. I got some text printing happening but now i want to add a feature of typing in command which i use c langauge. I it is very hard to find c langauge stuff around here. Any help would be great to finish beta 0.2
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Help With Patricknet Development

Post by Troy Martin »

So you need help with a keyboard driver and command interpreter/shell?
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Help With Patricknet Development

Post by PatrickV »

Yes! I guess this the case. I am hoping that i can get the cmd prompt system sorted then jump and create a gui which i need help later on. But yes i need help with keyboard driver and command interpreter/shell! Keyboard driver might be tricky? No sure? Becasue their are different keyboards and keyboard formats. I need a some help to get it right. Plus i need to rearange the website so it is much easeir for you guys to browse it.
User avatar
babylon2233
Member
Member
Posts: 66
Joined: Fri May 23, 2008 5:30 pm
Location: Malaysia

Re: Help With Patricknet Development

Post by babylon2233 »

How far have you gone right now?
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Help With Patricknet Development

Post by PatrickV »

No where. that's the problem. I don't know how to create one. I wouldn't be here if i didn't know how. As i said earler that i jump from assembly to C and have to start learning all over again. Plus I've been working on a print/screen driver to put information to the screen which turned out really good. But i want to make interactive. That was the problem in the last version. I need help in that department and don't know where to start. I want to make Patricknet look good of course.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: Help With Patricknet Development

Post by 01000101 »

PatrickV wrote:But i want to make interactive. That was the problem in the last version. I need help in that department and don't know where to start. I want to make Patricknet look good of course.
Honestly, that should not be on your priority list at the moment.

You should be working on setting up a bootloader (your own or GRUB) and just being able to jump to your kernel and maybe print to the screen some debugging info. You are far from needing to worry about user interaction, as for the next long while, you will be the only user interacting with it.
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Help With Patricknet Development

Post by PatrickV »

Done. That's what i been trying to get at. This topic was about change my operating system by using GRUB and C language. Have a look at all the posts i've done in this topic, I can give you a floppy image what i've done so far if you need proff. Otherwise apology will be nice
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: Help With Patricknet Development

Post by 01000101 »

I will not apologize as my point is still valid.
Just because you have what I mentioned above, does not mean you are done with the basics.
You still should not be concerned with superficial coding, you should be improving core functions.

Do you have a working memory manager?
Do you have interrupt handling, or polling routines?
PCI bus enumeration?
Process support; threads and such?
Paging? (not essential, but useful)
Basic error checking or support checks (CPUID, MP/ACPI parsers)?

This list can go on for quite a while. And even once you complete the 'core' functions, it still does not mean that anyone besides yourself will be using it as it will be too unstable and unusable for any real purpose. They are called 'core' functions as they are the support for higher-level items such as an interface.
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Help With Patricknet Development

Post by PatrickV »

Hey, Sorry for taking a leak in your pool. I just want to get a keyboard driver and command interpreter/shell to work that's all or get one created. All those things you listed has a vaild point. Unless you are going to show me all of that stuff and how to do it in one day. :lol: I am taking diffrent approches on things with Patricknet. I just came here for some help. i am about 75% sure you don't need that stuff just make a keyboard driver and command interpreter/shell. I just don't knwo where to begin with keyboard driver and command interpreter/shell and how to do it.
M-Saunders
Member
Member
Posts: 155
Joined: Fri Oct 27, 2006 5:11 am
Location: Oberbayern
Contact:

Re: Help With Patricknet Development

Post by M-Saunders »

PatrickV wrote:I just don't knwo where to begin with keyboard driver and command interpreter/shell and how to do it.
How much C do you know? Have you written any substantial programs in C before? If not, you're going to find it very difficult. And you don't want to get others to do the work for you -- otherwise you won't understand what's going on. You'll just end up with a bunch of code that you don't understand.

Operating system development is very tricky work. If you haven't got a lot of prior programming experience, you'll repeatedly keep hitting walls as you've been doing for several months! It's not a dead end: go write your own command line interpreter for Windows or a Unix-ish system. Once you understand what it entails, you can transfer those skills to your own OS, but it'll be much harder because you won't have any libraries to support you.

The people on here are very helpful and knowledgeable. But they're not going to write your code for you. And you need to demonstrate some coding ability beforehand; you need to be adept with C to take on the mighty challenge of OS development. Good luck!

M
MikeOS -- simple, well-documented x86 real-mode OS written in assembly language
http://mikeos.sourceforge.net
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Help With Patricknet Development

Post by Troy Martin »

Trust M, he's right. I hit the same wall because I had no idea what I was doing. Now I do know.

And if you're looking for a pmode keyboard driver, don't look at me. Even with Brendan's help I had enough bugs to constitute an epic fail.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: Help With Patricknet Development

Post by PatrickV »

Can anyone give me links to webiste or operating system i can learn of from. os wiki and members are not helping and i need something to learn from
Post Reply