This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM335X: Static IP configuration

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

I wanted to use network settings from /etc/network/interfaces such as:

auto eth0
iface eth0 inet static
        address 192.168.0.140
        broadcast 192.168.0.255
        netmask 255.255.255.0
        gateway 192.168.0.1

I want these settings to get used on boot up.

I have followed the instructions from method I. of Yordan's post and it pretty much worked. The only problem is that the Network Service seems to restart several times and eventually ends up having an error due to restarting too many times. I'm not sure why the service is failing in the first place, or why it is restarting if the service finishes successfully since the unit has "restart=on_failure"

Here is a log of the boot up sequence:

network_service_failure_log.txt
U-Boot SPL 2017.01-g340fb36f04 (Dec 23 2017 - 10:20:13)
Trying to boot from MMC1
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img


U-Boot 2017.01-g340fb36f04 (Dec 23 2017 - 10:20:13 -0500)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x EVM-SK
DRAM:  256 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   cpsw, usb_ether
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3621296 bytes read in 363 ms (9.5 MiB/s)
41541 bytes read in 35 ms (1.1 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8df19000, end 8df26244 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.59-ga75d8e9305 (gtbldadm@ubuntu-16) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 PREEMPT Sat Dec 23 09:46:08 EST 2017
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: TI AM335x EVM-SK
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x8a800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=195e66ef-02 rw rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 198316K/262144K available (7168K kernel code, 281K rwdata, 2420K rodata, 1024K init, 280K bss, 14676K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)
[    0.000000]       .init : 0xc0b00000 - 0xc0c00000   (1024 kB)
[    0.000000]       .data : 0xc0c00000 - 0xc0c465d0   ( 282 kB)
[    0.000000]        .bss : 0xc0c465d0 - 0xc0c8c834   ( 281 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000031] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000040] OMAP clocksource: timer1 at 24000000 Hz
[    0.000201] clocksource_probe: no matching clocksources found
[    0.000368] Console: colour dummy device 80x30
[    0.000394] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000400] This ensures that you still see kernel messages. Please
[    0.000405] update your kernel commandline.
[    0.000428] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.089196] pid_max: default: 32768 minimum: 301
[    0.089317] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089327] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090083] CPU: Testing write buffer coherency: ok
[    0.090456] Setting up static identity map for 0x80100000 - 0x80100060
[    0.091226] EFI services will not be available.
[    0.092370] devtmpfs: initialized
[    0.103733] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.104062] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.104087] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.107552] pinctrl core: initialized pinctrl subsystem
[    0.108782] NET: Registered protocol family 16
[    0.110706] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.123726] omap_hwmod: debugss: _wait_target_disable failed
[    0.199188] cpuidle: using governor ladder
[    0.229177] cpuidle: using governor menu
[    0.234849] OMAP GPIO hardware version 0.1
[    0.249794] No ATAGs?
[    0.249822] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.286809] edma 49000000.edma: TI EDMA DMA engine driver
[    0.287688] reg-fixed-voltage fixedregulator2: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_wl12xx_gpio, deferring probe
[    0.290823] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.290979] media: Linux media interface: v0.10
[    0.291042] Linux video capture interface: v2.00
[    0.291081] pps_core: LinuxPPS API ver. 1 registered
[    0.291089] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.291110] PTP clock support registered
[    0.291147] EDAC MC: Ver: 3.0.0
[    0.292219] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.292547] Advanced Linux Sound Architecture Driver Initialized.
[    0.293698] clocksource: Switched to clocksource timer1
[    0.303093] NET: Registered protocol family 2
[    0.303897] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.303931] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.303954] TCP: Hash tables configured (established 2048 bind 2048)
[    0.304030] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.304046] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.304170] NET: Registered protocol family 1
[    0.304606] RPC: Registered named UNIX socket transport module.
[    0.304618] RPC: Registered udp transport module.
[    0.304623] RPC: Registered tcp transport module.
[    0.304628] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.305551] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.307788] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.314914] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.315813] NFS: Registering the id_resolver key type
[    0.315859] Key type id_resolver registered
[    0.315867] Key type id_legacy registered
[    0.315909] ntfs: driver 2.1.32 [Flags: R/O].
[    0.317689] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.317707] io scheduler noop registered
[    0.317714] io scheduler deadline registered
[    0.317850] io scheduler cfq registered (default)
[    0.319168] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.322257] backlight supply power not found, using dummy regulator
[    0.376928] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    0.380546] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    0.981710] console [ttyS0] enabled
[    0.987006] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    0.993878] [drm] Initialized
[    0.997875] panel panel: found backlight
[    1.002763] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.009495] [drm] No driver support for vblank timestamp query.
[    1.041121] Console: switching to colour frame buffer device 60x34
[    1.049050] tilcdc 4830e000.lcdc: fb0:  frame buffer device
[    1.097095] brd: module loaded
[    1.106384] loop: module loaded
[    1.111828] libphy: Fixed MDIO Bus: probed
[    1.183737] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    1.189878] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
[    1.197404] libphy: 4a101000.mdio: probed
[    1.201497] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[    1.210843] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Atheros 8031 ethernet
[    1.220904] cpsw 4a100000.ethernet: Detected MACID = c4:ed:ba:8c:b8:47
[    1.227797] cpsw 4a100000.ethernet: device node lookup for pps timer failed
[    1.234926] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[    1.243100] cpsw 4a100000.ethernet: cpsw: Detected MACID = c4:ed:ba:8c:b8:49
[    1.251839] mousedev: PS/2 mouse device common for all mice
[    1.257878] i2c /dev entries driver
[    1.263144] cpuidle: enable-method property 'ti,am3352' found operations
[    1.270989] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.278284] ledtrig-cpu: registered to indicate activity on CPUs
[    1.287374] NET: Registered protocol family 10
[    1.293206] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.300085] NET: Registered protocol family 17
[    1.305087] Key type dns_resolver registered
[    1.309629] omap_voltage_late_init: Voltage driver support not added
[    1.343906] tps65910 0-002d: No interrupt support, no core IRQ
[    1.351656] vrtc: supplied by vbat
[    1.358869] vio: supplied by vbat
[    1.363675] vdd1: supplied by vbat
[    1.368894] vdd2: supplied by vbat
[    1.374495] random: fast init done
[    1.378883] vdig1: supplied by vbat
[    1.383750] vdig2: supplied by vbat
[    1.388582] vpll: supplied by vbat
[    1.393335] vdac: supplied by vbat
[    1.398175] vaux1: supplied by vbat
[    1.403013] vaux2: supplied by vbat
[    1.407894] vaux33: supplied by vbat
[    1.412888] vmmc: supplied by vbat
[    1.417672] vbb: supplied by vbat
[    1.422454] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.429989] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.602907] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.614054] mmc0: new high speed SDHC card at address aaaa
[    1.620468] mmcblk0: mmc0:aaaa SU08G 7.40 GiB
[    1.629123]  mmcblk0: p1 p2
[    1.645709] input: gpio_buttons0 as /devices/platform/gpio_buttons0/input/input0
[    1.656947] hctosys: unable to open rtc device (rtc0)
[    1.662953] lis3_reg: disabling
[    1.666487] ALSA device list:
[    1.669545]   No soundcards found.
[    1.690112] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.698603] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.708299] devtmpfs: mounted
[    1.713333] Freeing unused kernel memory: 1024K
[    2.016218] systemd[1]: System time before build time, advancing clock.
[    2.074548] systemd[1]: systemd 230 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
[    2.093681] systemd[1]: Detected architecture arm.

