Discuss Scratch
- Discussion Forums
- » Show and Tell
- » Update on my RISCV emulator running Linux!
- bilman66
-
20 posts
Update on my RISCV emulator running Linux!
Hi everybody! Just a quick update on my RISCV emulator that runs the Linux 6.0 kernel. I've optimized it like crazy and now it has around a 45-second boot time on my computer, I also got duktapetest running so you can run JavaScript code in Scratch. I'm also using the widescreen mod in Turbowarp, but if I even find a way to put this on the Scratch website i'll convert it back to being 4:3. The current problem with running it in scratch is still the project file size limit and a few other small things. How do I share the project file with everybody?


Last edited by bilman66 (June 5, 2023 20:33:41)
- Jonathan50
-
1000+ posts
Update on my RISCV emulator running Linux!
That is very awesome, I hadn't gotten 10% of the way so far (beyond sort of getting a very frankensteined kernel to print some stuff to serial and very quickly panic)… This should be in the Advanced Topics though, not Show and Tell. You can report it so a moderator will move it.
Does it have an initramfs sort of thing?
No virtual memory I'm guessing? Serial output?
If you have a GitHub account, upload it as a Gist (gist.github.com)
I found the 200,000 list item was sort of a problem (when saving?) although Scratch ignored it when importing IIRC. (Maybe it's removed in TurboWarp)
I'm quite certain you've just done of the coolest things yet seen in Scratch history; well done…
MartinBraendli's S65 was very cool, and some more recent emulators, but this is (I think) the first time anyone's gotten a conventional OS running, let alone a modern one.
Does it have an initramfs sort of thing?
No virtual memory I'm guessing? Serial output?
If you have a GitHub account, upload it as a Gist (gist.github.com)
I found the 200,000 list item was sort of a problem (when saving?) although Scratch ignored it when importing IIRC. (Maybe it's removed in TurboWarp)
I'm quite certain you've just done of the coolest things yet seen in Scratch history; well done…

Last edited by Jonathan50 (June 6, 2023 03:37:24)
- bilman66
-
20 posts
Update on my RISCV emulator running Linux!
Yes it does Does it have an initramfs sort of thing?
No virtual memory, it uses a UART to display and take input No virtual memory I'm guessing? Serial output?
Thanks! Will do tomorrow If you have a GitHub account, upload it as a Gist (gist.github.com)
I found the 200,000 list item was sort of a problem
I designed a version that uses multiple 200000 item lists that stored multiple bytes in each list element, but the project file was literally just too big. Scratch would sit there and load forever, and I'm using the “if <bool> then (a) else (b)” custom block currently so I'll have to covert them to normal if-statements before I try to save it on scratch again.
I'm quite certain you've just done of the coolest things yet seen in Scratch history; well done.
Thank you!
- Mystery96
-
100+ posts
Update on my RISCV emulator running Linux!
holy moly. upload the file on your github and provide your name on github.
- bilman66
-
20 posts
Update on my RISCV emulator running Linux!
Just uploaded the file to GitHub! My username is Its-Jakey and the project name is Linux-On-Scratch
- Discussion Forums
- » Show and Tell
-
» Update on my RISCV emulator running Linux!