Part Number: AM3358
Tool/software: Linux
Hello,
Hello,
Here are my specs:
TI SDK: 03.03.00.04
Ubuntu 18.04
So i set an IP on my beaglebone black so I can target build via SSH through QT. I can do this successfully by running the following:
ifconfig eth0 10.0.1.170 netmask 255.255.255.0
Unfortunately it defaults back to DHCP when powered down. I followed these steps to resolve it:
1. Stop the dhcp from /lib/systemd/network/80-container-host0.network, i.e.:
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Match]
Virtualization=container
Name=host0
[Network]
#DHCP=yes /*THE DEFAULT FILE has this set to YES,so comment this line*/
LinkLocalAddressing=yes
#[DHCP] /*THE DEFAULT FILE has this setting, so COMMENT this line*/ #UseTimezone=yes /*THE DEFAULT FILE has this set to YES, so comment this line*/
2. Modify the /lib/systemd/system/systemd-networkd.service file:
[Service]
Type=notify
Restart=on-failure
RestartSec=0
#ExecStart=/lib/systemd/systemd-networkd /*The default configuration has this enabled. COMMENT IT*/
ExecStart= ExecStart=/sbin/ifup eth1 /*Add this line so that systemd runs ifup upon board boot*/
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_R
ProtectSystem=full
ProtectHome=yes
WatchdogSec=3min
After I made these changes I run this command and get the following results:
ifconfig eth0 10.0.1.170 netmask 255.255.255.0
[ 77.372257] net eth0: initializing cpsw version 1.12 (0)
[ 77.377867] net eth0: initialized cpsw ale version 1.4
[ 77.391226] net eth0: ALE Table size 1024
[ 77.408554] net eth0: phy found : id is : 0x7c0f1
[ 77.432387] libphy: PHY 4a101000.mdio:01 not found
[ 77.437232] net eth0: phy "4a101000.mdio:01" not found on slave 1, err -19
[ 77.500821] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Not sure what the error is about, but it does change the IP address appropriately:
eth0 Link encap:Ethernet HWaddr 0C:AE:7D:29:D3:DA
inet addr:10.0.1.170 Bcast:10.0.1.255 Mask:255.255.255.0
UP BROADCAST 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:174
It still resets again when powered down. I do not believe I missed anything, any thoughts?