Coder Social home page Coder Social logo

benwei / bos Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 6.0 697 KB

A self-made Operation System in X86, Just for Fun Learning

Home Page: https://www.juluos.org/article-collections/projects

License: Other

Shell 0.36% C 67.78% Assembly 27.94% Python 0.53% Makefile 3.38%

bos's People

Contributors

benjulu avatar wayling 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bos's Issues

make run with QEMUMODEL

I just try to make run on my MAC OS X 10.6.8, and output as following

make -C test IMG_NAME="../bos.img" QEMUEXTRA=
qemu -M pc -fda "../bos.img" -net user -net nic,model=i82559er -redir tcp:4080::80
/bin/sh: qemu: command not found
make[1]: *** [run] Error 127
make: *** [run] Error 2

It might because of qemu which is installed from brew doesn't have default qemu,
it has to specify the model, so I add QEMUMODEL in Makefile

diff --git a/Makefile b/Makefile
index 0c9b00c..5fcb017 100755
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,8 @@ package: $(OS_LOADER) $(IMG_NAME) $(SYSBIN)

run: package
@#only support in well-setup Ubuntu and OSX(only tried 10.6.8)

  •   make -C test IMG_NAME="../$(IMG_NAME)" QEMUEXTRA=$(QEMUEXTRA)
    
  •   make -C test IMG_NAME="../$(IMG_NAME)" QEMUEXTRA=$(QEMUEXTRA) \
    
  •           QEMUMODEL=$(QEMUMODEL)
    

    update: $(SYSBIN)
    mcopy -n -o -i "$(IMG_NAME)" "$(SYSBIN)" ::
    diff --git a/test/Makefile b/test/Makefile
    index 8ee4616..b767e4a 100755
    --- a/test/Makefile
    +++ b/test/Makefile
    @@ -31,9 +31,9 @@ run:
    exit 1 ;
    fi
    ifeq ($(KNAME),$(KNAME_CYGWIN))

  •   $(QEMU) -fda "$(IMG_NAME)" $(NET_OPT)
    
  •   $(QEMU)$(QEMUMODEL) -fda "$(IMG_NAME)" $(NET_OPT)
    

    else

  •   $(QEMU) -M $(MACHINE) -fda "$(IMG_NAME)" $(NET_OPT)
    
  •   $(QEMU)$(QEMUMODEL) -M $(MACHINE) -fda "$(IMG_NAME)" $(NET_OPT)
    

    endif

    check:

So that I can give mode when I make run
$ make run QEMUMODEL=-system-x86_64

Hope that will help improve the capability

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.