Skip to content

Latest commit

 

History

History
216 lines (195 loc) · 7.01 KB

TestCommands.md

File metadata and controls

216 lines (195 loc) · 7.01 KB

Test Commands Available in Progfpga

The progfpga_multiboot and progfpga_golden versions of progfpga also include a large number of test command which can be run with a command line in the format of

./series2/lx150/progfpga_golden <Pano IP address> <test name>

You can also use progfpga_golden for disovery by adding a dummy argument to the command line, it will not work with just a -d!

./series2/lx150/progfpga_golden -d dummy_argument

A version of the source from some/most/all of these test appear to be in tnptest.cc

Test name Function
ddrDbgTest
avgAccessTimeTest
ddrDbgWritePattern
ddrWriteTest
ddrImgStressTest
usbBasic
usbMultiWord
usbMfgTest
usbDevBasic
usbIntrBasic
i2cBasic
i2cEdidTest Dump EDID table of connected monitor
setMacAddr
setSpiLock
spiBasicRd
spiEraseChk
getMacAddr
audioBasic
audioCont
audioMax
audioContInit
audioWolfLpbk
audioTnpLpbk
audioExtLpbk
audioInOnly
vgaBasic
vgaTestDdr
vgaScanout
vgaBorderTest
vgaPatternTest
dhcpStart
discover
attoButton Program just segfaults when target is a G2 Rev B
oobBasic
resetOutTest Pano reset
randnumgen
chipIdRd Read and display Board type, FPGA Major Major and Minor Rev
flashfpga
flash_fpga_series_2
flashlatestfpga
flashFPGA_Series2_Golden
flashFPGA_Series2_Multiboot
fpgaverify
spiPStat
ledTest
ledGreenBlue Start LED alternating beteen green and blue
spiledburn
buttontest Asks user to press button 3 times, test passes if 6 button state changes are seen
audioButtonTest
spiUserErase
spiledbutt

chipIdRd

The chipIdRd command is extremely useful allows the board generation and revision to be determined interactively.

For example:

This is a Pano G1

skip@Dell-7040:~/pano/working/pano_progfpga$ ./series2/lx150//progfpga_golden -d dummy_argument
Running Test = discover
IP ADDRESS        SUBNET MASK       GATEWAY ADDRESS   MAC ADDRESS       REVISION
192.168.123.213   255.255.255.0     192.168.123.1     00-1c-02-63-76-44 4.14
192.168.123.213   255.255.255.0     192.168.123.1     00-1c-02-63-76-44 4.14
192.168.123.213   255.255.255.0     192.168.123.1     00-1c-02-63-76-44 4.14
192.168.123.213   255.255.255.0     192.168.123.1     00-1c-02-63-76-44 4.14
192.168.123.213   255.255.255.0     192.168.123.1     00-1c-02-63-76-44 4.14
Test has PASSED
skip@Dell-7040:~/pano/working/panog2_ldr/
Running Test = chipIdRd
Client connected : IP Addr = 192.168.123.213:8321
READ CFG reg 0: 0x00050000
TESTING with board Type = RevC
FPGA Major Rev = 0004, Minor Rev = 000e
READ @ 00000001: 0x0004000e
READ @ 00000010: 0x0000001c
...

Pano G1+

Running Test = chipIdRd
Client connected : IP Addr = 192.168.123.142:8321
READ CFG reg 0: 0x10010001
This is an UNKOWN board, please verify the FPGA integrity
FPGA Major Rev = 0881, Minor Rev = 0018
READ @ 00000001: 0x08810018
READ @ 00000010: 0x0000001c
...

Pano G2, Rev B

Running Test = chipIdRd
Client connected : IP Addr = 192.168.123.118:8321
READ CFG reg 0: 0x08010000
TESTING with board Type = SERIES_II
FPGA Major Rev = 0801, Minor Rev = 0014
READ @ 00000001: 0x08010014
READ @ 00000010: 0x0000001c
...

Pano G2, Rev C

