Hi!
I've got a meta-custom layer implemented over arago-base-tisdk-image. One of the customisations is a re-implementation of ifupdown (copied and modified from meta-ti).
The layer seems to work well: putting a customised /etc/network/interfaces file onto the target correctly.
However, there seems to be a race condition on startup. None of the interfaces file customisations are loaded upon boot. Instead, a manual ifup/ifdown command is needed to bring them into play, i.e.:
root@am335x-evm:~# ifconfig eth0 Link encap:Ethernet HWaddr F4:E1:1E:AD:C7:9D inet6 addr: fe80::f6e1:1eff:fead:c79d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:94 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:19058 (18.6 KiB) Interrupt:45 root@am335x-evm:~# ifdown eth0 ifdown: interface eth0 not configured root@am335x-evm:~# ifup eth0 root@am335x-evm:~# ifconfig eth0 Link encap:Ethernet HWaddr F4:E1:1E:AD:C7:9D inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0 inet6 addr: fe80::f6e1:1eff:fead:c79d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:111 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:101 (101.0 B) TX bytes:22710 (22.1 KiB) Interrupt:45
(Note the sudden appearance of a static IP address)
The guts of the interface customisation is just this:
# Wired or wireless interfaces allow-hotplug eth0 iface eth0 inet static address 192.168.5.1 netmask 255.255.255.0 allow-hotplug eth1 iface eth1 inet static address 192.168.5.255 netmask 255.255.255.0
Anyone any ideas what might be causing this and how to correct?
Mat