Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 May 2013, 03:41
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Improved Network Wizard (and rc.network)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 22 of 40 [596 Posts]   Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23, 24, ..., 38, 39, 40 Next
Author Message
zgp152


Joined: 08 Nov 2007
Posts: 115

PostPosted: Thu 02 Oct 2008, 09:09    Post subject: Re: Wizard, blacklisting, BCM43xx etc  

Dougal wrote:
But doesn't the ndiswrapper dialog offer you to remove the already loaded module and offer to blacklist it?? I'm sure Barry added that a while ago.

I presume that the dialog does not propose a removal prior to creating a new one. If I am wrong, I did not realise it was SO important.

Quote:
Quote:
However, if I get the B43 installed by a pet for instance, I could try using the skiplist to eliminate bcm43xx.

Why do you need it as a .pet? It should be included along with the rest of the modules.
I really don't see why people have made such a give deal out of the bcm43xx problems: I would expect that if it is blacklisted then ssb (and then b43) would be automatically loaded and you can always use ndiswrapper.

I understand the comment of Tempestuous so that the kernel in Puppy 4.0 does not include B43. I was not aware of such a dependency. If it was an additional file only (less dependency), getting it to right place would be easy with .pet.

Rgds
Timo
Back to top
View user's profile Send private message 
zeek

Joined: 25 Sep 2008
Posts: 7

PostPosted: Thu 02 Oct 2008, 17:25    Post subject: Re: Network Wizard
Subject description: Network Wizard Endless loop on Search for Network
 

Dougal wrote:
zeek wrote:
My wireless router/access point does not broadcast it SSID.
I selected scan picked my network and the Network wizard wouldnt load the information about the wireless network. I clicked cancel but it kept scanning and refused to quit.

What do you mean "kept scanning"? I'm trying to figure out where it is that you were stuck at... (where did you press "cancel"?)
Also, it would be good if you could post the output of "iwlist wlan0 scan" (replace wlan0 with your interface name), so I can try and figure out why it might have a problem.
Note that if you just installed it on an old (pre-4.1alphas) installation, you'll need to configure that network again (i.e. give the passphrase etc.).


When I was running the network wizard I would press scan, select a network to populate the SSid, Mac Address, Channel,etc;, but it wouldnt populate but just stay at the select network window, and I couldnt cancel.

Does it have anything to do with not broadcasting aSSID? I'll try playing with it in the future again and give you the iwlist output.

Anyway after reading all the work your putting in for everyone, this is just a little problem that I can work around. Thanks for working so hard in you spare time. You are a very patient fellow
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 02 Oct 2008, 21:06    Post subject:  

The new Kernel has a completely new architecture for wifi.

The kernel developers started a new project for that.
It offers manufacturers, that free developers write new kernelmodules, if they are sent technical informations from the manufacturers.
This architecture shall get rid of problems with old external modules from manufacturers.

I think that started around a year ago, so the older kernels do not contain these new drivers, and also cannot be upgraded, as far as I know.

So if your old kernel has no support for a chipset, you must upgrade the whole kernel.
For Puppy, this means upgrading to a newer version of Puppy, as the kernel itself can not simply be upgraded with a pet.
For Muppy, I tried to upgrade the existing version with the new kernel.
This seems to work, there are just minor glitches, like that you must create a savefile, or that german äöüß are no longer visible in textmode (what worked with 2.6.21.7). I will try to solve that too this weekend.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
zgp152


Joined: 08 Nov 2007
Posts: 115

PostPosted: Fri 03 Oct 2008, 05:57    Post subject: Comments on using the wizard and ndiswrapper, bcm43xx  

I succeeded with ndiswrapper. Very Happy

1) I went through the ndiswrapper process again in Muppy. In the end of the process the dialog was showing only "unload" and "cancel" as the choices. I decided to select "cancel". I propose that it were renamed "Keep" or "Keep loaded" since it then would tell better what it does. Also, IMHO the added driver or SW layer should be shown in the interface list below the previous ones, as an alternative at least.

I went through the autoprobe process. In the end, the dialog showed that 3 drivers were loaded: B44 Broadcom (for ethernet cable I/F), BCM43xx, ndiswrapper. Before seeing this I was not so sure about it. I saved the profile, since I had read in some place that it helps. I had to add MAC address manually . The rest was then pretty easy. So this setup could bear the coexistence of alternative drivers so that the connection worked.

