Update:
Now I can set things like LED.
All you have to do is write a c program, i.e. "ledtest.c"
/* ledtest.c*/# include <stdio.h># include <asm/io.h>
// if you like you can also include the header file with your base addresses of the board
# define LED0 0x06 //the hex address for my first LED
int main(void)
{
// ... my html code
outl(LED0, LED_BASE) /* the first parameter of 'outl' is the value you want to set. The second is the base_address of the hardware you want to control. Either insert it manually or take the address from your included header file*/
return 0;
}
But the most important part is the makefile.
I took it from the generic-cgi folder and modified it to my needs.
You have to add 'O2' to the flags otherwise the header file can't be found.