You are not logged in.

#1 2011-08-20 09:36:42

agkbill
Member
Registered: 2011-06-13
Posts: 85

[SOLVED] Netcfg stop working after kernel 3.0 upgrade

Hi,

After upgrading it looks like wlan0 is tried to be initiated instead of ra0 during boot.

I use rt2870sta v2.4.0.1, build from AUR.

I have my wireless profile in /etc/network.d/<myprofile>

CONNECTION='wireless'
DESCRIPTION='A simple WPA encrypted wireless connection'
INTERFACE='ra0'
WPA_DRIVER='wext'
SECURITY='wpa'
ESSID='<myprofile>'
KEY='<mykey>'
IP='dhcp' 
# Uncomment this if your ssid is hidden
#HIDDEN=yes

If I start with

netcfg <myprofile> 

Wireless network start ok.

But during boot it do not work.

My rc.conf

# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
#   Note: Using "localtime" is discouraged.
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
# VERBOSE: Verbose level (from 1 to 8). man 3 syslog for level info
#
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Stockholm" 
#KEYMAP="sv-latin1.map.gz" #keymap for swedish keyboard
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
VERBOSE="3"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
#   Replace every !module by an entry as on the following line in a file in
#   /etc/modprobe.d:
#     blacklist module
#   See "man modprobe.conf" for details.
#
MODULES=(rt2870sta)

# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30

# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"

# Scan for BTRFS volumes at startup
USEBTRFS="no"

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Arch"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
#   - interface: name of device (required)
#   - address: IP address (leave blank for DHCP)
#   - netmask: subnet mask (ignored for DHCP)
#   - gateway: default route (ignored for DHCP)
# 
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
interface=
address=
netmask=
gateway=

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)

# ----------------------------------------------------------------------
# Added Christer Netcfg wireless connection support
#
# Add line: "WIRELESS_INTERFACE="wlan0" 
# Remove daemon, "network"
# Add daemon, "net-auto-wireless"
# _____________________________________________________________________

WIRELESS_INTERFACE="ra0"
#WIRELESS_INTERFACE="wlan0"

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
# cupsd=printer daemon, mpd=music player daemon
DAEMONS=(hwclock syslog-ng net-auto-wireless netfs crond dbus cupsd mpd)

Any ideas what happen after upgrade?

Best regards,
/Christer

Last edited by agkbill (2011-08-22 20:35:07)

Offline

#2 2011-08-20 09:39:28

GregW
Member
From: 53°24'N 2°35'W
Registered: 2008-02-09
Posts: 56

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

I've had a working system until last night and now I can't automatically connect to my wireless network.

following the manual setup  in the archwiki the wireless works correctly, simplified I do this.

module ipw2200 and firmware are loaded correctly and iwconfig shows my interface as eth0.

ip link set eth0 up
wpa_supplicant -ieth0 -c /etc/wpa_supplicant.conf -B
dhclient eth0

and I can connect. However, if I reboot and use net-auto-wireless the connection fails. However, I see the following on the console

 Starting netcfg auto-wireless mode for interface wlan0

I'm wondering if the fact it's trying to bring up wlan0 that doesn't exist on my system is the cause. The laptop has a wired connection that's blacklisted in modprobe.d as I don't use it.

The network profile in /etc/network.d is the same as the laptop I'm using now to write this.

UPDATE:
WOW! I just had a look at /etc/rc.d/net-auto-wireless and if picks up an environment variable in /etc/conf.d/netcfg and this contained WIRELESS_INTERFACE="wlan0" I changed this to  WIRELESS_INTERFACE="eth0" rebooted and my wireless is working again.   This isn't something I can recall changing, I've not had to change any config on this laptop for a long long time!

Last edited by GregW (2011-08-20 09:45:37)

Offline

#3 2011-08-20 09:42:12

agkbill
Member
Registered: 2011-06-13
Posts: 85

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

This sound like the same problem I experience.

post: https://bbs.archlinux.org/viewtopic.php?id=124911

/Christer

Last edited by agkbill (2011-08-20 09:42:47)

Offline

#4 2011-08-20 09:47:21

GregW
Member
From: 53°24'N 2°35'W
Registered: 2008-02-09
Posts: 56

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

agkbill wrote:

This sound like the same problem I experience.

post: https://bbs.archlinux.org/viewtopic.php?id=124911

/Christer

Check this!
UPDATE:
WOW! I just had a look at /etc/rc.d/net-auto-wireless and if picks up an environment variable in /etc/conf.d/netcfg and this contained WIRELESS_INTERFACE="wlan0" I changed this to  WIRELESS_INTERFACE="eth0" rebooted and my wireless is working again.   This isn't something I can recall changing, I've not had to change any config on this laptop for a long long time!

Offline

#5 2011-08-20 10:21:51

agkbill
Member
Registered: 2011-06-13
Posts: 85

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

I looked at the old files I have in my backup and /etc/rc.d/net-auto-wireless looks different and /etc/conf.d/netcfg do not excist in my old Archlinux instalation.

Must be changes that come with the update.

/etc/rc.d/net-auto-wireless, before

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /usr/lib/network/globals

if [[ ! -x /usr/sbin/wpa_actiond ]]; then
   echo "Please install 'wpa_actiond' to use net-auto-wireless"
   exit 1
fi  

if [ -z "${WIRELESS_INTERFACE}" ]; then
    echo "No interface name set. Set it by adding WIRELESS_INTERFACE=\"your_interface\" to rc.conf"
    exit 1
fi

case "$1" in
    start)
        if ! ck_daemon net-auto-wireless; then
            exit_stderr "net-auto-wireless has already been started: try \"/etc/rc.d/net-auto-wireless restart\""
        fi
        # Ensure any device renaming has occurred as intended
        for daemon in "${DAEMONS[@]}"; do
            if [[ "$daemon" = "${daemon#!}" && "$daemon" = "net-rename" ]]; then
                if ck_daemon net-rename; then
                    /etc/rc.d/net-rename start
                fi
            fi
        done

        stat_busy "Starting netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}"
        /usr/bin/netcfg-wpa_actiond "${WIRELESS_INTERFACE}" >/dev/null
        if [ $? -eq 0 ]; then
            add_daemon net-auto-wireless
            stat_done
        else
            stat_fail
        fi
        ;;
    stop)
        if ! ck_daemon net-auto-wireless; then
            stat_busy "Stopping netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}"
            /usr/bin/netcfg-wpa_actiond stop "${WIRELESS_INTERFACE}" >/dev/null
            if [ $? -eq 0 ]; then
                rm_daemon net-auto-wireless
                stat_done
            else
                stat_fail
            fi
        fi
        ;;
    restart)
        "$0" stop
        sleep 1
        "$0" start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac
exit 0
# vim: ft=sh ts=4 et sw=4:

/etc/rc.d/net-auto-wireless, after

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /usr/lib/network/globals
. /etc/conf.d/netcfg

if [[ ! -x /usr/sbin/wpa_actiond ]]; then
   echo "Please install 'wpa_actiond' to use net-auto-wireless"
   exit 1
fi

if [ -z "${WIRELESS_INTERFACE}" ]; then
    echo "No interface name set. Add to /etc/conf.d/netcfg a line"
    echo "  WIRELESS_INTERFACE=\"your_interface\""
    exit 1
fi

case "$1" in
    start)
        if ! ck_daemon net-auto-wireless; then
            exit_stderr "net-auto-wireless has already been started: try \"/etc/rc.d/net-auto-wireless restart\""
        fi
        # Ensure any device renaming has occurred as intended
        for daemon in "${DAEMONS[@]}"; do
            if [[ "$daemon" = "${daemon#!}" && "$daemon" = "net-rename" ]]; then
                if ck_daemon net-rename; then
                    /etc/rc.d/net-rename start
                fi
            fi
        done

        stat_busy "Starting netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}"
        /usr/bin/netcfg-wpa_actiond "${WIRELESS_INTERFACE}" >/dev/null
        if [ $? -eq 0 ]; then
            add_daemon net-auto-wireless
            stat_done
        else
            stat_fail
        fi
        ;;
    stop)
        if ! ck_daemon net-auto-wireless; then
            stat_busy "Stopping netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}"
            /usr/bin/netcfg-wpa_actiond stop "${WIRELESS_INTERFACE}" >/dev/null
            if [ $? -eq 0 ]; then
                rm_daemon net-auto-wireless
                stat_done
            else
                stat_fail
            fi
        fi
        ;;
    restart)
        "$0" stop
        sleep 1
        "$0" start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac
exit 0
# vim: ft=sh ts=4 et sw=4:

Changing setting in /etc/conf.d/netcfg from default wlan0 to in my case ra0 solve the problem.

Offline

#6 2011-08-20 10:23:49

agkbill
Member
Registered: 2011-06-13
Posts: 85

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

The question now is if /etc/conf.d/netcfg is replacing the function of the line WIRELESS_INTERFACE=\"your_interface\" to rc.conf ?

Offline

#7 2011-08-20 10:26:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

Guys, I suggest further discussion stays here and let's abandon the other thread https://bbs.archlinux.org/viewtopic.php?id=124912 , OK?

Offline

#8 2011-08-20 12:06:09

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

Woah, duplicate posts in both threads. I'm going to merge them and yes, that means some posts will be deleted. I'll let you keep the post counts. wink

But next time, don't make the same posts to both threads. It runs afoul the cross-posting rules (see forum rules link in my sig). Mods can merge threads for you. Just report or pm, okay?

Edit: Two posts deleted (duplicates of this and this). These deletes were permanent. If you feel there was something that should have been kept, I'm sorry, they're gone.

Last edited by fsckd (2011-08-20 12:15:31)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2011-08-22 14:26:08

GregW
Member
From: 53°24'N 2°35'W
Registered: 2008-02-09
Posts: 56

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

There's an announcement about this here: http://www.archlinux.org/news/netcfg-266-release/ very easy to miss this, but I fully agree with a comment in a post that has now been deleted about about *where* the SPOT for this declaration should be made. Do we remove it from rc.conf or let /etc/network.d/netcfg manage this in the future

Cheers
GregW

Sorry pasted wrong link in first version

Last edited by GregW (2011-08-22 14:28:23)

Offline

#10 2011-08-22 20:34:42

agkbill
Member
Registered: 2011-06-13
Posts: 85

Re: [SOLVED] Netcfg stop working after kernel 3.0 upgrade

Thank you for sorting this out GregW.

I will mark this thread as solved.

/Christer

Offline

Board footer

Powered by FluxBB