Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- post your hdl code please so i can try to help. --- Quote End --- when I run the software this is what I get ------------------------------------------------------------------------------------------------------------------------------------------------- https://www.alteraforum.com/forum/attachment.php?attachmentid=12398 ------------------------------------------------------------------------------------------------------------------------------------------------- Your Ethernet MAC address is 00:07:ed:ff:6b:c7 prepped 1 interface, initializing... [tse_mac_init] INFO : TSE MAC 0 found at address 0x0800a000 INFO : PHY Marvell 88E1111 found at PHY address 0x00 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 : PCS[0.0] - Configuring PCS operating mode INFO : PCS[0.0] - PCS SGMII mode disabled 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 : 0.0.0.0 ------------------------------------------------------------------------------------------------------------------------------------------------- I don't understand why am I getting that IP address, the software am running is from altera hardware example designs this is the code that is specifically for the IP address portion ------------------------------------------------------------------------------------------------------------------------------------------------- * In our system, we are either attempting DHCP auto-negotiation of IP address, * or we are setting our own static IP, Gateway, and Subnet Mask addresses our * self. This routine is where that happens. */ int get_ip_addr(alt_iniche_dev *p_dev, ip_addr* ipaddr, ip_addr* netmask, ip_addr* gw, int* use_dhcp) { IP4_ADDR(*ipaddr, IPADDR0, IPADDR1, IPADDR2, IPADDR3); IP4_ADDR(*gw, GWADDR0, GWADDR1, GWADDR2, GWADDR3); IP4_ADDR(*netmask, MSKADDR0, MSKADDR1, MSKADDR2, MSKADDR3); # ifdef DHCP_CLIENT *use_dhcp = 1; # else /* not DHCP_CLIENT */ *use_dhcp = 0; printf("Static IP Address is %d.%d.%d.%d\n", ip4_addr1(*ipaddr), ip4_addr2(*ipaddr), ip4_addr3(*ipaddr), ip4_addr4(*ipaddr)); # endif /* not DHCP_CLIENT */ /* Non-standard API: return 1 for success */ return 1; } ------------------------------------------------------------------------------------------------------------------------------------------------- Another thing that the software asks for the serial number to generate the mac address I couldnt find the serial number on the box so I just enetered random " 111111111111111" number. So what can I do with the IP address or should i eneter it manually since its a static IP ?