egos-2000 icon indicating copy to clipboard operation
egos-2000 copied to clipboard

Can this project completely compile in the Win10 ?

Open Be997398715 opened this issue 2 years ago • 4 comments

It's really a great job, but my question is, limited by some environmental conditions, can all the compilation and running of this project be done on win10 only with gcc & riscv toolchain & qemu ? I am having trouble executing "make install" with mkfs and mkrom, hope for your reply.

Be997398715 avatar May 22 '23 12:05 Be997398715

My friend succeeds in doing it in WSL (Windows Subsystem Linux) within win10. There is a tutorial video in USAGES.md showing how to do this. See the second paragraph of USAGES.md.

EDIT: For make install, you also need the normal gcc compiler, which means that you need sudo apt-get install build-essential in your WSL.

yhzhang0128 avatar May 22 '23 13:05 yhzhang0128

Sorry, I didn't state it clear. I want to know how to compile and run this project under win10 without WSL, which means there is unix environment. Thank you!

Be997398715 avatar May 24 '23 13:05 Be997398715

Hmm, sorry this is not supported right now. It may be possible since SiFive provides Windows version of their GNU toolchain. Let me leave this issue open and come back if I succeed in using their Windows toolchain later.

yhzhang0128 avatar May 24 '23 16:05 yhzhang0128

Thank you for your reply. I am waiting for your further results.

Be997398715 avatar May 27 '23 09:05 Be997398715

I am currently spending my summer vacation in China and I don't have a Windows machine at my hand. I will work on this in early September after I go back to school. Thanks for your patience.

yhzhang0128 avatar Jun 01 '23 22:06 yhzhang0128

Hi there, I gave a few attempts today. I am able to run the RISC-V compiler from SiFive on Win10 and compile the binaries of egos-2000. However, I still fail to run their QEMU on my Win10.

In general, I feel like it is not a good idea to use Windows. Sorry about that and please consider to use a Linux or MacOS environment, perhaps a Linux virtual machine in Windows. If you are able/willing to install Docker, here is a simple tutorial I made for Windows: https://youtu.be/hCDMnGGyGqM

yhzhang0128 avatar Sep 07 '23 02:09 yhzhang0128