Skip to content

updated risc-v readme and setup script for windows to remove dos line endings #84

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

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions risc-v-demo/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ your operating system), which copies the libraries from `<SmartHLS INSTALLATION

- Download the precompiled libraries from the [fpga-hls-libraries](https://github.com/MicrochipTech/fpga-hls-libraries) release assets.

If you are on Windows, depending on your computer's settings you may get this error:
`\setup.ps1 cannot be loaded because running scripts is disabled on this system.`
To fix it, open up a new powershell in adminstrator mode, run `Set-ExecutionPolicy Unrestricted`, and close the shell.
You can verify that the setting has been changed by running `Get-ExecutionPolicy` in your open shell and checking that it returns `Unrestricted`.
You may need to restart your shell for the changes to take effect.

## Board Setup

Expand Down
3 changes: 3 additions & 0 deletions risc-v-demo/precompiled/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ $cmd += ":/srv/www/test"
Write-Host $cmd
Invoke-Expression $cmd

# remove dos endings from copied sudoers file
ssh $SSH_OPT root@$env:BOARD_IP "sed -i 's/\x0D$//' /etc/sudoers.d/0001_daemon"

# Copy HLS binaries
$cmd = "scp $SSH_OPT "
$cmd += "./*.elf "
Expand Down