Welcome to FoolOS ================= ![FoolOS Logo](https://gitweb.softwarefools.com/?p=miguel/fool-os.git;a=blob_plain;f=img/logo.png;hb=HEAD) Abstract -------- Welcome to the Home of the worlds most useless operating system. Quick-start ----------- Simply boot from the __FoolOS.iso__ in your favourite emulator or __dd__ to an USB stick and test on real hardware. Features -------- * Booting with Multiboot (e.g. GRUB 2) * 32-bit protected mode * Logging to COM1 * Parsing ACPI and Multiboot Data (partly) * Symmetrical Multiprocessing with LAPIC and IOAPIC * APIC and PIT Timers * Seperate GDT and IVT for each CPU * Paging / Virtual Memory * RAM image (ext2 read-only) * Standard streams (stdin/stdout/stderr) * Mouse and Keyboard support * Multithreading & Multitasking * Kernel and Userspace Tasks * CPU Private Memory * Support for ELF binaries. * IRQ Handling Framework * Finegrained Spinlocks * Superfast Task Scheduler * PCI Bus scanning * VESA Framebuffer with fallback to a text-only terminal * C-library for Userspace (Newlib) * Simple FoolShell * Snake Game * Ships with other useless userspace software _Please note that most features are only very rudimentary and mostly buggy._ Multiboot --------- The FoolOS Kernel is following the Multiboot Specification (0.6.96) providing a multiboot header and the entry point _start(). This in turn calls the C function kernel_main(). Building -------- You should at least setup a gcc cross-compiler and setup newlib to build FoolOS yourself. GCC CROSS-COMPILER (i686-elf) https://wiki.osdev.org/GCC_Cross-Compiler (18 AUG 2018) ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-8.2.0/gcc-8.2.0.tar.gz https://sunsite.icm.edu.pl/pub/gnu/binutils/binutils-2.31.1.tar.gz NEWLIB https://wiki.osdev.org/Porting_Newlib (18 AUG 2018) ftp://sourceware.org/pub/newlib/newlib-3.0.0.20180802.tar.gz https://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz https://ftp.gnu.org/gnu/automake/automake-1.11.6.tar.gz Supported Platforms ------------------- __TODO: update/recheck__ FoolOS is tested/developed on the following emulators/machines * bochs 2.6.6 (compiled with: ./configure --enable-clgd54xx --enable-a20-pin --enable-debugger --enable-disasm --enable-e1000 --with-x --with-x11 --with-term --enable-smp) (add -lpthread to LIBS in the Makefile!) * bochs 2.6.8 (compiled with: ./configure --enable-clgd54xx --enable-a20-pin --enable-debugger --enable-disasm --enable-e1000 --with-x --with-x11 --with-term --enable-smp) (add -lpthread to LIBS in the Makefile!) * qemu 1.1.2 * virtual box 4.1.18 * Acer Aspire 1810TZ (Notebook) * Q6600 on Asus p5n32-e sli plus (Desktop PC) * 4790K on Asus (Desktop PC) Todos ----- * threads! semaphores * return value / argv / env * execve: support hashbangs * DMA where possible! * optimized Mouse & KB processing in seperate task. (Kb all chars and different layouts) * Kernel Stuff Reentrancy? * Cleanup syscalls * Writing to ext2 RAM-image * Mutexes * create/remove pages on demand (sbrk, stack, load prog) * GCC optimizations (break kernel?) / volatile?? * Ethernet driver E1000 / NS2000 & Networking stack (ipxe network drivers?) * Unit Testing * GUI / Window Manager (update\_rect, etc..) * Porting (ncurses, gcc, binutils, vim, apache...) * Crazy & Funny terminal effects while typing (idea) Disclaimer ---------- THIS IS A WORK IN PROGRESS. This is a simple and useless "operating system", with a very basic set of features. It is the fruit of my fundamental explorations of the x86 architecture and operating system design. Copyright M.Idziorek 2014-2015,2018 unless stated otherwise. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.