Giter Club home page Giter Club logo

cuteos's People

Contributors

a-darwish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cuteos's Issues

How building and run

I'm trying compiler and exec this OS without sucess. I can compiler but not run. This is my script.
#!/bin/bash

RAMSZ=$1
RAM=" -m $RAMSZ"

QEMU="qemu-system-x86_64 "

BOOT_BIN="kern/image"
RAMDISK_BIN="build/ramdisk"
FINAL_HD_IMAGE="build/hd-image"

if [[ $RAMSZ == "" ]]; then
RAM=" -m 128"
fi

echo "qemu: ram = $RAM"

Software emulation

qemu-system-x86_64 \

AMD-V or Intel VT

Use QEMUs multiboot capabilities to boot the kernel directly,

attach a PATA drive and simulate 8 CPUs

Required images: kernel, hdimage

HD=""
KERNEL=""
SMP=" "
APPEND="-monitor stdio -no-reboot "
HD="-drive format=raw,file=build/hd-image,media=disk"

#HD="-drive format=raw,file=build/hd-image,if=ide,media=disk"
KERNEL="-kernel build/hd-image"
SMP="-smp 2"
#APPEND="-append "use_debug_port=1 root=769 loglevel=0 vga=1 use_acpi=1""
#APPEND=" -monitor stdio"

QEMUFLAGS=" -no-reboot"
QEMUFLAGS+=" -boot d "
QEMUFLAGS+=" -net none"
QEMUFLAGS+=" $RAM "
QEMUFLAGS+=" -smp sockets=1,cores=4,threads=1 "
QEMUFLAGS+=" -serial stdio "
QEMUFLAGS+=" -drive format=raw,file=build/hd-image,media=disk"
#QEMUFLAGS+=" -drive format=raw,file=boot/bootsect.bin,media=disk"

#QEMUFLAGS+=" -hda kern/image"
#QEMUFLAGS+=" -cdrom $(iso)"
#QEMUFLAGS+=" -hda HDOS-Lab.img"

#"CMD="$QEMU $RAM $SMP $HD $KERNEL $APPEND"

CMD="$QEMU $QEMUFLAGS"

echo "Running " $CMD
#echo $QEMUFLAGS
eval $CMD

How run it?

Error at build phase with make (on MacOS Big Sur)

Hi, im trying to build cuteOS on macOS.

Here are the steps that i followed:

> git clone https://github.com/a-darwish/cuteOS.git
Output:
Cloning into 'cuteOS'...
remote: Enumerating objects: 1398, done.
remote: Total 1398 (delta 0), reused 0 (delta 0), pack-reused 1398
Receiving objects: 100% (1398/1398), 406.94 KiB | 309.00 KiB/s, done.
Resolving deltas: 100% (996/996), done.
> cd cuteOS/
> ls
Output:
Makefile TODO dev/ include/ lib/ tools/
README boot/ ext2/ kern/ mm/
> make
Output:
MKDIR .deps
MKDIR .deps/boot
MKDIR .deps/mm
MKDIR .deps/dev
MKDIR .deps/ext2
MKDIR .deps/lib
MKDIR .deps/kern
AS boot/bootsect.o
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'?
[-Wunknown-warning-option]
warning: unknown warning option '-Wnormalized=nfc'; did you mean
'-Wformat-pedantic'? [-Wunknown-warning-option]
2 warnings generated.
boot/bootsect.S:384:6: error: invalid .org offset '510' (at offset '65622')
.org 510
^
boot/bootsect.S:349:8: error: expected relocatable expression
.long MBR_SEG<<4 + gdt # NOTE! protected mode flat address
^
boot/bootsect.S:384:6: error: invalid .org offset '510' (at offset '65622')
.org 510
^
make: *** [boot/bootsect.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.