May 31
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Update, 17/08/08: There is no longer any need to switch to the Experimental branch, if you are using the following Microdia cameras:

0c45:6027, 0c45:608f, 0c45:60ec, 0c45:60fe, 0c45:60c0, 0c45:613b, 0c45:613c, 0c45:624e, 0c45:624f, 0c45:6242, 0c45:6253, 0c45:6260, 0c45:6270, 0c45:627b, 0c45:8105

Keep up to date on the current supported webcams: http://groups.google.com/group/microdia/web/project-status?hl=en

The webcam (Acer Orbicam) on my Acer Aspire 5052 has been somewhat of a bane - with no drivers available, it has been one of the last stumbling blocks of getting all of my hardware working in Linux (the Ubuntu 8.04 Distro, Hardy Heron, in my case). That is until I ambled across, quite by accident, the Microdia Google Group. These guys are the epitome of Open Source development in action - a group of widely distributed people who are collaborating to solve a common problem: to get the Microdia webcams supported under Linux. And they’re doing a fantastic job so far.

Note: I should first mention that the drivers are still heavily under development, and although they are not (for some webcams) to the point where they can be used for Skype, for example, major progress has been made, and there is now finally communication with my webcam, to the point where I can successfully output video to mplayer. Therefore, this post is not quite yet a HowTo on getting a Microdia webcam fully function, but a step towards helping people installing and testing the drivers under development.

So, here’s how I’ve got to the stage of seeing myself in mplayer…

Information Gathering

Firstly, I had to determine i) whether or not my Webcam was in fact a Microdia camera, and ii) the model number, so in a Terminan, I ran:

lsusb

Which output, amongst other information about the rest of my USB devices:

Bus 003 Device 002: ID 0c45:6260 Microdia

confirming that my Acer Orbicam is a Microdia device. The two hex values 0c45:6260 represent the Vendor ID and Product ID respectively - 0c45 being Microdia, and 6260 the Product itself. In order to create my meagre contribution to the Microdia Group, I had to gather some more information about the device’s bridge and sensor. Firstly, I needed the USB Device Descriptors, which were obtained by running:

sudo lsusb -d 0c45:6260 -v > ~/Desktop/0c45_6260_device_descriptors.txt

I then needed to discover the Bridge and Sensor types, which thankfully could be found in the Windows driver file, snp2std.inf:

%USBPCamDesc% = SN.USBPCamVGA,USB\VID_0c45&PID_6260 ; SN9C201 + OV7670ISP

Which tells me:
Bridge: SN9C201
Sensor: OV7670

The full guide to gathering information for your webcam can be found at the Microdia group, here.

Driver Compiling and Installing

The driver code is controlled by git, which I installed by running:

sudo apt-get install git-core gitk git-gui git-doc curl

Also, before downloading and installing the drivers, I ran:

sudo apt-get install kernel-package linux-source build-essential

To grab the Linux source etc. Once finished, I created a directory to set up my local git repository and downloaded the driver code:

cd ~/Documents
mkdir webcam
cd webcam
git clone http://repo.or.cz/r/microdia.git

The final command executes git, and tells it to clone the remote repository. The files are downloaded to a sub directory called microdia, from which I ran the rest of the commands:

cd microdia

Note: If you have any of the following Microdia cameras, you’ll need to switch to the Experimental branch:

6242, 624e, 624f, 6270, 627b, 62bb, 145f:013d, 045e:00f4

Switch to the Experimental branch by running:

git checkout --track -b v4l2-experimental origin/v4l2-experimental

I then compiled the code:

make

and received this error, but it’s not important:

make: ctags: Command not found
make: *** [ctags] Error 127

Once compiled, the module can be inserted to the kernel for testing:

sudo insmod ./microdia.ko

I also received the following error:

insmod: error inserting ‘microdia.ko’: -1 Unknown symbol in module

so had to run the following first:

sudo modprobe videodev
sudo modprobe compat-ioctl32

and then I could insert the module:

sudo insmod ./microdia.ko

Finally, to test, I ran:

