You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CPSW interface associated with DP83869 PHY in AM642-EVM needs to be
brought up by adding a systemctl script. Update the documentation to
mention the same.
Signed-off-by: Chintan Vankar <[email protected]>
Copy file name to clipboardExpand all lines: source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/_K3-CPSW-common.rst
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,50 @@ The network interface can be configured automatically depending on root file sys
12
12
13
13
ifconfig eth0 <ip> netmask <mask> up
14
14
15
+
.. ifconfig:: CONFIG_part_variant in ('AM64X')
16
+
17
+
.. note::
18
+
19
+
The DP83869 PHY (associated with the eth1 CPSW interface for AM642-EVM) is not built into the kernel image. It is not available during early boot as a result, and must be brought up by adding a systemctl service as below:
20
+
21
+
Assuming the root directory of the file system is ``/``.
22
+
23
+
Create a service file named ``network_up.service`` in the directory ``/etc/systemd/system/`` and add the following into that file:
24
+
25
+
.. code-block:: console
26
+
27
+
[Unit]
28
+
Description=Service to bring up network interfaces
29
+
30
+
[Service]
31
+
ExecStart=/bin/sh /usr/bin/network_up.sh
32
+
33
+
[Install]
34
+
WantedBy=default.target
35
+
36
+
Create a shell script file named ``network_up.sh`` in the directory ``/usr/bin/`` and add the following into that file:
37
+
38
+
.. code-block:: console
39
+
40
+
#!/bin/sh
41
+
ETH1_DIR=/sys/class/net/eth1
42
+
while [ ! -d "$ETH1_DIR" ]
43
+
do
44
+
sleep 1;
45
+
done
46
+
if_state=$(ifconfig eth1 up |& grep ERROR)
47
+
while [ -n $if_state ]
48
+
do
49
+
if_state=$(ifconfig eth1 up |& grep ERROR)
50
+
sleep 1;
51
+
done
52
+
53
+
Now run the below command to enable the service, and from the next boot, interface will be UP automatically.
0 commit comments