2) I tried to repeat the same thing with Dingo 4.0. Everything was identical up to the point that ndiswrapper was loaded with the two other drivers. The profile could be well saved and loaded well again, MAC included, so there is an improvement over that of Muppy (3.01 based). However this setup with alternate drivers loaded together did not work.

It seemed that skiplisting was the way to go next.

3) In Dingo, I edited /etc/rc.d/MODULESCONFIG by adding bcm43xx in the end (+one space). At the next wizard session there was no eth1 anymore. After going through the ndiswrapper cycle, I launched searching for new interfaces, and presto, there was wlan0. The name of the I/F was a bit misleading (1390 something). Going forward, the wizard did its job and I was finally connected.

Wow, such an exhaustive effort. On repeated boots, the system autoconnects now in Dingo. Amazing.

In the beginning I expected that using ndiswrapper creates a file that looks like another driver and appears in the list in the same way. That the SW was loaded was not reflected in the GUI in such a comprehensive manner that it would have guided me. The visibility of ndiswrapper and the underlying windriver perhaps could be improved for better usability.

4) In Muppy, I made the same things. Skiplist amendment, then ndiswrapper addition and so on. The wizard in Muppy kept I/F name eth1 and did not change it to wlan0.

The only worry with Muppy and 3.01 is that the MAC address is not saved in the profile. If there is a way to add something (by txt editing) in any of the files to ensure (1) that MAC address is included and (2) to make this 3.01 based system autoconnect, I could try that, while waiting for a 4.1-based Muppy.

Rgds and thnx to all contributors,
Timo

PS added afterwards:
Just to make sure that I am not misleading anyone, my Dingo 4.0 was patched with the improved wizard coming into 4.1rc.
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 04 Oct 2008, 18:19    Post subject:  

I use a AVM Fritz wlan USB stick , see:
http://www.murga-linux.com/puppy/viewtopic.php?p=237001#237001

It works in the wizard, but the connection is not established, when Puppy starts.

After some research I found out this:
/etc/rc.d/rc.network
testInterface()