Welcome to Arago 2017.10!

[    2.135427] systemd[1]: Set hostname to <am335x-evm>.
[    2.428612] systemd[1]: [/lib/systemd/system/gadget-init.service:15] Unknown lvalue 'ExecStopPre' in section 'Service'
[    2.707020] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    2.734358] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    2.774326] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    2.820602] systemd[1]: Listening on Process Core Dump Socket.
[  OK  ] Listening on Process Core Dump Socket.
[    2.854077] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    2.884555] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-getty.slice.
         Starting Journal Service...
         Starting alignment.service...
         Mounting POSIX Message Queue File System...
         Starting Create Static Device Nodes in /dev...
         Mounting Temporary Directory...
[  OK  ] Reached target Slices.
         Starting Setup Virtual Console...
         Mounting Debug File System...
         Starting Remount Root and Kernel File Systems...
         Starting Load Kernel Modules...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    3.690938] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    3.756277] cryptodev: loading out-of-tree module taints kernel.
[  OK  ] Reached target Paths.
[    3.775337] cryptodev: driver 1.8 loaded.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted Temporary Directory.
[  OK  ] Started Journal Service.
[  OK  ] Started alignment.service.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Setup Virtual Console.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Load Kernel Modules.
         Starting Apply Kernel Variables...
         Mounting Configuration File System...
         Starting udev Coldplug all Devices...
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /media/ram...
         Mounting /var/volatile...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted /var/volatile.
