LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2010, 06:48 PM   #1
nak
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Rep: Reputation: 0
Trouble installing fwcutter


I've only been using Debian 5.0.3 linux for a day and running into a problem getting my wireless connection up and running. I have been following the directions on the fwcutter site and have gotten stuck with a error that I have no idea what it is.

error:
:/home/user/b43-fwcutter-012# make
cc -Os -fomit-frame-pointer -std=c99 -Wall -pedantic -D_BSD_SOURCE -DFWCUTTER_VERSION_=012 -c -o fwcutter.o fwcutter.c
make: cc: Command not found
make: *** [fwcutter.o] Error 127

Much help would be appreciated.

oh yeah this my sound dumb but in the tutorial the next line says cd... What am I suppose to do?

Last edited by nak; 01-21-2010 at 06:56 PM.
 
Old 01-21-2010, 06:57 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Depending on precisely which Broadcom device that is, there are drivers either included in the kernel, or available right from Broadcom.

Perhaps posting for us the output from the following command:

shell# lspci

.. and maybe someone can point you in the right direction. But before much else, how thoroughly have you searched LQ? There are a number of pretty detailed threads involving Broadcom NICs and a variety of drivers, and I can recall several at least that became happily solved.

PS - You **might** have a bit of success if you type:

shell# export cc=gcc

before running your make command, but ideally, something's broken if you have to do this.
 
Old 01-21-2010, 07:08 PM   #3
nak
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
ok I didn't have gcc installed. ran command apt-get install gcc. The make command went through with no errors this time. Now I dont understand what "cd..." in the tutorial means.

My card is a BCM4306 14e4:4320

Last edited by nak; 01-21-2010 at 07:09 PM.
 
Old 01-21-2010, 07:09 PM   #4
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
If you have a wired connection, you appear to be connected to LQ somehow! you can apt-get install b43-fwcutter if you have contrib in your /etc/apt/sources.list. Then you don't need to build it yourself.

I have a bcm4306 (rev 03) on my machine, unfortunately I only have the firmware for amd64 (64 bit) but I can probably point you in the right direction.
 
Old 01-21-2010, 07:10 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
cd is the "change directory" command.

so "cd hello" will change directory into a folder named "hello" if one is in your current directory.

cd ../ will go up one level.
cd ~ will cd you to your home directory.
cd / will take you to the filesystem root.

Sasha
 
Old 01-21-2010, 07:13 PM   #6
nak
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
At first I tried the apt-get install b43-fwcutter and it didn't work. It worked for me in Ubuntu not Debian. I had to manually download and install.
 
Old 01-21-2010, 07:14 PM   #7
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
FYI, when you extract a tar.gz, it extracts into a directory named b43-fwcutter-012, you would therefore have to cd (change directory) to that directory by issuing the command cd b43-fwcutter-012. It is in that directory that you a) read the INSTALL file, and follow the instructions therein, before running the make command

Last edited by minrich; 01-21-2010 at 07:16 PM.
 
Old 01-21-2010, 07:16 PM   #8
nak
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you Grapefuitgirl I remember this command from windows, but I dont understand what directory they want me to go to or create?
 
Old 01-21-2010, 07:19 PM   #9
nak
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
the file installed into the b43-fwcutter-012 folder. I don't understand what to do? I'm completely new to this.
 
Old 01-21-2010, 07:23 PM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
There should be a README file, or an INSTALL file. If it/they are rather small, post them for us. If they're not too small, post the particular lines of instruction you are reading.
 
Old 01-21-2010, 07:28 PM   #11
nak
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Here's the tutorial from fwcutter site:


Use version 012 of b43-fwcutter.
Download, extract the b43-fwcutter tarball and build it:

wget http://bu3sch.de/b43/fwcutter/b43-fwcutter-012.tar.bz2
tar xjf b43-fwcutter-012.tar.bz2
cd b43-fwcutter-012
make
cd ..

Use version 4.150.10.5 of Broadcom's proprietary driver.
Download and extract the firmware from this driver tarball:

