Page 1 of 1

Anix V0.01 Initial release

Posted: Mon May 05, 2008 4:19 pm
by xarnze
This is my first attempt at building an operating system and my first release. Any Testing or help with the project would be appreciated.
You can download a copy from:
http://sourceforge.net/project/download ... g&63703265 (Floppy disk image)
Visit http://sourceforge.net/projects/anix/ for the source.
Thank You for you interest.

Posted: Mon May 05, 2008 5:41 pm
by pcmattman
Tested in Bochs, QEMU, Virtual PC, and VMWare.

QEMU:

A lot of hex numbers and then some information about floppy drives. Appeared to freeze at "reading..." though.

Bochs:

Many more numbers than QEMU printed. Seems to be stuck just printing numbers, and then it makes it past the "reading..." text to read in the bootsector et al. Made it to a shell (the floppy drive is still spinning, btw).

I like the output from "ls", especially the dates - though I'm not too sure about "_~1.TRA" - that might be a deleted file that you haven't checked for in your directory parsing code.

I got confused when I tried "read", as I thought it was like "cat" - where you have the file passed on the command line (Also, it couldn't find test.txt?)

Virtual PC:

It worked well (hardly any numbers output). Much slower to read the floppy though, have you thought about caching the read directory listings and updating the cache whenever something needs to be written? Other than that, it ran smoothly.

VMWare:

Pretty much the same as VPC.

It seems to be a very good first attempt (I am interested to know how much is actually your code though) with a couple of things that could be fixed up (mainly that directory code).

Also, if you type special characters the command doesn't match properly, and you can also backspace into the ">" :P.

Good effort :D

Posted: Mon May 05, 2008 6:49 pm
by chezzestix
Virtual box seems to develop the same problem as QUEM

Posted: Tue May 06, 2008 12:29 am
by xarnze
Thank you for your interest, All of the code is mine but it used Brian's os development tutorial to get me started. Ive made some changes to the code and would appreciate any testing that you could do, for comparison. Thank you for all your feedback.
modified version:
http://mesh.dl.sourceforge.net/sourcefo ... .01rv2.img(Floppy disk Image)
Thank you

Posted: Tue May 06, 2008 4:30 pm
by 01000101
well just about everything worked fine. the LS command didn't though, it locked up the OS and I had to reset it.

your shell seems to be sturdy enough, i wasnt able to do any simple overflows.

just FYI, if you enter a command name, and then press any other key, even if you delete it, the command doesnt get registered.

Posted: Sat May 10, 2008 4:46 am
by lukem95
i hate to break it to you... but its not ALL you and Bran's code. Theres lots of stuff from other tutorials on osdever.net in there:

floppy detection, some of the floppy read/write

i swear i've seen some of the CPU detection somewhere too...

on the plus side, the code that is yours looks pretty nice.

Test:


froze on "reading..." when i tested with Qemu (windows default binaries)

bochs successfully read the floppy, quite quickly actually (which is impressive). Shell seems to be secure, but your read command didnt seem to work for any file. It also failed to give me any errors. your format command also failed on bochs.

Posted: Sat May 10, 2008 9:46 am
by Brynet-Inc
Thanks for spotting that lukem95..

@xarnze, You're making use of my CPU detection code, but you're clearly violating my licencing agreement.
/*
* Copyright (c) 2006-2007 - <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met
:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.

* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.

* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
I didn't ask for much, all I asked was that you retain my licence... it's not permitted for you to strip my licence off like that and introduce your own, both morally and legally.

You don't even add anything to the existing code base to warrant your name to be listed in the copyright notice.

I ask you to replace the header with the my original licence, and discontinue distribution of the unauthorized relicensed files.

Posted: Sat May 10, 2008 11:26 am
by xarnze
Many apologies Brynet-Inc, i was given a copy of your code without the header on it the code has now been given its proper header. Almost all of the code that has been pointed out by lukem95 is no longer present in my code base as it was only included in order to test other functions i was writing until i had re-written them, these sections have been rewritten but unfortunately i submitted an old copy of the code to CVS and source forge accidentally, I'll update it as soon as possible.