Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi,
--- Quote Start --- Thank you very much for your respond. I updated the PC gateway IP with 192.168.0.1, but fail to update the uClinux gateway. When I executed command "route add default gw 192.168.0.1" in uClinux, it gives me "route: SIOCADDRT: Network is unreachable". I am using the "trunk" branch uClinux ver.3.7 and the latest sopc2dts for device tree. Is the following dts output correct? tse_mac: ethernet@0x14003200 { Compatible ="ALTR,tse-13.0", "ALTR,tse-1.0"; reg = < 0x14004000 0x00000400 0x14003300 0x00000040 0x14003200 0x00000040 0x14006000 0x00002000 >; reg-names = "control_port", "rx_csr", "tx_csr", "s1"; interrupt-partent = < &myNios2 >; interrupts = < 3 4 >; ALTR, rx-fifo-depth = < 2048 >; ALTR, tx-fifo-depth = < 2048 >; address-bits = < 48 >; max=frame-size = < 1518 >; local-mac-address = [ 00 07 ed 21 00 06 ]; phy-mode = "rgmii' ALTR,mii-id = < 0 >; ALTR,phy-addr = < 0 >; //I manually added into the dts. To my knowledge, it doesn't make a difference to have this line or not. }; Thanks, --- Quote End --- In this case, you have your PC and Cyclone V GX board in the same sub-net, so maybe you don't need a default gateway. The ping packets should be sent directly to your board, but before it, your PC must send an 'arp' packet to get your board MAC address. Please check it by 'WireShark' or some other sniffing tools. If your board will not reply to the arp request, it may be a problem of your board or kernel. Kazu