export FIRMWARE_INSTALL_DIR="/lib/firmware"
wget http://mirror2.openwrt.org/sources/b...0.10.5.tar.bz2
tar xjf broadcom-wl-4.150.10.5.tar.bz2
cd broadcom-wl-4.150.10.5/driver
sudo ../../b43-fwcutter-012/b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta_mimo.o

Note that you must adjust the FIRMWARE_INSTALL_DIR path to your distribution. The standard place where firmware is installed to is /lib/firmware. However some distributions put firmware in a different place.
 
Old 01-21-2010, 07:30 PM   #12
nak
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Here's the readme from the package:





BCM43XX Linux Driver Project
============================


About this software
-------------------

b43-fwcutter is a tool which can extract firmware from various source files.
It's written for BCM43xx driver files.

The project page is http://bcm43xx.berlios.de/


Usage
-----

b43-fwcutter FILE extracts the firmware from a source FILE to
the current directory, creating a directory
"b43" or "b43legacy" with files in it.
b43-fwcutter -i FILE identify the driver file; print information
but don't extract.
b43-fwcutter -w /tmp FILE extract and write firmware to /tmp.
b43-fwcutter -l prints a list of supported driver source files.

After extraction, copy the "b43" or "b43legacy" directory to your firmware
directory (usually /lib/firmware or similar, see below). Alternatively you
can use the -w option to b43-fwcutter.

Different distributions use different directories to load firmware from.
If the driver complains about missing firmware files look for the correct
directory. For some distributions you have to use /lib/hotplug/firmware
or /usr/lib/hotplug/firmware but other directories are also possible.

Because firmware file are stored in big endian, extraction doesn't depend
on the system you're using. You can use extracted firmware from any driver
on any system and also copy the extracted files to any other system (e.g.
if extraction on the target system isn't feasible.)


Where can I find some driver source files?
------------------------------------------

Please check the references at
http://www.linuxwireless.org/en/user...devicefirmware

It is recommended that you extract firmware for both b43 and b43legacy in
order to support both types of cards on your system.
 
Old 01-21-2010, 07:33 PM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Right, OK.. So, extract the archive using the "tar xjf.." command. This will produce a folder, apparently called "b43-fwcutter-012" in your current directory., So type:

shell$ cd b43-fwcutter-012

and you will now be inside that new folder.

Proceed with the 'make' command and whatever else it says.

As for the lower section of what you posted, it's the same idea. Looks like you can pretty much copy & paste those instructions into your console terminal one by one and execute them.

As for the $FIRMWARE_INSTALL_DIR, that is a variable, which by default will be null (empty). Check if you have a folder on your machine called "/lib/firmware" or "/usr/lib/firmware" and when you locate it, set the variable like so:

shell$ export FIRMWARE_INSTALL_DIR=/lib/firmware # or whatever the directory path is to the firmware directory.

Cool?

Sasha
 
Old 01-21-2010, 07:38 PM   #14
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
And, your more recent post appears to be a different part of a means to the same end, I think....
The first post (from the site) is instructions to build a driver.
The more recent post, from the documentation, is simply to install the firmware.

See how you make out with the first batch of stuff, and if stuff is still screwy or missing after that, either I or someone else actually using this stuff, such as maybe minrich who posted earlier, will try to help further.
 
Old 01-21-2010, 07:38 PM   #15
nak
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
yeah it is /lib/firmware. I just don't understand what directory I'm supposed to go to in this line:



wget http://bu3sch.de/b43/fwcutter/b43-fwcutter-012.tar.bz2
tar xjf b43-fwcutter-012.tar.bz2
cd b43-fwcutter-012
make
cd ..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
b43-fwcutter thxbai Linux - Newbie 1 08-28-2009 07:46 PM
trouble with b43-fwcutter in 8.04 twylite Ubuntu 1 06-04-2008 04:00 AM
bcm43xx-fwcutter firmware help linux4life88 Ubuntu 7 11-22-2007 08:11 AM
bcm43xx-fwcutter Chained18 Linux - Wireless Networking 9 11-21-2007 12:25 PM
How to use FwCutter with Slackware C-Sniper Slackware 2 01-13-2007 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration