Moblin v2.1 WiFi Installation (S10)

All versions of Linux OS

Moderator: SilverZero

Moblin v2.1 WiFi Installation (S10)

Postby SilverZero » Wed Nov 11, 2009 2:40 pm

I'm currently running a triple boot on my S10 Classic with XP, Mint, and Moblin v2.1. I really dig the Moblin project for its minimalism, but as many of you know, it doesn't play with the S10's Broadcom wireless card out of the box. Fortunately, it's easy to fix.

You will need:
1) A wired Internet connection - This might be the sticky part for a lot of people. In my case, I don't have access to the router itself, but I do have another laptop with a working WiFi connection AND an ethernet port. I connect my LAN cable from my S10 to my laptop's open port, enable Internet Connection Sharing on the laptop, and my Moblin install is on the web! (Of course, if you have a router or modem, just plug directly into that.) I take full credit for the ICS workaround. ;)

2) Moblin v2.1 installed - Get the Live image, build it to USB, and install it.

3) Your terminal chops . . . because here we go!

First, test that you're really online with the S10 Moblin system - try the Internet tab on the toolbar. If you are, you're ready to rock. From the Moblin toolbar, go to the Applications icon, scroll down to Accessories, and open the Terminal. (And yes, I agree: It should be in the System Tools menu, but whatever.) I did the "stupid" thing and just logged in as root for these next steps

Code: Select all
su - root   --- note that it's "su SPACE dash SPACE root"
(your password)


but you can sudo your way through every line if you want to.

Next we'll need to install some tools, compilers, and the kernel development package. Blindly enter the following into your Terminal (precede each line with "sudo" if you didn't log in as root first):

Code: Select all
yum install rpmdevtools
yum groupinstall “Development Tools”
yum install kernel-netbook-devel


Each set will take anywhere from a few seconds to a few minutes to download and install. Now we'll download the Broadcom driver (or, rather, a pre-made package that includes it):

Code: Select all
wget http://slaine.org/files/moblinv2/wl-kmod-5.10.91.9.3-1.moblin.src.rpm


And build it:

Code: Select all
rpmbuild --rebuild --target=i586 wl-kmod-5.10.91.9.3-1.moblin.src.rpm


And install it:

Code: Select all
rpm -ivh ~/rpmbuild/RPMS/i586/wl-kmod-5.10.91.9.3-1.moblin.i586.rpm


(If you're really crafty, you'll just type the first few letters of a command or file path and then hit the Tab key to magically enter the rest!)

No typos, errors, or smoke? Great! Then let's activate the new module we just installed:

Code: Select all
modprobe wl


At this point, I was able to exit the terminal (just type "exit" and hit enter, then do it again) and go back to the Network icon in my Moblin toolbar, turn off the "Wired" connection toggle switch and turn on the "WiFi" switch, which is no longer "Unavailable." Nifty. Hopefully you'll be able to do the same. My in-range wireless networks were in the left pane, which confirmed that my WiFi radio was working correctly. If you've got the same results, remove your LAN cable, check that it all works, and get on with your life. :)

FINE PRINT: I didn't develop this method at all, it's totally reprinted without permission from this blog post at Slaine.org, except for the modprobe bit, which came from a comment by silvari at the Moblin forums. And I found those via Jeff's blog post at his blog. And I found that from Google. :)
User avatar
SilverZero
Moderator
 
Posts: 1374
Joined: Wed Apr 08, 2009 3:47 pm
Location: The Great Northwest
Color and Model: Sold
OS(s) installed: All of them

Advertisement

Re: Moblin v2.1 WiFi Installation (S10)

Postby pseudo » Thu Nov 12, 2009 2:48 am

Brilliantly concatenated Silver... nice work.

I especially like this bit!

SilverZero wrote:Blindly enter the following into your Terminal
IdeaPad S10e, Black - Ubuntu Lucid Lynx
Crucial 2GB RAM|OCZ Vertex 32Gb SSD
pseudo
Expert
 
