6.1 Erste Idee: HTML-Datei alle 10 Sekunden neu beschreibenFür ein html-Browserfenster muß eine HTML-Datei existieren. Diese HTML-Datei wird mittels Aufruf von readqadc sich alle 10 Sekunden wiederholend geschrieben. Mittels des Mini-Webserver BOA kann dieses HTML-File dann nach außen dargestellt werden. Aktuell ist BOA schon vorbereitet. Hier sieht man den Output des COBRA-Boards diesbezüglich: =============================================== COBRA5282 board Version 20040324 =============================================== Command: Execution Finished, Exiting Sash command shell (version 1.1.1) /> ls bin dev etc home lib mnt proc r /> cd home /home> ls httpd /home> ls -l drwxr-xr-x 1 0 0 32 Jan 1 1970 httpd /home> cd httpd /home/httpd> ls -l -rw-r--r-- 1 0 0 437 Jan 1 1970 boa.conf drwxr-xr-x 1 0 0 32 Jan 1 1970 cgi-bin -rw-r--r-- 1 0 0 333 Jan 1 1970 index.html /home/httpd> more index.html <HTML> <HEAD> <TITLE>A test web page</TITLE> </HEAD> <BODY> <H1>Test Page</H1> <P> If you are seeing this page, then your web server is working, and now you need to create some nice pages to replace this one :-). <P> If everything has built correctly then the <A HREF=/cgi-bin/cgi_demo>CGI Demo</A> should be here. </BODY> </HTML> /home/httpd> Dieses HTML-File wird während des Build mittels des Make-Ziels "romfs" innerhalb dieses Makefiles speziell für das COBRA-Board erzeugt. Hier der entsprechende Make-Output: romfs-inst.sh -s /var/tmp /tmp romfs-inst.sh ../romfs / romfs-inst.sh motd /etc/motd romfs-inst.sh ../../Generic/httpd /home/httpd romfs-inst.sh ../../Generic/big/inittab /etc/inittab echo "senTec/COBRA5282 Version 3.1.0 -- " `date` > /home/andreas/Development/COBRA_rot/uClinux/uClinux-d ist-20040218-cobra-20040324/romfs/etc/version make[2]: Leaving directory `/home/andreas/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-2004 0324/vendors/senTec/COBRA5282' Das Script romfs-inst.sh ist unter tools abgelegt. Da diese index.html-Seite für jedes Board der uClinux-Distribution angelegt wird, steht es im vendors-Generic-Verzeichnis Hier fehlt aber noch die cgi_demo! Diese wird mittels diesem unter user-cgi_generic findbaren Makefile hergestellt. Copyright © Andreas Birkert Letzte Aktualisierung am 20. Dezember 2013 |