[  OK  ] Mounted /media/ram.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Apply Kernel Variables.
[    4.754497] systemd-journald[85]: Received request to flush runtime journal from PID 1
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Created slice system-systemd\x2dbacklight.slice.
         Starting Load/Save Screen Backlight...htness of backlight:backlight...
[  OK  ] Found device /dev/ttyS0.
[    6.270365] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[  OK  ] Started Load/Save Screen Backlight Brightness[    6.372822] omap_rtc 44e3e000.rtc: already running
 of backlight:backlight.
[  OK  ] Started udev Coldplug all Devices.
[    6.431968] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Telephony service...
         Starting uim-sysfs.service...
[  OK  ] Started D-Bus System Message Bus.
[    7.325812] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    7.491093] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    7.539669] omap-aes 53500000.aes: will run requests pump with realtime priority
[    7.646433] remoteproc remoteproc0: wkup_m3 is available
[    7.665048] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    7.686941] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    7.692221] PM: Cannot get wkup_m3_ipc handle
[    7.701504] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1
[    7.703599] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    7.704073] PM: Cannot get wkup_m3_ipc handle
[    8.200196] asoc-simple-card sound: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
[    8.225787] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    8.226040] PM: Cannot get wkup_m3_ipc handle
[    8.241122] Bluetooth: Core ver 2.22
[    8.241221] NET: Registered protocol family 31
[    8.241225] Bluetooth: HCI device and connection manager initialized
[    8.241247] Bluetooth: HCI socket layer initialized
[    8.241257] Bluetooth: L2CAP socket layer initialized
[    8.241284] Bluetooth: SCO socket layer initialized
[  OK  ] Started Telephony service.
[    9.011028] PM: Cannot get wkup_m3_ipc handle
[    9.022172] remoteproc remoteproc0: powering up wkup_m3
[    9.044780] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224268
[    9.045062] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    9.045092] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
         Starting Network Service...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Save/Restore Sound Card State...
         Starting Print notice about GPLv3 packages...
[  OK  ] Started Kernel Logging Service.
[  OK  ] Started System Logging Service.
         Starting Login Service...
[  OK  ] Found device /dev/ttyS3.
[   10.571202] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[  OK  ] Started Save/Restore Sound Card State.
[   10.991065] net eth0: initializing cpsw version 1.12 (0)
[   11.048839] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[   11.133895] cpsw 4a100000.ethernet: ALE Table size 1024
[   11.314714] Atheros 8031 ethernet 4a101000.mdio:00: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
[   11.464289] cpts ptp bc clkid 0
[   11.541468] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Login Service.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Found device /dev/mmcblk0p1.
         Starting Start USB gadget...
[  OK  ] Started Network Service.
         Starting Network Service...
[   12.670646] udc-core: couldn't find an available UDC - added [g_multi] to list of pending drivers
[  OK  ] Started Network Service.
         Starting Network Service...
[  OK  ] Started Network Service.
         Starting Network Service...
