Once the compilation is done, you need to check the DDR and install the
bootloaders into the dataflash for each board to test. Do do this you
need to connect the left-USB port to your machine and execute:
wr-switch-sw/build/flash-wrs -c --build
Read the wrs-build
to understand how to flash the board
Once the board is flashed, boot your board by pressing reset button.
Connect to USB serial (Test)
minicom -D /dev/ttyUSB0 -b 115200
boot from nfs (test)
during barebox menu. Then if everything go well (DHCP, TFTP & NFS) you
should obtain the following message:
Starting up Test...
We do not recommend to run alpha-pts from serial port, because it is
shared with FPGA UART.
To call the test you should try:
* USB Gadget:
minicom -D /dev/ttyACM0 -b 115200
And then execute the testing script
This message show the basic steps to follow that are:
Open a USB Gadget connexion (left USB port)
Enter the serial of the board.
Wait until all the test are completed
Look at the log in your /tftpboot/rootfs-test/alpha-pts/logs/
Below, a log of a test with failing NAND (test 007) on sub test 0 & sub
Thu Jan 1 00:00:41 UTC 1970 001 > OK (00'06) 002 > OK (00'00) 005 > OK (00'53) 006 > OK (06'34) 007 > ERROR ( Sub0:13% Sub1:75% Sub2:OK Sub3:OK) (08'21) 008 > OK (06'29) 009 > OK (00'30) 010 > OK (09'16)
You can also find a full log for each test andf one that keep an history
of all test execution with the following nomenclatures
Finally. by executing /alpha-pts/testing.sh --help you can obtain an
help message where you can find out that test can be run separetly.
/alpha-pts/testing.sh [OPTION]... [TESTNUM]
Testing script to check various components of the White Rabbit Switch if
TESTNUM is not defined all tests will be executed in ascending order
Options: -h|--help Show this little message -f|--force Do not ask to continue -u|--update Update binary files -i|--inlog Create an independant log file for each test -l|--list List the different building steps -s|--serial Serial number
For example by calling
/alpha-pts/testing.sh -s 310010 -f 07
you will run test 007 (NAND) on board with S/N=310010 without prompting
user if he wants to run it or skip it.
It seems that the NAND test does not performs well on every board when
it reach the address 0x08040000