Entra

View Full Version : vari prolbemi....


frag_one
21-09-2004, 23:52
Ciao a tutti!!!!
ecco il mio problema: nella rispettiva cartella ( /lib/modules/2.6.7/kernel/drivers/usb/media) ho i moduli tutti correttamente installati, ma dal momento che li voglio caricare col modprobe mi da' questo errore:

root@andy:/home/andy/ov511-2.28# modprobe ov511
FATAL: Error inserting ov511 (/lib/modules/2.6.7/kernel/drivers/usb/media/ov511.ko): Invalid module format

chi mi potrebbe aiutare????


in questo post faro' anche riferimento ad un altro mio problema:

avendo installato i driver nvidia dovrei modificare l' xorg.conf no?
ecco, la mia domanda e' questa, come mai quando vado per cambiare il comando "Vesa" a "Nvidia" al riavvio del server x mi da' errore riguardo il caricamento del modulo Nvidia???? icon_cry.gif

Vi ringrazio in anticipo!!:)

RRT4
22-09-2004, 00:03
prova "nvidia" invece di "Nvidia"

frag_one
22-09-2004, 00:22
niente, sempre il solito errore che non trova il modulo nvidia!:cry:

lovaz
22-09-2004, 09:56
Come lo hai messo il 2.6? Ricorda che per il 2.6 servono modutils aggiornate.

frag_one
22-09-2004, 10:00
l' ho messo seguendo una guida sulla compilazione di un kernel, non credo di aver sbagliato nulla...:)

lovaz
22-09-2004, 10:05
Hai aggiornato le modutils (modprobe, etc.)?

frag_one
22-09-2004, 10:06
no, te dici che potrebbero essere quelle?? come faccio?

lovaz
22-09-2004, 10:08
Che distribuzione usi?

frag_one
22-09-2004, 10:08
slackware 10, kernel 2.6.7! :)

lovaz
22-09-2004, 10:14
Allora non e' quello, slack ha le modutils aggiornate per il 2.6 fin dalla 9.0...
Ma il modulo incriminato lo hai compilato insieme al kernel?

frag_one
22-09-2004, 10:16
no l'ho messo dopo aver messo la 2.6.7! prima il kernel e poi i vari driver (OV511 e Nvidia che non funzionionano!)

lovaz
22-09-2004, 10:18
Allora non puo' funzionare!
Ma cosa e' questo ov...?

frag_one
22-09-2004, 10:20
driver per webcam! scusa, e perche' nn dovrebbe funzionare?? io ho provato a metterli dopo e non prima quando avevo il kernel 2.4.6!

lovaz
22-09-2004, 10:27
Non puo' funzionare perche' i moduli devono essere compilati insieme al kernel, un modulo compilato per un altro kernel non funzionera' mai, per installare i vari driver closed devi vedere le istruzioni (README, INSTALL o altro).
Per i driver nvidia devi avviare l'apposito programma di installazione.

frag_one
22-09-2004, 10:31
in effetti per nvidia ho lanciato il suo programma di installazione. Una volta che ho installato il driver bisognava modificare alcune cose del modulo xorg.conf e dal momento che cambio voce ad un paramentro non mi trova i driver installati!

Altra cosa sono i driver per la webcam (OV511) ho letto tutte le istruzioni che potevo per installarli ma alla fine anche li' non mi trova il modulo installato!:rolleyes:

lovaz
22-09-2004, 10:35
Puoi postare il readme della webcam e il xorg.conf?

frag_one
22-09-2004, 10:37
attenzione non mescolare i driver Ov511 con il xorg.conf che quello riguarda i driver Nvidia!

lovaz
22-09-2004, 10:38
Si', infatti volevo vedere tutti e due ;)

frag_one
22-09-2004, 10:41
Xorg.conf:

#
Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

# This loads the font modules
Load "type1"
Load "freetype"
Load "speedo"

# This loads the GLX module
Load "glx"

EndSection

Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

Section "Device"
Identifier "VESA Framebuffer"
Driver "vesa"
#VideoRam 4096
# Insert Clocks lines here if appropriate
EndSection

vedi quel "vesa"?? ecco, quello e' da' cambiare con nvidia ma all'avvio del server x mi da' errore dicendomi che non riesce a trovare/caricare il driver nvdia!


Questa e' il README x l'installazione dei driver OV511(webcam):


Before you start:

Many kernels and Linux distributions already come with ov511 preinstalled. To check whether it is installed, run "modprobe ov511" as root. If you don't get any errors, then the driver is already installed. Skip to the "Loading and Using the Driver" section below.

These built-in drivers usually work, but may not be the most recent version. You may need to install a more recent driver if:

* You want to use an OV518 camera (Creative WebCam Mini, model PD0040 or Philips PCVC720K). Note: These cameras REQUIRE the ov518_decomp module to be loaded.
* You want to use compression support for higher frame rates (requires version 1.41)
* You have a device that is not supported by older drivers (Lifeview CapView, camera with OV6620 sensor, etc...)
* You enjoy having the latest version of everything :-)

Installing the driver:

1. Make sure you have a compiler and kernel source that matches your currently running kernel.
2. Be sure that your kernel supports USB. If it doesn't, see my kernel installation instructions.
3. Download the latest driver.
4. Decompress it. For example, "tar xvzf ov511-1.58.tar.gz".
5. Change to the directory that got created, e.g. "cd ov511-1.58 ".
6. Run "make". If you get errors about include files, edit Makefile and set "INCLUDEDIR=/path_to_kernel_source/include".
7. If you have a 2.4 or 2.5 kernel, run "make install". That will list the available install options for your kernel. Run whichever one matches your kernel best.

Loading and using the driver:

1. Become root. Eg: "su -"
2. Load USB support:
1. See which type of USB controller you have with "lspci".
2. For UHCI controllers, either "modprobe usb-uhci" OR "modprobe uhci". They are equivalent, but one might work better for you than the other.
3. For OHCI controllers, "modprobe usb-ohci".
4. If these modules don't exist, it's possible that USB is built into your kernel. Also, on 2.5 kernels, the drivers are called uhci-hcd and ohci-hcd.
3. Make sure that USB is working: Check that /proc/bus/usb/devices exists and contains data. If it doesn't exist, don't worry: "Preliminary USB device filesystem" is probably not enabled in your kernel config, or usbdevfs isn't mounted. This won't affect the ov511 driver, but it makes problems harder to diagnose.
4. Load ov511: "modprobe ov511". This should also automatically load the "videodev" (Video4Linux) module if you have one.
5. Make sure the driver is working: When you run the "dmesg" command, you should see some messages from ov511 telling you which kind of bridge and sensor chips your camera uses. If you see errors from ov511, report them to me.
6. Check that /dev/video0 exists. If it doesn't, you can create it with "mknod /dev/video0 c 81 0 ". If you have another video device, you camera might be on /dev/video1 (change the last argument to mknod to 1 in that case).
7. Some applications look for the device at /dev/video . In some operating systems (e.g. RedHat 7.1), /dev/video might be a directory and not a device node or a symbolic link. You will have to manually specify the device as /dev/video0 when you use your video application.
8. Give users (besides root) permission to use the camera. This requires read and write access to /dev/video0 . You can grant this permission with "chmod 666 /dev/video0 ". If you don't want everyone on your system to be able to use the camera, use the "chown" command instead to make /dev/video0 belong to you.
9. Download an application from http://alpha.dyndns.org/ov511/apps.html and test it. I recommend Xawtv and Vidcat. (Note: vidcat might not work on cameras with OV6620 or OV6630 sensors).

Using Compression Support:

This information is only valid for the stable driver series (1.xx). For 2.xx drivers, please see the README that comes with the driver.

Compression support will give you better frame rates with OV511 cameras, and is REQUIRED with OV518 cameras. It requires lots of CPU power, and reduces the image quality somewhat, though. If you want/need it, do the following:

(NOTE: for OV518 cameras, substitute ov518_decomp for ov511_decomp )

1. Make sure you installed the latest driver using the above instructions. The driver that comes with kernels and operating systems by default has no compression support.
2. Add the following line to your /etc/modules.conf . This will load the decompressor after ov511 is loaded, and unload the decompressor before ov511 is unloaded:

above ov511 ov511_decomp

3. If you want compression enabled by default all of the time, add the following line to /etc/modules.conf:

options ov511 compress=1

4. Load ov511.If you didn't make compression the default in /etc/modules.conf , load it with the compress=1 option (modprobe ov511 compress=1). If it is already loaded, remove it first with " rmmod ov511"
5. When you unload ov511, you must do it with modprobe (modprobe -r ov511). With rmmod, you will get "ov511: Device or resource busy", since it doesn't remove ov511_decomp automatically.

Fine!:)

lovaz
22-09-2004, 11:04
Il make dell'ov... ti ha dato errori?
I driver nvidia sono recenti?

frag_one
22-09-2004, 11:06
si inizialemente per installarli i driver ov511 mi davano problemi perche' non trovavano i sorgenti, ho chiesto aiuto ed ora e' tutto ok, bhe' mica tanto dal momento che non mi carica i moduli installati!

cmq gli nvidia sono gli ultimi 6111!

frag_one
22-09-2004, 16:16
up...:(

frag_one
23-09-2004, 00:18
up per lovaz!

lovaz
24-09-2004, 17:32
Scusa il ritardo...
comunque l'unica cosa che posso fare "a distanza" e di consigliarti di rifare le installazioni e fare molta attenzione ad eventuali errori a video.
Inoltre i sorgenti in /usr/src/linux sono quelli corrispondenti al kernel corrente, vero?