Hi all,
I currently try to "quickle" run some indivdual test and benchmark code on the T1040RDB evaluation board I currently have. Unfortunately the currently installed kernel does not include any coepages needed to use MMC cards or USB sticks. And I have no clue how to get the network working - there are several interfaces:
root@t1040rdb:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: fm1-gb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN mode DEFAULT qlen 1000
link/ether 00:04:9f:03:3a:97 brd ff:ff:ff:ff:ff:ff
3: fm1-gb1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN mode DEFAULT qlen 1000
link/ether 00:04:9f:03:3a:98 brd ff:ff:ff:ff:ff:ff
4: fm1-gb2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether 00:04:9f:03:3a:99 brd ff:ff:ff:ff:ff:ff
5: fm1-gb3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
link/ether 00:04:9f:03:3a:9a brd ff:ff:ff:ff:ff:ff
6: fm1-gb4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether 00:04:9f:03:3a:9b brd ff:ff:ff:ff:ff:ff
7: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT
link/ipip 0.0.0.0 brd 0.0.0.0
8: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT
link/sit 0.0.0.0 brd 0.0.0.0
9: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT
link/tunnel6 :: brd ::
root@t1040rdb:~#
My cable is connected to "ETH0" (labled on the eval boards case) - but even if I bring up fm1-gb0-4 with different IPs (and the default route is also present, MAC addresses are properly set) I'm not able to connect or ping the board. If I try a "ping" in the uboot promt it tries different interfaces (FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4) and it tells me finally
Using FM1@DTSEC4 device
host 192.168.1.1 is alive
On Freescales homepage I haven't found any useful documentation.
Anyone can help with this?
Solved! Go to Solution.
Seems to be solved in the moment of writing :smileywink:
If I noticed correctly one has to use "ifconfig ...up" before plugin the ethernet cabe! Otherwise around it does not work.
root@t1040rdb:~# ifconfig fm1-gb3 192.168.1.23 up
... plug in ethernet cable ...
root@t1040rdb:~# ifconfig
fm1-gb3 Link encap:Ethernet HWaddr 00:04:9f:03:3a:9a
inet addr:192.168.1.23 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::204:9fff:fe03:3a9a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:17 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:398 (398.0 B)
Memory:fe4e6000-fe4e6fff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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)
root@t1040rdb:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 fm1-gb3
root@t1040rdb:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=128 time=0.846 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=128 time=0.388 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=128 time=0.373 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=128 time=0.365 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=128 time=0.370 ms
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.365/0.468/0.846/0.189 ms
root@t1040rdb:~#
Seems to be solved in the moment of writing :smileywink:
If I noticed correctly one has to use "ifconfig ...up" before plugin the ethernet cabe! Otherwise around it does not work.
root@t1040rdb:~# ifconfig fm1-gb3 192.168.1.23 up
... plug in ethernet cable ...
root@t1040rdb:~# ifconfig
fm1-gb3 Link encap:Ethernet HWaddr 00:04:9f:03:3a:9a
inet addr:192.168.1.23 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::204:9fff:fe03:3a9a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:17 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:398 (398.0 B)
Memory:fe4e6000-fe4e6fff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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)
root@t1040rdb:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 fm1-gb3
root@t1040rdb:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=128 time=0.846 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=128 time=0.388 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=128 time=0.373 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=128 time=0.365 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=128 time=0.370 ms
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.365/0.468/0.846/0.189 ms
root@t1040rdb:~#