Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless configuration and startup - The Gentoo way (part 2)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 9, 10, 11 ... 15, 16, 17  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Jan 04, 2005 12:15 pm    Post subject: Re: net.lo syntax error? Reply with quote

Clue-less wrote:
I'm using this net.lo since I did not have one when I booted before this.


You need the entire rc-scripts section to get that version to work as it has some very experimental stuff such as backgrounding support for dhcp and wireless.

I would recommend using the generic stuff in baselayout-1.11.8 for the time being
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Jan 04, 2005 12:17 pm    Post subject: Reply with quote

Radiator wrote:
Hi,

I think something is going wrong here with wireless-autoconfig.

It runs fine when i use iwconfig to setup it manually, but it doesnt really work with newest baselayouts as the howto says -
I did step by step what http://gentoo-wiki.com/HOWTO_Wireless_Configuration_and_Startup says, but it doesnt seem to do any wireless configuration (/etc/init.d/net.eth1 says Bringing eth1 up - nothing more - but it should as i can see here) (eth1 is ipw2200)


That normally means that iwconfig is not reporting eth1 as wireless.
Your kernel may not have wireless support configured - or you're suffering from an ipw firmware problem - https://bugs.gentoo.org/show_bug.cgi?id=74786

Quote:
How is the configuration in /etc/conf.d/wireless handled by the scripts? I don't see that file parsed by any script. I don't have a directory like /etc/net.modules.d - where can i get that stuff, because i think this is the missing part, eh


The modules were moved to /lib/rcscripts/net.modules.d - iwconfig module loads /etc/conf.d/wireless
Back to top
View user's profile Send private message
isreal
n00b
n00b


Joined: 16 Apr 2004
Posts: 40
Location: Austria

PostPosted: Tue Jan 04, 2005 1:32 pm    Post subject: Firmware load Problem Reply with quote

After i configured my wlan usb Adaptor i get an error when i start the wlan script:
Code:

/etc/init.d/wlan start
FATAL: Module wlan0 not found.
/sbin/prism2dl not found, aborting firmware download.


lsmod says the modules prism2_usb and p80211 are loaded correctly.

Does anyone know where i get the right firmware for my MA111 Netgear USB Adaptor?

Thanks...
Back to top
View user's profile Send private message
Jerem
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 177

PostPosted: Wed Jan 05, 2005 7:31 am    Post subject: Reply with quote

Too complicated and obscure way of configuring the wifi, I would say.

Easiest way if writing a init script which ALSO permits selecting multiple acess points with multiple settings.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Jan 05, 2005 10:25 am    Post subject: Reply with quote

Erm, the script allows multiple access points (preferred_aps=( ESSID1 ESSID2 )) and mutplite settings (config_ESSID1=( dhcp) config_ESSID2=( 192.168.0.2/24 ))

As for being complication and obscure I say FOO

Without any settings we automatically connect to the strongest Access Point or Ad-Hoc node (well, automatic to ad-hoc doesn't work in baselayout-1.11.8, but it works in CVS)

So most people will just need to configure a preferred_aps list and any WEP keys needed. That's not hard or obscure imo.
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Thu Jan 06, 2005 12:14 am    Post subject: Problem with wireless connection hang up after a while... Reply with quote

Hi there, after download some stuf or after a long period of time my wireless card seem to disconect and reconect again, and seems that after a while do the same ?

anyone know what is wrong with my conf or card ???

lspci |grep network
Code:
0000:02:00.0 Network controller: 3Com Corporation 3com 3CRWE154G72 [Office Connect Wireless LAN Adapter] (rev 01)


dmesg
Code:

eth2: islpci_close ()
eth2: resetting device...
eth2: uploading firmware...
CLASS: registering class device: ID = '0000:02:00.0'
class_hotplug - name = 0000:02:00.0
class_hotplug - hotplug() returned -19
class_hotplug - name = 0000:02:00.0
CLASS: Unregistering class device. ID = '0000:02:00.0'
class_hotplug - name = 0000:02:00.0
device class '0000:02:00.0': release.
eth2: firmware version: 1.0.4.3
eth2: firmware upload complete
eth2: interface reset complete
eth2: no IPv6 routers present


at the moment i had no time to configure with wireless.conf so i made this:

Code:
#/etc/init.d/nowire
#!/sbin/runscript

opts="start stop"

start() {
        ebegin "Wireless start"
        ifconfig eth2 up
        iwconfig eth2 essid mythos
        iwconfig eth2 key xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx
        dhcpcd eth2
}

stop() {
        ebegin "Stopping Radiation"
        ifconfig eth2 down
        rm /var/run/dhcpcd-eth2.pid
        einfo "No radiation left"

}



I can browse nicely in internet, etc, etc. But sometimes it's a litle bit anoyng my card reconect.

Thanks
_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Jan 06, 2005 10:23 am    Post subject: Reply with quote

May not be your card - I have similar issues with our AP at work - it needs a hard reset once a week or so.

I have a similar AP at home, which requires a hard reset once a month or so.

Check to see if there's updated firmware you can use.
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Thu Jan 06, 2005 7:47 pm    Post subject: Reply with quote

Ok, Thank you :) it is not a major problem but sometimes it's a litle bit anoying ...
_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
kblack
n00b
n00b


