Access the CGI application directly to test functionality by performing a write to the LED register and a read from the slide switch register.
Using the Client URL (
curl) command enter the following URL to command the CGI script to write 0x0F to the LED register at 0x41200000.
steve@Desktop:~/projects/zedboard_linux/os/petalinux$ curl -w "\nReceived %{size_download} bytes\n" "http://192.168.2.87/cgi-bin/poke?0x41200000&0x0F"
All being well LED's 0, 1, 2 & 3 should illuminate and the script should return the success message.
Success
Received 7 bytes
Again using
curl enter the following URL to command the CGI script to read from the slide switch register at 0x41200008.
steve@Desktop:~/projects/zedboard_linux/os/petalinux$ curl -w "\nReceived %{size_download} bytes\n" "http://192.168.2.87/cgi-bin/peek?0x41200008"
All being well the script should successfully return something akin to the following indicating which of the slide switches are in their on position, in this case switches 0 & 1.
0x00000003
Received 10 bytes