Line 94,
Code:
testInterface()
{
   #INTERFACE="$1"


I had to add this modification:
Code:
testInterface()
{
   #INTERFACE="$1"

#MU
ifconfig "$INTERFACE" | grep ' UP '
if [ $? -eq 0 ];then #=0 if found
   echo "yes"
   return 0
fi
#MU-end


The reason is, that the code afterwards, does not detect a network.
It uses:
Code:
ifplugstatus "$INTERFACE" | grep -F -q 'link beat detected'


Here is what I get from console, though the network is up, and I am browsing the web:
Quote:
# ifplugstatus wlan0
wlan0: unplugged


The code I added, was taken from
net-setup.sh, where the detection works correctly.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 05 Oct 2008, 05:27    Post subject:  

package removed, newer version available.
_________________
my recommended links

Last edited by MU on Sat 11 Oct 2008, 17:35; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 6861
Location: Perth, Western Australia

PostPosted: Sun 05 Oct 2008, 05:50    Post subject:  

MU, Dougal,
MU, I have just seen your patch, haven't looked closely at it. Dougal, do you agree that I should update the Network Wizard with this patch?

I'm planning to build 4.1 final in about 12 hours from now, then several hours intensive testing on my PCs, then if all looks ok will release it.

So, if you would like the Network Wizard to have any mods from the Oct 1st version, kindly let me know within the next 10 - 12 hours (I'll check this thread).

_________________
http://bkhome.org/blog2/
Back to top
View user's profile Send private message Visit poster's website 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Sun 05 Oct 2008, 05:55    Post subject:  

MU wrote:
I had to add this modification:
Code:
testInterface()
{
   #INTERFACE="$1"

#MU
ifconfig "$INTERFACE" | grep ' UP '
if [ $? -eq 0 ];then #=0 if found
   echo "yes"
   return 0
fi
#MU-end


The reason is, that the code afterwards, does not detect a network.
It uses:
Code:
ifplugstatus "$INTERFACE" | grep -F -q 'link beat detected'


Here is what I get from console, though the network is up, and I am browsing the web:
Quote:
# ifplugstatus wlan0
wlan0: unplugged

Well, the problem is that ifconfig showing "UP" doesn't mean much... any interface that you run "ifconfig $INTERFACE up" on will show it, so if, for example, I relied on that, rc.network would assume my unplugged ethernet interface is in fact plugged in and go on to start dhcpcd...
That ifplugstatus code is something Barry and Rarsa worked out (note that it uses two versions of ifplugstatus) to try and make sure live networks are detected...

There is another way to try and see if it's plugged: ethtool and (with some HW) mii-tool can be used, but you'll have to try them out and see if they work for you.

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Sun 05 Oct 2008, 05:59    Post subject:  

BarryK wrote:
MU, I have just seen your patch, haven't looked closely at it. Dougal, do you agree that I should update the Network Wizard with this patch?

No, as I mention above, your ifplugstatus routine is a must...

Quote:
I'm planning to build 4.1 final in about 12 hours from now, then several hours intensive testing on my PCs, then if all looks ok will release it.

I should be able to post a little update within the the next 9-10 hours.

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 05 Oct 2008, 06:04    Post subject:  

it should be tested first by others.
Until now, this seemed to be an issue only with the mentioned Fritz Stick.

My Linksys-Stick works as expected without patch.
Rt73 is also detected by ifplugstatus.
current rt73 discussion:
http://www.murga-linux.com/puppy/viewtopic.php?t=34078

I remember there were several reports in the past, that sticks did not connect at startup.
But I think, the latest fixes from dougal could solve that.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 05 Oct 2008, 08:33    Post subject:  

ok, the damn Fritz Stick is unusable in Muppy with the new Kernel:
http://www.murga-linux.com/puppy/viewtopic.php?p=237187#237187

However, in Dingo 4.1rc (409), it still worked, so I could run some tests.

ethtool wlan0
Code:
Settings for wlan0:
No data available


mii-tool wlan0
Code:
SIOCGMIIPHY on 'wlan0' failed: Operation not supported


These were run, while the connection was established:
route
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
169.254.0.0     *               255.255.0.0     U     0      0        0 wlan0
default         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0


So I found no solution, to check, if the network is up.
"route" just works, when already a IP was assiged with dhcpcd.

Anyway, as this stick is "tainted" (unfree, requires to set the license from "Propriatary" to "GPL" in the source, a "bad hack"), we should not focus on this stick.
Even if it is wide-spread in germany.
But the long-term support is not guaranteed, as the manufacturer AVM was given a year time to contribute to the new kernel architecture.
OpenSuse meanwhile even removed it completely.

So forget about my patch, if someone really relies on this stick (because he has it already), then he must patch on his own.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Sun 05 Oct 2008, 15:44    Post subject:  

Another update:
- Add PATH to top of rc.network (in case it is run by acpid etc.).
- Fix the testInterface code in rc.network (up the sleep times to 2 seconds,
like in the wizard) and add use of ethtool (if available).
- In the "Load module" dialog, add a "Ndiswrapper" tab, for better visibility.
- When choosing to use Ndiswrapper, first offer to unload the Linux driver
attached to that hardware!
- Rewrite the Ndiswrapper file selector gui in gtkdialog.

Note that BLACKLIST_FILE has to be modified at the top of net-setup.sh in
order for blaklisting to work.

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 06 Oct 2008, 08:26    Post subject:  

package removed, newer version available.
_________________
my recommended links

Last edited by MU on Sat 11 Oct 2008, 17:35; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
cornbreadly

Joined: 15 Jun 2008
Posts: 8

PostPosted: Mon 06 Oct 2008, 13:58    Post subject:  

I am having some newb issues with 4.1rc and i was referred to this thread for some help.

I have an Airlink101 AWLC4130 wireless card (Atheros AR5212 chipset) that i am trying to get working. I upgraded to 4.1rc from macpuppy 4.0 because 4.1rc supports the madwifi .94 drivers and puppy 4.0 does not.

I get alot further in this verision of puppy. Before in macpuppy the interface atho was recognized but i couldn't scan and find any networks. Now in 4.1, I can scan and find networks, but i just can't connect. My home is WPA protected and wpa_supplicant is nowhere to be found.

Also, in 4.1rc, the ath0 interface is the only one recognized. eth0 and wlan0 that were present in macpuppy dont show up and I tried autoprobing. Nothing. All cables are connected.

My troubles are explained at length here.

I would appreciate any help.
Back to top
View user's profile Send private message 
cornbreadly

Joined: 15 Jun 2008
Posts: 8

PostPosted: Mon 06 Oct 2008, 13:58    Post subject:  

please ignore double post... sorry
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 22 of 40 [596 Posts]   Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23, 24, ..., 38, 39, 40 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1040s ][ Queries: 12 (0.0194s) ][ GZIP on ]