Posts: 258
Joined: Sun Jun 28, 2009 1:44 am
Location: London, UK
Color and Model: S10e UK version - Black
OS(s) installed: Ubuntu - Lucid Lynx

Re: Moblin v2.1 WiFi Installation (S10)

Postby jssepos » Fri Jan 08, 2010 1:46 pm

So here is the issue, Slaine took down his files, and thus, I have found no way to get my wireless working. I have been playing around with Moblin a lot in the past couple days and like it a lot, minus the fact that WiFi doesn't work. Is there any other solution? I will say I am somewhat desperate here, anyone care to help? Thanks so much!
jssepos
Beginner
 
Posts: 17
Joined: Mon Jan 05, 2009 2:19 am
Color and Model: Black S10 160GB 1GB RAM
OS(s) installed: Ubuntu 9.04

Re: Moblin v2.1 WiFi Installation (S10)

Postby SilverZero » Fri Jan 08, 2010 9:12 pm

jssepos wrote:So here is the issue, Slaine took down his files, and thus, I have found no way to get my wireless working. I have been playing around with Moblin a lot in the past couple days and like it a lot, minus the fact that WiFi doesn't work. Is there any other solution? I will say I am somewhat desperate here, anyone care to help? Thanks so much!


I just checked and the source RPM is still available. Check your typing, maybe?

Or you could install Mandriva One 2010 and the Moblin desktop that they built for it, but it's not as quick-starting (although it is built with a full Mandriva system under it and the wifi works OOTB).
User avatar
SilverZero
Moderator
 
Posts: 1374
Joined: Wed Apr 08, 2009 3:47 pm
Location: The Great Northwest
Color and Model: Sold
OS(s) installed: All of them

Re: Moblin v2.1 WiFi Installation (S10)

Postby jssepos » Sat Jan 09, 2010 12:44 pm

Ok, I will try again, though when I had typed all that in the last time it said 404 Not Found. Secondly, where it says 'target' do I need to provide a file path? If so that is also where I was screwing up (code is not my strong suit) where does it download the file to if that is the case?
jssepos
Beginner
 
Posts: 17
Joined: Mon Jan 05, 2009 2:19 am
Color and Model: Black S10 160GB 1GB RAM
OS(s) installed: Ubuntu 9.04

Re: Moblin v2.1 WiFi Installation (S10)

Postby jssepos » Sat Jan 09, 2010 2:10 pm

Ok, so here is the deal, I got the files through terminal, an I tried building them, but I get these errors,

warning" user glen does not exist - using root ---- Get this 10 times at the beginning.

Then a whole bunch of code, no errors, lastly this right at the end:

error: Bad exit status from /var/tmp/rpm-tmp.JmnJg0 (%build)

THEN

RPM build errors:
user glen does not exist - using root --- again like 10 times

And due to this, the last step doesn't work and gives me an error saying that no such file or directory exists.

Any clue? Thanks for all your help, hopefully you can guide me to success!
jssepos
Beginner
 
Posts: 17
Joined: Mon Jan 05, 2009 2:19 am
Color and Model: Black S10 160GB 1GB RAM
OS(s) installed: Ubuntu 9.04

Re: Moblin v2.1 WiFi Installation (S10)

Postby SilverZero » Sat Jan 09, 2010 3:48 pm

jssepos wrote:Ok, so here is the deal, I got the files through terminal, an I tried building them, but I get these errors,

warning" user glen does not exist - using root ---- Get this 10 times at the beginning.

Then a whole bunch of code, no errors, lastly this right at the end:

error: Bad exit status from /var/tmp/rpm-tmp.JmnJg0 (%build)

THEN

RPM build errors:
user glen does not exist - using root --- again like 10 times

And due to this, the last step doesn't work and gives me an error saying that no such file or directory exists.

Any clue? Thanks for all your help, hopefully you can guide me to success!


