Ok, now I got a compiled version running:
1. Open up from CD: x:\<path_to>\DE2_115_1.0.4_CD\DE2_115_demonstrations\DE2_115_Web_Server\DE2_115_WEB_SERVER_RGMII_ENET0 DE2_WEB_SERVER.qpf file in Quartus 10.1
2. Open SOPC Builder wait for project to load
3. Click Generate
4. Should be successful, click Exit
5. Compile .qpf project in Quartus (I got over 600 warnings but it was successful)
6. Program FPGA with new .sof file (mine has 'time-limited' in the name so I know which one is the new one
7. Leave Open Core Status dialog box open
9. Start up Nios 10.1
10. Point the workspace to the same directory above and go into the software directory
11. File > New > Nios II Application and BSP Template
12. Choose the .sopcinfo file that is in the main project directory
13. Give your new project a name (web_server_test)
14. Choose Web Server RGMII template
15. Click Finish
16. Open up Nios 10.1 Command Shell and enter these commands in:
cd /cygdrive/<path_to>/DE2_115_1.0.4_CD\DE2_115_demonstrations\DE2_115_Web_Server\DE2_115_WEB_SERVER_RGMII_ENET0
mkdir flash (if it is not already there)
bin2flash --input="../software/web_server_test/system/ro_zipfs.zip" --output=ro.flashfs_cfi_flash1.flash --location=0x100000 --verbose
nios2-flash-programmer.exe ro.flashfs_cfi_flash1.flash --base=0x0a800000 --sidp=0x9000140 --id=0x0 --device=1 --instance=0 --program --verbose --erase-all
* Note 1: if you get any errors on these commands, you can check ids and timestamps in Nios Eclipse Program Nios II > Flash Programmer. The problem with the Flash Programmer is that it incorrectly puts the location = 0x0 for the bin2flash command
* Note 2: There are two files systems that exist. You can use the default zip file system that gets created when you make the example. It's 39kB. Or you can add or replace the file system (in web_server_test/system) with the one from the example, it's 199kB and has more functions you can try on the board. It is located in web_server_0_bsp directory of the original DE2 software directory.
17. Anyway you want to, copy the contents of the .c and .h files in software/web_server_0 into the same .c and .h files in web_server_test (don't worry about tse_my_system.c)
18. In Nios II Eclipse > Nios II > BSP Editor , choose the bsp for your project
19. Choose the Software packages tab, Settings > altera_ro_zipfs
20. Be sure _base matches your SOPC Builder setting for the CFI_FLASH (mine is 0x0a800000)
21. _name is /mnt/rozipfs
22. _offset matches the location value you used in the bin2flash command above (0x100000 for me)
23. Click Generate, wait until complete, then Exit
24. Build the project and then exit out of Nios II (I was unable to run the project from Nios II because the program froze while running it)
25. From the Nios Command line run
nios2-download -g web_server_rgmii_test.elf && nios2-terminal
* The software will pause and wait for a serial number, any 9-digit number will work
* After you see "Web Server starting up" type in the address your DHCP server found in a web browser
Have fun!