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
023c270c
Commit
023c270c
authored
Jul 13, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: update tu support firmware in v3rc2
parent
5dfe7ee0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
33 deletions
+70
-33
001-MD5_Checking.sh
sw/alpha-pts/001-MD5_Checking.sh
+2
-2
002-LED_Checking.sh
sw/alpha-pts/002-LED_Checking.sh
+2
-2
004-USB.sh
sw/alpha-pts/004-USB.sh
+0
-0
005-FPGA_EBI1Bridge.sh
sw/alpha-pts/005-FPGA_EBI1Bridge.sh
+5
-3
006-FPGA_QDRIIStress.sh
sw/alpha-pts/006-FPGA_QDRIIStress.sh
+8
-19
006-FPGA_TempRetrieving.sh
sw/alpha-pts/006-FPGA_TempRetrieving.sh
+44
-0
007-NF_MT29F4G16.sh
sw/alpha-pts/007-NF_MT29F4G16.sh
+3
-3
testing.sh
sw/alpha-pts/testing.sh
+6
-4
No files found.
sw/alpha-pts/001-MD5_Checking.sh
View file @
023c270c
...
...
@@ -25,9 +25,9 @@ printf "MAC="$(ifconfig | grep 'eth0' | tr -s ' ' | cut -d ' ' -f5)"\n"
ret1
=
$?
printf
"printing md5sum the loading file:
\n
"
md5sum
"
$(
which load-
fpga
)
"
md5sum
"
$(
which load-
virtex
)
"
ret2
=
$?
md5sum
"
$(
which l
m32-loader
)
"
md5sum
"
$(
which l
oad-lm32
)
"
ret3
=
$?
md5sum
/wr/lib/firmware/8ports_mb.bin
...
...
sw/alpha-pts/002-LED_Checking.sh
View file @
023c270c
...
...
@@ -24,8 +24,8 @@ exit_multierr 0
#First loading the correct firmwares:
load-
fpga
/wr/lib/firmware/8ports_mb.bin
l
m32-loader
/wr/lib/firmware/rt_cpu.bin
load-
virtex
/wr/lib/firmware/8ports_mb.bin
l
oad-lm32
/wr/lib/firmware/rt_cpu.bin
ret
=
0
user_echoasking
"y/n"
"Did you see the LEDs moving"
"LEDS"
...
...
sw/alpha-pts/00
5
-USB.sh
→
sw/alpha-pts/00
4
-USB.sh
View file @
023c270c
File moved
sw/alpha-pts/00
6
-FPGA_EBI1Bridge.sh
→
sw/alpha-pts/00
5
-FPGA_EBI1Bridge.sh
View file @
023c270c
...
...
@@ -22,8 +22,10 @@ printf "======: $0\n"
.
000-functions.sh
#First loading the correct firmwares:
load-fpga
${
APTS_SWITCH_DIR
}
/bin/006-scb_test.bit
lm32-loader
${
APTS_SWITCH_DIR
}
/bin/006-cpu_rt.bin
#load-virtex /wr/lib/firmware/8ports_mb.bin
#load-lm32 /wr/lib/firmware/rt_cpu.bin
load-virtex
${
APTS_SWITCH_DIR
}
/bin/fpga_scbtest.bit
load-lm32
${
APTS_SWITCH_DIR
}
/bin/cpu_rt.bin
nTot
=
512
addr
=
0x10000000
...
...
@@ -65,4 +67,4 @@ done
echo
""
echo
"Result CPU-FPGA bus: OK=
${
nOK
}
/
${
nTot
}
W"
exit_errpercent
${
nOK
}
${
nTot
}
\ No newline at end of file
exit_errpercent
${
nOK
}
${
nTot
}
sw/alpha-pts/00
4-FPGA_TempMonitor
.sh
→
sw/alpha-pts/00
6-FPGA_QDRIIStress
.sh
View file @
023c270c
#!/bin/sh
## Testing QDRII, PLL, and GPIOs
##
## This test stress the QDRII at maximum, and read the different temperature sensor to check
## that it is working correctly.
## This test stress the QDRII at maximum, and start monitoring the
## different temperature sensor.
##
##
## Future Improvements:
## - There are no communications between the FPGA and CPU
## - The test should be divided in first a QDRII check, then a temperature stress
## - The temperature test should be run at the same time then the NAND & DF test (15min)
##
#
##
##
## Authors:
...
...
@@ -28,12 +28,12 @@ printf "======: $0\n"
#First loading the correct firmwares:
load-
fpga
${
APTS_SWITCH_DIR
}
/bin/004-fpga_mon
temp.bit
load-
virtex
${
APTS_SWITCH_DIR
}
/bin/fpga_qdr2
temp.bit
timeout
=
6
0
#Timeout before reading
timeout
=
1
0
#Timeout before reading
printf
"
Monitoring temperature and testing CPU
(
${
timeout
}
s): "
printf
"
FPGA QDRII stress and temperature monitoring
(
${
timeout
}
s): "
i
=
0
while
[
$i
-lt
$timeout
]
;
do
printf
"."
...
...
@@ -41,7 +41,6 @@ while [ $i -lt $timeout ]; do
i
=
`
expr
$i
+ 1
`
done
echo
""
load-fpga /wr/lib/firmware/8ports_mb.bin
## We force to reset
ret
=
0
...
...
@@ -53,14 +52,4 @@ else
ret0
=
"0"
fi
;
user_echoasking
"y/n"
"Do you see temperature message on UART?"
"UART temp"
if
[
$ret
==
"y"
]
;
then
user_echoasking
"num"
"System Monitor Temp. "
"temp-sysmon"
user_echoasking
"num"
"Temp. Sensor FPGA:"
"temp-fpga"
user_echoasking
"num"
"Temp. Sensor Power Supply:"
"tmp-powsup"
ret1
=
"0"
else
ret1
=
"100"
fi
exit_multierr
$ret0
$ret1
exit_multierr
$ret0
sw/alpha-pts/006-FPGA_TempRetrieving.sh
0 → 100755
View file @
023c270c
#!/bin/sh
## Retrieve Temperatures
##
## Read the different temperature sensor at the end of the test
##
## Future Improvements:
## - There are no communications between the FPGA and CPU, the test s
## should read automatically temperature.
##
##
## Authors:
## - Benoit Rat (Seven Solutions, www.sevensols.com)
##
## GNU Lesser General Public License Usage
## This file may be used under the terms of the GNU Lesser
## General Public License version 2.1 as published by the Free Software
## Foundation and appearing in the file LICENSE.LGPL included in the
## packaging of this file. Please review the following information to
## ensure the GNU Lesser General Public License version 2.1 requirements
## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
#######################################################################################################
printf
"======:
$0
\n
"
.
000-functions.sh
user_echoasking
"y/n"
"Do you see temperature message on UART?"
"UART temp"
if
[
$ret
==
"y"
]
;
then
user_echoasking
"num"
"Number of iteration. "
"num-iter"
user_echoasking
"num"
"System Monitor Temp. "
"temp-sysmon"
user_echoasking
"num"
"Temp. Sensor FPGA:"
"temp-fpga"
user_echoasking
"num"
"Temp. Sensor Power Supply:"
"tmp-powsup"
ret1
=
"0"
else
ret1
=
"100"
fi
load-virtex
${
APTS_SWITCH_DIR
}
/bin/fpga_scbtest.bit
load-lm32
${
APTS_SWITCH_DIR
}
/bin/cpu_rt.bin
006-FPGA_TempRetrieving.sh
exit_multierr
$ret0
sw/alpha-pts/007-NF_MT29F4G16.sh
View file @
023c270c
...
...
@@ -99,7 +99,7 @@ testblocks()
dd
$ddopt
if
=
/dev/urandom
of
=
${
f2w
}
2> /dev/null
printf
"..."
mtd_debug erase
${
device
}
${
startaddr
}
${
sizeblock
}
&> /dev/null
#
mtd_debug erase ${device} ${startaddr} ${sizeblock} &> /dev/null
printf
"..."
mtd_debug write
${
device
}
${
startaddr
}
${
sizeblock
}
${
f2w
}
&> /dev/null
printf
"..."
...
...
@@ -111,10 +111,10 @@ testblocks()
if
[
"
$md5w
"
!=
"
$md5r
"
]
;
then
nKO
=
$(
expr
${
nKO
}
+ 1
)
printf
"ERROR (%02d %%)
\n
"
$(
expr
$(
expr
$i
block
\*
100
)
/
$nblock
)
printf
"ERROR (%02d %%)
\n
"
$(
expr
$(
expr
$i
test
\*
100
)
/
$ntest
)
else
nOK
=
$(
expr
${
nOK
}
+ 1
)
printf
" %02d %%
\\
r"
$(
expr
$(
expr
$i
block
\*
100
)
/
$nblock
)
printf
" %02d %%
\\
r"
$(
expr
$(
expr
$i
test
\*
100
)
/
$ntest
)
fi
tmp
=
$RANDOM
#Improve RANDOM generation
...
...
sw/alpha-pts/testing.sh
View file @
023c270c
#!/bin/ash
cd
$(
dirname
$0
)
## Load generic function
.
000-functions.sh
## setup default parameters
setupGlobalVar
"APTS_SWITCH_DIR"
"
/alpha-pts
"
setupGlobalVar
"APTS_SWITCH_DIR"
"
$(
dirname
$0
)
"
setupGlobalVar
"APTS_HOST_DIR"
"."
setupGlobalVar
"APTS_HOST_IP"
"192.168.7.7"
## Creating directories structure
mkdir
${
APTS_SWITCH_DIR
}
&> /dev/null
mkdir
${
APTS_SWITCH_DIR
}
/bin &> /dev/null
mkdir
${
APTS_SWITCH_DIR
}
/logs &> /dev/null
cd
${
APTS_SWITCH_DIR
}
# Run the scritps
...
...
@@ -21,7 +22,7 @@ run()
if
[
x
"
$1
"
!=
x
]
;
then
numseq
=
"
$1
"
else
numseq
=
"01 02 0
4 06 07 08 09
"
numseq
=
"01 02 0
5 06 07 08 09 10
"
fi
for
itest
in
$numseq
;
do
load_ask2run
$(
ls
*${
itest
}
-
*
.sh
)
$ask
$update
$inlog
...
...
@@ -95,4 +96,5 @@ run "$num";
## Append all log to an history
cat
$logfname
.log
>>
${
logfname
}
_history.log
echo
""
>>
${
logfname
}
_history.log
chmod
+r
${
APTS_SWITCH_DIR
}
/logs/
*
exit
0
;
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