Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOW-TO] kernel 2.6 + matrox marvel g400TV VideoIn
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
DaVe&OpenMOsix
Apprentice
Apprentice


Joined: 30 Dec 2003
Posts: 213

PostPosted: Wed Apr 20, 2005 12:28 am    Post subject: [HOW-TO] kernel 2.6 + matrox marvel g400TV VideoIn Reply with quote

Ciao a tutti... stanotte mi sono dedicato a questo...
Come vedere la tv sulla gentoo-box!
-- guida passo-passo --
(grazie alle istruzioni di karnesky su questo topic https://forums.gentoo.org/viewtopic-p-2329702.html#2329702, ma l'how-to l'ho scritto da solo! :D )

Occorrente:
- una gentoo-box con Xorg (forse anche non necessario...
si potrebbe fare anche solo con framebuffer...)
- una scheda video Matrox Marvel G400TV
- kernel 2.6.x (io l'ho testato su 2.6.11-gentoo-r4)

Non credevo che lo sviluppo dei driver per una scheda vecchia come questa continuasse...
Invece la comunità OS è sempre attiva e anche questa volta si devono ringraziare gli
sviluppatori di http://marvel.sourceforge.net.
Per vedere la tv (ma anche l'entrata composita e vhs!) useremo xawtv.
io ho usato la versione masked ~x86 perchè quella non masked non mi compilava... vabbè...
Code:

echo "media-tv/xawtv ~x86">> /etc/portage/package.mask
emerge xawtv

NOTA: la versione è la 3.94-r1
tempo di compilazione: 3 minuti circa

createvi una cartella apposita per i driver
Code:

mkdir ~/matrox
cd ~/matrox

dopodichè bisogna prendere i driver dal CVS del gruppo marvel, così
Code:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/marvel login
--PREMERE ENTER alla richiesta di Password
cvs -z3:pserver:anonymous@cvs.sourceforge.net /cvsroot/marvel -co -P driver_fb

che scaricherà i driver_fb necessari nella cartella appena creata.

adesso prendetevi un kernel 2.6.* "pulito".
starratelo in /usr/src
Code:

cd /usr/src/
tar xjvf linux-2.6.11-gentoo-r4.tar.bz2
ln -s linux-2.6.11-gentoo-r4 linux
cd linux


adesso configuriamolo con make menuconfig:
selezionare come moduli:
CONFIG_I2C, CONFIG_I2C_ALGOBIT,
CONFIG_FB, CONFIG_FB_MATROX, CONFIG_FB_MATROX_G450,
CONFIG_FB_MATROX_I2C,
CONFIG_VIDEO_DEV, CONFIG_VIDEO_BT848

adesso (si, dopo la configurazione...) il kernel va patchato
Code:

cd /usr/src/linux
patch -p1 < ~/matrox/driver_fb/kernel-2.6.7.patch
--si, ho usato la patch per 2.6.7 sul 2.6.11... ha funzionato...--

e compilato
Code:

make bzImage modules modules_install install

mettetevi a posto il grub o il lilo e riavviate.
al reboot lanciate
Code:

cd ~/matrox/driver_fb
make LINUX_SOURCE=/usr/src/linux

siamo a cavallo: il make avrà creato i driver necessari.
adesso fate un bel
Code:
su - (per entrare come root)
cd /home/utente/matrox/driver_fb


da questa directory, come root lanciate lo script
Code:

./iv

per caricare i driver nel kernel
e
Code:

./rv

per toglierli.
Attenzione: a me dà errore nel caricare msp3400 ma al secondo colpo,
nonostante l'errore, funziona.

se tutto è andato a buon fine, dmesg dirà qualcosa del genere:
Code:

tuner: chip found at addr 0xc0 i2c-bus MAVEN:fb0
Linux video capture interface: v1.00
mgacore: Found MGA G400
tuner: type set to 3 (Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF,
                                             R1216MF)) by MAVEN:fb0
mgacodec: *mga @ dfbe4000
Matrox Marvel and Rainbow Runner G Capture Driver (V4L)
Matrox KS switchboard
Matrox MJPEG driver

e sarà creato il device /dev/video0

Ultimo passo: xawtv

createvi un file .xawtv nella vostra home con un contenuto del genere:
Code:

 [global]
 freqtab = italy

 [defaults]
 input = television
 norm = pal

 [RAI1]
 channel=35
 key = F1

 [RAI2]
 channel = 28
 key = F2

 [RAI3]
 channel = 48
 key = F3

 [R4]
 channel = 37

 [C5]
 channel = 54

 [I1]

 channel = 26
 [La7]
 channel = 25

 [MTV]
 channel = 62

 [AllMusic]
 channel = 58

che non mi sembra abbia bisogno di spiegazioni...
lanciate
Code:
xawtv -hwscan

dovreste ottentere
Code:

This is xawtv-3.94, running on Linux/i686 (2.6.11-gentoo-r4mga)
looking for available devices
port 69-69
 type : Xvideo, image scaler
    name : Matrox G-Series Backend Scaler
ioctl: VIDIOC_QUERYCAP(driver="";card="";bus_info="";version=0.0.0;
                                             capabilities=0x0 []): Unknown error 515
 type : v4l
    name : mgacap-0
    flags: overlay capture tuner chromakey

--si, c'è un errore... ma funziona!---
se tutto è ok lanciate
Code:
xawtv
!
con la rotellina del mouse si può cambiare canale, col tasto dx
accedere a tutte le regolazioni.
scegliete l'input desiderato tra television | composite | S-video, registrate il video
(non ho ancora testato per bene la stabilità...) o catturate un'immagine.
mettetelo in cron per registrare la partita se non siete a casa...
un sacco di cose si possono fare!
la qualità del video è OTTIMA!!!!
spero che sta guida sia d'aiuto.
per me è stato (stranamente) piuttosto facile e veloce - 10 minuti e via che si va!
ho perso + tempo a scrivere tutto questo!
ciao
DV
_________________
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum