Hello
I am continuing to test a new target using the AM3354 and AR8031 PHY which will allow me to access machines on the same subnet with ping, ssh, scp, etc. but won't perform DNS lookups or allow me to ping IP addresses on the internet. As part of the Linux initialisation process it runs the commands:
ifconfig eth0 up
dhcpcd eth0
Which gets a valid IP address and populates /etc/resolv.conf with the correct IP addresses for the nameservers.
The results of ifconfig and route are as follows:
"# ifconfig
eth0 Link encap:Ethernet HWaddr 90:59:AF:91:4C:3F
inet addr:192.168.10.217 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:1 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2140 (2.0 KiB) TX bytes:786 (786.0 B)
Interrupt:56
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.10.1 0.0.0.0 UG 202 0 0 eth0
192.168.10.0 * 255.255.255.0 U 202 0 0 eth0
192.168.10.217 localhost.local 255.255.255.255 UGH 202 0 0 lo"
The network is configured as follows:
Target <--> 10/100Mbps hub <--> 10/100/1000Mbps hub <--> gateway <--> modem
The internal network side of the gateway is 192.168.10.1 and the internet side is xxx.xxx.xxx.xxx and the target can ping both of these IP addresses but nothing further. nslookup returns the IP address of the first nameserver and then gives up with the message:
nslookup: can't resolve 'www.google.com': Name or service not known
The issue is somewhere within the Linux configuration as on the same hardware platform I can give the same IP address to U-Boot and can ping IP address 74.125.71.103 which is the first A record returned when performing an nslookup on Google. All other machines, both Linux and Windows on the 192.168.10.xxx subnet which get the same information from the DHCP server can resolve names and ping external addresses correctly.
I have tried both the Timesys Linux and also the kernel from the SDK 7.00 (albeit with my Timesys generated root file system) and see the same issue on both my custom hardware and the Starter Kit I have.
My next step is to recreate the SD card that came with the Starter Kit and see if that works but in the mean time if anyone can spot what I have missed it would be much appreciated!
Thanks,
Andy.