Veenu,
We use an external PHY in all our designs. In some of our designs we use the Altera TSE MAC and some we use the Avalon OpenCores MAC. Yes we can run the simple_socket_server_no_rtos example.
The reason the Interniche Stack is not finding any interfaces is because there are none. The LAN91C111 software driver provided by Altera only supports UCOSII. It's found here:
C:\altera\72\ip\sopc_builder_ip\altera_avalon_lan91c111\UCOSII We had the same problem with the TSE MAC driver. I have not worked with the LAN91C111 specifically so I can't give you details on the driver but here is what you need to do. You basically need to create a HAL version of the LAN91C111 driver.
1 - Copy all of the driver files from the driver's UCOSII folder to the HAL folder. You'll then do all of your changes on the HAL subfolder.
2 - You'll need to edit any
component.mk files to make sure they are correct (call out HAL instead of UCOSII)
3 - I highly suspect that the driver doesn't really make any UCOSII function calls except for OS_ENTER_CRITICAL() and OS_EXIT_CRITICAL(). You'll want to leave all of those calls in. The superloop version of the Interniche stack redefines those calls.
4 - You'll need to edit all of the driver source files to make sure there are no UCOSII dependencies.
Again, not knowing the LAN91C111 driver intimately, I'm not sure what issues you'll run into. I don't suspect you'll have too many issues. For the TSE MAC, all we really had to do was remove the "#include" directives at the top of the driver files that had anything to do with UCOSII.
I noticed that someone recently posted a modified version of the Stack in the IP section of the NIOS forum. You might look at that for tips on modifications to the actual stack.
Jake