Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Change "don't use Windows" to "if using Windows, use WSL" #1572

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

JL102
Copy link
Contributor

@JL102 JL102 commented Aug 3, 2023

Related PRs / Issues:

Type of change:

  • Bug fix
  • New feature
  • Other enhancement

Impact:

  • RTL change
  • Software change (RISC-V software)
  • Build system change
  • Other

Contributor Checklist:

  • Did you set main as the base branch?
  • Is this PR's title suitable for inclusion in the changelog and have you added a changelog:<topic> label?
  • Did you state the type-of-change/impact?
  • Did you delete any extraneous prints/debugging code?
  • Did you mark the PR with a changelog: label?
  • (If applicable) Did you update the conda .conda-lock.yml file if you updated the conda requirements file?
  • (If applicable) Did you add documentation for the feature?
  • (If applicable) Did you add a test demonstrating the PR?
  • (If applicable) Did you mark the PR as Please Backport?

I don't believe this PR needs to be included on the changelog, as it's an extremely minor documentation tweak.

@jerryz123
Copy link
Contributor

I'm hesitant to encourage users to try installing this with WSL, as they would be on their own troubleshooting any issues related to WSL.

OTOH, with Conda, WSL support may be more stable now, enough for basic use-cases.

@abejgonzalez thoughts?

@abejgonzalez
Copy link
Contributor

Does Chipyard work under WSL? I'm not sure Conda views it as linux-64? In any case, I think it's fine to say experimental support for WSL, and most devs use normal Linux assuming that WSL is stable enough now.

What works and doesn't on WSL?

@JL102
Copy link
Contributor Author

JL102 commented Aug 7, 2023

I've used Chipyard on WSL many times with no issues (at least, no issues that aren't also issues on native Linux systems, like #1441). I've only used Verilator, though, so I haven't tried all of Chipyard's tools. But WSL2 is extremely stable as it's basically just a Linux system.

@JL102
Copy link
Contributor Author

JL102 commented Aug 7, 2023

I'm not sure Conda views it as linux-64?

@abejgonzalez How do you get Conda to print what OS/environment it thinks it's in? I can test it but don't know what command(s) to run to check. I'm fairly sure it'll think the system is linux-64 but it's worth checking.

@abejgonzalez
Copy link
Contributor

I'm not sure Conda views it as linux-64?

@abejgonzalez How do you get Conda to print what OS/environment it thinks it's in? I can test it but don't know what command(s) to run to check. I'm fairly sure it'll think the system is linux-64 but it's worth checking.

Sorry I missed this. I don't know about printing out the env. information that Conda see's. I also presume that it is just counted as Linux.

@harrisonliew
Copy link
Contributor

harrisonliew commented Aug 23, 2023

Chiming in here as I use Chipyard in WSL2 (Ubuntu) with no issues.

conda info returns this in the report: platform : linux-64. WSL uses a full Linux 5.15.xx kernel, so everything is compatible (even GUI apps, with the right driver).

@T-K-233
Copy link
Member

T-K-233 commented Aug 23, 2023

Also confirms that it works for me with Windows 10 running Ubuntu 22.04 under WSL2.

Only issue found is on USB device discovery and connection (only needed for FPGA prototyping etc., so shouldn't matter that much)

@jerryz123 jerryz123 self-requested a review August 23, 2023 22:28
@jerryz123 jerryz123 merged commit 7440f56 into ucb-bar:main Aug 23, 2023
1 check passed
@harrisonliew
Copy link
Contributor

@T-K-233 regarding FPGA prototyping, you could just use the Windows version of Vivado Lab? But yes, I agree that USB devices in WSL2 are a PITA (but I did get it working at one point using these instructions and other resources around the internet).

@T-K-233
Copy link
Member

T-K-233 commented Aug 23, 2023

@T-K-233 regarding FPGA prototyping, you could just use the Windows version of Vivado Lab? But yes, I agree that USB devices in WSL2 are a PITA (but I did get it working at one point using these instructions and other resources around the internet).

Yes, I'm running Windows Vivado + Windows version of the RISC-V toolchains to debug FPGA DUT.

For those who face similar issue, here's how I set up the Windows-side environment.

@abejgonzalez
Copy link
Contributor

Ah. SG then. If more than 1 person is using it semi-successfully then this should be more than fine. Sorry for the delay on this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants