Thank you to you all.
Before this post my design works, it just some times, not all the time won't pass DHCP or gets no "free_rx buffers".
The TSE_MAC is configured in QSys to be RGMII. Below is my console print, as you can see it detects my PHY and it works for the most part.
For those following in the future:
I have now followed Socrates excellent suggestion and used an example EDS project and took its "tse_my_system.c" (Note do not do a# include for it, just place it in project).
This has now added the following quote into my original console print from below:
--- Quote Start ---
MARVELL : Mode changed to RGMII/Modified MII to Copper mode
MARVELL : Enable RGMII Timing Control
MARVELL : PHY reset
--- Quote End ---
Now i will see how this goes. I also had a look of Socrates suggestion of looking at SDC files from other projects. The UDP offload example cannot have it quartus project expanded without old 9.0 quartus but i dide find some SDC files. Its a little difficult for me to determine what my design needs exactly in comparison to these. For the moment i'm going to see how my design continues and if i have further trouble, i'll have to try figure this out.
fyi: terasic have acknowledged that my board may be faulty, they are testing my design on their boards now to be sure. this is why i'm attempting to use the 2nd ethernet port and continue for the moment without delving too deeply into the more advanced timing constraints i may need. --- Quote Start ---
PHY INFO: [phyid] 0x11 141 cc2
PHY INFO: Issuing PHY Reset
PHY INFO: waiting on PHY link...
PHY INFO: PHY link detected, allowing network to start.
SSS INFO: Connecting...
InterNiche Portable TCP/IP, v3.1
Copyright 1996-2008 by InterNiche Technologies. All rights reserved.
prep_tse_mac 0
[get_mac_addr] Checking for MODE config from SW[10] and SW[12].
One and only one must be on to continue start up.
Valkyrie Mode set to Transmitter.
Using Hard Coded MAC Address.
Your Ethernet MAC address is 00:02:02:84:ad:12
prepped 1 interface, initializing...
[tse_mac_init]
INFO : TSE MAC 0 found at address 0x0c442000
INFO : PHY Marvell 88E1111 found at PHY address 0x11 of MAC Group[0]
INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0]
INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link...
INFO : PHY[0.0] - Auto-Negotiation PASSED
INFO : PHY[0.0] - Checking link...
INFO : PHY[0.0] - Link established
INFO : PHY[0.0] - Speed = 1000, Duplex = Full
OK, x=0, CMD_CONFIG=0x00000000
MAC post-initialization: CMD_CONFIG=0x0400020b
[tse_sgdma_read_init] RX descriptor chain desc (1 depth) created
mctest init called
IP address of et1 : 10.0.0.1
Created "Inet main" task (Prio: 2)
Created "clock tick" task (Prio: 3)
Acquired IP address via DHCP client for interface: et1
IP address : 192.168.1.100
Subnet Mask: 255.255.255.0
Gateway : 192.168.1.1
Valkyrie Nios II Ethernet Socket Server starting up.
Created "monitor_phy" task (Prio: 9)
Created "Valkyrie Platform Heart-Beat uCOS Task" task (Prio: 10)
Created "Valkyrie TCP Ethernet for Commands" task (Prio: 11)
[ResetSocketConnection] Reset Socket Connection Called
[TCP_ServerTask] TCP Server in TX Mode, listening on port 30
--- Quote End ---