Altera_Forum
Honored Contributor
20 years agoSome problem when using the boa
Hi:
I have build uClinux system on the board (stratix 1s10), and wanna complete some remote-control via CGI function on boa. For example, control the LED from webbrowser. First I create linux appliction project 'ledcontrol',compile ledcontrol.c to ledcontrol.exe with no problem. Copy ledcontrol.exe to the httpd/cgi-bin/ folder.Then build this filesystem and upload. And create a new index.html When i call this address: http://target_board_ip/cgi-bin/ledcontrol.cgi (http://target_board_ip/cgi-bin/ledcontrol.cgi) there are no show page, no response to LED. When i test from nios2-terminal,show info below:# cd httpd/cgi-bin# ls
helloworld led_test ledcontrol# ./ledcontrol
HTTP/1.0 200 OK
Content-type: text/html
<html><title> NIOS II CGI testings </title>
No Content-Length was sent with the POST request.
</html> I have searching the concern topic about boa and cgi in this board,like "How to use boa?" by sunclever. I have done the same way, but can't let the cgi working right, no response to LED neither. Can anyone give me some help~Thank you! Best Regards! Justin