Skip to content

Commit 7c15566

Browse files
updated risc-v demo readme and setup script for windows to remove dos line endings (#84)
updated risc-v readme and setup script for windows to remove dos line endings
1 parent faa1173 commit 7c15566

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

risc-v-demo/Readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ your operating system), which copies the libraries from `<SmartHLS INSTALLATION
149149

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

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

153158
## Board Setup
154159

risc-v-demo/precompiled/setup.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ $cmd += ":/srv/www/test"
4545
Write-Host $cmd
4646
Invoke-Expression $cmd
4747

48+
# remove dos endings from copied sudoers file
49+
ssh $SSH_OPT root@$env:BOARD_IP "sed -i 's/\x0D$//' /etc/sudoers.d/0001_daemon"
50+
4851
# Copy HLS binaries
4952
$cmd = "scp $SSH_OPT "
5053
$cmd += "./*.elf "

0 commit comments

Comments
 (0)