Git Product home page Git Product logo

ramen's Introduction

ramen

Rust

A toy OS

Requirements

  • A computer supporting UEFI or QEMU
  • mtools (if you want to run on QEMU)
  • OVMF_VARS.fd and OVMF_CODE.fd (if you want to run on QEMU)
  • Rustup nightly version

Run on QEMU

How to get OVMF_VARS.fd and OVMF_CODE.fd

For Gentoo users:

sudo USE="binary" emerge sys-firmware/edk2-ovmf
cp /usr/share/edk2-ovmf/{OVMF_VARS.fd,OVMF_CODE.fd} /path/to/ramen

Execution

git clone https://github.com/toku-sa-n/ramen
cd ramen
rustup override set nightly
make run

Run on your computer

You have to create an EFI partition.

Then run the following command:

git clone https://github.com/toku-sa-n/ramen.git
cd ramen
rustup override set nightly
make
USB_DEVICE_PATH="/dev/sdx1" make copy_to_usb

(/dev/sdx1 is the EFI partition you created.)

Execution

Reboot your machine and run Ramen OS.

License

GPL-3.0 or later. See LICENSE.


(This image is not related to the project.)

ramen's People

Contributors

toku-sa-n avatar bors[bot] avatar dependabot[bot] avatar goldencm avatar dependabot-preview[bot] avatar

Stargazers

OneDragon424 avatar  avatar SASAKEN avatar Zakki avatar Dean Srebnik avatar  avatar Talon Kettuso avatar  avatar  avatar  avatar Caleb avatar Tim Peters avatar thierry_tt avatar Okada Haruki avatar sakuragi avatar Nano Adam avatar Sourabha Bharadwaj B M avatar Nguyen Viet Hung avatar Federico Damián Schonborn avatar Able avatar サトシ (Yeonji Lee) avatar Rémi avatar  avatar erin petra sofiya moon avatar Omar avatar Diana avatar Nicolas Sauzede avatar Masanori Tani avatar Mario Garcés avatar  avatar Noriyo Akita avatar Skye Bleed avatar Ana Gelez avatar iamazy avatar Aaron Bies avatar 周子豪, Zhou Robot ZiHao avatar Shardul Nalegave avatar Shu W. Nakamura avatar

Watchers

James Cloos avatar  avatar Caleb avatar

ramen's Issues

Update README.md

You no longer need cargo-xbuild. Also, you can run RamenOS without installing it on USB memory. Instead you can boot on QEMU. Add an instruction to run RamenOS on QEMU.

Dependabot couldn't find a Cargo.toml for this project

Dependabot couldn't find a Cargo.toml for this project.

Dependabot requires a Cargo.toml to evaluate your project's current Rust dependencies. It had expected to find one at the path: /,kernel/,bootx64/,common_items/Cargo.toml.

If this isn't a Rust project, or if it is a library, you may wish to disable updates for it from within Dependabot.

View the update logs.

CI stucks

  • Travis CI: Failed (missing rust-src)
  • Github Actions: Failed (missing rust-src)
  • Last update of cargo-xbuild: 13 days ago
  • Last update of Github virtual environment: Recent
  • Last update of rustup: 12 days ago

Refactor `init_pic`

pub fn init_pic() -> () {
asm::out8(PIC0_IMR, 0xFF);
asm::out8(PIC1_IMR, 0xFF);
asm::out8(PIC0_ICW1, 0x11);
asm::out8(PIC0_ICW2, 0x20);
asm::out8(PIC0_ICW3, 1 << 2);
asm::out8(PIC0_ICW4, 0x01);
asm::out8(PIC1_ICW1, 0x11);
asm::out8(PIC1_ICW2, 0x28);
asm::out8(PIC1_ICW3, 2);
asm::out8(PIC1_ICW4, 0x01);
asm::out8(PIC0_IMR, 0xFB);
asm::out8(PIC1_IMR, 0xFF);
}

Is the order to call these functions important? What do the numbers mean?

`Device.put_data` does two things

This function should be separated into two: actual putting data, and return bool value which represents whether three bytes data are sent or not.

Generate the kernel as ELF binary

There seems no way to get the number of bytes .bss section consumes. Also, there are lots of useful tools to analyze the ELF binary.

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.