Joined: 12 Nov 2004
Posts: 9

PostPosted: Fri Jan 07, 2005 2:22 am    Post subject: Reply with quote

Ok I got everything working after I ran ( rc-update add net.wlan0 default ) it only shows the output in init if it fails. When it comes up and gets a dhcp address it has no output not even ( * Starting wlan0 )

Any ideas?
Back to top
View user's profile Send private message
FXRS
n00b
n00b


Joined: 11 Jan 2005
Posts: 2

PostPosted: Tue Jan 11, 2005 9:40 pm    Post subject: Reply with quote

Hello,

Just installed Gentoo and I am having trouble with my wireless. I have had it setup several other times with mandrake/fedora/ubuntu/slack, but Gentoo or my lack of knowledge of Gentoo is giving me fits.

I have tried to download the latest wireless conf "baselayout" but everytime I do I get this....bash-2.05b# emerge -av sys-apps/baselayout

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] sys-apps/baselayout-1.9.4-r6 -bootstrap* -build -debug -livecd (-selinux) -static (-uclibc) 197 kB

Total size of downloads: 197 kB

Do you want me to merge these packages? [Yes/No] no

I followed the instructions in the thread that is now locked. I was wondering if someone could maybe give me easy step by step instructions.

Yes I have emerged the madwifi drivers and the wireless tools.

Thanks ahead of time.
Back to top
View user's profile Send private message
fatboyjim
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 227
Location: UK

PostPosted: Tue Jan 11, 2005 9:43 pm    Post subject: Reply with quote

Edit your /etc/portage/package.keywords file

You may need to create it

Add to it the following lines

Code:

app-shells/bash ~x86
sys-apps/sysvinit ~x86
sys-libs/readline ~x86
sys-apps/baselayout ~x86
net-wireless/madwifi-driver ~x86


You should now be able to emerge the latest baselayout and madwifi-drivers

Jim
_________________
-----------------------
fatboyjim
Gentoo/AMD64 Arch Tester (Inactive)
Back to top
View user's profile Send private message
FXRS
n00b
n00b


Joined: 11 Jan 2005
Posts: 2

PostPosted: Wed Jan 12, 2005 12:15 am    Post subject: Reply with quote

Fatboyjim,

I added those lines, (already had the madwifi stuff) and I still get the same response from emerge.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Jan 12, 2005 2:06 am    Post subject: Reply with quote

If you're using AMD64 then you need to replace ~x86 with ~amd64

Same applies for other arches
Back to top
View user's profile Send private message
Psiuyo
n00b
n00b


Joined: 22 Apr 2004
Posts: 50
Location: Calgary

PostPosted: Wed Jan 12, 2005 2:47 am    Post subject: Reply with quote

I've been trying to set up a laptop for both fixed and mobile work. As a test I have 2 APs set up, one hidden and one broadcasting; the non-broadcasting is my preferred.

I want my machine to connect to my non-broadcasting AP if possible, then fallback to ANY if it can't connect.

If I choose "forcepreferred" it will connect to my AP fine. When I turn off the preferred AP it doesn't connect to anything (expected).
If I choose "forceany" it will always connect to anything open first instead of the non-visible preferred AP. Guess it really is quite literal :)

Is there any way to enable some sort of "forcepreferredthenany" mode? Some way to force (non-broadcasting) preferred first, then search for others on failure?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Jan 12, 2005 2:59 am    Post subject: Reply with quote

Psiuyo wrote:
Is there any way to enable some sort of "forcepreferredthenany" mode? Some way to force (non-broadcasting) preferred first, then search for others on failure?


Not at present.

However, it's not an unreasonable request so I'll add it to my todo list :)
Back to top
View user's profile Send private message
tharasix
n00b
n00b


Joined: 06 Aug 2003
Posts: 46
Location: Minneapolis, MN

PostPosted: Wed Jan 12, 2005 9:04 am    Post subject: Init scripts and net dependency Reply with quote

I'm running baselayout-1.11.7-r2 and gentoo-dev-sources-2.6.10-r4. I have wireless working correctly, but the scripts in /etc/init.d/ don't seem to think that my wireless connection provides a network. For instance, when I have net.eth0 (built-in 100BaseT adapter) stopped and net.eth1 (Orinoco wireless) started, starting cupsd will bring up net.eth0 again. If both eth0 and eth1 are running, then all network traffic goes to an unplugged eth0, and nothing works. The behavior isn't terribly consistent either, since the first time I bring down eth0 nothing else stops, but if I bring it up and back down again, BOINC and Postfix will stop. Currently, I have net.eth0 in the default runlevel and net.eth1 in no runlevels, and I'd like to keep it that way.

