
Ubuntu日本語フォーラム

ログインしていません。
ubuntuでloasのウェブカメラmcm-01sl p306008915を使う方法を教えてください。
オフライン
持っていないので何ともできませんが、「loas mcm-01sl」でネット検索すると、
http://www.geocities.jp/apple_grapejuic … ca5xx.htmlが見つかりました。
できそうな気がしますが、あまり情報はありませんね。
オフライン
返信ありがとうございます。
上記のサイトの方法で試してみましたが(http://mxhaard.free.fr/spca50x/Download/oldrelease/ spca5xx-20050701.tar.gzよりダウンロード)、makeができず困っております。makeを試して出たエラーは次の通りです。
●●●@●●●-desktop:~/spca5xx-20050701$ make
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/●●●/spca5xx-20050701 modules
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.32-23-generic' に入ります
scripts/Makefile.build:49: *** CFLAGS was changed in "/home/●●●/spca5xx-20050701/Makefile". Fix it to use EXTRA_CFLAGS. 中止.
make[1]: *** [_module_/home/●●●/spca5xx-20050701] エラー 2
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.32-23-generic' から出ます
make: *** [default] エラー 2
(●●●はユーザ名です)
このエラーはどういう意味でしょうか。
オフライン
『linux-headers-2.6.32-23-generic』はインストールされていますか。
解凍したディレクトリ中に、『readme』ファイルはありますか。相当古いファイルですので、./configureする前に、ディレクトリが現在のUbuntuと同じかどうか確認をする必要があります。
まだmakeに入っただけの段階ですので、まだまだエラーが出ると思いますのでがんばってください。
オフライン
REDMEファイルの中身は以下の通りです。
What is it?
===========
This is version 0.57.xx of the spca5xx video for linux (v4l) driver, providing
support for webcams and digital cameras based on the spca5xx range of chips
manufactured by SunPlus Sonix Z-star Vimicro Conexant Etoms and Transvision
Please address all correspondence to <mxhaard at magic dot fr>, or
make use of the bug/support/patch tracking facilities provided by SourceForge,
at <http://sourceforge.net/projects/spca50x/>.
Disclaimer
==========
We believe that this driver will perform correctly in many circumstances.
It is, however, experimental code, running at the kernel level, and may
potentially cause serious data corruption, or worse.
Do not use this driver unless you are prepared for this eventuality.
Use of this driver constitutes an agreement that no-one other than yourself may
be held responsible for any effects caused by the driver, ill or otherwise.
What cameras are supported?
===========================
Currently, the following cameras are supported by this driver:
Vendor ID Device ID Support Summary
--------- --------- ---------------
{USB_DEVICE (0x0733, 0x0430)}, /* Intel PC Camera Pro */
{USB_DEVICE (0x0733, 0x0401)}, /* Intel Create and Share */
{USB_DEVICE (0x99FA, 0x8988)}, /* Grandtec V.cap */
{USB_DEVICE (0x0733, 0x0402)}, /* ViewQuest M318B */
{USB_DEVICE (0x0733, 0x0110)}, /* ViewQuest VQ110 */
{USB_DEVICE (0x040A, 0x0002)}, /* Kodak DVC-325 */
{USB_DEVICE (0x055f, 0xc420)}, /* Mustek gSmart Mini 2 */
{USB_DEVICE (0x055f, 0xc520)}, /* Mustek gSmart Mini 3 */
{USB_DEVICE (0x041E, 0x400A)}, /* Creative PC-CAM 300 */
{USB_DEVICE (0x084D, 0x0003)}, /* D-Link DSC-350 */
{USB_DEVICE (0x041E, 0x400B)}, /* Creative PC-CAM 600 */
{USB_DEVICE (0x8086, 0x0630)}, /* Intel Pocket PC Camera */
{USB_DEVICE (0x8086, 0x0110)}, /* Intel Easy PC Camera */
{USB_DEVICE (0x0506, 0x00df)}, /* 3Com HomeConnect Lite */
{USB_DEVICE (0x040a, 0x0300)}, /* Kodak EZ200 */
{USB_DEVICE (0x04fc, 0x504b)}, /* Maxell MaxPocket LE 1.3 */
{USB_DEVICE (0x08ca, 0x2008)}, /* Aiptek Mini PenCam 2 M */
{USB_DEVICE (0x08ca, 0x0104)}, /* Aiptek PocketDVII 1.3 */
{USB_DEVICE (0x08ca, 0x2018)}, /* Aiptek Pencam SD 2M */
{USB_DEVICE (0x04fc, 0x504a)}, /* Aiptek Mini PenCam 1.3 */
{USB_DEVICE (0x055f, 0xc530)}, /* Mustek Gsmart LCD 3 */
{USB_DEVICE (0x055f, 0xc650)}, /* Mustek MDC5500Z */
{USB_DEVICE (0x052b, 0x1513)}, /* Megapix V4 */
{USB_DEVICE (0x08ca, 0x0103)}, /* Aiptek PocketDV */
{USB_DEVICE (0x0af9, 0x0010)}, /* Hama USB Sightcam 100 */
{USB_DEVICE (0x1776, 0x501c)}, /* Arowana 300K CMOS Camera */
{USB_DEVICE (0x08ca, 0x0106)}, /* Aiptek Pocket DV3100+ */
{USB_DEVICE (0x08ca, 0x2010)}, /* Aiptek PocketCam 3M */
{USB_DEVICE (0x0458, 0x7004)}, /* Genius VideoCAM Express V2 */
{USB_DEVICE (0x04fc, 0x0561)}, /* Flexcam 100 */
{USB_DEVICE (0x055f, 0xc430)}, /* Mustek Gsmart LCD 2 */
{USB_DEVICE (0x04fc, 0xffff)}, /* Pure DigitalDakota */
{USB_DEVICE (0xabcd, 0xcdee)}, /* Petcam */
{USB_DEVICE (0x04a5, 0x3008)}, /* Benq DC 1500 */
{USB_DEVICE (0x046d, 0x0960)}, /* Logitech Inc. ClickSmart 420 */
{USB_DEVICE (0x046d, 0x0901)}, /* Logitech Inc. ClickSmart 510 */
{USB_DEVICE (0x04a5, 0x3003)}, /* Benq DC 1300 */
{USB_DEVICE (0x0af9, 0x0011)}, /* Hama USB Sightcam 100 */
{USB_DEVICE (0x055f, 0xc440)}, /* Mustek DV 3000 */
{USB_DEVICE (0x041e, 0x4013)}, /* Creative Pccam750 */
{USB_DEVICE (0x060b, 0xa001)}, /* Maxell Compact Pc PM3 */
{USB_DEVICE (0x04a5, 0x300a)}, /* Benq DC3410 */
{USB_DEVICE (0x04a5, 0x300c)}, /* Benq DC1016 */
{USB_DEVICE (0x0461, 0x0815)}, /* Micro Innovation IC200 */
{USB_DEVICE (0x046d, 0x0890)}, /* Logitech QuickCam traveler */
{USB_DEVICE (0x10fd, 0x7e50)}, /* FlyCam Usb 100 */
{USB_DEVICE (0x06e1, 0xa190)}, /* ADS Instant VCD */
{USB_DEVICE (0x055f, 0xc220)}, /* Gsmart Mini */
{USB_DEVICE (0x0733, 0x2211)}, /* Jenoptik jdc 21 LCD */
{USB_DEVICE (0x046d, 0x0900)}, /* Logitech Inc. ClickSmart 310 */
{USB_DEVICE (0x055f, 0xc360)}, /* Mustek DV4000 Mpeg4 */
{USB_DEVICE (0x08ca, 0x2024)}, /* Aiptek DV3500 Mpeg4 */
{USB_DEVICE (0x046d, 0x0905)}, /* Logitech ClickSmart820 */
{USB_DEVICE (0x05da, 0x1018)}, /* Digital Dream Enigma 1.3 */
{USB_DEVICE (0x0c45, 0x6025)}, /* Xcam Shanga */
{USB_DEVICE (0x0733, 0x1311)}, /* Digital Dream Epsilon 1.3 */
{USB_DEVICE (0x041e, 0x401d)}, /* Creative Webcam NX ULTRA */
{USB_DEVICE (0x08ca, 0x2016)}, /* Aiptek PocketCam 2 Mega */
{USB_DEVICE (0x0734, 0x043b)}, /* 3DeMon USB Capture aka */
{USB_DEVICE (0x041E, 0x4018)}, /* Creative Webcam Vista (PD1100) */
{USB_DEVICE (0x0546, 0x3273)}, /* Polaroid PDC2030 */
{USB_DEVICE (0x041e, 0x401f)}, /* Creative Webcam Notebook PD1171 */
{USB_DEVICE (0x041e, 0x4017)}, /* Creative Webcam Mobile PD1090 */
{USB_DEVICE (0x046d, 0x08a2)}, /* Labtec Webcam Pro */
{USB_DEVICE (0x055f, 0xd003)}, /* Mustek WCam300A */
{USB_DEVICE (0x0458, 0x7007)}, /* Genius VideoCam V2 */
{USB_DEVICE (0x0458, 0x700c)}, /* Genius VideoCam V3 */
{USB_DEVICE (0x0458, 0x700f)}, /* Genius VideoCam Web V2 */
{USB_DEVICE (0x041e, 0x401e)}, /* Creative Nx Pro */
{USB_DEVICE (0x0c45, 0x6029)}, /* spcaCam@150 */
{USB_DEVICE (0x0c45, 0x6009)}, /* spcaCam@120 */
{USB_DEVICE (0x0c45, 0x600d)}, /* spcaCam@120 */
{USB_DEVICE (0x04fc, 0x5330)}, /* Digitrex 2110 */
{USB_DEVICE (0x055f, 0xc540)}, /* Gsmart D30 */
{USB_DEVICE (0x0ac8, 0x301b)}, /* Asam Vimicro */
{USB_DEVICE (0x041e, 0x403a)}, /* Creative Nx Pro 2 */
{USB_DEVICE (0x055f, 0xc211)}, /* Kowa Bs888e Microcamera */
{USB_DEVICE (0x0ac8, 0x0302)}, /* Z-star Vimicro zc0302 */
{USB_DEVICE (0x0572, 0x0041)}, /* Creative Notebook cx11646 */
{USB_DEVICE (0x08ca, 0x2022)}, /* Aiptek Slim 3200 */
{USB_DEVICE (0x046d, 0x0921)}, /* Labtec Webcam */
{USB_DEVICE (0x046d, 0x0920)}, /* QC Express */
{USB_DEVICE (0x0923, 0x010f)}, /* ICM532 cams */
{USB_DEVICE (0x055f, 0xc200)}, /* Mustek Gsmart 300 */
{USB_DEVICE (0x0733, 0x2221)}, /* Mercury Digital Pro 3.1p */
{USB_DEVICE (0x041e, 0x4036)}, /* Creative Live ! */
{USB_DEVICE (0x055f, 0xc005)}, /* Mustek Wcam300A */
{USB_DEVICE (0x041E, 0x403b)}, /* Creative Webcam Vista (VF0010) */
{USB_DEVICE (0x0545, 0x8333)}, /* Veo Stingray */
{USB_DEVICE (0x0545, 0x808b)}, /* Veo Stingray */
{USB_DEVICE (0x10fd, 0x8050)}, /* Typhoon Webshot II USB 300k */
{USB_DEVICE (0x0546, 0x3155)}, /* Polaroid PDC3070 */
{USB_DEVICE (0x046d, 0x0928)}, /* Logitech QC Express Etch2 */
{USB_DEVICE (0x046d, 0x092a)}, /* Logitech QC for Notebook */
{USB_DEVICE (0x046d, 0x08a0)}, /* Logitech QC IM */
{USB_DEVICE (0x0461, 0x0a00)}, /* MicroInnovation WebCam320 */
{USB_DEVICE (0x08ca, 0x2028)}, /* Aiptek PocketCam4M */
{USB_DEVICE (0x08ca, 0x2042)}, /* Aiptek PocketDV5100 */
{USB_DEVICE (0x08ca, 0x2060)}, /* Aiptek PocketDV5300 */
{USB_DEVICE (0x04fc, 0x5360)}, /* Sunplus Generic */
{USB_DEVICE (0x046d, 0x08a1)}, /* Logitech QC IM 0x08A1 +sound*/
{USB_DEVICE (0x046d, 0x08a3)}, /* Logitech QC Chat */
{USB_DEVICE (0x046d, 0x08b9)}, /* Logitech QC IM ??? */
{USB_DEVICE (0x046d, 0x0929)}, /* Labtec Webcam Elch2*/
{USB_DEVICE (0x10fd, 0x0128)}, /* Typhoon Webshot II USB 300k 0x0128 */
{USB_DEVICE (0x102c, 0x6151)}, /* Qcam Sangha CIF */
{USB_DEVICE (0x102c, 0x6251)}, /* Qcam xxxxxx VGA */
{USB_DEVICE (0x04fc, 0x7333)}, /* PalmPixDC85*/
{USB_DEVICE (0x06be, 0x0800)}, /* Optimedia*/
{USB_DEVICE (0x2899, 0x012c)}, /* Toptro Industrial*/
{USB_DEVICE (0x06bd, 0x0404)}, /* Agfa CL20*/
{USB_DEVICE (0x046d, 0x092c)}, /* Logitech QC chat Elch2*/
{USB_DEVICE (0x0c45, 0x607c)}, /* Sonix sn9c102p Hv7131R*/
{USB_DEVICE (0x0733, 0x3261)}, /* Concord 3045 spca536a*/
{USB_DEVICE (0x0733, 0x1314)}, /* Mercury 2.1MEG Deluxe Classic Cam*/
{USB_DEVICE (0x041e, 0x401c)}, /* Creative NX */
{USB_DEVICE (0x041e, 0x4034)}, /* Creative Instant P0620 */
{USB_DEVICE (0x041e, 0x4035)}, /* Creative Instant P0620D */
{USB_DEVICE (0x046d, 0x08ae)}, /* Logitech QuickCam for Notebooks */
{USB_DEVICE (0x055f, 0xd004)}, /* Mustek WCam300 AN */
{USB_DEVICE (0x046d, 0x092b)}, /* Labtec Webcam Plus*/
{USB_DEVICE (0x0c45, 0x602e)}, /* Genius VideoCam Messenger*/
{USB_DEVICE (0x0c45, 0x602c)}, /* Generic Sonix OV7630*/
{USB_DEVICE (0x093A, 0x050F)}, /* Mars-Semi Pc-Camera */
{USB_DEVICE (0x0458, 0x7006)}, /* Genius Dsc 1.3 Smart */
{USB_DEVICE (0x0000, 0x0000)}, /* MystFromOri Unknow Camera */
This list represents those cameras that are specifically supported by the
driver, and should work to some degree 'out of the box'. A full list of the
cameras known to the project maintainers can be found on
http://mxhaard.free.fr/spca5xx.html.
How do I use it?
================
Well, first you need to compile the driver (see below), then you need to make
sure that the v4l infrastructure is set up and then load the driver. After
you've done that, any v4l enabled application, such as spcaview, gqcam, xawtv,
gnomemeeting, camE etc should work.
Supported kernel versions
=========================
The driver should compile and run successfully against most stable versions of
the official Linux kernel (from <http://www.kernel.org/>), within the range
2.4.10 to 2.6.11 inclusive.should work with kernel 2.4 < 2.4.10 and 2.6.12 please report
your results
--------------------------------------------------------
-Distro patched Kernel should work but are unsupported.-
--------------------------------------------------------
Specifically, it has been tested against:
2.4.10 Compiles ok, with 1 warning
2.4.25 Compiles ok, with 1 warning.
2.4.26 Compiles ok, with 1 warning.
/lib/modules/2.4.25/build/include/linux/highmem.h: Dans la fonction � bh_kmap �:
/lib/modules/2.4.25/build/include/linux/highmem.h:20: attention : usage en arithm�tique d'un pointeur de type � void * �
Don't care module should load and works fine :)
2.6.7 Compiles ok, with no warnings.
2.6.8.1 Compiles ok, with no warnings.
2.6.9 Compiles ok, with no warnings.
2.6.11.7 Compiles ok, with no warnings.
KERNEL 2.6.3 is UNSUPPORTED !!
Compiling it
============
The driver module can be built without modifying your kernel source tree.
Before trying to compile the driver, ensure that you've configured your
kernel, and updated the dependencies:
'make [config|menuconfig|xconfig]; make dep'.
Make sure, when compiling the driver, you use the same version of compiler as
was used to compile your kernel. Not doing so can create incompatible binaries.
If you wish to compile the driver against a kernel other than the currently
installed one, build the driver with
'make KINCLUDE=/usr/src/linux-<version>/include', or similar.
Please note, the default location for the kernel, according to the driver, is
/usr/src/linux.
To build just the driver, simply use 'make'.
Compiling against the linux kernel 2.4 source tree, there should be no
warnings at all.
This version of the driver offers an automatic installation facility.
Use 'make install' to have the driver installed into your kernel modules
directory, which is assumed to be /lib/modules/<version>/kernel/drivers/usb.
<version> is picked up from the currently running kernel, so if that's not
the right place, then don't use 'make install'!
Making sure the usb and v4l stuff is there
==========================================
For the module to function correctly, the video for linux subsystem needs to
be loaded. As root, check the output of lsmod for videodev. If its not there,
do: modprobe videodev.
Also, you need to make sure that the usbcore module is loaded (or compiled
into your kernel) and similarly the module appropriate for your usb controller
(uhci or ohci).
Loading it
==========
If you have compiled the module, but haven't done 'make install' you can load
the module in the top build directory by doing as root: insmod spca5xx.o
If you have made install, do as root: modprobe spca5xx
There are several parameter that can be passed in:
force_rgb = 1 Set reverse rgb order
OffRed = -16 Initial red offset -16 range [-128..+128]
OffBlue = -16 Initial blue offset -16 range [-128..+128]
OffGreen = -16 Initial green offset -16 range [-128..+128]
GRed = 256 Initial gain setting to 1 range [0..512]
GBlue = 256 Initial gain setting to 1 range [0..512]
GGreen = 256 Initial gain setting to 1 range [0..512]
gamma = 3 Set gamma table to 1 range [0..7]
usbgrabber = 1 if you use an usb grabber usbid 0x0733:0x430 otherwise
usbgrabber=0
debug=<n> <-- set debug level
ccd=0 <-- SPCA505 only. Switch between the internal CCD (zero) and
the external video input (non-zero)
osd=1 <-- Enable on-screen display if kernel patches applied
(see below)
special note for kernel 2.6.x users:
you can change the parameters trought sysfs you need to be root
echo "1" > /sys/module/spca50x/gamma
change the gamma parameters to 1
to read a parameters
cat /sys/module/spca50x/gamma
***********************************************************************
Remember to use
insmod spca5xx.o usbgrabber=1 for for an usb grabber usbid 0x733:0x430
for Intel PC Camera Pro set usbgrabber to 0
***********************************************************************
Trying a v4l app
================
Spcaview or Spcagui are designed to test our driver http://mxhaard.free.fr .
have a look at the readme for all parameters setting.
The canonical app to try is gqcam, but it has some problems. First, you need
to make sure that you switch it to a resolution that the driver and cam are
actually capable of. It supports the resolutions "full", "half" and "quarter"
or somesuch, which equate to 640x480, 320x240, and 160x120. The middle
resolution should be supported by all cameras, so try that. It starts up with
the smallest resolution active, so that might not work. Also, gqcam expects
the r, g, and b values of the data stream in a different order than the rest
of the world, but it provides a switch to change that, which can be found
under preferences. If your picture has a blue tint, that is likely to be the
cause.
You can also try gnomemeeting, or any other v4l program, they should
Just Work (TM).
How about downloading pictures from it, or videos?
==================================================
This driver is a v4l driver, whose scope is only streaming video. Support for
downloading images and movies for a lot of spca50x cameras is provided as part
of the gphoto2 project, which can be found at: <http://www.gphoto.org>.
Limitations and known problems
==============================
Support for some bridges is not complete yet.
Not all resolutions work.
The driver as a whole is experimental.
What to do if your cam doesn't work
==================================
Scenario 1 - bridge not supported yet:
If your cam sports a sunplus spca5 something chip which we do not support
yet, you are in for some quality entertainment. :) In order to add support
for your chip we will need snoops of the windows driver in operation. You
can get these using a tool called ,usbsnoop which is free
software and can be found here: http://benoit.papillault.free.fr/usbsnoop/.
Once you have acquired these, send an email to the mailing list at
<[email protected]> or<mxhaard at magic dot fr>, detailing where/how people can
download the snoops (eg. website/ftp/email) and if time permits, we'll take
a look at them and try to implement support.
If you are a developer yourself and want to help, we very much appreciate
your contribution and will be happy to explain and answer questions about
how the driver works.
Scenario 2 - bridge supported, but your cam isn't detected
It might just work, but it also might not :). You can try exchanging your
usb vendor and product id for those of a camera with the same chip in the
source, or ask one of us to do it for you on the list or on irc. If the cam
is like the others with the same chip, it might work and your ids can be
permanently added. If it doesn't, see scenario one for what to do.
Scenario 3 - bridge supported, ids there, but still no luck
random list of things to check:
- make sure videodev is there;
- make sure the usb stuff is working;
- make sure the usb subsystem detects your cam;
- check syslog, if the driver claims the device;
- load the module with debug=4 and check syslog for some extremely verbose
debug information;
- write to the list or drop into #spca50x on freenode (IRC) and we'll see
if we can get you up and running. :)
This is a mighty fine project, how can I learn more about it?
=============================================================
<http://spca50x.sourceforge.net/> (nuff said)
I want to whine regularly, where can I?
=======================================
Please address all support requests to <[email protected]>,
or use the support/patch/bug tracking features provided by sourceforge on our
project page <http://sourceforge.net/projects/spca50x/>.
Who can I blame?
================
kernel 2.6.x port and generic chips driver:
Current spca5xx maintainer and project lead: Michel Xhaard <[email protected]>
Michel Xhaard (mxhaard) <mxhaard at magic dot fr>
Reza Jelveh (timebomb) <reza.jelveh at tuhh dot de>
Tomas Groth (tgc) <tomasgroth at yahoo dot dk>
Original authors:
Joel Crisp <[email protected]>
Current spca50x maintainer and project lead: Miah Gregory <[email protected]>
Francois Beerten <[email protected]>
Miah Gregory <[email protected]>
Till Adam <[email protected]>
The jpeg decoder was originally written by Michael Schroeder <[email protected]>
and adjusted to our purposes. All bugs are ours, all features his.
Credits (quoting Joel):
Thanks to all the authors of the ov511 driver and its ancestors.
Thanks to Darrell Scott for debug assistance and suggestions.
Thanks to Razvan Surdulescu for kicking me back into action.
Thanks to Bill Roehl for traces on the Create and Share (id 0x401). I WILL
make this work... or die trying...
Thanks to everyone who has tested this driver and given me feedback on it.
A note on Sunplus Z-star Conexant Sonix Transvision and our interaction with them so far
========================================================================================
Several of us have tried, at various times, to obtain information on the
bridge and senosrs chips from these Manufacturers, but have failed, seemingly due to a lack of
interest to cooperate on their part. Therefore, this driver is the result of
reverse engineering the protocols and functionality provided by these chips.
This limits what we can do, and it limits the quality of the driver. We would
much prefer to fully support all the features the chips provide, but without
Manufacturers supplying us with the needed specifications and technical
documentation, this is unlikely to happen.
Both the free software community and Manufacturer could only benefit from improved
cooperation in the future.
=========================
*** On-Screen Display ***
=========================
There is some functionality for debug purposes which can be enabled by the
compile-time option SPCA50X_ENABLE_OSD. This option displays the current
frame number, along with other data, in the resultant image. To use this, you
need to make some patches to the kernel and re-compile the kernel with the
VGA(VESA) frame buffer on (we don't use the frame buffer, but we need it
compiled in to get the fonts). The options you need are VESA frame buffer,
and 8 pixel fonts, and font VGA 8x8. These are the patches (they export the
methods needed to lookup font tables) :
/drivers/video/fonts.c:
22a23
> #include <linux/module.h>
131a133,135
>
> EXPORT_SYMBOL(fbcon_find_font);
> EXPORT_SYMBOL(fbcon_get_default_font);
/drivers/video/Makefile:
18c18
< cyber2000fb.o fbcon-hga.o
---
> cyber2000fb.o fbcon-hga.o fonts.o
After applying these patches, check /usr/include/linux/linux/autoconf.h and
ensure that the following symbols are defined:
CONFIG_FB 1
CONFIG_FBCON_FONTWIDTH8_ONLY 1 <--- this may not be necessary
CONFIG_FBCON_FONTS 1
CONFIG_FONT_8x8 1
Re-build the kernel from scratch (make clean && make dep && make bzImage).
Once you have installed it and rebooted then you can check for the existence
of fbcon_find_font in the /proc/ksyms file.
You can now use the additional module parameter osd=1 to enable the on-screen
display.
『linux-headers-2.6.32-23-generic』というファイルは、use/src/にあったのでたぶんインストールはできてると思います。
ちなみに、いまさらなんですがubuntuのバージョンは10.04でwin7 64bit proでOracle VM VirtualBoxという仮想環境を使用しています。先に書いたカメラがwin7で認識されず不明なデバイスになってしまうのでubuntuで使用したいと思っています。
オフライン
ソースファイルかかなり古く、2.6.11より前にしか対応していないようです。しかも『configure』ファイルがないで「./configure」は実行できませんので、『makefile』を修正するより方法がないと思います。
そこで、『make エラー EXTRA_CFLAGS』でネット検索をしましたら、
「CFLAGS was changed in "/home/●●●/spca5xx-20050701/Makefile". Fix it to use EXTRA_CFLAGS.」の対応策が見つかりましたので、http://www.poared.com/wordpress/?cat=8&paged=2のようにやってみてください。
ほかにエラーが出なければよいのですが。
オフライン
何をどういった手順で作業したらいいか教えてもらえますでしょうか。
詳しく教えてください。
オフライン
「CFLAGS was changed in "/home/●●●/spca5xx-20050701/Makefile". Fix it to use EXTRA_CFLAGS.」は、「"/home/●●●/spca5xx-20050701/Makefile"中のCFLAGSは替えられました。EXTRA_CFLAGSを使いなさい。」なので、
http://www.poared.com/wordpress/?cat=8&paged=2の中ごろに書いてあるように、
①解凍してできたホルダー『spca5xx-20050701』を/home/username/に移動(おまじない)
②場所→ホーム・ホルダ→spca5xx-20050701→makefileとたどり、マウスの右ボタンで、makefileを開く
③該当するところ(Ctrl+Fで検索窓が出るので、そこにCFLAGEと入力すると変更対象が分かる:5ヶ所ある)を『CFLAGS』→『EXTRA_CFLAGS』に変更(一発ですべてを置換できますが、お勧めしません。読みながらやってみてください)。
④保存
⑤make→sudo make install
のようにやってみてください。
ほかにエラーが出なければよいのですが。
わたしがDLしたのはあなたのと微妙に違うようですので、『makefile』の中身が同じかどうか分かりません。これ以上検証できませんので、ネット検索しながらがんばってください。
オフライン
makeをした結果エラーが出てしまいました。以下がその結果です。
●●●@●●●-desktop:~/spca5xx-20050701$ make
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/●●●/spca5xx-20050701 modules
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.32-23-generic' に入ります
CC [M] /home/●●●/spca5xx-20050701/drivers/usb/spca5xx.o
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:38:26: error: linux/●●●.h: No such file or directory
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:56:27: error: asm/semaphore.h: No such file or directory
In file included from /home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:746:
/home/●●●/spca5xx-20050701/drivers/usb/spcausb.h: In function ‘spca5xxRegRead’:
/home/●●●/spca5xx-20050701/drivers/usb/spcausb.h:106: error: implicit declaration of function ‘info’
/home/●●●/spca5xx-20050701/drivers/usb/spcausb.h: In function ‘spca_set_interface’:
/home/●●●/spca5xx-20050701/drivers/usb/spcausb.h:281: error: implicit declaration of function ‘warn’
In file included from /home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:749:
/home/●●●/spca5xx-20050701/drivers/usb/spca504_init.h: In function ‘spca504_initialize’:
/home/●●●/spca5xx-20050701/drivers/usb/spca504_init.h:390: error: called object ‘info’ is not a function
/home/●●●/spca5xx-20050701/drivers/usb/spca504_init.h:406: error: called object ‘info’ is not a function
In file included from /home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:763:
/home/●●●/spca5xx-20050701/drivers/usb/mr97311.h: In function ‘pcam_start’:
/home/●●●/spca5xx-20050701/drivers/usb/mr97311.h:391: warning: ISO C90 forbids mixed declarations and code
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca50x_isoc_irq’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:2025: error: incompatible types when assigning to type ‘atomic_long_t’ from type ‘struct usb_spca50x *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:2027: warning: assignment from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca50x_init_isoc’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:2303: warning: assignment from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_open’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4542: error: implicit declaration of function ‘video_devdata’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4542: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4548: error: implicit declaration of function ‘video_get_drvdata’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4548: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_close’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4671: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_do_ioctl’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4720: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_ioctl’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5570: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5575: error: implicit declaration of function ‘video_usercopy’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_read’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5596: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_mmap’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5688: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5741: error: variable ‘spca50x_template’ has initializer but incomplete type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5742: error: unknown field ‘owner’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5742: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5742: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5743: error: unknown field ‘name’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5743: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5743: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5744: error: unknown field ‘type’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5744: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5744: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5745: error: unknown field ‘hardware’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5745: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5745: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5746: error: unknown field ‘fops’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5746: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5746: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5748: error: unknown field ‘release’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5748: error: ‘video_device_release’ undeclared here (not in a function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5748: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5748: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5750: error: unknown field ‘minor’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5750: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5750: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: warning: ‘struct class_device’ declared inside parameter list
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: warning: its scope is only this definition or declaration, which is probably not what you want
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘cd_to_spca50x’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6669: error: implicit declaration of function ‘to_video_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6669: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6670: warning: return makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6674: warning: ‘struct class_device’ declared inside parameter list
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘show_stream_id’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6676: warning: passing argument 1 of ‘cd_to_spca50x’ from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6680: error: expected ‘)’ before ‘(’ token
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6683: warning: ‘struct class_device’ declared inside parameter list
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘show_model’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6685: warning: passing argument 1 of ‘cd_to_spca50x’ from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6690: error: expected ‘)’ before ‘(’ token
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6693: warning: ‘struct class_device’ declared inside parameter list
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘show_pictsetting’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6695: warning: passing argument 1 of ‘cd_to_spca50x’ from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6704: error: expected ‘)’ before ‘(’ token
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca50x_create_sysfs’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6783: error: implicit declaration of function ‘video_device_create_file’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6783: error: ‘class_device_attr_stream_id’ undeclared (first use in this function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6783: error: (Each undeclared identifier is reported only once
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6783: error: for each function it appears in.)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6784: error: ‘class_device_attr_model’ undeclared (first use in this function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6786: error: ‘class_device_attr_pictsetting’ undeclared (first use in this function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8672: error: implicit declaration of function ‘video_device_alloc’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8672: warning: assignment makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8675: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8675: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8675: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8677: error: dereferencing pointer to incomplete type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8679: error: implicit declaration of function ‘video_set_drvdata’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8684: error: implicit declaration of function ‘video_register_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8684: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8700: warning: assignment from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8708: error: incompatible types when assigning to type ‘atomic_long_t’ from type ‘struct usb_spca50x *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8720: error: dereferencing pointer to incomplete type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8721: error: implicit declaration of function ‘video_device_release’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8723: error: implicit declaration of function ‘video_unregister_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8821: error: unknown field ‘owner’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8821: warning: initialization from incompatible pointer type
make[2]: *** [/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.o] エラー 1
make[1]: *** [_module_/home/●●●/spca5xx-20050701] エラー 2
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.32-23-generic' から出ます
make: *** [default] エラー 2
オフライン
『CFLAGS』をいったん元に戻して、
http://www.am.sanken.osaka-u.ac.jp/~muk … efile.html
や
http://www-ise1.ist.osaka-u.ac.jp/~k-ue … efile.htmlなどを参考に
『makefile』の構造と変数の使い方を確認して、もう一度修正してみてください。
*makefileに詳しい方、アドバイスをお願いします。
余談:参考書を購入すると、ubuntuでusbに挿せば使えるWebカメラを買うより高くなってしまいます。
オフライン
詳しくはありませんが、
Remember: you must have read/write access to your kernel source tree.
なので、sudo を付けて実行してみてはいかがでしょう。
オフライン
spca5xx の名の付いたドライバは標準でカーネルに含まれています.
$ modprobe -l \*spca5\* kernel/drivers/media/video/gspca/gspca_spca500.ko kernel/drivers/media/video/gspca/gspca_spca501.ko kernel/drivers/media/video/gspca/gspca_spca505.ko kernel/drivers/media/video/gspca/gspca_spca506.ko kernel/drivers/media/video/gspca/gspca_spca508.ko kernel/drivers/media/video/gspca/gspca_spca561.ko
オフライン
以下が試してみた結果です。
初めがCFLAGSで後がEXTRA_CFLAGSです。
●●●@●●●-desktop:~/spca5xx-20050701$ sudo make
[sudo] password for ●●●:
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/●●●/spca5xx-20050701 modules
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.32-23-generic' に入ります
scripts/Makefile.build:49: *** CFLAGS was changed in "/home/●●●/spca5xx-20050701/Makefile". Fix it to use EXTRA_CFLAGS. 中止.
make[1]: *** [_module_/home/●●●/spca5xx-20050701] エラー 2
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.32-23-generic' から出ます
make: *** [default] エラー 2
●●●@●●●-desktop:~/spca5xx-20050701$ sudo make
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/●●●/spca5xx-20050701 modules
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.32-23-generic' に入ります
CC [M] /home/●●●/spca5xx-20050701/drivers/usb/spca5xx.o
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:38:26: error: linux/config.h: No such file or directory
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:56:27: error: asm/semaphore.h: No such file or directory
In file included from /home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:746:
/home/●●●/spca5xx-20050701/drivers/usb/spcausb.h: In function ‘spca5xxRegRead’:
/home/●●●/spca5xx-20050701/drivers/usb/spcausb.h:106: error: implicit declaration of function ‘info’
/home/●●●/spca5xx-20050701/drivers/usb/spcausb.h: In function ‘spca_set_interface’:
/home/●●●/spca5xx-20050701/drivers/usb/spcausb.h:281: error: implicit declaration of function ‘warn’
In file included from /home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:749:
/home/●●●/spca5xx-20050701/drivers/usb/spca504_init.h: In function ‘spca504_initialize’:
/home/●●●/spca5xx-20050701/drivers/usb/spca504_init.h:390: error: called object ‘info’ is not a function
/home/●●●/spca5xx-20050701/drivers/usb/spca504_init.h:406: error: called object ‘info’ is not a function
In file included from /home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:763:
/home/●●●/spca5xx-20050701/drivers/usb/mr97311.h: In function ‘pcam_start’:
/home/●●●/spca5xx-20050701/drivers/usb/mr97311.h:391: warning: ISO C90 forbids mixed declarations and code
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca50x_isoc_irq’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:2025: error: incompatible types when assigning to type ‘atomic_long_t’ from type ‘struct usb_spca50x *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:2027: warning: assignment from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca50x_init_isoc’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:2303: warning: assignment from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_open’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4542: error: implicit declaration of function ‘video_devdata’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4542: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4548: error: implicit declaration of function ‘video_get_drvdata’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4548: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_close’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4671: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_do_ioctl’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:4720: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_ioctl’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5570: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5575: error: implicit declaration of function ‘video_usercopy’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_read’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5596: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_mmap’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5688: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5741: error: variable ‘spca50x_template’ has initializer but incomplete type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5742: error: unknown field ‘owner’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5742: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5742: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5743: error: unknown field ‘name’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5743: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5743: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5744: error: unknown field ‘type’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5744: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5744: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5745: error: unknown field ‘hardware’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5745: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5745: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5746: error: unknown field ‘fops’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5746: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5746: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5748: error: unknown field ‘release’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5748: error: ‘video_device_release’ undeclared here (not in a function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5748: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5748: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5750: error: unknown field ‘minor’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5750: warning: excess elements in struct initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:5750: warning: (near initialization for ‘spca50x_template’)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: warning: ‘struct class_device’ declared inside parameter list
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: warning: its scope is only this definition or declaration, which is probably not what you want
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘cd_to_spca50x’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6669: error: implicit declaration of function ‘to_video_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6669: warning: initialization makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6670: warning: return makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6674: warning: ‘struct class_device’ declared inside parameter list
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘show_stream_id’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6676: warning: passing argument 1 of ‘cd_to_spca50x’ from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6680: error: expected ‘)’ before ‘(’ token
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6683: warning: ‘struct class_device’ declared inside parameter list
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘show_model’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6685: warning: passing argument 1 of ‘cd_to_spca50x’ from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6690: error: expected ‘)’ before ‘(’ token
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6693: warning: ‘struct class_device’ declared inside parameter list
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘show_pictsetting’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6695: warning: passing argument 1 of ‘cd_to_spca50x’ from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6667: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6704: error: expected ‘)’ before ‘(’ token
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca50x_create_sysfs’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6783: error: implicit declaration of function ‘video_device_create_file’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6783: error: ‘class_device_attr_stream_id’ undeclared (first use in this function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6783: error: (Each undeclared identifier is reported only once
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6783: error: for each function it appears in.)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6784: error: ‘class_device_attr_model’ undeclared (first use in this function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:6786: error: ‘class_device_attr_pictsetting’ undeclared (first use in this function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8672: error: implicit declaration of function ‘video_device_alloc’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8672: warning: assignment makes pointer from integer without a cast
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8675: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8675: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8675: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8677: error: dereferencing pointer to incomplete type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8679: error: implicit declaration of function ‘video_set_drvdata’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8684: error: implicit declaration of function ‘video_register_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8684: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8700: warning: assignment from incompatible pointer type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8708: error: incompatible types when assigning to type ‘atomic_long_t’ from type ‘struct usb_spca50x *’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8720: error: dereferencing pointer to incomplete type
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8721: error: implicit declaration of function ‘video_device_release’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8723: error: implicit declaration of function ‘video_unregister_device’
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c: At top level:
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8821: error: unknown field ‘owner’ specified in initializer
/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.c:8821: warning: initialization from incompatible pointer type
make[2]: *** [/home/●●●/spca5xx-20050701/drivers/usb/spca5xx.o] エラー 1
make[1]: *** [_module_/home/●●●/spca5xx-20050701] エラー 2
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.32-23-generic' から出ます
make: *** [default] エラー 2
解決策をお願いします。ほかに必要な情報がありましたら何なりとお申し付けください。
オフライン
申し訳ありません。”readme”のなかにloas mcm-01slがないので、カーネルにドライバーが入っていても自動認識はしてくれなそうです。
エラーは『make』に"sudo"をつけてもあまり変わらないようです。
これ以上はネットで検索しても分かりませんので、私には手に負えません。
詳しい方の出番を期待して待ってください。
オフライン
funatogawa さんの投稿 #2で紹介されているリンクを辿るとここに
for kernel up from 2.6.11 : gspcav1-20071224.tar.gz
for kernel below 2.6.11: spca5xx version 0.60.00-1:spca5xx-v4l1goodbye.tar.gz
と記載が有り,現在のカーネルモジュールを調べると gspca_spca5** が存在するので --
睨めっこしている(相当古い)ドライバは既にカーネルソースに取り込まれているのでは?
ですから,まずは現状でドライバが読み込まれているかとか,ハードの ID を確認するのが先ではないですか?
ついでに現状で問題のカメラが使えないと判断したのは,どう言う経緯なのでしょう?
-- の方向に進んで欲しいなと,#12を投稿しました.
というのも,所持していないハードについては自前で確認が取れないので全くモチベーションが上がらないからで,
lsmod
lsusb
の結果を貼り付けて,他の誰かの助力を待って下さいとしか言えません.
オフライン
カメラが使えないと判断した理由は、cheeseというキャプチャソフトを入れてみて「デバイスが見つかりません」とエラーが出てしまったので使えないと判断しました。
lsmodとlsusbの結果は以下の通りです。
●●●@●●●-desktop:~$ lsmod
Module Size Used by
nls_utf8 1069 1
isofs 29250 1
vboxvideo 1228 2
drm 162377 3 vboxvideo
agpgart 31724 1 drm
binfmt_misc 6587 1
vboxsf 33560 0
snd_intel8x0 25588 2
snd_ac97_codec 100646 1 snd_intel8x0
ac97_bus 1002 1 snd_ac97_codec
snd_pcm_oss 35308 0
snd_mixer_oss 13746 1 snd_pcm_oss
snd_pcm 70662 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_seq_dummy 1338 0
snd_seq_oss 26726 0
snd_seq_midi 4557 0
snd_rawmidi 19056 1 snd_seq_midi
snd_seq_midi_event 6003 2 snd_seq_oss,snd_seq_midi
snd_seq 47263 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 19098 2 snd_pcm,snd_seq
snd_seq_device 5700 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 54148 14 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
ppdev 5259 0
fbcon 35102 71
tileblit 2031 1 fbcon
font 7557 1 fbcon
bitblit 4707 1 fbcon
softcursor 1189 1 bitblit
parport_pc 25962 0
joydev 8708 0
psmouse 63245 0
serio_raw 3978 0
vboxguest 149827 8 vboxsf
lp 7028 0
i2c_piix4 8335 0
soundcore 6620 1 snd
snd_page_alloc 7076 2 snd_intel8x0,snd_pcm
vga16fb 11385 1
vgastate 8961 1 vga16fb
parport 32635 3 ppdev,parport_pc,lp
usbhid 36110 0
hid 67032 1 usbhid
ahci 32168 2
e1000 97396 0
●●●@●●●-desktop:~$ lsusb
Bus 002 Device 004: ID 80ee:0021
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
引き続きよろしくお願いします。
オフライン
virtualbox の仮想環境でしょうか。
USBデバイスの接続を確認してください。
オフライン
USBの設定をいじった結果が以下です。
●●●@●●●-desktop:~$ lsmod
Module Size Used by
nls_iso8859_1 3249 1
nls_cp437 4919 1
vfat 8933 1
fat 47767 1 vfat
nls_utf8 1069 1
isofs 29250 1
vboxvideo 1228 2
drm 162377 3 vboxvideo
agpgart 31724 1 drm
binfmt_misc 6587 1
vboxsf 33560 0
snd_intel8x0 25588 2
snd_ac97_codec 100646 1 snd_intel8x0
ac97_bus 1002 1 snd_ac97_codec
snd_pcm_oss 35308 0
snd_mixer_oss 13746 1 snd_pcm_oss
snd_pcm 70662 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_seq_dummy 1338 0
snd_seq_oss 26726 0
snd_seq_midi 4557 0
snd_rawmidi 19056 1 snd_seq_midi
snd_seq_midi_event 6003 2 snd_seq_oss,snd_seq_midi
snd_seq 47263 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 19098 2 snd_pcm,snd_seq
snd_seq_device 5700 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
ppdev 5259 0
fbcon 35102 71
tileblit 2031 1 fbcon
font 7557 1 fbcon
bitblit 4707 1 fbcon
softcursor 1189 1 bitblit
psmouse 63245 0
parport_pc 25962 0
snd 54148 14 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
joydev 8708 0
serio_raw 3978 0
vga16fb 11385 1
vboxguest 149827 8 vboxsf
soundcore 6620 1 snd
vgastate 8961 1 vga16fb
snd_page_alloc 7076 2 snd_intel8x0,snd_pcm
i2c_piix4 8335 0
lp 7028 0
parport 32635 3 ppdev,parport_pc,lp
usb_storage 39425 1
usbhid 36110 0
hid 67032 1 usbhid
ahci 32168 2
e1000 97396 0
●●●@●●●-desktop:~$ lsusb
Bus 002 Device 003: ID 1307:0165 Transcend Information, Inc. 2GB/4GB Flash Drive
Bus 002 Device 002: ID 80ee:0021
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 06a5:d001 Divio ProLink DS3303u Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
よろしくお願いします。
オフライン