[  OK  ] Started Network Service.
[FAILED] Failed to start Start USB gadget.
See 'systemctl status gadget-init.service' for details.
[   15.605026] cpsw 4a100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   15.612961] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.707435] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
[   15.707770] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input1
[   15.910535] PM: bootloader does not support rtc-only!
[   16.076532] 47401300.usb-phy supply vcc not found, using dummy regulator
[   16.123326] 47401b00.usb-phy supply vcc not found, using dummy regulator
[   16.234484] usbcore: registered new interface driver usbfs
[   16.234551] usbcore: registered new interface driver hub
[   16.234684] usbcore: registered new device driver usb
[   16.354903] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[   16.358583] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[   16.360358] hub 1-0:1.0: USB hub found
[   16.361957] hub 1-0:1.0: 1 port detected
[   16.449650] using random self ethernet address
[   16.449656] using random host ethernet address
[   16.449689] using host ethernet address: C4:ED:BA:8C:B8:49
[   16.449690] using random self ethernet address
[   16.449693] using random host ethernet address
[   16.450954] using host ethernet address: C4:ED:BA:8C:B8:49
[   16.450955] usb0: HOST MAC c4:ed:ba:8c:b8:49
[   16.451069] usb0: MAC ae:7a:65:ab:3e:f3
[   16.652536] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
[   16.661855] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
[   16.662422] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
[   17.238483] remoteproc remoteproc1: 4a334000.pru0 is available
[   17.238578] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a334000 probed successfully
[   17.254885] remoteproc remoteproc2: 4a338000.pru1 is available
[   17.254980] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a338000 probed successfully
[   17.326522] random: crng init done
[   17.603543] Mass Storage Function, version: 2009/09/11
[   17.603558] LUN: removable file: (no medium)
[   17.603926] LUN: removable read only file: /dev/mmcblk0p1
[   17.603933] Number of LUNs=1
[   17.623634] g_multi gadget: Multifunction Composite Gadget
[   17.623644] g_multi gadget: g_multi ready
[   17.631007] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[   17.631042] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[   17.675824] hub 2-0:1.0: USB hub found
[   17.675890] hub 2-0:1.0: 1 port detected
[   17.857817] g_multi gadget: high-speed config #1: Multifunction with RNDIS
[   18.103843] usb 2-1: new low-speed USB device number 2 using musb-hdrc
[   18.784477] input: PixArt USB Optical Mouse as /devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1/usb2/2-1/2-1:1.0/0003:0458:003A.0001/input/input2
[   18.897200] hid-generic 0003:0458:003A.0001: input: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-musb-hdrc.1-1/input0
[   18.978675] usbcore: registered new interface driver usbhid
[   19.005513] usbhid: USB HID core driver
[  OK  ] Started uim-sysfs.service.
[  OK  ] Found device /dev/ttyGS0.
[  OK  ] Reached target Sound Card.
***************************************************************
***************************************************************
NOTICE: This file system contains the following GPLv3 packages:
        autoconf
        binutils
        cifs-utils
        cpp-symlinks
        cpp
        dosfstools
        g++-symlinks
        g++
        gawk-dev
        gawk
        gcc-symlinks
        gcc
        gdb
        gdbserver
        glmark2
        gstreamer1.0-libav
        hidapi
        libcairo-perf-utils
        libgmp10
        libidn11
        libmpc3
        libmpfr4
        libreadline-dev
        libreadline6
        m4-dev
        m4
        make
        nettle
        swig-dev
        swig

         Starting rc.pvr.service...
If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution.  This can be done using
the opkg remove command.  i.e.:
    opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
      will be notified of the dependent packages.  You should
      use the --force-removal-of-dependent-packages option to
      also remove the dependent packages as well
***************************************************************
***************************************************************
         Starting Network Service...
[  OK  ] Started Network Service.
[   20.388021] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
[  OK  ] Started Print notice about GPLv3 packages.
         Starting Network Service...
[  OK  ] Started rc.pvr.service.
         Starting weston.service...
[  OK  ] Started Network Service.
         Starting Network Service...
[  OK  ] Started weston.service.
         Starting telnetd.service...
[  OK  ] Started Network Service.
[  OK  ] Started telnetd.service.
         Starting Network Service...
         Starting thttpd.service...
         Starting busybox-udhcpd.service...
[  OK  ] Started Network Service.
[  OK  ] Started busybox-udhcpd.service.
[  OK  ] Started thttpd.service.
         Starting Network Service...
         Starting rng-tools.service...
[  OK  ] Started Network Service.
[  OK  ] Started rng-tools.service.
[FAILED] Failed to start Network Service.
See 'systemctl status systemd-networkd.service' for details.
         Starting parse-ip.service...
         Starting thermal-zone-init.service...
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting Enable and configure wl18xx bluetooth stack...
         Starting Lightning Fast Webserver With Light System Requirements...
         Starting Simple Network Management Protocol (SNMP) Daemon....