Is there any way to fix this behavior? I'd really like for my computer to realize that my wireless card provides network access.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Jan 12, 2005 10:46 am    Post subject: Reply with quote

That problem is fixed in sys-apps/baselayout-1.11.8 which was put into portage a while back
Back to top
View user's profile Send private message
fatboyjim
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 227
Location: UK

PostPosted: Wed Jan 12, 2005 2:09 pm    Post subject: Reply with quote

Using gentoo-dev-sources-2.6.9-r13 my wireless card worked perfectly

After upgrading this morning to 2.6.10-r4 it no longer works :P

The card does have lights on it (after re-enabling the PCMCIA stuff in menuconfig) but a scan for access points says there are" no access points found for ath0"

Any ideas what I need to enable/reinstall?

Thanks
Jim
_________________
-----------------------
fatboyjim
Gentoo/AMD64 Arch Tester (Inactive)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Jan 12, 2005 2:48 pm    Post subject: Reply with quote

No idea - madwifi works fine on my AMD64 box with that kernel version :(

Maybe you could try reemerging wireless-tools or madwifi-driver ?
Back to top
View user's profile Send private message
fatboyjim
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 227
Location: UK

PostPosted: Wed Jan 12, 2005 2:49 pm    Post subject: Reply with quote

Should have mentioned I've already re-emerged madwifi-driver

I'll re-emerge wireless-tools now then, thanks for the tip

Jim
_________________
-----------------------
fatboyjim
Gentoo/AMD64 Arch Tester (Inactive)
Back to top
View user's profile Send private message
certocivitas
Apprentice
Apprentice


Joined: 29 Dec 2004
Posts: 194

PostPosted: Wed Jan 12, 2005 4:55 pm    Post subject: Reply with quote

I just finished doing a reinstall of Gentoo on a new hd and desided to use the directions on the wiki to setup wifi. So I updated the baselayout, installed madwifi/wireless-tools, added modules to auto load list, made /etc/conf.d/wireless as suggested and rebooted into the new install.

The problem is that when I try "iwlist ath0 ap" no accesspoints show up. Also strange, when I try "iwlist ath0 scanning" I get an error saying the interface does not support this feature, or something to that effect.

I'm using the same madwifi-driver and wireless-tools versions on my old setup and my accesspoint shows up. The two major changes with my new install are the baselayout and I'm using udev only now. Any ideas?
Back to top
View user's profile Send private message
fatboyjim
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 227
Location: UK

PostPosted: Wed Jan 12, 2005 5:25 pm    Post subject: Reply with quote

Problem for me with new kernel turned out to be "Module Unloading" was enabled in the kernel.

Turned this off and all was well again

Cheers
Jim
_________________
-----------------------
fatboyjim
Gentoo/AMD64 Arch Tester (Inactive)
Back to top
View user's profile Send private message
certocivitas
Apprentice
Apprentice


Joined: 29 Dec 2004
Posts: 194

PostPosted: Wed Jan 12, 2005 7:00 pm    Post subject: Reply with quote

I got things working... just not with the net.lo that comes with baselayout-1.11.8 :( . I copied my old net.ath0 (a copy, not a symbolic link, of net.lo from baselayout-1.9.4-r6) and everything works fine again.

I'm not sure how to figure out what went wrong with the new version of net.lo. UberLord if there is anything I can do to figure it out let me know. Until then I guess I'll just use the old one :roll: .

Oh and I removed module unloading from the kernel, never a problem before with it, but that had no effect.
Back to top
View user's profile Send private message
tharasix
n00b
n00b


Joined: 06 Aug 2003
Posts: 46
Location: Minneapolis, MN

PostPosted: Wed Jan 12, 2005 7:19 pm    Post subject: Reply with quote

UberLord wrote:
That problem is fixed in sys-apps/baselayout-1.11.8 which was put into portage a while back


I beg to differ. I just upgraded to baselayout-1.11.8, let etc-update overwrite net.lo and a bunch of other files, and the behavior is pretty much exactly the same. What were you suggesting would be fixed, BTW? I assumed that CUPS, for instance, wouldn't start net.eth0, which is still does.
Back to top
View user's profile Send private message
tharasix
n00b
n00b


Joined: 06 Aug 2003
Posts: 46
Location: Minneapolis, MN

PostPosted: Wed Jan 12, 2005 7:53 pm    Post subject: Reply with quote

tharasix wrote:
I beg to differ. I just upgraded to baselayout-1.11.8, let etc-update overwrite net.lo and a bunch of other files, and the behavior is pretty much exactly the same. What were you suggesting would be fixed, BTW? I assumed that CUPS, for instance, wouldn't start net.eth0, which is still does.


I just added net.eth1 to the default runlevel and removed net.eth0 from it and everything now works as expected. This is pretty inconvenient, considering that I'll always have my built-in net card to contend with, but only occasionally my PCMCIA wireless card. Is the fact that the net.* connection in the default runlevel is the only one that is recognized as providing a network a bug or feature? :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3 ... 9, 10, 11 ... 15, 16, 17  Next
Page 10 of 17

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum