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 Wed 30 Jul 2014, 05:08
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Wireless
BCM4312 and Puppy431 on Lenovo s10-2 [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [60 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
jrb


Joined: 11 Dec 2007
Posts: 1030
Location: Smithers, BC, Canada

PostPosted: Thu 17 Dec 2009, 23:02    Post subject:  BCM4312 and Puppy431 on Lenovo s10-2 [SOLVED]
Subject description: using ndiswrapper and wl.ko
 

I'm just setting up a pair of Lenovo s10-2's for my daughters for Christmas. (Ho, Ho, Ho) Sadly no luck with broadcom-5.10.91.9.3-k2.6.30.5.pet, Confused although I plan on taking another look.

I have managed to make ndiswrapper work consistently. Very Happy Here's what I did.

I placed the windows drivers in /mnt/home/bcom4312: bcm43xx64.cat, bcm43xx.cat, bcmwl5.inf, bcmwl5.sys, bcml5.sys

I went to the network wizard (connect) and clicked Internet by network or wireless LAN->load module->Ndiswrapper->Use Ndiswrapper->none

Then navigate to /mnt/home/bcom4312/bcmwl5.inf and click OK

A window opens saying "bcmwl5 : driver installed ~ (alternate driver: ssb)

Open rxvt (console) and type
Code:
# rmmod ssb"
Error: Module ssb is in use by b43
# rmmod b43
# rmmod ssb


Click the OK button in the Puppy Network Wizard: Ndiswrapper window - a window opens saying ndiswrapper has loaded successfully - Click OK

A window opens showing wlan0 - click save.

At this point you can configure wlan0 if you want, or if you have an open network you can test it with Xautoconnect.

To avoid having to go through all this again edit /root/.xinitrc. (Its a hidden file so click the eyeball in ROX) Add these 3 extra lines just before the end:
Code:
rmmod b43
rmmod ssb
modeprobe ndiswrapper

#exec $CURRENTWM
#v2.11 GuestToo suggested this improvement...
which $CURRENTWM && exec $CURRENTWM
[ -x $CURRENTWM ] && exec $CURRENTWM
exec jwm

###END###

This will get wlan0 listed in the network wizard at boot. You can use that or Xautoconnect to connect to your wireless network.

Merry Christmas, J

Last edited by jrb on Fri 18 Dec 2009, 00:03; edited 1 time in total
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8034

PostPosted: Thu 17 Dec 2009, 23:09    Post subject:  

Quote:
I'm just setting up a pair of Lenovo s10-2's for my daughters for Christmas. (Ho, Ho, Ho) Sadly no luck with broadcom-5.10.91.9.3-k2.6.30.5.pet, Confused although I plan on taking another look.

I recall someone else having a problem with this and it appeared that ssb and b43 were not being blacklisted. I use the 2.6.25 kernel version and it works well

regards

mike
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1030
Location: Smithers, BC, Canada

PostPosted: Fri 18 Dec 2009, 00:02    Post subject:  

Wouldn't you know, just when I start patting myself on the back I find someone else has a better way. (Ha, Ha, Ha) Laughing

vanchutr has a technique using wl.ko as listed here which works a treat.
Quote:
1. lsmod -> to find out if "ssb, b43 or b43legacy are loaded?"
2. If any of ssb, b43, b43legacy are loaded then you must remove them all. Use these command: #rmmod b43 - rmmod ssb ...
3. Copy wl.ko in /lib/modules/[your-kernel]/kernel/drivers/net/wireless
4. Run: #depmod -a
5. rmmod wl
(* -> recommended. I don't know why?)
6. modprobe wl
(* If system don't give anny error -> that's good. If you get anny error that means your wl.ko isn't compatible with your system kernel - Download other version of wl.ko)
7. Run network-wizard - You will see eth1 (or something like that - but not eth0)
8. Continue to choose eth1, then AUTODHCP -> OK
9. Now from menu choose Pwireless. Setup WPA or ...
10. That's all


So here's my revised strategy:
Extract wl.ko from broadcom-5.10.91.9.3-k2.6.30.5.pet. You can change the .pet to .tar.gz and click on it to extract with Xarchive. Its in /lib/modules/2.6.30.5/kernel/drivers/net

Copy it to lib/modules/2.6.30.5/kernel/drivers/net in your puppy system files.
Add these 5 lines just before the end of /root/.xinitrc:
Code:
rmmod b43
rmmod ssb
depmod -a
rmmod wl
modprobe wl

#exec $CURRENTWM
#v2.11 GuestToo suggested this improvement...
which $CURRENTWM && exec $CURRENTWM
[ -x $CURRENTWM ] && exec $CURRENTWM
exec jwm

###END###


This brings up eth1 in the network wizard which you can configure for your wireless network.

Have an even Merrier Christmas, J

mikeb,
b43 blacklists OK but ssb is in initrd.gz and apparently can't be headed off in time.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8034

PostPosted: Fri 18 Dec 2009, 05:41    Post subject:  

Quote:
b43 blacklists OK but ssb is in initrd.gz and apparently can't be headed off in time.

ah ha....I wondered why there was a problem cause in the older kernel it just works as is...maybe give some feed back to tempestous...perhaps he could alter the pet to add lines to /etc/rc.d/rc.local to remove the modules...

and you have a good Christmas too...We just got a pile of snow here Smile

mike
ps depmod only needs running as a one off...it locates new modules for the kernel.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1030
Location: Smithers, BC, Canada

PostPosted: Sun 20 Dec 2009, 00:02    Post subject:  

mikeb wrote:
perhaps he could alter the pet to add lines to /etc/rc.d/rc.local to remove the modules...

Initially I had trouble getting ndiswrapper to run from /etc/rc.d/rc.local so I went to /root/.xinitrc.

I went back to rc.local and tried loading the wl.ko module. It works no problem. So you should add these 5 lines to /etc/rc.d/rc.local:
Code:
rmmod b43
rmmod ssb
depmod-FULL
rmmod wl
modprobe wl

I left depmod -a in there because it doesn't hurt, eh?

I am attaching a .pet which will add the wl.ko module and add those lines to rc.local. Also has a puninstall that will remove them if you take out the .pet.
bcm4312-wl-k2.6.30.5v2.pet
Description  wifi driver for broadcom4312 on Lenovo s10-2
pet

 Download 
Filename  bcm4312-wl-k2.6.30.5v2.pet 
Filesize  541.12 KB 
Downloaded  772 Time(s) 

Last edited by jrb on Sun 20 Dec 2009, 13:13; edited 2 times in total
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5218
Location: Australia

PostPosted: Sun 20 Dec 2009, 01:20    Post subject:  

It's good that a workaround like this can achieve a happy result, but the process is really quite ugly.
And since the script mentioned here is run late in the boot sequence, I suspect it disables the ability of Puppy's Network Wizard to automatically configure the wifi connection at bootup ...
although this issue is not mentioned in this thread??

jrb wrote:
Extract wl.ko from broadcom-5.10.91.9.3-k2.6.30.5.pet. You can change the .pet to .tar.gz and click on it to extract with Xarchive. Its in /lib/modules/2.6.30.5/kernel/drivers/net

That's quite pointless.
My broadcom-5.10.91.9.3-k2.6.30.5.pet already installs the wl kernel module to that location, anyway. You're making a simple process (dotpet installation) quite complex.

jrb wrote:
I left depmod -a in there because it doesn't hurt, eh?

Apart from taking extra startup time, yes, it can hurt because "depmod" is a symlink to busybox, which has been reported to fail under the 2.6.30.5 kernel. The "depmod-FULL" command works better, and this command is (now) run when the dotpet is originally installed.

I can't guarantee it will work, but a much better solution would be to install the "modules-preference" fix contributed by forum member rerwin here -
http://www.murga-linux.com/puppy/viewtopic.php?p=371659#371659
This should enable Puppy 4.3.x to load the preferred driver, which is specified within the new driver dotpet package.

And just to clarify -
the driver under discussion in this thread is the proprietary Broadcom "wl" driver, available here
http://www.murga-linux.com/puppy/viewtopic.php?p=346454#346454
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1030
Location: Smithers, BC, Canada

PostPosted: Sun 20 Dec 2009, 02:04    Post subject:  

Hi tempestuous,
Thanks for your reply. Pardon my ignorance, I was simply looking for a workaround for a problem that seems to affect a number of puppy users.

I utilized vanchutr's code because that's all I've been able to make work so far.

Quote:
The "depmod-FULL" command works better,

I shall try that.

Quote:
a much better solution would be to install the "modules-preference" fix

Didn't your broadcom-5.10.91.9.3-k2.6.30.5.pet include the "modules preference" fix? I tried it with no success.

I shall be glad to withdraw my .pet if you can supply one that works better.

Looking forward to your reply, J

Edit: If it is not possilbe to get the "modules preference" fix working, do you think I should rebuild pup-431.sfs without b43.ko and initrd.gz without ssb.ko rather than rmmod them in /etc/rc.d/rc.local ?
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5218
Location: Australia

PostPosted: Sun 20 Dec 2009, 02:41    Post subject:  

jrb wrote:
Didn't your broadcom-5.10.91.9.3-k2.6.30.5.pet include the "modules preference" fix?

No, my dotpet includes the correct "PREFLIST" configuration (which can be seen in BootManager)
but Puppy's module loading mechanism (pup_event/udev) fails to implement this preference configuration in the manner it was supposed to.
rerwin's pup_event_backend_modprobe_fix_to_p43x-1.pet has apparently fixed this underlying mechanism.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8034

PostPosted: Sun 20 Dec 2009, 05:26    Post subject:  

No notifications........
Thanks for getting all that sorted tempestuous ..another new member is in need of that module too and that pet you made worked a treat on puppy 4.12..totally hands off and I would go with him on this one jrb...he is the wireless module king Smile .

Thanks for the info on depmod and busybox....I didn't realise. I had noticed other redundant busybox links...indeed why have both?

regards

mike
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1030
Location: Smithers, BC, Canada

PostPosted: Sun 20 Dec 2009, 13:09    Post subject:  

Sorry tempestuous and mikeb, Sad
I uninstalled my .pet and tried rerwin's pup_event_backend_modprobe_fix_to_p43x-1.pet with broadcom-5.10.91.9.3-k2.6.30.5.pet. No wireless found. I opened a console and went through the rmmod, etc procedure and there was eth1.

I have revised my .pet to include depmod-FULL and it works very well.

Barring any further suggestions I think I will rebuild pup-431.sfs and initrd.gz and see if that works better.

Thanks, J
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1030
Location: Smithers, BC, Canada

PostPosted: Sun 20 Dec 2009, 14:19    Post subject:  

I just removed b43.ko and b43legacy.ko from pup-431.sfs and added wl.ko. Likewise I removed ssb.ko.gz from initrd.gz.

I booted pfix=ram and eth1 was there in the network wizard waiting for me.

If anyone would like a new pup-431wl.iso let me know. I suspect I may make a few more changes in it before I'm done.

Cheers, J
Back to top
View user's profile Send private message 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Sun 20 Dec 2009, 14:38    Post subject:  

jrb wrote:


If anyone would like a new pup-431wl.iso let me know. I suspect I may make a few more changes in it before I'm done.

Cheers, J


My neighbor has a s10 e Ideapad with Leopard installed.
He likes Puppy and always saves a little room on his drives
for it. Having one with wireless would be great.

_________________

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send private message 
Roy

Joined: 31 Dec 2008
Posts: 442

PostPosted: Sun 20 Dec 2009, 14:59    Post subject: BCM4312 and Puppy431  

jrb,

Sign me up for a copy.

You might want to fix the FSCK deficiency noted in the 4.31 Bugs thread, too.... involves unpacking, editing, and re-packing intrd.gz (working from personal memory, here).

If I get a chance, I will re-visit this post in the near future to post a link.

-Roy
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8034

PostPosted: Sun 20 Dec 2009, 16:03    Post subject:  

Yes wl gets autoloaded if b43/ssb are not there or won't load...nimblex works that way. I think b43 and such are included as they are GPL sort of thing and wl is proprietry

mike
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1030
Location: Smithers, BC, Canada

PostPosted: Sun 20 Dec 2009, 16:59    Post subject:  

Roy,
Found this in "Bugs". Fixed it and repacked. Still boots with eth1 so I'm happy.

PaulBx1 wrote:
"puppy pfix=fsck" still does nothing.

Pizzasgood researched this problem, apparently a line commented out in init.gz that shouldn't be. See this thread:
http://www.murga-linux.com/puppy/viewtopic.php?t=41918

The commented line is: Code:
#fsck_func loop1 ext2 $PUPSAVEFILE #v3.01. no, removed, takes ages, and won't mount afterward.

Uncomment it, and it works fine, according to Pizzasgood.


Any other suggestions?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [60 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking » Wireless
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.1017s ][ Queries: 12 (0.0051s) ][ GZIP on ]