_____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org am335x-evm /dev/ttyO0 Arago 2015.02 am335x-evm /dev/ttyO0 am335x-evm login: root root@am335x-evm:~# ifconfig eth0 Link encap:Ethernet HWaddr D4:94:A1:8C:5E:B0 inet addr:128.247.125.229 Bcast:0.0.0.0 Mask:255.255.254.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:61 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6035 (5.8 KiB) TX bytes:684 (684.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:101 errors:0 dropped:0 overruns:0 frame:0 TX packets:101 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:186778 (182.4 KiB) TX bytes:186778 (182.4 KiB) root@am335x-evm:~# ifconfig eth0 down root@am335x-evm:~# echo 1 > /sys/class/net/bond0/bonding/mode root@am335x-evm:~# ifconfig bond0 128.247.125.229 netmask 255.255.254.0 up root@am335x-evm:~# ifconfig bond0 Link encap:Ethernet HWaddr BE:D6:53:B7:18:3E inet addr:128.247.125.229 Bcast:128.247.125.255 Mask:255.255.254.0 UP BROADCAST MASTER MULTICAST MTU:1500 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) 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:119 errors:0 dropped:0 overruns:0 frame:0 TX packets:119 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:187714 (183.3 KiB) TX bytes:187714 (183.3 KiB) root@am335x-evm:~# echo 100 > /sys/class/net/bond0/bonding/miimon [ 115.437299] bonding: bond0: Setting MII monitoring interval to 100. root@am335x-evm:~# echo +eth0 > /sys/class/net/bond0/bonding/slaves [ 130.977259] bonding: bond0: Adding slave eth0. [ 130.983468] net eth0: initializing cpsw version 1.12 (0) [ 131.067070] net eth0: phy found : id is : 0x4dd074 [ 131.085644] bonding: bond0: enslaving eth0 as a backup interface with a down link. root@am335x-evm:~# root@am335x-evm:~# [ 135.067316] libphy: 4a101000.mdio:00 - Link is Up - 1000/Full [ 135.136316] bonding: bond0: link status definitely up for interface eth0, 1000 Mbps full duplex. [ 135.145591] bonding: bond0: making interface eth0 the new active one. [ 135.158094] bonding: bond0: first active interface up! root@am335x-evm:~# echo +eth1 > /sys/class/net/bond0/bonding/slaves [ 141.667311] bonding: bond0: Adding slave eth1. [ 141.674649] net eth1: initializing cpsw version 1.12 (0) [ 141.757095] net eth1: phy found : id is : 0x4dd074 [ 141.766936] bonding: bond0: enslaving eth1 as a backup interface with a down link. root@am335x-evm:~# root@am335x-evm:~# [ 145.757077] libphy: 4a101000.mdio:01 - Link is Up - 1000/Full [ 145.856327] bonding: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex. root@am335x-evm:~# root@am335x-evm:~# ifconfig bond0 Link encap:Ethernet HWaddr D4:94:A1:8C:5E:B0 inet addr:128.247.125.229 Bcast:128.247.125.255 Mask:255.255.254.0 UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:166 errors:0 dropped:19 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:14342 (14.0 KiB) TX bytes:684 (684.0 B) eth0 Link encap:Ethernet HWaddr D4:94:A1:8C:5E:B0 inet addr:128.247.125.229 Bcast:0.0.0.0 Mask:255.255.254.0 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:147 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:12786 (12.4 KiB) TX bytes:684 (684.0 B) Interrupt:56 eth1 Link encap:Ethernet HWaddr D4:94:A1:8C:5E:B0 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:19 errors:0 dropped:19 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1556 (1.5 KiB) TX bytes:0 (0.0 B) 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:119 errors:0 dropped:0 overruns:0 frame:0 TX packets:119 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:187714 (183.3 KiB) TX bytes:187714 (183.3 KiB) root@am335x-evm:~# [ 183.067066] libphy: 4a101000.mdio:00 - Link is Down [ 183.156414] bonding: bond0: link status definitely down for interface eth0, disabling it [ 183.164968] bonding: bond0: making interface eth1 the new active one. root@am335x-evm:~# ifconfig bond0 Link encap:Ethernet HWaddr D4:94:A1:8C:5E:B0 inet addr:128.247.125.229 Bcast:128.247.125.255 Mask:255.255.254.0 UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:237 errors:0 dropped:38 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:19098 (18.6 KiB) TX bytes:744 (744.0 B) eth0 Link encap:Ethernet HWaddr D4:94:A1:8C:5E:B0 inet addr:128.247.125.229 Bcast:0.0.0.0 Mask:255.255.254.0 UP BROADCAST SLAVE MULTICAST MTU:1500 Metric:1 RX packets:192 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:15868 (15.4 KiB) TX bytes:684 (684.0 B) Interrupt:56 eth1 Link encap:Ethernet HWaddr D4:94:A1:8C:5E:B0 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:45 errors:0 dropped:38 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3230 (3.1 KiB) TX bytes:60 (60.0 B) 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:119 errors:0 dropped:0 overruns:0 frame:0 TX packets:119 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:187714 (183.3 KiB) TX bytes:187714 (183.3 KiB) root@am335x-evm:~# [ 198.067070] libphy: 4a101000.mdio:00 - Link is Up - 1000/Full [ 198.076645] bonding: bond0: link status definitely up for interface eth0, 1000 Mbps full duplex. root@am335x-evm:~# [ 215.757053] libphy: 4a101000.mdio:01 - Link is Down [ 215.776417] bonding: bond0: link status definitely down for interface eth1, disabling it [ 215.784985] bonding: bond0: making interface eth0 the new active one. [ 222.757067] libphy: 4a101000.mdio:01 - Link is Up - 1000/Full [ 222.796333] bonding: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex. [ 226.067027] libphy: 4a101000.mdio:00 - Link is Down [ 226.096366] bonding: bond0: link status definitely down for interface eth0, disabling it [ 226.104911] bonding: bond0: making interface eth1 the new active one. [ 236.067041] libphy: 4a101000.mdio:00 - Link is Up - 1000/Full [ 236.116339] bonding: bond0: link status definitely up for interface eth0, 1000 Mbps full duplex. [ 240.757027] libphy: 4a101000.mdio:01 - Link is Down [ 240.816382] bonding: bond0: link status definitely down for interface eth1, disabling it [ 240.824928] bonding: bond0: making interface eth0 the new active one. [ 248.757054] libphy: 4a101000.mdio:01 - Link is Up - 1000/Full [ 248.836335] bonding: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex. [ 256.067064] libphy: 4a101000.mdio:00 - Link is Down [ 256.136386] bonding: bond0: link status definitely down for interface eth0, disabling it [ 256.144945] bonding: bond0: making interface eth1 the new active one. [ 264.067088] libphy: 4a101000.mdio:00 - Link is Up - 1000/Full [ 264.156326] bonding: bond0: link status definitely up for interface eth0, 1000 Mbps full duplex.