Netcfg Problem [Solved]

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Netcfg Problem [Solved]

Postby srw » Sun Dec 16, 2012 7:39 pm

My E02 is having a problem with netcfg. Using a serial connection at boot, shows that it failed to start Netcfg multi-profile daemon. Systemctl status shows the following.

[root@alarm ~]# systemctl status netcfg.service
netcfg.service - Netcfg multi-profile daemon
Loaded: loaded (/usr/lib/systemd/system/netcfg.service; enabled)
Active: failed (Result: exit-code) since Wed, 1969-12-31 18:00:21 CST; 7min ago
Process: 116 ExecStart=/usr/bin/netcfg-daemon start (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/netcfg.service

Oddly, if I run the command netcfg wired-eth0 three times, it will connect. The first two attempts will result in [BUSY], and the third will bind and connect.

Any suggestions?

thanks for the helpcd .
Last edited by srw on Mon Dec 17, 2012 1:13 am, edited 1 time in total.
srw
 
Posts: 10
Joined: Sun Dec 09, 2012 3:21 am

Re: Netcfg Problem

Postby pepedog » Sun Dec 16, 2012 8:16 pm

Can you list these please
/etc/conf.d/netcfg
any files in /etc/network.d/ (not examples directory)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Netcfg Problem

Postby srw » Sun Dec 16, 2012 9:25 pm

The contents of netcfg are:
$this->bbcode_second_pass_code('', '
[root@alarm conf.d]# cat netcfg
# Enable these netcfg profiles at boot time.
# - prefix an entry with a '@' to background its startup
# - set to 'last' to restore the profiles running at the last shutdown
# - set to 'menu' to present a menu (requires the dialog package)
# Network profiles are found in /etc/network.d
NETWORKS=(wired-eth0)

# Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"

# Specify the name of your wireless interface for net-auto-wireless
WIRELESS_INTERFACE="wlan0"

# Array of profiles that may be started by net-auto-wireless.
# When not specified, all wireless profiles are considered.
#AUTO_PROFILES=("profile1" "profile2")
[root@alarm conf.d]#

')

network.d contains:
[root@alarm network.d]# ls
examples interfaces wired-eth0

interfaces is an empty directory. wired-eth0 contains
$this->bbcode_second_pass_code('', '
CONNECTION='ethernet'
DESCRIPTION='A basic dhcp ethernet connection using iproute'
INTERFACE='eth0'
IP='dhcp'
## for DHCPv6
#IP6='dhcp'
## for IPv6 autoconfiguration
#IP6='stateless'

## Example of static eth0
#CONNECTION='ethernet'
#DESCRIPTION='A basic static ethernet connection using iproute'
#INTERFACE='eth0'
#IP='static'
#ADDR='192.168.1.23'
#ROUTES=('192.168.0.0/24 via 192.168.1.2')
#GATEWAY='192.168.1.1'
#DNS=('192.168.1.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6='static'
#ADDR6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#ROUTES6=('abcd::1234')
#GATEWAY6='1234:0:123::abcd'

')

thanks for any suggestions
srw
 
Posts: 10
Joined: Sun Dec 09, 2012 3:21 am

Re: Netcfg Problem

Postby moonman » Sun Dec 16, 2012 10:25 pm

I had similar problems on my goflex. Something is not right...

You can try a couple of things:

Disable netcfg service:

systemctl disable netcfg.service

1. Systemctl enable dhcpcd@eth0.service

2. systemctl enable netcfg@wired-eth0.service
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Netcfg Problem

Postby srw » Sun Dec 16, 2012 10:45 pm

Moonman,

Thanks for the suggestions. I tried them without success. Any next steps that you would recommend?
srw
 
Posts: 10
Joined: Sun Dec 09, 2012 3:21 am

Re: Netcfg Problem

Postby pepedog » Sun Dec 16, 2012 10:52 pm

I think you have cable/hub/router problem
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Netcfg Problem

Postby moonman » Sun Dec 16, 2012 10:54 pm

Are you sure it didn't work? I had to wait 10 min before it was up when I enabled netcfg@wired-eth0.service

I suppose you can try this trick by pepedog as well (PRE_UP): viewtopic.php?f=18&t=4145&p=24230&hilit=PRE_UP%3D+sleep+5+#p24230
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Netcfg Problem

Postby srw » Sun Dec 16, 2012 11:33 pm

Thanks! It looks like the PRE_UP sleed command solved the problem. Initially tried it with the setting of 5 but it wouldn't always come up on reboot. A setting of 10 seemed to work with a warm reboot but would not work on a cold reboot. I finally set to 20 and it seems to be working.
srw
 
Posts: 10
Joined: Sun Dec 09, 2012 3:21 am

Re: Netcfg Problem

Postby pepedog » Mon Dec 17, 2012 12:23 am

This is interesting. I used this as hardware not detected before network started. Wonder if putting module in modules.load would help?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Netcfg Problem [Solved]

Postby moonman » Mon Dec 17, 2012 2:11 am

The driver is compiled into the kernel and not built as a module last time i checked
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 23 guests