Main

Linux Archives

December 12, 2006

Get the Broadcom BCM4311 to work in Linux

So I was pulling my hair for a bit on this. Now to start off the driver for this card is still under major development along with the whole wireless subsystem in the Linux kernel so this could become outdated soon.

So first lets download the kernel. I am gonna use kernel 2.6.18.1 since it just seems to work. There are a few upstream patches for .19 but they locked up my cpu.

cd /usr/src
wget http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
wget ftp://lwfinger.dynalias.org/patches/combined_2.6.20.patch

Now lets extract the kernel

tar xfj linux-2.6.20.tar.bz2
ln -s linux-2.6.20 linux

Ok now lets apply the patches

cd linux
patch -p1 < ../combined_2.6.20.patch

Now you want to compile your kernel.. I will not go into this.. there are plenty of howtos that describe it. Now you have to install the bcm43xx-fwcutter package

Now you want to get the driver. You have to use v3 of it.. I will post the one I used. From what I know it shouldn't matter if you have a 64 or 32 bit system. I could be wrong though. You want to run cutter as root

cd /tmp
wget http://www.zcentric.com/brcmDrv340rc100a.zip
unzip brcmDrv340rc100a.zip
bcm43xx-fwcutter -w /lib/firmware /tmp/bcmwl5.sys

Once the kernel is installed and you rebooted you should be able to boot into the new kernel and the light for the wireless should turn on which means the radio is on. The following command should return APs

iwlist scan ethX

If for some reason it doesn't work.. try to extract the firmware into the kernel version

mkdir /lib/firmware/2.6.20
bcm43xx-fwcutter -w /lib/firmware/2.6.20 /tmp/bcmwl5.sys

January 16, 2007

Make the HP dv2120us webcam work in Linux

So here is a little quick little howto on how to get the dv2120us webcam working in Linux.

I am using the 2.6.20-rc5 kernel, which at the time of writing this is the latest release candidate kernel. It was not picked up in Linux but a lspci produced the following

03:09.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)

I think that is it.. I am not sure if it sees it as a usb or pci device or not. The module uses usbcore so its beyond me. So to get it working I ran the following commands

svn checkout http://svn.berlios.de/svnroot/repos/linux-uvc/
cd linux-uvc/linux-uvc/trunk/
make
make install
modprobe uvcvideo

You should see something like this in your dmesg once you load it

[ 1022.224000] usbcore: deregistering interface driver uvcvideo
[ 1045.764000] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
[ 1045.764000] usbcore: registered new interface driver uvcvideo
[ 1045.764000] USB Video Class driver (v0.1.0)


Also on a side not it sees it as a v4l2 device and not a v4l device

January 25, 2007

Remove Leading 0's in Bash

So you have a var you want to remove leading 0's on.. well do the follwing

mzupan@mzupan-desktop:~$ var=00014
mzupan@mzupan-desktop:~$ let var="10#$var"
mzupan@mzupan-desktop:~$ echo $var
14
mzupan@mzupan-desktop:~$

About Linux

This page contains an archive of all entries posted to My Random Blog in the Linux category. They are listed from oldest to newest.

Life is the previous category.

Work is the next category.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33