Running Test = chipIdRd
Client connected : IP Addr = 192.168.123.206:8321
READ CFG reg 0: 0x08010002
TESTING with board Type = SERIES_II
FPGA Major Rev = 0881, Minor Rev = 0016
READ @ 00000001: 0x08810016
READ @ 00000010: 0x0000001c
...

DZ22-2

Running Test = chipIdRd
Client connected : IP Addr = 192.168.123.158:8321
READ CFG reg 0: 0x08011000
TESTING with board Type = SERIES_II
FPGA Major Rev = 0801, Minor Rev = 0014
READ @ 00000001: 0x08010014
READ @ 00000010: 0x00000019
...

i2cEdidTest

The i2cEdidTest test reads the EIDD information of an attached monitor via I2C and dumps the contents.

For example this is the results a DZ22-2

Running Test = i2cEdidTest
Client connected : IP Addr = 192.168.123.158:8321
READ CFG reg 0: 0x08011000
TESTING with board Type = SERIES_II
FPGA Major Rev = 0801, Minor Rev = 0014
I2C Clean Up complete
I2C READ EDID Table @ offset 00000000: 0xffffff00
I2C READ EDID Table @ offset 00000004: 0x00ffffff
I2C READ EDID Table @ offset 00000008: 0x0783b31a
I2C READ EDID Table @ offset 0000000c: 0x00000001
I2C READ EDID Table @ offset 00000010: 0x0301151b
I2C READ EDID Table @ offset 00000014: 0x781e2f80
I2C READ EDID Table @ offset 00000018: 0xa065c62a
I2C READ EDID Table @ offset 0000001c: 0x279d5859
I2C READ EDID Table @ offset 00000020: 0x0154500e
I2C READ EDID Table @ offset 00000024: 0x00810008
I2C READ EDID Table @ offset 00000028: 0x01010095
I2C READ EDID Table @ offset 0000002c: 0x01010101
I2C READ EDID Table @ offset 00000030: 0x01010101
I2C READ EDID Table @ offset 00000034: 0x39210101
I2C READ EDID Table @ offset 00000038: 0x1a623090
I2C READ EDID Table @ offset 0000003c: 0xb0684027
I2C READ EDID Table @ offset 00000040: 0x28da0036
I2C READ EDID Table @ offset 00000044: 0x1c000011
I2C READ EDID Table @ offset 00000048: 0xfd000000
I2C READ EDID Table @ offset 0000004c: 0x1f3d3b00
I2C READ EDID Table @ offset 00000050: 0x0a001051
I2C READ EDID Table @ offset 00000054: 0x20202020
I2C READ EDID Table @ offset 00000058: 0x00002020
I2C READ EDID Table @ offset 0000005c: 0x4400fc00
I2C READ EDID Table @ offset 00000060: 0x2d32325a
I2C READ EDID Table @ offset 00000064: 0x20200a32
I2C READ EDID Table @ offset 00000068: 0x20202020
I2C READ EDID Table @ offset 0000006c: 0xff000000
I2C READ EDID Table @ offset 00000070: 0x34565900
I2C READ EDID Table @ offset 00000074: 0x3030304b
I2C READ EDID Table @ offset 00000078: 0x0a313030
I2C READ EDID Table @ offset 0000007c: 0xf6002020
Test has PASSED

This dump can easily edited and then decoded using edid-decode or other tools. See this page for an example.

resetOutTest

Resets the Pano causing the current bitstream to be reloaded? Note this is NOT the same as a power on reset. I was testing a golden image and the command appeared to cause the bitstream to reload, at least a new DHCP cycle occurred. I had a custom multiboot image and it was NOT started until I power cycled the Pano.

Running Test = resetOutTest
Client connected : IP Addr = 192.168.123.118:8321
READ CFG reg 0: 0x08010000
TESTING with board Type = SERIES_II
FPGA Major Rev = 0801, Minor Rev = 0014
Keeping USB at reset!
Asserting board reset, and loosing the client...
Test has PASSED
Disconnecting audio...
Disconnected