Need simple OS

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.
Post Reply
Vladaz

Need simple OS

Post by Vladaz »

Hello everyone.
I need simple OS source and there must be bootloader, that boots kernel and kernel. The code must be simple too :)
If you know where i can download it from, tell me. Or maybe you can code that simple OS?
Thanks.
Vladaz

Re:Need simple OS

Post by Vladaz »

By the way, i would be thankful if the source would be in NASM and C
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Need simple OS

Post by Pype.Clicker »

http://www.osdev.org/osfaq2/

ever tried the "small kernel with sources" section ?
Therx

Re:Need simple OS

Post by Therx »

any change of writing it your self or is there a deadline involved

Pete

PS Not for codewars or school is it?
Vladaz

Re:Need simple OS

Post by Vladaz »

I need it because im too lame and i read a lot of manuals, but my bootloader still can't load the kernel :) I found now one and i go to test it. If it works than i can say to someone - thanks.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Need simple OS

Post by Pype.Clicker »

just pick up grub, then ...
Therx

Re:Need simple OS

Post by Therx »

1. Download a GRUB image from http://osdever.net
2. Use RAWrite to put it on a floppy.
3. Download OSD kernels from http://my.execpc.com/~geezer/osd/
4. Change the menu.lst file on the floppy so the kernel filename's right.
5. Download DJGPP http://www.delorie.com/
6. Compile the first OSD kernel by typing "make" in a command prompt
7. Copy to kernel onto the floppy
8. Reboot
9. Stare in amazement
10. Write your own code

HTH.

Pete
Tim

Re:Need simple OS

Post by Tim »

Just a point: I only recommend using DJGPP if all you've got is DOS. There are much better compiler and linker packages available for Windows (Cygwin or Mingw) and Linux (normal gcc/ld).
Therx

Re:Need simple OS

Post by Therx »

but on windows cygwin/mingw are a pain to get setup (the ld scenario)

Pete
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Need simple OS

Post by Candy »

Tim Robinson wrote: There are much better compiler and linker packages available for Windows (Cygwin or Mingw) and Linux (normal gcc/ld).
How do you make an ELF file with the MingW tools? And are the .S files generated by the 3.3 MingW gcc the same as the 3.3 linux gcc? I can't seem to stuff linux on my laptop (will try again tonight, still hard because it has 1GB of harddisk and so I can't copy a cd image, and I can't install from cd because I can't fit the CD in (without breaking it, and my floppy drive).
Tim

Re:Need simple OS

Post by Tim »

Candy wrote: How do you make an ELF file with the MingW tools?
Don't know about Mingw, but you can do this on Cygwin by linking to PE (i.e. by not specifying an output format), then using objcopy to convert to ELF.
And are the .S files generated by the 3.3 MingW gcc the same as the 3.3 linux gcc?
Don't know, I have installed neither Mingw nor Linux :).
mystran

Re:Need simple OS

Post by mystran »

Candy wrote: I can't seem to stuff linux on my laptop (will try again tonight, still hard because it has 1GB of harddisk and so I can't copy a cd image, and I can't install from cd because I can't fit the CD in (without breaking it, and my floppy drive).
Sorry, if this is off-topic, but I'd investigate the possibilities for network install (assuming you have network). Basicly, if you can boot from a few floppies into a ramdisk based small linux system with necessary network driver and enough utils to 1) download stuff with wget or something, and 2) mount local partition, you can then install almost any distribution (as long as the installed distribution fits on the drive) over network.

At least gentoo and debian are fairly easy to do (although 1GB probably is too little for using gentoo), Slackware is even easier (packages are .tgz == basicly .tar.gz with /install/doinst.sh or something like that) and I think you can get most others to work too.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Need simple OS

Post by Candy »

mystran wrote: Sorry, if this is off-topic, but I'd investigate the possibilities for network install (assuming you have network). Basicly, if you can boot from a few floppies into a ramdisk based small linux system with necessary network driver and enough utils to 1) download stuff with wget or something, and 2) mount local partition, you can then install almost any distribution (as long as the installed distribution fits on the drive) over network.

At least gentoo and debian are fairly easy to do (although 1GB probably is too little for using gentoo), Slackware is even easier (packages are .tgz == basicly .tar.gz with /install/doinst.sh or something like that) and I think you can get most others to work too.
That was my plan initially, but I seem to have a cross/noncross problem with cables I can't re-squeeze connectors on. That means I'm going to have to try @ internship tomorrow, hope they won't mind.. Anyway, back to topic & thanks mystran.
Post Reply