[  OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
         Starting Network Name Resolution...
[  OK  ] Started thermal-zone-init.service.
[  OK  ] Started parse-ip.service.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Lightning Fast Webserver With Light System Requirements.
[  OK  ] Started Serial Getty on ttyGS0.
[  OK  ] Started Serial Getty on ttyS3.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[   22.512559] NET: Registered protocol family 15
         Starting Synchronize System and HW clocks...
[  OK  ] Started Network Name Resolution.
[  OK  ] Started Synchronize System and HW clocks.
[   22.884825] Initializing XFRM netlink socket
[  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
[  OK  ] Started Enable and configure wl18xx bluetooth stack.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

 _____                    _____           _         _
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
              |___|                    |___|

Here is the result of running 'systemctl status systemd-networkd.service:

systemd-networkd.service - Network Service
   Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Tue 2018-07-31 15:19:53 UTC; 11min ago
     Docs: man:systemd-networkd.service(8)
  Process: 695 ExecStart=/sbin/ifup eth0 (code=exited, status=0/SUCCESS)
 Main PID: 695 (code=exited, status=0/SUCCESS)

Jul 31 15:19:53 am335x-evm systemd[1]: Starting Network Service...
Jul 31 15:19:53 am335x-evm ifup[695]: ifup: interface eth0 already configured
Jul 31 15:19:53 am335x-evm systemd[1]: Started Network Service.
Jul 31 15:19:53 am335x-evm systemd[1]: systemd-networkd.service: Start request repeated too quickly.
Jul 31 15:19:53 am335x-evm systemd[1]: Failed to start Network Service.
Jul 31 15:19:53 am335x-evm systemd[1]: systemd-networkd.service: Unit entered failed state.
Jul 31 15:19:53 am335x-evm systemd[1]: systemd-networkd.service: Failed with result 'start-limit-hit'.

Does anyone know how I can further investigate why the network service is failing? I don't understand why it is even attempting to restart, since it shows that all processes return 0/SUCCESS.

P.S. I'm using ti-processor-sdk-linux-am335x-evm-04.02.00.09

  • Hi,

    Did you create any files in this directory as part of identifying the inteface to SystemD /etc/systemd/network/... ? If could you please attach it to this post?

    You mentioned the thread from Yordan, but I think we need to see all the SystemD setup that was done.

    Best Regards,
    Schuyler
  • Hi Schuyler,

    I have not created any new files, just modified existing ones - they are attached here. Please note I have added the additional extension of "*.txt" since the forum editor through an error when I tried to attach unrecognized file types.

    Let me know if I can provide any other information.

    Best,
    Danny

    systemd-networkd.service.txt
    #  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.
    
    [Unit]
    Description=Network Service Modified
    Documentation=man:systemd-networkd.service(8)
    ConditionCapability=CAP_NET_ADMIN
    DefaultDependencies=no
    # dbus.service can be dropped once on kdbus, and systemd-udevd.service can be
    # dropped once tuntap is moved to netlink
    After=systemd-udevd.service dbus.service network-pre.target systemd-sysusers.service systemd-sysctl.service
    Before=network.target multi-user.target shutdown.target
    Conflicts=shutdown.target
    Wants=network.target
    
    # On kdbus systems we pull in the busname explicitly, because it
    # carries policy that allows the daemon to acquire its name.
    Wants=org.freedesktop.network1.busname
    After=org.freedesktop.network1.busname
    
    [Service]
    Type=notify
    Restart=on-failure
    RestartSec=0
    ExecStartPre = /mnt/apps/upgrade/sActivate
    ExecStart=/sbin/ifup eth0
    #ExecStart=/lib/systemd/systemd-networkd
    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_FOWNER
    ProtectSystem=full
    ProtectHome=yes
    WatchdogSec=3min
    
    [Install]
    WantedBy=multi-user.target
    Also=systemd-networkd.socket
    
    80-container-host0.network.txt
    #  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.
    
    # This network file matches the container-side of the virtual Ethernet link
    # created by systemd-nspawn's --network-veth switch. See systemd-nspawn(1) for
    # details.
    
    [Match]
    Virtualization=container
    Name=host0
    
    [Network]
    #DHCP=yes
    LinkLocalAddressing=yes
    LLDP=yes
    EmitLLDP=customer-bridge
    
    #[DHCP]
    #UseTimezone=yes
    

  • Hi,


    Please try this to see if this creates your static ip, create this file in this directory /etc/systemd/network/01-eth-static.network.

    ---- File contents -----
    [Match]
    Name=eth0

    [Network]
    Address=192.168.0.140
    Broadcast=192.168.0.255
    Netmask=255.255.255.0
    Gateway 192.168.0.1

    ----- EOF -----------

    please let me know.

    Best Regards,
    Schuyler