Did you do the "su" step at the beginning? It should just work if you follow the directions as they're written, no experience necessary.
User avatar
SilverZero
Moderator
 
Posts: 1374
Joined: Wed Apr 08, 2009 3:47 pm
Location: The Great Northwest
Color and Model: Sold
OS(s) installed: All of them

Re: Moblin v2.1 WiFi Installation (S10)

Postby jssepos » Sat Jan 09, 2010 3:53 pm

I sure did do that at the beginning. Can I start over with no problems? Or do I need to start from scratch install?
jssepos
Beginner
 
Posts: 17
Joined: Mon Jan 05, 2009 2:19 am
Color and Model: Black S10 160GB 1GB RAM
OS(s) installed: Ubuntu 9.04

Re: Moblin v2.1 WiFi Installation (S10)

Postby jssepos » Sat Jan 09, 2010 4:57 pm

So, here is what I get: (Mind you this is after a fresh install.)

Code: Select all
rpmbuild --rebuild --target=i586 wl-kmod-5.10.91.9.3-1.moblin.src.rpm
Installing wl-kmod-5.10.91.9.3-1.moblin.src.rpm
warning: user glen does not exist - using root
warning: group glen does not exist - using root
warning: user glen does not exist - using root
warning: group glen does not exist - using root
warning: user glen does not exist - using root
warning: group glen does not exist - using root
warning: user glen does not exist - using root
warning: group glen does not exist - using root
warning: user glen does not exist - using root
warning: group glen does not exist - using root
Building target platforms: i586
Building for target i586
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fsPyMj
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/SOURCES
++ basename http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ file1=hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ '[' '!' -f hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz ']'
+ wget --timeout=5 http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
--2010-01-09 18:53:12--  http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
Resolving www.broadcom.com... 208.70.88.55
Connecting to www.broadcom.com|208.70.88.55|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 604412 (590K) [application/x-gzip]
Saving to: `hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz'

100%[===============================================================>] 604,412      195K/s   in 3.0s   

2010-01-09 18:53:15 (195 KB/s) - `hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz' saved [604412/604412]

+ cd /root/rpmbuild/BUILD
+ rm -rf wl-kmod-5.10.91.9.3
+ /bin/mkdir -p wl-kmod-5.10.91.9.3
+ cd wl-kmod-5.10.91.9.3
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
++ basename http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ source_arch32=hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ mkdir wl-kmod-5.10.91.9.3-src
+ pushd wl-kmod-5.10.91.9.3-src
~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3/wl-kmod-5.10.91.9.3-src ~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3
+ tar xzf /root/rpmbuild/SOURCES/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ popd
~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.AAeBbR
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd wl-kmod-5.10.91.9.3
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -fasynchronous-unwind-tables'
+ export CFLAGS
+ LD_AS_NEEDED=1
+ export LD_AS_NEEDED
+ pushd wl-kmod-5.10.91.9.3-src
~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3/wl-kmod-5.10.91.9.3-src ~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3
++ uname -r
++ pwd
+ /usr/bin/make -C /lib/modules/2.6.31.5-10.1.moblin2-netbook/build M=/root/rpmbuild/BUILD/wl-kmod-5.10.91.9.3/wl-kmod-5.10.91.9.3-src modules
make: *** /lib/modules/2.6.31.5-10.1.moblin2-netbook/build: No such file or directory.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.AAeBbR (%build)


RPM build errors:
    user glen does not exist - using root
    group glen does not exist - using root
    user glen does not exist - using root
    group glen does not exist - using root
    user glen does not exist - using root
    group glen does not exist - using root
    user glen does not exist - using root
    group glen does not exist - using root
    user glen does not exist - using root
    group glen does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.AAeBbR (%build)


This was after the rpmbuild code just to let you know, and even if I try the installation code, it won't work of course.

