Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Testing
Commits
29635f8c
Commit
29635f8c
authored
Sep 03, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpha-pts: add the FAN test using the new shw_tool
parent
0b281fa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
003-FAN_Checking.sh
sw/alpha-pts/003-FAN_Checking.sh
+27
-7
No files found.
sw/alpha-pts/003-FAN_Checking.sh
View file @
29635f8c
...
...
@@ -19,13 +19,33 @@
printf
"======:
$0
\n
"
.
000-functions.sh
pwm_module
=
/wr/lib/modules/at91_softpwm.ko
if
[[
-f
$pwm_module
]]
;
fi
insmod &> /dev/null
else
echo
"
$pwm_module
not found"
fi
speed
=
10
while
[
speed
-lt
80
]
;
do
${
APTS_SWITCH_DIR
}
/bin/shw_tool
--fan
${
speed
}
speed
=
$(
expr
$speed
+ 10
)
done
user_echoasking
"y/n"
"Did you hear the speed of FAN increase"
ret0
=
$ret
if
[
$ret
==
"n"
]
;
then
user_echoasking
"y/n"
"Does the FAN is working?"
ret1
=
$ret
if
[
$ret
==
"n"
]
;
then
echo
"WARNING: NO FAN DETECTED! YOU SHOULD STOP THIS TEST BEFORE OVERHEATING YOUR FPGA"
fi
fi
exit_multierr
$ret0
$ret1
printf
"To be implemented
\n
"
exit_multierr 0
ret
=
0
user_echoasking
"y/n"
"Did you see the LEDs moving"
"LEDS"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment