SliTaz SliTaz Forum

You are not logged in.

#1 2013-03-04 08:47:15

panorain
Member
Registered: 2013-03-04
Posts: 3

Wireless, Ralink rt2561 pci not working,

Hi all, I just installed Slitaz-4.0 to my harddrive and things are coming along slowly but fairly well for a noob like me.

I need some help setting up the my  pci Ralink2561 wifi card I have been reading the docs with no luck.

/etc/init.d/network.sh restart yields error: No lease, forking to background

Netbox starting wifi yields sed: bad option in substitution expression

ifconfig: SIOCSIFFLAGS: operation not possible due to RF-kill

I attached a readout of the

lspci | grep -i network

modprobe your_module

dmesg | tail

lsmod

nano /etc/network.conf

ifconfig eth1 up

ifconfig -a

iwconfig

/etc/init.d/network.sh restart

ifconfig -a

commands

root@slitaz:/home/paul# lspci | grep -i network

05:0a.0 Network controller: Ralink corp. RT2561/RT61 802.11g PCI

root@slitaz:/home/paul# dmesg | tail

pci 0000:00:1e.0: wake-up capability disabled by ACPI

tg3 0000:05:02.0: PME# disabled

tg3 0000:05:02.0: BAR 0: set to [mem 0xf0400000-0xf040ffff 64bit] (PCI address [0xf0400000-0xf040ffff])

tg3 0000:05:02.0: PME# enabled

pci 0000:00:1e.0: wake-up capability enabled by ACPI

pci 0000:00:1e.0: wake-up capability disabled by ACPI

tg3 0000:05:02.0: PME# disabled

tg3 0000:05:02.0: BAR 0: set to [mem 0xf0400000-0xf040ffff 64bit] (PCI address [0xf0400000-0xf040ffff])

tg3 0000:05:02.0: PME# enabled

pci 0000:00:1e.0: wake-up capability enabled by ACPI

root@slitaz:/home/paul# lsmod

Module                  Size  Used by    Not tainted

snd_usb_audio          58602  0

snd_hwdep               3808  1 snd_usb_audio

snd_usbmidi_lib        12433  1 snd_usb_audio

snd_rawmidi            12384  1 snd_usbmidi_lib

snd_seq_device          3757  1 snd_rawmidi

floppy                 41138  0

parport_pc             16061  0

parport                20983  1 parport_pc

button                  3602  0

rt61pci                15632  0

crc_itu_t                985  1 rt61pci

rt2x00pci               3461  1 rt61pci

rt2x00lib              20851  2 rt61pci,rt2x00pci

mac80211              145388  2 rt2x00pci,rt2x00lib

cfg80211               99896  2 rt2x00lib,mac80211

rfkill                 10682  1 cfg80211

eeprom_93cx6             924  1 rt61pci

tg3                    97545  0

libphy                 11777  1 tg3

snd_intel8x0           19786  1

snd_ac97_codec         77963  1 snd_intel8x0

ac97_bus                 718  1 snd_ac97_codec

snd_pcm                43737  3 snd_usb_audio,snd_intel8x0,snd_ac97_codec

snd_timer              12515  1 snd_pcm

snd                    33394 11 snd_usb_audio,snd_hwdep,snd_usbmidi_lib,snd_rawmidi,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer

soundcore               3357  1 snd

snd_page_alloc          4853  2 snd_intel8x0,snd_pcm

intel_agp               7908  1

intel_gtt               9214  1 intel_agp

agpgart                18221  2 intel_agp,intel_gtt

root@slitaz:/home/paul# nano /etc/network.conf

paul@slitaz:~$ # /etc/network.conf: SliTaz system wide networking configuration.

paul@slitaz:~$ # Config file used by: /etc/init.d/network.sh

paul@slitaz:~$ #

paul@slitaz:~$ # Set default interface.

paul@slitaz:~$ INTERFACE="eth0"

paul@slitaz:~$

paul@slitaz:~$ # Dynamic IP address.

paul@slitaz:~$ # Enable/disable DHCP client at boot time.

paul@slitaz:~$ DHCP="yes"

paul@slitaz:~$

paul@slitaz:~$ # Static IP address.

paul@slitaz:~$ # Enable/disable static IP at boot time.

paul@slitaz:~$ STATIC="no"

paul@slitaz:~$

paul@slitaz:~$ # Set IP address and netmask for a static IP.

paul@slitaz:~$ IP="192.168.0.6"

paul@slitaz:~$ NETMASK="255.255.255.0"

paul@slitaz:~$

paul@slitaz:~$ # Set route gateway for a static IP.

paul@slitaz:~$ GATEWAY="192.168.0.1"

paul@slitaz:~$

paul@slitaz:~$ # Set DNS server for a static IP.

paul@slitaz:~$ DNS_SERVER="192.168.0.1"

paul@slitaz:~$

paul@slitaz:~$ # Wifi connection.

paul@slitaz:~$ # Enable/disable wireless connection at boot time.

paul@slitaz:~$ WIFI="yes"

paul@slitaz:~$

paul@slitaz:~$ # Wifi interface (iwconfig) and ESSID.

paul@slitaz:~$ WIFI_INTERFACE="wlan0"

paul@slitaz:~$ WIFI_ESSID="ShortBus"

paul@slitaz:~$ WIFI_MODE="managed"

paul@slitaz:~$ WIFI_KEY="7:h//68eh$-n2bh1bm,ph[aycueyv^d"

paul@slitaz:~$ WIFI_KEY_TYPE="WPA"

paul@slitaz:~$ WPA_DRIVER=""

paul@slitaz:~$ WIFI_CHANNEL="6"

paul@slitaz:~$ WIFI_IWCONFIG_ARGS=""

root@slitaz:/home/paul# ifconfig eth1 up

ifconfig: SIOCGIFFLAGS: No such device

root@slitaz:/home/paul# ifconfig wlan0 up

root@slitaz:/home/paul# ifconfig -a

dummy0    Link encap:Ethernet  HWaddr 3A:A7:BE:8C:5D:BE

          BROADCAST NOARP  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:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:11:0A:97:87:73

          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:20

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:1050 errors:0 dropped:0 overruns:0 frame:0

          TX packets:1050 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:198601 (193.9 KiB)  TX bytes:198601 (193.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:13:14:00:0F:FD

          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)

root@slitaz:/home/paul# iwconfig

lo        no wireless extensions.

dummy0    no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"ShortBus"

          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated

          Tx-Power=20 dBm

          Retry  long limit:7   RTS thr:off   Fragment thr:off

          Encryption key:off

          Power Management:off

root@slitaz:/home/paul# /etc/init.d/network.sh restart

Stopping all interfaces

Killing all daemons

Shutting down wifi card

Configuring wlan0...                                                 [ OK ]

Starting udhcpc client on: wlan0...

udhcpc (v1.18.4) started

Sending discover...

Sending discover...

Sending discover...

No lease, forking to background

root@slitaz:/home/paul# ifconfig -a

dummy0    Link encap:Ethernet  HWaddr 3A:A7:BE:8C:5D:BE

          BROADCAST NOARP  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:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:11:0A:97:87:73

          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:20

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:1050 errors:0 dropped:0 overruns:0 frame:0

          TX packets:1050 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:198601 (193.9 KiB)  TX bytes:198601 (193.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:13:14:00:0F:FD

          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)

root@slitaz:/home/paul# netbox

start wireless manager>

sed: bad option in substitution expression

ifconfig: SIOCSIFFLAGS: Operation not possible due to RF-kill

Thankyou

Offline

#2 2013-03-04 20:09:59

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: Wireless, Ralink rt2561 pci not working,

I don't know why netbox is outputting the error.

It isn't needed to configure wireless but is used for servers.

List network devices: [c]ls /sys/class/net[/c]

I don't think you have eth1 device.

ifconfig and iwconfig list Ralink corp. RT2561/RT61 802.11g PCI as wlan0

Your wifi adapter is not associating with the wifi router.

Make these changes, see if you can connect:

[c]# nano /etc/network.conf[/c]

Change

INTERFACE="eth0"

to

INTERFACE="wlan0"

Ctrl+x

y

Restart networking:

[c]# /etc/init.d/network.sh stop[/c]

[c]# /etc/init.d/network.sh start[/c]

Applications/System Tools/Wifi configuration

Online

#3 2013-03-04 21:33:06

panorain
Member
Registered: 2013-03-04
Posts: 3

Re: Wireless, Ralink rt2561 pci not working,

Thank you for your help mojo.

su

/sys/class/net  yields dummy0 eth0 lo wlan0

I was able to set wlan0 up by appending the following lines to /etc/wpa_supplicant.conf

ap_scan=1

network={

    ssid="my_essid"

    scan_ssid=1

    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE

    group=CCMP TKIP WEP104 WEP40

    pairwise=CCMP TKIP

    psk="my_clear_key"

    priority=5

}

This issue is solved.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]