Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Update on my RISCV emulator that runs Linux!
- bilman66
-
Scratcher
21 posts
Update on my RISCV emulator that runs 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. If you want to give the project a try yourself you can check it out on my Github: My username is Its-Jakey and the project name is Linux-On-Scratch


- sf97ahgf
-
Scratcher
100+ posts
Update on my RISCV emulator that runs Linux!
I'm suprised how noone has noticed this, and this is a *really* optimized emulator, good job! 

- applejuiceproduc
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
can you upload the .sb3 file then to github or smh?
- MagicCrayon9342
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
Undoubtedly, your best achievement is making the thing before announcing it. Good job, and thank you!
- DifferentDance8
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
Undoubtedly, your best achievement is making the thing before announcing it. Good job, and thank you!Even though said thing isn't public yet, so we'd have no way to check if OP properly made it.
- MagicCrayon9342
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
Can it run bash…. and neofetch?
- NFlex23
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
Undoubtedly, your best achievement is making the thing before announcing it. Good job, and thank you!Even though said thing isn't public yet, so we'd have no way to check if OP properly made it.
If you want to give the project a try yourself you can check it out on my Github: My username is Its-Jakey and the project name is Linux-On-ScratchWhich means it's here: https://github.com/Its-Jakey/Linux-On-Scratch
- MagicCrayon9342
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
I loaded it into turbowarp and tried to start it. But even after a good 20 minutes it still hadn't finished starting up.Undoubtedly, your best achievement is making the thing before announcing it. Good job, and thank you!Even though said thing isn't public yet, so we'd have no way to check if OP properly made it.If you want to give the project a try yourself you can check it out on my Github: My username is Its-Jakey and the project name is Linux-On-ScratchWhich means it's here: https://github.com/Its-Jakey/Linux-On-Scratch
- sf97ahgf
-
Scratcher
100+ posts
Update on my RISCV emulator that runs Linux!
Did you read OP at all?Undoubtedly, your best achievement is making the thing before announcing it. Good job, and thank you!Even though said thing isn't public yet, so we'd have no way to check if OP properly made it.
- WojtekGame
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
This is off the deck!
I mean, it's not possible to run Linux on a Scratch project, but you did it, Bravo!
But the text engine in the emulator is slow anyways
I mean, it's not possible to run Linux on a Scratch project, but you did it, Bravo!
But the text engine in the emulator is slow anyways

- NFlex23
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
This is off the deck!Try turbo mode. It should make the text render faster.
I mean, it's not possible to run Linux on a Scratch project, but you did it, Bravo!
But the text engine in the emulator is slow anyways
- Jonathan50
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
The one computer I tried it on so far was too slow (stopped at around 7*10^8 instructions) to get beyond the login prompt.
I'll try it again when I get around to it.
I'd be quite impressed to see GNU as (or even gcc) running, though it'd probably need a lot of libraries making the initramfs bigger. Or any assembler.
Anyway I'm glad someone beat me to it (and in only a year) since I didn't have the time or dedication to try it properly so it wouldn't have happened at all. (I think the main thing I was missing was atomic instructions, which isn't that big of a deal lol. And maybe figuring out how physical memory is really supposed to map to physical addresses, or something.)
How long did the whole project take?
I'll try it again when I get around to it.I'd be quite impressed to see GNU as (or even gcc) running, though it'd probably need a lot of libraries making the initramfs bigger. Or any assembler.
Anyway I'm glad someone beat me to it (and in only a year) since I didn't have the time or dedication to try it properly so it wouldn't have happened at all. (I think the main thing I was missing was atomic instructions, which isn't that big of a deal lol. And maybe figuring out how physical memory is really supposed to map to physical addresses, or something.)
How long did the whole project take?
Last edited by Jonathan50 (June 11, 2023 22:34:29)
- ilikecereal1
-
Scratcher
100+ posts
Update on my RISCV emulator that runs Linux!
Well, mine did a kernel panic at the login screen, great project though!
- MagicCrayon9342
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
Can someone post a couple of screenshots of different things running? It doesn't load in a reasonable time on my computer.
- ajskateboarder
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
Uhh I got here, but I can't enter a username/password for buildroot login


- Jonathan50
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
Uhh I got here, but I can't enter a username/password for buildroot loginSpace to input, followed by root. (Dunno if you need to press left arrow for newline as well; in my case it started doing stuff immediately but hung before getting to the shell.)
- MagicCrayon9342
-
Scratcher
1000+ posts
Update on my RISCV emulator that runs Linux!
What are your computer's specs?Uhh I got here, but I can't enter a username/password for buildroot loginSpace to input, followed by root. (Dunno if you need to press left arrow for newline as well; in my case it started doing stuff immediately but hung before getting to the shell.)
- bilman66
-
Scratcher
21 posts
Update on my RISCV emulator that runs Linux!
The one computer I tried it on so far was too slow (stopped at around 7*10^8 instructions) to get beyond the login prompt.I wasn't working on it daily, but It took around a monthI'll try it again when I get around to it.
I'd be quite impressed to see GNU as (or even gcc) running, though it'd probably need a lot of libraries making the initramfs bigger. Or any assembler.
Anyway I'm glad someone beat me to it (and in only a year) since I didn't have the time or dedication to try it properly so it wouldn't have happened at all. (I think the main thing I was missing was atomic instructions, which isn't that big of a deal lol. And maybe figuring out how physical memory is really supposed to map to physical addresses, or something.)
How long did the whole project take?
- Discussion Forums
- » Advanced Topics
-
» Update on my RISCV emulator that runs Linux!












I'll try it again when I get around to it.