Lastly (for now) should I be updating the system before, after, or never? So that's it for now, where I am stuck. And thank you again for your help, this is why the forum is so great! Thanks!
jssepos
Beginner
 
Posts: 17
Joined: Mon Jan 05, 2009 2:19 am
Color and Model: Black S10 160GB 1GB RAM
OS(s) installed: Ubuntu 9.04

Re: Moblin v2.1 WiFi Installation (S10)

Postby SilverZero » Sat Jan 09, 2010 11:28 pm

jssepos wrote:So, here is what I get: (Mind you this is after a fresh install.)

Code: Select all
rpmbuild --rebuild --target=i586 wl-kmod-5.10.91.9.3-1.moblin.src.rpm
Installing wl-kmod-5.10.91.9.3-1.moblin.src.rpm
warning: user glen does not exist - using root
warning: group glen does not exist - using root
warning: user glen does not exist - using root
warning: group glen does not exist - using root
warning: user glen does not exist - using root
warning: group glen does not exist - using root
warning: user glen does not exist - using root
warning: group glen does not exist - using root
warning: user glen does not exist - using root
warning: group glen does not exist - using root
Building target platforms: i586
Building for target i586
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fsPyMj
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/SOURCES
++ basename http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ file1=hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ '[' '!' -f hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz ']'
+ wget --timeout=5 http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
--2010-01-09 18:53:12--  http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
Resolving www.broadcom.com... 208.70.88.55
Connecting to www.broadcom.com|208.70.88.55|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 604412 (590K) [application/x-gzip]
Saving to: `hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz'

100%[===============================================================>] 604,412      195K/s   in 3.0s   

2010-01-09 18:53:15 (195 KB/s) - `hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz' saved [604412/604412]

+ cd /root/rpmbuild/BUILD
+ rm -rf wl-kmod-5.10.91.9.3
+ /bin/mkdir -p wl-kmod-5.10.91.9.3
+ cd wl-kmod-5.10.91.9.3
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
++ basename http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ source_arch32=hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ mkdir wl-kmod-5.10.91.9.3-src
+ pushd wl-kmod-5.10.91.9.3-src
~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3/wl-kmod-5.10.91.9.3-src ~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3
+ tar xzf /root/rpmbuild/SOURCES/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz
+ popd
~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.AAeBbR
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd wl-kmod-5.10.91.9.3
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -fasynchronous-unwind-tables'
+ export CFLAGS
+ LD_AS_NEEDED=1
+ export LD_AS_NEEDED
+ pushd wl-kmod-5.10.91.9.3-src
~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3/wl-kmod-5.10.91.9.3-src ~/rpmbuild/BUILD/wl-kmod-5.10.91.9.3
++ uname -r
++ pwd
+ /usr/bin/make -C /lib/modules/2.6.31.5-10.1.moblin2-netbook/build M=/root/rpmbuild/BUILD/wl-kmod-5.10.91.9.3/wl-kmod-5.10.91.9.3-src modules
make: *** /lib/modules/2.6.31.5-10.1.moblin2-netbook/build: No such file or directory.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.AAeBbR (%build)


RPM build errors:
    user glen does not exist - using root
    group glen does not exist - using root
    user glen does not exist - using root
    group glen does not exist - using root
    user glen does not exist - using root
    group glen does not exist - using root
    user glen does not exist - using root
    group glen does not exist - using root
    user glen does not exist - using root
    group glen does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.AAeBbR (%build)


This was after the rpmbuild code just to let you know, and even if I try the installation code, it won't work of course.

Lastly (for now) should I be updating the system before, after, or never? So that's it for now, where I am stuck. And thank you again for your help, this is why the forum is so great! Thanks!


Is "glen" your normal username? Or is it something totally random?
User avatar
SilverZero
Moderator
 
Posts: 1374
Joined: Wed Apr 08, 2009 3:47 pm
Location: The Great Northwest
Color and Model: Sold
OS(s) installed: All of them

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest