Oh no! We're having trouble displaying this Scratch project.
If you are on a mobile phone or tablet, try visiting this project on a computer.
If you're on a computer, your Flash player might be disabled, missing, or out of date. Visit this page to update Flash.
Loading...
Instructions
A real build of the Linux 6.1.14 kernel running in pure scratch code.
Use TurboWarp for results that are actually usable https://experiments.turbowarp.org/next/1201938491
This is done by running the linux kernal on a RISC-V (rv32ima) emulator @bilman66alt wrote in Scratch, based off of Cnlohr's mini-rv32ima emulator.
To start the emulator (should be run in turbowarp), simply just press the green flag and wait for it to boot.
The linux build comes with the usual programs like cat/echo and is fully capible of running shell scripts, but it also comes with a duktape (a javascript engine), as well as ed for text editing, and coremark for benchmarking
To use duktape, run "duktape {FILE_NAME}". For testing, there is already a file called "fizzbuzz.js" that can be run In order to write to files you must use the "ed" text editor, for more information on ed and how to use it look here: https://www.ibm.com/docs/en/zos/2.3.0?topic=files-using-ed-editor
Run "cat readme.txt" for some info
Notes and Credits
Reuploaded from https://scratch.mit.edu/projects/1201938491/ Project created by https://scratch.mit.edu/users/Tacodiva7729/ Use TurboWarp!!! https://tw.scr.chipmunk.land/43 ===========================================
THIS PROJECT WAS MADE BY @bilman66alt GO FOLLOW HIM RIGHT NOW
This is a reupload because bilman's Scratch account got hacked and he was having troubles uploading the project himself. He plans on making highly advanced projects in the future like DOS and Windows on Scratch so go give him a follow!
All I did was make the terminal better as well as cleaning up/optimizing some of the code.
Thanks to cnlohr on GitHub for the original version of the mini-rv32ima emulator written in C
Thanks to @Chrome_Cat for creating "Every Block Timed" which severely helped me optimize this
About the emulator: The emulator is a RISC-V32 emulator that supports the IMA extensions The emulator has 65 megabytes of ram, and has a UART located at 0x10000000
I will release the toolchain and standard library soon that will allow you to compile and run your own C programs on the emulator, for now just use the rom thats already included
The original C version of the RISC-V emulator was made by cnlohr and can be found on his GitHub.