mplayer tv:// -tv noaudio:driver=v4l2:width=640:height=480:outfmt=yuy2:device=/dev/video0:fps=30

you may need to change /dev/video0 to /dev/video1 - also, if you don’t have mplayer, it needs installing:

sudo apt-get install mplayer

The only thing is… it’s currently a mirror image, hehehe:

References

  1. Microdia, Google Group
  2. Full list of currently supported (and unsupported) Microdia Webcams
  3. How to gather information on your webcam
  4. Using git with Microdia
  5. Testing the Microdia driver
  6. PATCH: v4l-experimental support for 6260 (3rd try) Thread

written by Hodge \\ tags: , , ,

Feb 23
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

There are some great posts in forums and other blogs about getting the Broadcom 43xx Wireless card working in Ubuntu, which really helped me get on the right road to setting mine up (see the end of this post). However, I’m running 64 Bit Ubuntu on my Acer Aspire 5052, so I had a little trouble finding the correct Windozzze drivers to use with ndiswrapper. The drivers can be downloaded from this post, if anyone needs them - Broadcom 43xx Windows 64 Bit drivers.

This is the method I used to get my Wireless up and running, which is a combination of a few different posts:

First, open a terminal window (Applications -> Accessories -> Terminal), then run:
lspci | grep Broadcom
You should see something along the lines of:
08:04.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
If you don’t, stop reading now! If you do, then continue…

Download the drivers and extract them to your Desktop, or wherever you want:
tar -zxvf broadcom-64bit-win-drivers.tar.gz
You should now have two files extracted - bcmwl5.inf and bcmwl564.sys. If your Wireless was recognised by Ubuntu when it was first installed, but is simply not working, then it needs to be blacklisted, so that ndiswrapper can take over. Open the /etc/modprobe.d/blacklist file:
gksu gedit /etc/modprobe.d/blacklist
I added “blacklist bcm43xx” to the end of the file:
# blacklist bcm43xx wifi driver, and use ndiswrapper instead
blacklist bcm43xx

Now save the file, and reboot. Open a terminal window again, and cd to the directory where the extracted driver files are - e.g.:
cd ~/Desktop/wireless
If ndiswrapper isn’t installed, run the Synaptic Package Manager (Stsyem -> Administration -> Synaptic Package Manager) and search for “ndiswrapper”. Install ndiswrapper-common and ndiswrapper-utils-x.x (where x is the version number). Go back to the terminal window to install the new driver, and type:
sudo ndiswrapper –i bcmwl5.inf
sudo ndiswrapper –m

Then, edit the /etc/modules file:
gksu gedit /etc/modules
Add:
ndiswrapper
to the bottom, and press “Enter” to add a new line. Save the file, and reboot! The Wireless card should be working, and should be able to connect to a wireless network.

If removal of the driver is required, you can run:
sudo ndiswrapper –e bcmwl5
Then, delete the entry from /etc/modules:
gksu gedit /etc/modules
Delete “ndiswrapper” and save… and un-blacklist the bcm43xx driver in /etc/modprobe.d/blacklist:
gksu gedit /etc/modprobe.d/blacklist
Delete “blacklist bcm43xx”, save and reboot.

Hope that helps somebody!

References:

Broadcom 4318 Using NdisWrapper, posted by brainwrecked-tech @ ubuntuforums
HOWTO: Broadcom 4318 Wireless Cards, posted by compwiz18 @ ubuntuforums


written by Hodge \\ tags: , , , , , , , , , ,

Feb 22
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

When I first installed, I had no sound. So, I played around with the sound control panel (double click on the speaker in the top right), looked at the drivers (ALSA installed correctly), and eventually found that Ubuntu sees my laptop speakers as “Surround”, and not the default setting of “Front”. So, right clicking on the sound applet in the panel, and choosing Preferences allowed me to change the device and track control to Surround. Likewise, double clicking, and opening up the control panel, made sure that surround was visible, and up at full volume. Sound works.


written by Hodge \\ tags: , , , ,

Webloogle Blog Directory