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
0a376436
Commit
0a376436
authored
Sep 06, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: add FAN checking
parent
ac39fabf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
003-FAN_Checking.sh
sw/alpha-pts/003-FAN_Checking.sh
+14
-13
testing.sh
sw/alpha-pts/testing.sh
+2
-3
No files found.
sw/alpha-pts/003-FAN_Checking.sh
View file @
0a376436
...
...
@@ -21,26 +21,27 @@ printf "======: $0\n"
pwm_module
=
/wr/lib/modules/at91_softpwm.ko
if
[[
-f
$pwm_module
]]
;
fi
insmod &> /dev/null
if
[[
-f
$pwm_module
]]
;
then
insmod
$pwm_module
&> /dev/null
else
echo
"
$pwm_module
not found"
fi
speed
=
10
while
[
speed
-lt
8
0
]
;
do
speed
=
10
0
while
[
${
speed
}
-gt
3
0
]
;
do
echo
"
$speed
"
${
APTS_SWITCH_DIR
}
/bin/shw_tool
--fan
${
speed
}
speed
=
$(
expr
$speed
+ 10
)
sleep
1
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
ans
=
""
user_echoasking
"y/n"
"Did you hear the speed of FAN
decrease"
"fan_speed_up
"
ret0
=
-
$?
if
[
$
ans
==
"n"
]
;
then
user_echoasking
"y/n"
"Does the FAN is working?"
"fan_enable"
ret1
=
-
$?
if
[
$
ans
==
"n"
]
;
then
echo
"WARNING: NO FAN DETECTED! YOU SHOULD STOP THIS TEST BEFORE OVERHEATING YOUR FPGA"
fi
fi
...
...
sw/alpha-pts/testing.sh
View file @
0a376436
...
...
@@ -22,7 +22,7 @@ run()
if
[
x
"
$1
"
!=
x
]
;
then
numseq
=
"
$1
"
else
numseq
=
"01 02 05 06 07 08 09 10"
numseq
=
"01 02 0
3 0
5 06 07 08 09 10"
fi
for
itest
in
$numseq
;
do
load_ask2run
$(
ls
*${
itest
}
-
*
.sh
)
$ask
$update
$inlog
...
...
@@ -77,9 +77,8 @@ done
# Obtain mac address
#MAC=$(ifconfig | grep 'eth0' | tr -s ' ' | cut -d ' ' -f5 | sed s/://g)
if
[
${
SN
}
-eq
"0"
]
;
then
ret
=
""
user_echoasking
"num"
"Type the serial number"
"S/N"
SN
=
$
ret
;
SN
=
$
ans
;
fi
export
logfname
=
"
${
APTS_SWITCH_DIR
}
/logs/output-
${
SN
}
"
...
...
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